From 2463d1e313d9ea922702875817f705e7dbae161d Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 18 Jun 2019 00:43:23 +0000 Subject: [PATCH] Generated from 7dbb958d380380e0e3f8f25f15ba232e054e4a82 Remove restriction on groupId --- azure_sdk/lib/azure_sdk.rb | 2 +- .../analysisservices_profile_module.rb | 72 +- .../modules/apimanagement_profile_module.rb | 452 +-- .../modules/authorization_profile_module.rb | 84 +- .../modules/automation_profile_module.rb | 390 +-- .../modules/autosuggest_profile_module.rb | 44 +- .../latest/modules/batch_profile_module.rb | 136 +- .../latest/modules/billing_profile_module.rb | 38 +- .../lib/latest/modules/cdn_profile_module.rb | 92 +- .../cognitiveservices_profile_module.rb | 98 +- .../latest/modules/commerce_profile_module.rb | 48 +- .../latest/modules/compute_profile_module.rb | 1080 +++---- .../modules/computervision_profile_module.rb | 152 +- .../modules/consumption_profile_module.rb | 136 +- .../containerinstance_profile_module.rb | 218 +- .../containerregistry_profile_module.rb | 220 +- .../containerservice_profile_module.rb | 122 +- .../contentmoderator_profile_module.rb | 116 +- .../customerinsights_profile_module.rb | 200 +- .../customimagesearch_profile_module.rb | 102 +- .../modules/customsearch_profile_module.rb | 74 +- .../customvisionprediction_profile_module.rb | 8 +- .../customvisiontraining_profile_module.rb | 218 +- .../datalakeanalytics_profile_module.rb | 114 +- .../modules/datalakestore_profile_module.rb | 174 +- .../modules/datamigration_profile_module.rb | 202 +- .../modules/devspaces_profile_module.rb | 50 +- .../modules/devtestlabs_profile_module.rb | 286 +- .../lib/latest/modules/dns_profile_module.rb | 74 +- .../modules/entitysearch_profile_module.rb | 128 +- .../modules/eventgrid_profile_module.rb | 66 +- .../latest/modules/eventhub_profile_module.rb | 70 +- .../lib/latest/modules/face_profile_module.rb | 64 +- .../latest/modules/features_profile_module.rb | 20 +- .../modules/graphrbac_profile_module.rb | 206 +- .../modules/imagesearch_profile_module.rb | 212 +- .../modules/iotcentral_profile_module.rb | 46 +- .../latest/modules/iothub_profile_module.rb | 348 +- .../latest/modules/keyvault_profile_module.rb | 508 +-- .../latest/modules/kusto_profile_module.rb | 98 +- .../latest/modules/links_profile_module.rb | 8 +- .../modules/localsearch_profile_module.rb | 106 +- .../latest/modules/logic_profile_module.rb | 284 +- .../modules/machinelearning_profile_module.rb | 102 +- .../managedapplications_profile_module.rb | 78 +- .../managedserviceidentity_profile_module.rb | 8 +- .../marketplaceordering_profile_module.rb | 28 +- .../modules/mediaservices_profile_module.rb | 486 +-- .../latest/modules/monitor_profile_module.rb | 298 +- .../latest/modules/network_profile_module.rb | 2296 ++++++------- .../modules/newssearch_profile_module.rb | 116 +- .../notificationhubs_profile_module.rb | 152 +- .../operationalinsights_profile_module.rb | 168 +- .../latest/modules/policy_profile_module.rb | 44 +- .../modules/policyinsights_profile_module.rb | 36 +- .../modules/powerbiembedded_profile_module.rb | 94 +- .../latest/modules/qnamaker_profile_module.rb | 42 +- .../recoveryservices_profile_module.rb | 102 +- .../recoveryservicesbackup_profile_module.rb | 818 ++--- ...veryservicessiterecovery_profile_module.rb | 462 +-- .../latest/modules/redis_profile_module.rb | 170 +- .../latest/modules/relay_profile_module.rb | 112 +- .../modules/resources_profile_module.rb | 184 +- .../resourcesmanagement_profile_module.rb | 90 +- .../modules/scheduler_profile_module.rb | 104 +- .../latest/modules/search_profile_module.rb | 50 +- .../latest/modules/security_profile_module.rb | 8 +- .../modules/servicebus_profile_module.rb | 176 +- .../modules/servicefabric_profile_module.rb | 2824 ++++++++-------- .../latest/modules/signalr_profile_module.rb | 92 +- .../modules/spellcheck_profile_module.rb | 66 +- .../lib/latest/modules/sql_profile_module.rb | 1156 +++---- .../sqlvirtualmachine_profile_module.rb | 124 +- .../latest/modules/storage_profile_module.rb | 444 +-- .../storsimple8000series_profile_module.rb | 692 ++-- .../modules/streamanalytics_profile_module.rb | 152 +- .../modules/subscriptions_profile_module.rb | 44 +- .../modules/textanalytics_profile_module.rb | 16 +- .../modules/trafficmanager_profile_module.rb | 48 +- .../modules/videosearch_profile_module.rb | 148 +- .../modules/visualsearch_profile_module.rb | 248 +- .../lib/latest/modules/web_profile_module.rb | 1912 +++++------ .../modules/websearch_profile_module.rb | 210 +- .../modules/authorization_profile_module.rb | 74 +- .../modules/compute_profile_module.rb | 426 +-- .../v2017_03_09/modules/dns_profile_module.rb | 8 +- .../modules/features_profile_module.rb | 20 +- .../modules/keyvault_profile_module.rb | 142 +- .../modules/links_profile_module.rb | 8 +- .../modules/network_profile_module.rb | 502 +-- .../modules/resources_profile_module.rb | 148 +- .../modules/storage_profile_module.rb | 118 +- .../modules/subscriptions_profile_module.rb | 44 +- .../modules/authorization_profile_module.rb | 74 +- .../modules/compute_profile_module.rb | 182 +- .../v2018_03_01/modules/dns_profile_module.rb | 8 +- .../modules/keyvault_profile_module.rb | 142 +- .../modules/network_profile_module.rb | 702 ++-- .../modules/policy_profile_module.rb | 6 +- .../modules/resources_profile_module.rb | 36 +- .../modules/storage_profile_module.rb | 118 +- .../modules/subscriptions_profile_module.rb | 44 +- .../v2018_03_01/modules/web_profile_module.rb | 832 ++--- .../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 | 26 +- ...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 | 10 +- ...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 | 9 +- .../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 | 31 +- .../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 | 7 +- .../models/subscription_contract.rb | 14 - .../models/subscription_create_parameters.rb | 9 +- ...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 | 7 +- .../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 | 101 +- .../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 | 41 +- .../subscriptions.rb | 130 +- .../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 | 10 +- ...gement_service_name_availability_result.rb | 4 - .../models/api_management_service_resource.rb | 31 +- .../api_management_service_sku_properties.rb | 3 - ...ment_service_update_hostname_parameters.rb | 5 - ...pi_management_service_update_parameters.rb | 26 +- ...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 | 9 +- .../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 | 33 +- .../models/representation_contract.rb | 3 - .../models/request_contract.rb | 8 - .../models/resource.rb | 16 - .../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 | 9 +- ...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 | 74 +- .../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 | 41 +- .../subscriptions.rb | 139 +- .../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 | 303 ++ .../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 | 831 +++++ .../api_issue_attachment.rb | 751 +++++ .../api_issue_comment.rb | 748 +++++ .../api_management_client.rb | 367 +++ .../api_management_operations.rb | 220 ++ .../api_management_service.rb | 1885 +++++++++++ .../api_management_service_skus.rb | 239 ++ .../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 | 71 + .../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/bearer_token_sending_methods.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/current_user_identity.rb | 45 + .../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/issue_contract_base_properties.rb | 66 + .../models/issue_update_contract.rb | 96 + .../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 + ...pen_id_authentication_settings_contract.rb | 62 + .../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/resource_sku.rb | 45 + .../models/resource_sku_capacity.rb | 80 + .../resource_sku_capacity_scale_type.rb | 17 + .../models/resource_sku_result.rb | 70 + .../models/resource_sku_results.rb | 96 + .../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 | 164 + .../models/user_create_parameters.rb | 143 + .../models/user_entity_base_parameters.rb | 77 + .../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 | 130 + .../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 | 1140 +++++++ .../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 | 5 +- .../modules/apimanagement_profile_module.rb | 1058 +++--- 653 files changed, 73617 insertions(+), 17608 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_management_service_skus.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/bearer_token_sending_methods.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/current_user_identity.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/issue_contract_base_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_update_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_authentication_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/resource_sku.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.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/azure_sdk.rb b/azure_sdk/lib/azure_sdk.rb index c9bc1bc56f..777a7b47d3 100644 --- a/azure_sdk/lib/azure_sdk.rb +++ b/azure_sdk/lib/azure_sdk.rb @@ -3,6 +3,6 @@ # Licensed under the MIT License. See License.txt in the project root for license information. require 'azure_sdk/version' +require 'v2018_03_01/v2018_03_01_profile_client' require 'v2017_03_09/v2017_03_09_profile_client' require 'latest/latest_profile_client' -require 'v2018_03_01/v2018_03_01_profile_client' diff --git a/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb b/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb index f2ff35ae4a..d3766b0037 100644 --- a/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb @@ -7,16 +7,14 @@ module Azure::Profiles::Latest module AnalysisServices module Mgmt - Servers = Azure::AnalysisServices::Mgmt::V2017_08_01::Servers Operations = Azure::AnalysisServices::Mgmt::V2017_08_01::Operations + Servers = Azure::AnalysisServices::Mgmt::V2017_08_01::Servers module Models + SkuTier = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuTier 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 @@ -24,24 +22,26 @@ module Models 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 SkuEnumerationForNewResourceResult = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuEnumerationForNewResourceResult - Operation = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Operation SkuDetailsForExistingResource = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuDetailsForExistingResource 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 - 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 + OperationStatus = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationStatus + Resource = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Resource + State = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::State + OperationDisplay = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationDisplay + Operation = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Operation Status = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Status + OperationListResult = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationListResult + ProvisioningState = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ProvisioningState + ResourceSku = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ResourceSku end class AnalysisServicesManagementClass - attr_reader :servers, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :servers, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -51,8 +51,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @servers = @client_0.servers @operations = @client_0.operations + @servers = @client_0.servers @model_classes = ModelClasses.new end @@ -71,24 +71,18 @@ def method_missing(method, *args) end class ModelClasses + def sku_tier + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuTier + 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 resource - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Resource - end def gateway_list_status_error Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusError end @@ -110,21 +104,12 @@ def ipv4_firewall_settings def error_response Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ErrorResponse end - def resource_sku - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ResourceSku - end - def operation_status - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationStatus - end def server_administrators Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ServerAdministrators end def sku_enumeration_for_new_resource_result Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuEnumerationForNewResourceResult end - def operation - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Operation - end def sku_details_for_existing_resource Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuDetailsForExistingResource end @@ -137,21 +122,36 @@ def sku_enumeration_for_existing_resource_result def analysis_services_server Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer end - def sku_tier - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuTier + def connection_mode + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ConnectionMode + end + def operation_status + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationStatus + end + def resource + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Resource end def state Azure::AnalysisServices::Mgmt::V2017_08_01::Models::State end - def provisioning_state - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ProvisioningState + def operation_display + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationDisplay end - def connection_mode - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ConnectionMode + def operation + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Operation end def status Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Status end + def operation_list_result + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationListResult + end + def provisioning_state + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ProvisioningState + end + def resource_sku + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ResourceSku + 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..349a12838f 100644 --- a/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb +++ b/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb @@ -7,16 +7,18 @@ module Azure::Profiles::Latest module ApiManagement module Mgmt - Policy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Policy + Certificate = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Certificate + Group = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Group + Subscription = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Subscription 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 + Policy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Policy 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 + ApiOperation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiOperation 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 @@ -24,15 +26,12 @@ module Mgmt 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 NotificationRecipientUser = Azure::ApiManagement::Mgmt::V2018_06_01_preview::NotificationRecipientUser NotificationRecipientEmail = Azure::ApiManagement::Mgmt::V2018_06_01_preview::NotificationRecipientEmail @@ -50,45 +49,47 @@ 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 + Tag = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Tag 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 + Logger = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Logger TenantConfiguration = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TenantConfiguration - User = Azure::ApiManagement::Mgmt::V2018_06_01_preview::User - UserGroup = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserGroup + TenantAccessGit = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TenantAccessGit 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 + UserIdentities = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserIdentities ApiExport = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiExport + ApiPolicy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiPolicy + User = Azure::ApiManagement::Mgmt::V2018_06_01_preview::User module Models + ErrorResponse = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponse + OperationDisplay = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationDisplay ApiManagementServiceListResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceListResult + Operation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation 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 + OperationListResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationListResult ApiManagementServiceCheckNameAvailabilityParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceCheckNameAvailabilityParameters - PolicyCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyCollection + ApiManagementServiceGetSsoTokenResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceGetSsoTokenResult ApiManagementServiceNameAvailabilityResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceNameAvailabilityResult - PolicySnippetsCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicySnippetsCollection + PolicyCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyCollection ApiManagementServiceApplyNetworkConfigurationParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceApplyNetworkConfigurationParameters - RegionListResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionListResult + PolicySnippetsCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicySnippetsCollection ApiManagementServiceUploadCertificateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUploadCertificateParameters - ApiExportResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiExportResult + RegionListResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionListResult HostnameConfigurationOld = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameConfigurationOld - CertificateInformation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateInformation + ApiExportResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiExportResult CertificateConfiguration = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateConfiguration - ApiCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCollection + CertificateInformation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateInformation HostnameConfiguration = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameConfiguration - ApiCreateOrUpdateParameter = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCreateOrUpdateParameter + ApiCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCollection VirtualNetworkConfiguration = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkConfiguration - OAuth2AuthenticationSettingsContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OAuth2AuthenticationSettingsContract + ApiCreateOrUpdateParameter = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCreateOrUpdateParameter ApiManagementServiceSkuProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceSkuProperties - SubscriptionKeyParameterNamesContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionKeyParameterNamesContract - AdditionalLocation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AdditionalLocation + OAuth2AuthenticationSettingsContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OAuth2AuthenticationSettingsContract ApiRevisionContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionContract ApiManagementServiceBackupRestoreParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceBackupRestoreParameters ApiRevisionInfoContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionInfoContract @@ -111,7 +112,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 +119,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 @@ -157,68 +154,67 @@ module Models RequestContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestContract IdentityProviderUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderUpdateParameters ApiVersionSetCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetCollection - IdentityProviderBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters + SubscriptionKeyParameterNamesContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionKeyParameterNamesContract + AdditionalLocation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AdditionalLocation IssueCommentCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentCollection - RequestReportCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportCollection + IdentityProviderBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters HttpMessageDiagnostic = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HttpMessageDiagnostic - LoggerCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection + RequestReportCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportCollection DiagnosticCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticCollection - LoggerUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract + LoggerCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection GenerateSsoUrlResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GenerateSsoUrlResult - RecipientsContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientsContractProperties + LoggerUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract TenantConfigurationSyncStateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TenantConfigurationSyncStateContract - RequestReportRecordContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportRecordContract + RecipientsContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientsContractProperties OperationResultContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationResultContract - NotificationCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection + RequestReportRecordContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportRecordContract X509CertificateName = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::X509CertificateName - ReportCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection + NotificationCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection BackendProxyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProxyContract - RecipientUserCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserCollection + ReportCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection BackendCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendCollection - ReportRecordContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract - CertificateCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateCollection + RecipientUserCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserCollection RecipientEmailCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailCollection - ApiUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiUpdateContract + ReportRecordContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract ConnectivityStatusContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusContract - ApiVersionSetUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetUpdateParameters + ApiUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiUpdateContract NetworkStatusContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContract - OperationEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract + ApiVersionSetUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetUpdateParameters NetworkStatusContractByLocation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContractByLocation - IssueAttachmentCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentCollection + OperationEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract QuotaCounterValueContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContract - UserCreateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCreateParameters + IssueAttachmentCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentCollection OpenIdConnectProviderCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenIdConnectProviderCollection - SaveConfigurationParameter = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter + UserCreateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCreateParameters OpenidConnectProviderUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderUpdateContract - BackendProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties + SaveConfigurationParameter = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter QuotaCounterCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection - DeployConfigurationParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters + BackendProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties TermsOfServiceProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TermsOfServiceProperties - ApiEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract + DeployConfigurationParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters QuotaCounterContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterContract - IssueCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection + ApiEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract SubscriptionsDelegationSettingsProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionsDelegationSettingsProperties - TagResourceContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract + IssueCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection RegistrationDelegationSettingsProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegistrationDelegationSettingsProperties - BackendBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendBaseParameters + TagResourceContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract QuotaCounterValueContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContractProperties - ParameterContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ParameterContract + BackendBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendBaseParameters ProductUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductUpdateParameters - AuthorizationServerContractBaseProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContractBaseProperties + ParameterContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ParameterContract PropertyEntityBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyEntityBaseParameters - SamplingSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingSettings + AuthorizationServerContractBaseProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContractBaseProperties SubscriptionCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionCollection - PropertyUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyUpdateParameters + SamplingSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingSettings PolicyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContract - ApiContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContractProperties + PropertyUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyUpdateParameters ApiContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContract - ApiReleaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseContract + ApiContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContractProperties OperationContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationContract - SchemaContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaContract + ApiReleaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseContract IssueContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueContract - IssueCommentContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentContract + SchemaContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaContract 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 @@ -237,31 +233,32 @@ module Models 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 + IssueCommentContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentContract OpenidConnectProviderContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderContract - PortalSigninSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSigninSettings + DiagnosticContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticContract PortalSignupSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSignupSettings - PortalDelegationSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalDelegationSettings + PortalSigninSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSigninSettings SubscriptionContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionContract - PropertyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyContract + PortalDelegationSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalDelegationSettings TagContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagContract - TagDescriptionContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionContract + PropertyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyContract 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 + TagDescriptionContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionContract ContentFormat = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ContentFormat - SoapApiType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType + PolicyContentFormat = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContentFormat 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 + SoapApiType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType AlwaysLog = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AlwaysLog - ProductState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState + SamplingType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType GrantType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType - AuthorizationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod + ProductState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState ClientAuthenticationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod - BearerTokenSendingMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod + AuthorizationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod BackendProtocol = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol - HostnameType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType + State = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State SkuType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType + HostnameType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType + BearerTokenSendingMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod 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 @@ -270,18 +267,21 @@ 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 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 + AsyncOperationStatus = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus + Protocol = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Protocol + Resource = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Resource + SubscriptionState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState + CertificateCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateCollection 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 :certificate, :group, :subscription, :policy_snippets, :regions, :api, :policy, :api_revisions, :api_release, :api_operation_policy, :api_product, :api_operation, :api_schema, :api_diagnostic, :api_issue, :api_issue_comment, :api_issue_attachment, :authorization_server, :backend, :api_management_operations, :api_management_service, :diagnostic, :email_template, :group_user, :identity_provider, :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, :tag_resource, :tag_description, :tag, :operation_operations, :tenant_access, :logger, :tenant_configuration, :tenant_access_git, :user_subscription, :user_group, :api_version_set, :user_identities, :api_export, :api_policy, :user, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -291,16 +291,18 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @policy = @client_0.policy + @certificate = @client_0.certificate + @group = @client_0.group + @subscription = @client_0.subscription @policy_snippets = @client_0.policy_snippets @regions = @client_0.regions @api = @client_0.api + @policy = @client_0.policy @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_operation = @client_0.api_operation @api_schema = @client_0.api_schema @api_diagnostic = @client_0.api_diagnostic @api_issue = @client_0.api_issue @@ -308,15 +310,12 @@ def initialize(configurable, base_url=nil, options=nil) @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 @notification_recipient_user = @client_0.notification_recipient_user @notification_recipient_email = @client_0.notification_recipient_email @@ -334,20 +333,21 @@ 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 + @tag = @client_0.tag @operation_operations = @client_0.operation_operations @tenant_access = @client_0.tenant_access - @tenant_access_git = @client_0.tenant_access_git + @logger = @client_0.logger @tenant_configuration = @client_0.tenant_configuration - @user = @client_0.user - @user_group = @client_0.user_group + @tenant_access_git = @client_0.tenant_access_git @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 + @user_identities = @client_0.user_identities @api_export = @client_0.api_export + @api_policy = @client_0.api_policy + @user = @client_0.user @model_classes = ModelClasses.new end @@ -366,74 +366,77 @@ def method_missing(method, *args) end class ModelClasses + def error_response + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponse + end + def operation_display + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationDisplay + end def api_management_service_list_result Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceListResult end + def operation + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation + end def error_field_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorFieldContract end - 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 + def operation_list_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationListResult end def api_management_service_check_name_availability_parameters Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceCheckNameAvailabilityParameters end - def policy_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyCollection + def api_management_service_get_sso_token_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceGetSsoTokenResult end def api_management_service_name_availability_result Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceNameAvailabilityResult end - def policy_snippets_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicySnippetsCollection + def policy_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyCollection end def api_management_service_apply_network_configuration_parameters Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceApplyNetworkConfigurationParameters end - def region_list_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionListResult + def policy_snippets_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicySnippetsCollection end def api_management_service_upload_certificate_parameters Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUploadCertificateParameters end - def api_export_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiExportResult + def region_list_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionListResult end def hostname_configuration_old Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameConfigurationOld end - def certificate_information - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateInformation + def api_export_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiExportResult end def certificate_configuration Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateConfiguration end - def api_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCollection + def certificate_information + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateInformation end def hostname_configuration Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameConfiguration end - def api_create_or_update_parameter - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCreateOrUpdateParameter + def api_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCollection end def virtual_network_configuration Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkConfiguration end - def oauth2_authentication_settings_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OAuth2AuthenticationSettingsContract + def api_create_or_update_parameter + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCreateOrUpdateParameter end def api_management_service_sku_properties Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceSkuProperties end - def subscription_key_parameter_names_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionKeyParameterNamesContract - end - def additional_location - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AdditionalLocation + def oauth2_authentication_settings_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OAuth2AuthenticationSettingsContract end def api_revision_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionContract @@ -501,9 +504,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 +525,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 @@ -639,192 +630,189 @@ def identity_provider_update_parameters def api_version_set_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetCollection end - def identity_provider_base_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters + def subscription_key_parameter_names_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionKeyParameterNamesContract + end + def additional_location + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AdditionalLocation end def issue_comment_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentCollection end - def request_report_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportCollection + def identity_provider_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters end def http_message_diagnostic Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HttpMessageDiagnostic end - def logger_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection + def request_report_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportCollection end def diagnostic_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticCollection end - def logger_update_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract + def logger_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection end def generate_sso_url_result Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GenerateSsoUrlResult end - def recipients_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientsContractProperties + def logger_update_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract end def tenant_configuration_sync_state_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TenantConfigurationSyncStateContract end - def request_report_record_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportRecordContract + def recipients_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientsContractProperties end def operation_result_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationResultContract end - def notification_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection + def request_report_record_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportRecordContract end def x509_certificate_name Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::X509CertificateName end - def report_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection + def notification_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection end def backend_proxy_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProxyContract end - def recipient_user_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserCollection + def report_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection end def backend_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendCollection end - def report_record_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract - end - def certificate_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateCollection + def recipient_user_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserCollection end def recipient_email_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailCollection end - def api_update_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiUpdateContract + def report_record_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract end def connectivity_status_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusContract end - def api_version_set_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetUpdateParameters + def api_update_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiUpdateContract end def network_status_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContract end - def operation_entity_base_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract + def api_version_set_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetUpdateParameters end def network_status_contract_by_location Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContractByLocation end - def issue_attachment_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentCollection + def operation_entity_base_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract end def quota_counter_value_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContract end - def user_create_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCreateParameters + def issue_attachment_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentCollection end def open_id_connect_provider_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenIdConnectProviderCollection end - def save_configuration_parameter - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter + def user_create_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCreateParameters end def openid_connect_provider_update_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderUpdateContract end - def backend_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties + def save_configuration_parameter + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter end def quota_counter_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection end - def deploy_configuration_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters + def backend_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties end def terms_of_service_properties Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TermsOfServiceProperties end - def api_entity_base_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract + def deploy_configuration_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters end def quota_counter_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterContract end - def issue_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection + def api_entity_base_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract end 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 + def issue_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection 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 + def tag_resource_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract 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 + def backend_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendBaseParameters 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 + def parameter_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ParameterContract 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 + def authorization_server_contract_base_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContractBaseProperties 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 + def sampling_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingSettings 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 + def property_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyUpdateParameters 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 + def api_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContractProperties 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 + def api_release_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseContract 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 + def schema_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaContract 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 @@ -879,81 +867,84 @@ def recipient_user_contract def recipient_email_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailContract end + def issue_comment_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentContract + 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 + def diagnostic_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticContract 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 + def portal_signin_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSigninSettings 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 + def portal_delegation_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalDelegationSettings 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 + def property_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyContract 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 + def tag_description_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionContract 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 + def policy_content_format + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContentFormat 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 + def soap_api_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType 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 + def sampling_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType 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 + def product_state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState 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 + def authorization_method + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod 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 + def state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State end def sku_type Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType end + def hostname_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType + end + def bearer_token_sending_method + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod + end def virtual_network_type Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkType end @@ -978,12 +969,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 @@ -1002,6 +987,21 @@ def policy_scope_contract def export_format Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ExportFormat end + def async_operation_status + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus + end + def protocol + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Protocol + end + def resource + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Resource + end + def subscription_state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState + end + def certificate_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateCollection + end end end end diff --git a/azure_sdk/lib/latest/modules/authorization_profile_module.rb b/azure_sdk/lib/latest/modules/authorization_profile_module.rb index c42897b78d..47e0deeee7 100644 --- a/azure_sdk/lib/latest/modules/authorization_profile_module.rb +++ b/azure_sdk/lib/latest/modules/authorization_profile_module.rb @@ -8,38 +8,38 @@ module Azure::Profiles::Latest module Authorization module Mgmt ClassicAdministrators = Azure::Authorization::Mgmt::V2015_06_01_preview::ClassicAdministrators - ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2018_01_01_preview::ProviderOperationsMetadataOperations - Permissions = Azure::Authorization::Mgmt::V2018_01_01_preview::Permissions RoleDefinitions = Azure::Authorization::Mgmt::V2018_01_01_preview::RoleDefinitions + Permissions = Azure::Authorization::Mgmt::V2018_01_01_preview::Permissions + ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2018_01_01_preview::ProviderOperationsMetadataOperations DenyAssignments = Azure::Authorization::Mgmt::V2018_07_01_preview::DenyAssignments RoleAssignments = Azure::Authorization::Mgmt::V2018_09_01_preview::RoleAssignments module Models - ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_06_01_preview::Models::ClassicAdministratorListResult ClassicAdministrator = Azure::Authorization::Mgmt::V2015_06_01_preview::Models::ClassicAdministrator - ResourceType = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ResourceType - RoleDefinitionFilter = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinitionFilter - ProviderOperationsMetadataListResult = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperationsMetadataListResult - Permission = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::Permission - RoleDefinition = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinition - ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperationsMetadata + ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_06_01_preview::Models::ClassicAdministratorListResult RoleDefinitionListResult = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinitionListResult ProviderOperation = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperation + ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperationsMetadata + Permission = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::Permission + RoleDefinitionFilter = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinitionFilter PermissionGetResult = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::PermissionGetResult + ResourceType = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ResourceType + ProviderOperationsMetadataListResult = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperationsMetadataListResult + RoleDefinition = Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinition Principal = Azure::Authorization::Mgmt::V2018_07_01_preview::Models::Principal DenyAssignment = Azure::Authorization::Mgmt::V2018_07_01_preview::Models::DenyAssignment DenyAssignmentPermission = Azure::Authorization::Mgmt::V2018_07_01_preview::Models::DenyAssignmentPermission DenyAssignmentListResult = Azure::Authorization::Mgmt::V2018_07_01_preview::Models::DenyAssignmentListResult DenyAssignmentFilter = Azure::Authorization::Mgmt::V2018_07_01_preview::Models::DenyAssignmentFilter - RoleAssignmentListResult = Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentListResult - RoleAssignmentFilter = Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentFilter RoleAssignmentCreateParameters = Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentCreateParameters - RoleAssignment = Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignment PrincipalType = Azure::Authorization::Mgmt::V2018_09_01_preview::Models::PrincipalType + RoleAssignment = Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignment + RoleAssignmentListResult = Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentListResult + RoleAssignmentFilter = Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentFilter end class AuthorizationManagementClass - attr_reader :classic_administrators, :provider_operations_metadata_operations, :permissions, :role_definitions, :deny_assignments, :role_assignments, :configurable, :base_url, :options, :model_classes + attr_reader :classic_administrators, :role_definitions, :permissions, :provider_operations_metadata_operations, :deny_assignments, :role_assignments, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -56,9 +56,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) - @provider_operations_metadata_operations = @client_1.provider_operations_metadata_operations - @permissions = @client_1.permissions @role_definitions = @client_1.role_definitions + @permissions = @client_1.permissions + @provider_operations_metadata_operations = @client_1.provider_operations_metadata_operations @client_2 = Azure::Authorization::Mgmt::V2018_07_01_preview::AuthorizationManagementClient.new(configurable.credentials, base_url, options) if(@client_2.respond_to?(:subscription_id)) @@ -97,39 +97,39 @@ def method_missing(method, *args) end class ModelClasses - def classic_administrator_list_result - Azure::Authorization::Mgmt::V2015_06_01_preview::Models::ClassicAdministratorListResult - end def classic_administrator Azure::Authorization::Mgmt::V2015_06_01_preview::Models::ClassicAdministrator end - def resource_type - Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ResourceType - end - def role_definition_filter - Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinitionFilter - end - def provider_operations_metadata_list_result - Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperationsMetadataListResult + def classic_administrator_list_result + Azure::Authorization::Mgmt::V2015_06_01_preview::Models::ClassicAdministratorListResult end - def permission - Azure::Authorization::Mgmt::V2018_01_01_preview::Models::Permission + def role_definition_list_result + Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinitionListResult end - def role_definition - Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinition + def provider_operation + Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperation end def provider_operations_metadata Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperationsMetadata end - def role_definition_list_result - Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinitionListResult + def permission + Azure::Authorization::Mgmt::V2018_01_01_preview::Models::Permission end - def provider_operation - Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperation + def role_definition_filter + Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinitionFilter end def permission_get_result Azure::Authorization::Mgmt::V2018_01_01_preview::Models::PermissionGetResult end + def resource_type + Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ResourceType + end + def provider_operations_metadata_list_result + Azure::Authorization::Mgmt::V2018_01_01_preview::Models::ProviderOperationsMetadataListResult + end + def role_definition + Azure::Authorization::Mgmt::V2018_01_01_preview::Models::RoleDefinition + end def principal Azure::Authorization::Mgmt::V2018_07_01_preview::Models::Principal end @@ -145,20 +145,20 @@ def deny_assignment_list_result def deny_assignment_filter Azure::Authorization::Mgmt::V2018_07_01_preview::Models::DenyAssignmentFilter end - def role_assignment_list_result - Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentListResult - end - def role_assignment_filter - Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentFilter - end def role_assignment_create_parameters Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentCreateParameters end + def principal_type + Azure::Authorization::Mgmt::V2018_09_01_preview::Models::PrincipalType + end def role_assignment Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignment end - def principal_type - Azure::Authorization::Mgmt::V2018_09_01_preview::Models::PrincipalType + def role_assignment_list_result + Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentListResult + end + def role_assignment_filter + Azure::Authorization::Mgmt::V2018_09_01_preview::Models::RoleAssignmentFilter end end 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..5367077e24 100644 --- a/azure_sdk/lib/latest/modules/automation_profile_module.rb +++ b/azure_sdk/lib/latest/modules/automation_profile_module.rb @@ -7,10 +7,20 @@ module Azure::Profiles::Latest module Automation module Mgmt - AutomationAccountOperations = Azure::Automation::Mgmt::V2015_10_31::AutomationAccountOperations + ModuleModelOperations = Azure::Automation::Mgmt::V2015_10_31::ModuleModelOperations + ObjectDataTypes = Azure::Automation::Mgmt::V2015_10_31::ObjectDataTypes + Fields = Azure::Automation::Mgmt::V2015_10_31::Fields + RunbookDraftOperations = Azure::Automation::Mgmt::V2015_10_31::RunbookDraftOperations + RunbookOperations = Azure::Automation::Mgmt::V2015_10_31::RunbookOperations + TestJobStreams = Azure::Automation::Mgmt::V2015_10_31::TestJobStreams + TestJobOperations = Azure::Automation::Mgmt::V2015_10_31::TestJobOperations + ScheduleOperations = Azure::Automation::Mgmt::V2015_10_31::ScheduleOperations + VariableOperations = Azure::Automation::Mgmt::V2015_10_31::VariableOperations + WebhookOperations = Azure::Automation::Mgmt::V2015_10_31::WebhookOperations + Usages = Azure::Automation::Mgmt::V2015_10_31::Usages Operations = Azure::Automation::Mgmt::V2015_10_31::Operations + AutomationAccountOperations = Azure::Automation::Mgmt::V2015_10_31::AutomationAccountOperations 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 @@ -29,41 +39,46 @@ module Mgmt JobScheduleOperations = Azure::Automation::Mgmt::V2015_10_31::JobScheduleOperations LinkedWorkspaceOperations = Azure::Automation::Mgmt::V2015_10_31::LinkedWorkspaceOperations ActivityOperations = Azure::Automation::Mgmt::V2015_10_31::ActivityOperations - ModuleModelOperations = Azure::Automation::Mgmt::V2015_10_31::ModuleModelOperations - ObjectDataTypes = Azure::Automation::Mgmt::V2015_10_31::ObjectDataTypes - Fields = Azure::Automation::Mgmt::V2015_10_31::Fields - RunbookDraftOperations = Azure::Automation::Mgmt::V2015_10_31::RunbookDraftOperations - RunbookOperations = Azure::Automation::Mgmt::V2015_10_31::RunbookOperations - TestJobStreams = Azure::Automation::Mgmt::V2015_10_31::TestJobStreams - TestJobOperations = Azure::Automation::Mgmt::V2015_10_31::TestJobOperations - ScheduleOperations = Azure::Automation::Mgmt::V2015_10_31::ScheduleOperations - VariableOperations = Azure::Automation::Mgmt::V2015_10_31::VariableOperations - WebhookOperations = Azure::Automation::Mgmt::V2015_10_31::WebhookOperations module Models + DscConfigurationState = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState + AgentRegistrationKeyName = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName + GroupTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::GroupTypeEnum + DscConfigurationProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationProvisioningState + RunbookTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum + RunbookState = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookState + RunbookProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookProvisioningState + ModuleProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleProvisioningState + Sku = Azure::Automation::Mgmt::V2015_10_31::Models::Sku + ScheduleDay = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay + ScheduleFrequency = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleFrequency + ErrorResponse = Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + TrackedResource = Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource + ProxyResource = Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource + HttpStatusCode = Azure::Automation::Mgmt::V2015_10_31::Models::HttpStatusCode + Job = Azure::Automation::Mgmt::V2015_10_31::Models::Job + Resource = Azure::Automation::Mgmt::V2015_10_31::Models::Resource + OperationDisplay = Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay + Operation = Azure::Automation::Mgmt::V2015_10_31::Models::Operation + OperationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult + Certificate = Azure::Automation::Mgmt::V2015_10_31::Models::Certificate 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 +97,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 @@ -94,67 +108,63 @@ module Models AgentRegistrationKeys = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeys JobScheduleCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleCreateParameters DscNodeUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters + CertificateUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters 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 + ActivityParameterValidationSet = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterValidationSet 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 + ActivityParameterSet = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet WebhookUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters - ActivityListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult ConnectionType = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType ModuleErrorInfo = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo + KeyListResult = Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult WebhookListResult = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult + UsageListResult = Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult + ActivityListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult ContentLink = Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink - DscCompilationJobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters - ScheduleCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters JobStreamListResult = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult - ModuleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleListResult - DscConfigurationCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters + ScheduleCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters ModuleCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleCreateOrUpdateParameters + CertificateListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult 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 - TypeField = Azure::Automation::Mgmt::V2015_10_31::Models::TypeField - Usage = Azure::Automation::Mgmt::V2015_10_31::Models::Usage + ModuleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleListResult + DscCompilationJobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters 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 + TypeField = Azure::Automation::Mgmt::V2015_10_31::Models::TypeField + ModuleUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters + DscConfigurationCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters ConnectionUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters RunbookDraft = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft - CredentialUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters + RunbookParameter = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter 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 + CredentialUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters DscNodeConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty RunbookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters - AutomationAccountUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters + RunbookListResult = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookListResult RunbookUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters + CertificateCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters + AutomationAccountUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters + DscConfigurationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationListResult ConnectionTypeCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters RunbookDraftUndoEditResult = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraftUndoEditResult - DscConfigurationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationListResult + TestJob = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob TestJobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters 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 + RunbookCreateOrUpdateDraftParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftParameters RunbookCreateOrUpdateDraftProperties = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties 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 + DscCompilationJob = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob 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 + DscNodeConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration DscConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration DscNode = Azure::Automation::Mgmt::V2015_10_31::Models::DscNode - DscNodeConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration + Credential = Azure::Automation::Mgmt::V2015_10_31::Models::Credential ModuleModel = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel Runbook = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook Schedule = Azure::Automation::Mgmt::V2015_10_31::Models::Schedule @@ -168,21 +178,11 @@ module Models JobStatus = Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus 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 - 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 - 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 + Usage = Azure::Automation::Mgmt::V2015_10_31::Models::Usage 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 :module_model_operations, :object_data_types, :fields, :runbook_draft_operations, :runbook_operations, :test_job_streams, :test_job_operations, :schedule_operations, :variable_operations, :webhook_operations, :usages, :operations, :automation_account_operations, :statistics_operations, :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, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -192,10 +192,20 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @automation_account_operations = @client_0.automation_account_operations + @module_model_operations = @client_0.module_model_operations + @object_data_types = @client_0.object_data_types + @fields = @client_0.fields + @runbook_draft_operations = @client_0.runbook_draft_operations + @runbook_operations = @client_0.runbook_operations + @test_job_streams = @client_0.test_job_streams + @test_job_operations = @client_0.test_job_operations + @schedule_operations = @client_0.schedule_operations + @variable_operations = @client_0.variable_operations + @webhook_operations = @client_0.webhook_operations + @usages = @client_0.usages @operations = @client_0.operations + @automation_account_operations = @client_0.automation_account_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 @@ -214,16 +224,6 @@ def initialize(configurable, base_url=nil, options=nil) @job_schedule_operations = @client_0.job_schedule_operations @linked_workspace_operations = @client_0.linked_workspace_operations @activity_operations = @client_0.activity_operations - @module_model_operations = @client_0.module_model_operations - @object_data_types = @client_0.object_data_types - @fields = @client_0.fields - @runbook_draft_operations = @client_0.runbook_draft_operations - @runbook_operations = @client_0.runbook_operations - @test_job_streams = @client_0.test_job_streams - @test_job_operations = @client_0.test_job_operations - @schedule_operations = @client_0.schedule_operations - @variable_operations = @client_0.variable_operations - @webhook_operations = @client_0.webhook_operations @model_classes = ModelClasses.new end @@ -242,6 +242,69 @@ def method_missing(method, *args) end class ModelClasses + def dsc_configuration_state + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState + end + def agent_registration_key_name + Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName + end + def group_type_enum + Azure::Automation::Mgmt::V2015_10_31::Models::GroupTypeEnum + end + def dsc_configuration_provisioning_state + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationProvisioningState + end + def runbook_type_enum + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum + end + def runbook_state + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookState + end + def runbook_provisioning_state + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookProvisioningState + end + def module_provisioning_state + Azure::Automation::Mgmt::V2015_10_31::Models::ModuleProvisioningState + end + def sku + Azure::Automation::Mgmt::V2015_10_31::Models::Sku + 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 error_response + Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + end + def tracked_resource + Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource + end + def proxy_resource + Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource + end + def http_status_code + Azure::Automation::Mgmt::V2015_10_31::Models::HttpStatusCode + end + def job + Azure::Automation::Mgmt::V2015_10_31::Models::Job + end + def resource + Azure::Automation::Mgmt::V2015_10_31::Models::Resource + end + def operation_display + Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay + end + def operation + Azure::Automation::Mgmt::V2015_10_31::Models::Operation + end + def operation_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult + end + def certificate + Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + end def agent_registration Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration end @@ -260,9 +323,6 @@ def automation_account_list_result 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 @@ -278,15 +338,6 @@ def usage_counter_name 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 @@ -296,9 +347,6 @@ def schedule_list_result 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 @@ -308,9 +356,6 @@ def webhook_create_or_update_parameters 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 +410,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 @@ -401,98 +443,92 @@ def job_schedule_create_parameters def dsc_node_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters end + def certificate_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters + end 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 def statistics_list_result Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult end def activity_parameter Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter end + def activity_parameter_validation_set + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterValidationSet + end def key Azure::Automation::Mgmt::V2015_10_31::Models::Key end - 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 - def certificate_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult - end def activity Azure::Automation::Mgmt::V2015_10_31::Models::Activity end + def activity_parameter_set + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet + end def webhook_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters end - def activity_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult - end def connection_type Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType end def module_error_info Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo end + def key_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult + end def webhook_list_result Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult end - def content_link - Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink + def usage_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult end - def dsc_compilation_job_create_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters + def activity_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult end - def schedule_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters + def content_link + Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink end def job_stream_list_result Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult end - def module_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::ModuleListResult - end - def dsc_configuration_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters + def schedule_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters end def module_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ModuleCreateOrUpdateParameters end + def certificate_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult + end def agent_registration_regenerate_key_parameter Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter end - def module_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters - end def automation_account_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters end - def type_field - Azure::Automation::Mgmt::V2015_10_31::Models::TypeField + def module_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::ModuleListResult end - def usage - Azure::Automation::Mgmt::V2015_10_31::Models::Usage + def dsc_compilation_job_create_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters 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 + def type_field + Azure::Automation::Mgmt::V2015_10_31::Models::TypeField end - def runbook_parameter - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter + def module_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters + end + def dsc_configuration_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters end def connection_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters @@ -500,8 +536,8 @@ def connection_update_parameters def runbook_draft Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft end - def credential_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters + def runbook_parameter + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter end def advanced_schedule Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule @@ -509,8 +545,8 @@ def advanced_schedule def content_source Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource end - def runbook_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookListResult + def credential_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters end def dsc_node_configuration_association_property Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty @@ -518,20 +554,29 @@ def dsc_node_configuration_association_property 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 runbook_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookListResult end def runbook_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters end + def certificate_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters + end + 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 + 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 end - def dsc_configuration_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationListResult + def test_job + Azure::Automation::Mgmt::V2015_10_31::Models::TestJob end def test_job_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters @@ -539,11 +584,8 @@ def test_job_create_parameters 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 + def runbook_create_or_update_draft_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftParameters end def runbook_create_or_update_draft_properties Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties @@ -551,29 +593,17 @@ def runbook_create_or_update_draft_properties def dsc_compilation_job_list_result Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobListResult end - 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 dsc_compilation_job + Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob 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 end - def credential - Azure::Automation::Mgmt::V2015_10_31::Models::Credential - end - def dsc_compilation_job - Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob + def dsc_node_configuration + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration end def dsc_configuration Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration @@ -581,8 +611,8 @@ def dsc_configuration def dsc_node Azure::Automation::Mgmt::V2015_10_31::Models::DscNode end - def dsc_node_configuration - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration + def credential + Azure::Automation::Mgmt::V2015_10_31::Models::Credential end def module_model Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel @@ -623,38 +653,8 @@ def job_stream_type def content_source_type Azure::Automation::Mgmt::V2015_10_31::Models::ContentSourceType end - 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 - end - def agent_registration_key_name - Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName - end - def group_type_enum - Azure::Automation::Mgmt::V2015_10_31::Models::GroupTypeEnum - end - 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 - end - def runbook_state - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookState - end - def runbook_provisioning_state - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookProvisioningState - end - 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 + def usage + Azure::Automation::Mgmt::V2015_10_31::Models::Usage end end end diff --git a/azure_sdk/lib/latest/modules/autosuggest_profile_module.rb b/azure_sdk/lib/latest/modules/autosuggest_profile_module.rb index 5a59c5a0c3..09f4a240dc 100644 --- a/azure_sdk/lib/latest/modules/autosuggest_profile_module.rb +++ b/azure_sdk/lib/latest/modules/autosuggest_profile_module.rb @@ -8,7 +8,9 @@ module Azure::Profiles::Latest module Autosuggest module Models - Error = Azure::CognitiveServices::Autosuggest::V1_0::Models::Error + SafeSearch = Azure::CognitiveServices::Autosuggest::V1_0::Models::SafeSearch + ResponseFormat = Azure::CognitiveServices::Autosuggest::V1_0::Models::ResponseFormat + Action = Azure::CognitiveServices::Autosuggest::V1_0::Models::Action QueryContext = Azure::CognitiveServices::Autosuggest::V1_0::Models::QueryContext SuggestionsSuggestionGroup = Azure::CognitiveServices::Autosuggest::V1_0::Models::SuggestionsSuggestionGroup ResponseBase = Azure::CognitiveServices::Autosuggest::V1_0::Models::ResponseBase @@ -17,16 +19,14 @@ module Models Suggestions = Azure::CognitiveServices::Autosuggest::V1_0::Models::Suggestions Thing = Azure::CognitiveServices::Autosuggest::V1_0::Models::Thing CreativeWork = Azure::CognitiveServices::Autosuggest::V1_0::Models::CreativeWork - Action = Azure::CognitiveServices::Autosuggest::V1_0::Models::Action SearchAction = Azure::CognitiveServices::Autosuggest::V1_0::Models::SearchAction Identifiable = Azure::CognitiveServices::Autosuggest::V1_0::Models::Identifiable - Response = Azure::CognitiveServices::Autosuggest::V1_0::Models::Response - ErrorResponse = Azure::CognitiveServices::Autosuggest::V1_0::Models::ErrorResponse ScenarioType = Azure::CognitiveServices::Autosuggest::V1_0::Models::ScenarioType + ErrorResponse = Azure::CognitiveServices::Autosuggest::V1_0::Models::ErrorResponse SearchKind = Azure::CognitiveServices::Autosuggest::V1_0::Models::SearchKind + Error = Azure::CognitiveServices::Autosuggest::V1_0::Models::Error + Response = Azure::CognitiveServices::Autosuggest::V1_0::Models::Response ErrorCode = Azure::CognitiveServices::Autosuggest::V1_0::Models::ErrorCode - SafeSearch = Azure::CognitiveServices::Autosuggest::V1_0::Models::SafeSearch - ResponseFormat = Azure::CognitiveServices::Autosuggest::V1_0::Models::ResponseFormat end class AutosuggestDataClass @@ -58,8 +58,14 @@ def method_missing(method, *args) end class ModelClasses - def error - Azure::CognitiveServices::Autosuggest::V1_0::Models::Error + def safe_search + Azure::CognitiveServices::Autosuggest::V1_0::Models::SafeSearch + end + def response_format + Azure::CognitiveServices::Autosuggest::V1_0::Models::ResponseFormat + end + def action + Azure::CognitiveServices::Autosuggest::V1_0::Models::Action end def query_context Azure::CognitiveServices::Autosuggest::V1_0::Models::QueryContext @@ -85,35 +91,29 @@ def thing def creative_work Azure::CognitiveServices::Autosuggest::V1_0::Models::CreativeWork end - def action - Azure::CognitiveServices::Autosuggest::V1_0::Models::Action - end def search_action Azure::CognitiveServices::Autosuggest::V1_0::Models::SearchAction end def identifiable Azure::CognitiveServices::Autosuggest::V1_0::Models::Identifiable end - def response - Azure::CognitiveServices::Autosuggest::V1_0::Models::Response + def scenario_type + Azure::CognitiveServices::Autosuggest::V1_0::Models::ScenarioType end def error_response Azure::CognitiveServices::Autosuggest::V1_0::Models::ErrorResponse end - def scenario_type - Azure::CognitiveServices::Autosuggest::V1_0::Models::ScenarioType - end def search_kind Azure::CognitiveServices::Autosuggest::V1_0::Models::SearchKind end - def error_code - Azure::CognitiveServices::Autosuggest::V1_0::Models::ErrorCode + def error + Azure::CognitiveServices::Autosuggest::V1_0::Models::Error end - def safe_search - Azure::CognitiveServices::Autosuggest::V1_0::Models::SafeSearch + def response + Azure::CognitiveServices::Autosuggest::V1_0::Models::Response end - def response_format - Azure::CognitiveServices::Autosuggest::V1_0::Models::ResponseFormat + def error_code + Azure::CognitiveServices::Autosuggest::V1_0::Models::ErrorCode 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..0f7ee64520 100644 --- a/azure_sdk/lib/latest/modules/batch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/batch_profile_module.rb @@ -7,15 +7,20 @@ module Azure::Profiles::Latest module Batch module Mgmt + Location = Azure::Batch::Mgmt::V2017_09_01::Location 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 + PoolOperations = Azure::Batch::Mgmt::V2017_09_01::PoolOperations 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 + Certificate = Azure::Batch::Mgmt::V2017_09_01::Models::Certificate + InboundNatPool = Azure::Batch::Mgmt::V2017_09_01::Models::InboundNatPool + OSDisk = Azure::Batch::Mgmt::V2017_09_01::Models::OSDisk + WindowsConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::WindowsConfiguration + ProxyResource = Azure::Batch::Mgmt::V2017_09_01::Models::ProxyResource 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 +28,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 +36,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,45 +43,38 @@ 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 DeploymentConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::DeploymentConfiguration + DataDisk = Azure::Batch::Mgmt::V2017_09_01::Models::DataDisk 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 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 - 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 + StartTask = Azure::Batch::Mgmt::V2017_09_01::Models::StartTask ApplicationPackageReference = Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackageReference ApplicationCreateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationCreateParameters 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 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 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 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 PackageState = Azure::Batch::Mgmt::V2017_09_01::Models::PackageState - CertificateFormat = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateFormat + CertificateCreateOrUpdateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters CertificateProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateProvisioningState + CertificateFormat = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateFormat + ProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::ProvisioningState PoolProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::PoolProvisioningState AllocationState = Azure::Batch::Mgmt::V2017_09_01::Models::AllocationState CachingType = Azure::Batch::Mgmt::V2017_09_01::Models::CachingType @@ -94,11 +88,17 @@ module Models AutoUserScope = Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserScope CertificateStoreLocation = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateStoreLocation CertificateVisibility = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateVisibility + Resource = Azure::Batch::Mgmt::V2017_09_01::Models::Resource + ImageReference = Azure::Batch::Mgmt::V2017_09_01::Models::ImageReference + OperationDisplay = Azure::Batch::Mgmt::V2017_09_01::Models::OperationDisplay + Operation = Azure::Batch::Mgmt::V2017_09_01::Models::Operation + OperationListResult = Azure::Batch::Mgmt::V2017_09_01::Models::OperationListResult + CheckNameAvailabilityResult = Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityResult NameAvailabilityReason = Azure::Batch::Mgmt::V2017_09_01::Models::NameAvailabilityReason 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, :batch_account_operations, :application_package_operations, :application_operations, :pool_operations, :operations, :certificate_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -108,13 +108,13 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @location = @client_0.location @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 + @pool_operations = @client_0.pool_operations @operations = @client_0.operations @certificate_operations = @client_0.certificate_operations - @pool_operations = @client_0.pool_operations @model_classes = ModelClasses.new end @@ -133,6 +133,21 @@ def method_missing(method, *args) end class ModelClasses + def certificate + Azure::Batch::Mgmt::V2017_09_01::Models::Certificate + end + def inbound_nat_pool + Azure::Batch::Mgmt::V2017_09_01::Models::InboundNatPool + end + def osdisk + Azure::Batch::Mgmt::V2017_09_01::Models::OSDisk + end + def windows_configuration + Azure::Batch::Mgmt::V2017_09_01::Models::WindowsConfiguration + end + def proxy_resource + Azure::Batch::Mgmt::V2017_09_01::Models::ProxyResource + end def fixed_scale_settings Azure::Batch::Mgmt::V2017_09_01::Models::FixedScaleSettings end @@ -154,15 +169,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 +193,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,21 +214,18 @@ 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 deployment_configuration Azure::Batch::Mgmt::V2017_09_01::Models::DeploymentConfiguration end + def data_disk + Azure::Batch::Mgmt::V2017_09_01::Models::DataDisk + end def resource_file Azure::Batch::Mgmt::V2017_09_01::Models::ResourceFile end @@ -241,27 +241,18 @@ def application 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 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 start_task + Azure::Batch::Mgmt::V2017_09_01::Models::StartTask + end def application_package_reference Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackageReference end @@ -277,12 +268,6 @@ 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 @@ -301,33 +286,30 @@ def auto_storage_properties def batch_account Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccount end - def certificate - Azure::Batch::Mgmt::V2017_09_01::Models::Certificate - end - def certificate_create_or_update_parameters - Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters - end def pool Azure::Batch::Mgmt::V2017_09_01::Models::Pool end 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 end def package_state Azure::Batch::Mgmt::V2017_09_01::Models::PackageState end - def certificate_format - Azure::Batch::Mgmt::V2017_09_01::Models::CertificateFormat + def certificate_create_or_update_parameters + Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters end def certificate_provisioning_state Azure::Batch::Mgmt::V2017_09_01::Models::CertificateProvisioningState end + def certificate_format + Azure::Batch::Mgmt::V2017_09_01::Models::CertificateFormat + end + def provisioning_state + Azure::Batch::Mgmt::V2017_09_01::Models::ProvisioningState + end def pool_provisioning_state Azure::Batch::Mgmt::V2017_09_01::Models::PoolProvisioningState end @@ -367,6 +349,24 @@ def certificate_store_location def certificate_visibility Azure::Batch::Mgmt::V2017_09_01::Models::CertificateVisibility end + def resource + Azure::Batch::Mgmt::V2017_09_01::Models::Resource + end + def image_reference + Azure::Batch::Mgmt::V2017_09_01::Models::ImageReference + end + def operation_display + Azure::Batch::Mgmt::V2017_09_01::Models::OperationDisplay + end + def operation + Azure::Batch::Mgmt::V2017_09_01::Models::Operation + end + def operation_list_result + Azure::Batch::Mgmt::V2017_09_01::Models::OperationListResult + end + def check_name_availability_result + Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityResult + end def name_availability_reason Azure::Batch::Mgmt::V2017_09_01::Models::NameAvailabilityReason 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..bee4457a45 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 - 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 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 EnrollmentAccountListResult = Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccountListResult + ErrorDetails = Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorDetails + OperationDisplay = Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationDisplay + BillingPeriod = Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriod Operation = Azure::Billing::Mgmt::V2018_03_01_preview::Models::Operation + OperationListResult = Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationListResult EnrollmentAccount = Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccount - BillingPeriod = Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriod Invoice = Azure::Billing::Mgmt::V2018_03_01_preview::Models::Invoice + ErrorResponse = Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorResponse end class BillingManagementClass @@ -61,15 +61,6 @@ def method_missing(method, *args) end class ModelClasses - def error_response - Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorResponse - 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 - end def resource Azure::Billing::Mgmt::V2018_03_01_preview::Models::Resource end @@ -82,24 +73,33 @@ def invoices_list_result def billing_periods_list_result Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriodsListResult end + def enrollment_account_list_result + Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccountListResult + end + def error_details + Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorDetails + end def operation_display Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationDisplay end - def enrollment_account_list_result - Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccountListResult + def billing_period + Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriod end def operation Azure::Billing::Mgmt::V2018_03_01_preview::Models::Operation end + def operation_list_result + Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationListResult + end def enrollment_account Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccount 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 end + def error_response + Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorResponse + end 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..7c29b45286 100644 --- a/azure_sdk/lib/latest/modules/cdn_profile_module.rb +++ b/azure_sdk/lib/latest/modules/cdn_profile_module.rb @@ -7,8 +7,8 @@ module Azure::Profiles::Latest module CDN module Mgmt - Profiles = Azure::CDN::Mgmt::V2017_10_12::Profiles Endpoints = Azure::CDN::Mgmt::V2017_10_12::Endpoints + 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 @@ -16,8 +16,10 @@ module Mgmt 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 + ErrorResponse = Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse + TrackedResource = Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource + OriginUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::OriginUpdateParameters 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 +36,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 +51,34 @@ 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 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 + Origin = Azure::CDN::Mgmt::V2017_10_12::Models::Origin + CustomDomain = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain QueryStringCachingBehavior = Azure::CDN::Mgmt::V2017_10_12::Models::QueryStringCachingBehavior + EndpointResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState + ProxyResource = Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource 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 CustomHttpsProvisioningState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState CustomHttpsProvisioningSubstate = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate ResourceType = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType + Resource = Azure::CDN::Mgmt::V2017_10_12::Models::Resource + OperationDisplay = Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay + Operation = Azure::CDN::Mgmt::V2017_10_12::Models::Operation + 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, :profiles, :origins, :custom_domains, :resource_usage_operations, :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,8 +88,8 @@ 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 + @profiles = @client_0.profiles @origins = @client_0.origins @custom_domains = @client_0.custom_domains @resource_usage_operations = @client_0.resource_usage_operations @@ -113,12 +113,18 @@ def method_missing(method, *args) end 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 error_response + Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse + end + def tracked_resource + Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource + end + def origin_update_parameters + Azure::CDN::Mgmt::V2017_10_12::Models::OriginUpdateParameters + end def origin_list_result Azure::CDN::Mgmt::V2017_10_12::Models::OriginListResult end @@ -167,9 +173,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 +182,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 +218,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 @@ -242,36 +236,30 @@ def delivery_rule_url_file_extension_condition 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 def optimization_type Azure::CDN::Mgmt::V2017_10_12::Models::OptimizationType end - def endpoint_resource_state - Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState + def origin + Azure::CDN::Mgmt::V2017_10_12::Models::Origin + end + def custom_domain + Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain end def query_string_caching_behavior Azure::CDN::Mgmt::V2017_10_12::Models::QueryStringCachingBehavior end + def endpoint_resource_state + Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState + end + def proxy_resource + Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource + end def geo_filter_actions Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilterActions end @@ -290,6 +278,18 @@ def custom_https_provisioning_substate def resource_type Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType end + def resource + Azure::CDN::Mgmt::V2017_10_12::Models::Resource + end + def operation_display + Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay + end + def operation + Azure::CDN::Mgmt::V2017_10_12::Models::Operation + 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..e836053729 100644 --- a/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb @@ -7,15 +7,20 @@ module Azure::Profiles::Latest module CognitiveServices module Mgmt - Accounts = Azure::CognitiveServices::Mgmt::V2017_04_18::Accounts - ResourceSkus = Azure::CognitiveServices::Mgmt::V2017_04_18::ResourceSkus Operations = Azure::CognitiveServices::Mgmt::V2017_04_18::Operations + ResourceSkus = Azure::CognitiveServices::Mgmt::V2017_04_18::ResourceSkus + Accounts = Azure::CognitiveServices::Mgmt::V2017_04_18::Accounts CheckSkuAvailability = Azure::CognitiveServices::Mgmt::V2017_04_18::CheckSkuAvailability module Models - ErrorBody = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody + ResourceSkusResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult + SkuName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuName Sku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku - Error = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error + SkuTier = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier + Kind = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Kind + ResourceSkuRestrictionsType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsType + ResourceSkuRestrictionsReasonCode = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsReasonCode + 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 @@ -24,32 +29,27 @@ module Models OperationEntityListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntityListResult CognitiveServicesAccountEnumerateSkusResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountEnumerateSkusResult CheckSkuAvailabilityParameter = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityParameter - Usage = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage CheckSkuAvailabilityResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResult 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 CognitiveServicesResourceAndSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesResourceAndSku - 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 - ResourceSkuRestrictionsReasonCode = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsReasonCode + ProvisioningState = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState + ResourceSkuRestrictions = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictions + Error = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error + ResourceSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku + Usage = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage end class CognitiveServicesManagementClass - attr_reader :accounts, :resource_skus, :operations, :check_sku_availability, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :resource_skus, :accounts, :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) - @accounts = @client_0.accounts - @resource_skus = @client_0.resource_skus @operations = @client_0.operations + @resource_skus = @client_0.resource_skus + @accounts = @client_0.accounts @check_sku_availability = @client_0.check_sku_availability @model_classes = ModelClasses.new @@ -81,14 +81,29 @@ def method_missing(method, *args) end class ModelClasses - def error_body - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody + def resource_skus_result + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult + end + def sku_name + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuName end def sku Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku end - def error - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error + def sku_tier + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier + end + def kind + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Kind + end + def resource_sku_restrictions_type + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsType + end + def resource_sku_restrictions_reason_code + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsReasonCode + end + 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 @@ -114,9 +129,6 @@ def cognitive_services_account_enumerate_skus_result def check_sku_availability_parameter Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityParameter end - def usage - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage - end def check_sku_availability_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResult end @@ -135,36 +147,15 @@ def resource_sku_restriction_info def metric_name Azure::CognitiveServices::Mgmt::V2017_04_18::Models::MetricName end - def resource_sku_restrictions - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictions - end 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 cognitive_services_resource_and_sku Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesResourceAndSku 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 @@ -174,11 +165,20 @@ def unit_type 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 + def resource_sku_restrictions + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictions + end + def error + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error + end + def resource_sku + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku + end + def usage + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage 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..8805dacdc2 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 + ErrorResponse = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse + 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 end class CommerceManagementClass @@ -56,30 +56,12 @@ 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 def offer_term_info Azure::Commerce::Mgmt::V2015_06_01_preview::Models::OfferTermInfo end 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 +74,24 @@ def recurring_charge def aggregation_granularity Azure::Commerce::Mgmt::V2015_06_01_preview::Models::AggregationGranularity end + def error_response + Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse + 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 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 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 fb47521f1d..4f256f10c6 100644 --- a/azure_sdk/lib/latest/modules/compute_profile_module.rb +++ b/azure_sdk/lib/latest/modules/compute_profile_module.rb @@ -8,261 +8,261 @@ module Azure::Profiles::Latest module Compute module Mgmt ResourceSkus = Azure::Compute::Mgmt::V2017_09_01::ResourceSkus - Operations = Azure::Compute::Mgmt::V2018_06_01::Operations - AvailabilitySets = Azure::Compute::Mgmt::V2018_06_01::AvailabilitySets - VirtualMachineExtensionImages = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineExtensionImages - VirtualMachineExtensions = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineExtensions - VirtualMachineImages = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineImages UsageOperations = Azure::Compute::Mgmt::V2018_06_01::UsageOperations - VirtualMachines = Azure::Compute::Mgmt::V2018_06_01::VirtualMachines VirtualMachineSizes = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineSizes Images = Azure::Compute::Mgmt::V2018_06_01::Images VirtualMachineScaleSets = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineScaleSets 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 + Operations = Azure::Compute::Mgmt::V2018_06_01::Operations + VirtualMachineRunCommands = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineRunCommands Disks = Azure::Compute::Mgmt::V2018_06_01::Disks + GalleryImageVersions = Azure::Compute::Mgmt::V2018_06_01::GalleryImageVersions + Galleries = Azure::Compute::Mgmt::V2018_06_01::Galleries Snapshots = Azure::Compute::Mgmt::V2018_06_01::Snapshots + LogAnalytics = Azure::Compute::Mgmt::V2018_06_01::LogAnalytics + 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 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 + ResourceSkuRestrictionsReasonCode = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsReasonCode ResourceSkuRestrictionInfo = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionInfo + ResourceSkuCapacity = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapacity + ResourceSkuCosts = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCosts + ResourceSkuCapabilities = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapabilities ResourceSkuCapacityScaleType = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapacityScaleType + ResourceSkuRestrictions = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictions ResourceSkuRestrictionsType = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsType - ResourceSkuRestrictionsReasonCode = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsReasonCode - ComputeLongRunningOperationProperties = Azure::Compute::Mgmt::V2017_12_01::Models::ComputeLongRunningOperationProperties + ResourceSku = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSku + ResourceSkuLocationInfo = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuLocationInfo OperationStatusResponse = Azure::Compute::Mgmt::V2017_12_01::Models::OperationStatusResponse - ApiEntityReference = Azure::Compute::Mgmt::V2018_06_01::Models::ApiEntityReference - VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + ComputeLongRunningOperationProperties = Azure::Compute::Mgmt::V2017_12_01::Models::ComputeLongRunningOperationProperties + ComputeOperationValue = Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationValue + AutoOSUpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::AutoOSUpgradePolicy ComputeOperationListResult = Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationListResult - VirtualMachineScaleSetIpTag = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIpTag - SubResource = Azure::Compute::Mgmt::V2018_06_01::Models::SubResource - VirtualMachineScaleSetPublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfiguration + RecoveryWalkResponse = Azure::Compute::Mgmt::V2018_06_01::Models::RecoveryWalkResponse + VirtualMachineScaleSetListOSUpgradeHistory = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListOSUpgradeHistory + LogAnalyticsOutput = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOutput + LogAnalyticsInputBase = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsInputBase + UpgradeOperationHistoricalStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfo + UpgradeOperationHistoricalStatusInfoProperties = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfoProperties + RollbackStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollbackStatusInfo + UpgradeOperationHistoryStatus = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoryStatus + AvailabilitySetUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetUpdate + VirtualMachineUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineUpdate + ImageUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::ImageUpdate + 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 + 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 + IntervalInMins = Azure::Compute::Mgmt::V2018_06_01::Models::IntervalInMins VirtualMachineScaleSetManagedDiskParameters = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetManagedDiskParameters VirtualMachineScaleSetOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSDisk - AvailabilitySetListResult = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult + SubResource = Azure::Compute::Mgmt::V2018_06_01::Models::SubResource VirtualMachineScaleSetUpdateOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSDisk + EncryptionSettings = Azure::Compute::Mgmt::V2018_06_01::Models::EncryptionSettings + AvailabilitySetListResult = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult + ImageListResult = Azure::Compute::Mgmt::V2018_06_01::Models::ImageListResult VirtualMachineSizeListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeListResult - VirtualMachineScaleSetDataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetDataDisk - GalleryList = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryList - VirtualMachineScaleSetStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetStorageProfile - GalleryDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDiskImage - VirtualMachineScaleSetUpdateStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateStorageProfile + VirtualMachineScaleSetIdentity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentity + RunCommandListResult = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandListResult + RunCommandDocumentBase = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocumentBase VirtualMachineExtensionsListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionsListResult - ComputeOperationValue = Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationValue OSDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::OSDiskImage - InstanceViewStatus = Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewStatus - GalleryArtifactSource = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactSource - Sku = Azure::Compute::Mgmt::V2018_06_01::Models::Sku + RunCommandInput = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInput Usage = Azure::Compute::Mgmt::V2018_06_01::Models::Usage - CreationData = Azure::Compute::Mgmt::V2018_06_01::Models::CreationData + VirtualMachineScaleSetIpTag = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIpTag VirtualMachineCaptureParameters = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureParameters - VirtualMachineScaleSetUpdatePublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration + SnapshotSku = Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotSku Plan = Azure::Compute::Mgmt::V2018_06_01::Models::Plan - SourceVault = Azure::Compute::Mgmt::V2018_06_01::Models::SourceVault + VirtualMachineScaleSetUpdateOSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSProfile + SnapshotList = Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotList + InstanceViewStatus = Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewStatus + GalleryList = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryList + GalleryDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDiskImage + GalleryArtifactSource = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactSource TargetRegion = Azure::Compute::Mgmt::V2018_06_01::Models::TargetRegion - ImagePurchasePlan = Azure::Compute::Mgmt::V2018_06_01::Models::ImagePurchasePlan + Sku = Azure::Compute::Mgmt::V2018_06_01::Models::Sku + VirtualMachineScaleSetDataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetDataDisk KeyVaultKeyReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultKeyReference - VirtualMachineScaleSetNetworkConfigurationDnsSettings = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfigurationDnsSettings + VirtualMachineScaleSetStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetStorageProfile VirtualHardDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualHardDisk - Disallowed = Azure::Compute::Mgmt::V2018_06_01::Models::Disallowed - SnapshotList = Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotList - DataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::DataDisk - VirtualMachineScaleSetNetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkProfile + VirtualMachineScaleSetUpdateStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateStorageProfile + ImagePurchasePlan = Azure::Compute::Mgmt::V2018_06_01::Models::ImagePurchasePlan + ApiEntityReference = Azure::Compute::Mgmt::V2018_06_01::Models::ApiEntityReference AdditionalCapabilities = Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalCapabilities - VirtualMachineScaleSetUpdateNetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkProfile + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings WinRMListener = Azure::Compute::Mgmt::V2018_06_01::Models::WinRMListener - SnapshotUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotUpdate + VirtualMachineScaleSetPublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfiguration WindowsConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::WindowsConfiguration - VirtualMachineScaleSetExtensionListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionListResult + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration SshConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration - VirtualMachineScaleSetExtensionProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionProfile + OSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::OSProfile + Disallowed = Azure::Compute::Mgmt::V2018_06_01::Models::Disallowed + SourceVault = Azure::Compute::Mgmt::V2018_06_01::Models::SourceVault + VirtualMachineAgentInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineAgentInstanceView + VirtualMachineScaleSetNetworkConfigurationDnsSettings = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfigurationDnsSettings VaultCertificate = Azure::Compute::Mgmt::V2018_06_01::Models::VaultCertificate + CreationData = Azure::Compute::Mgmt::V2018_06_01::Models::CreationData + DiagnosticsProfile = Azure::Compute::Mgmt::V2018_06_01::Models::DiagnosticsProfile + BootDiagnosticsInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnosticsInstanceView + NetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile + VirtualMachineScaleSetNetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkProfile + DiffDiskSettings = Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskSettings + VirtualMachineScaleSetUpdateNetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkProfile + VirtualMachineIdentityUserAssignedIdentitiesValue = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentityUserAssignedIdentitiesValue + RegionalReplicationStatus = Azure::Compute::Mgmt::V2018_06_01::Models::RegionalReplicationStatus + StorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::StorageProfile + VirtualMachineScaleSetExtensionListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionListResult + VirtualMachineScaleSetExtensionProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionProfile + ImageStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::ImageStorageProfile VirtualMachineScaleSetVMProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMProfile - OSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::OSProfile + KeyVaultAndKeyReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultAndKeyReference VirtualMachineScaleSetUpdateVMProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateVMProfile - NetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile - AccessUri = Azure::Compute::Mgmt::V2018_06_01::Models::AccessUri - DiagnosticsProfile = Azure::Compute::Mgmt::V2018_06_01::Models::DiagnosticsProfile - GrantAccessData = Azure::Compute::Mgmt::V2018_06_01::Models::GrantAccessData - VirtualMachineAgentInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineAgentInstanceView + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue + DiskSku = Azure::Compute::Mgmt::V2018_06_01::Models::DiskSku + GalleryImageVersionStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionStorageProfile + ManagedArtifact = Azure::Compute::Mgmt::V2018_06_01::Models::ManagedArtifact + RollingUpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradePolicy VirtualMachineScaleSetVMInstanceIDs = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceIDs - BootDiagnosticsInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnosticsInstanceView + DataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::DataDisk VirtualMachineScaleSetVMInstanceRequiredIDs = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceRequiredIDs - VirtualMachineIdentity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentity + WinRMConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::WinRMConfiguration VirtualMachineStatusCodeCount = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineStatusCodeCount - VirtualMachineInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineInstanceView + LinuxConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::LinuxConfiguration VirtualMachineScaleSetInstanceViewStatusesSummary = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetInstanceViewStatusesSummary - GalleryImageVersionStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionStorageProfile + GrantAccessData = Azure::Compute::Mgmt::V2018_06_01::Models::GrantAccessData VirtualMachineScaleSetVMExtensionsSummary = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMExtensionsSummary - AutoOSUpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::AutoOSUpgradePolicy + ReplicationStatus = Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatus VirtualMachineScaleSetInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetInstanceView - UpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradePolicy + VirtualMachineIdentity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentity VirtualMachineScaleSetListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListResult - ImageDataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::ImageDataDisk + GalleryImageVersionList = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionList VirtualMachineScaleSetListWithLinkResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListWithLinkResult - DiskSku = Azure::Compute::Mgmt::V2018_06_01::Models::DiskSku + ImageDataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::ImageDataDisk VirtualMachineScaleSetSkuCapacity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuCapacity - ImageListResult = Azure::Compute::Mgmt::V2018_06_01::Models::ImageListResult - VirtualMachineScaleSetSku = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSku - VirtualMachineScaleSetIdentity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentity - VirtualMachineScaleSetListSkusResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListSkusResult - VirtualMachineScaleSetUpdateOSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSProfile - ApiErrorBase = Azure::Compute::Mgmt::V2018_06_01::Models::ApiErrorBase - VirtualMachineSize = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSize - InnerError = Azure::Compute::Mgmt::V2018_06_01::Models::InnerError VirtualMachineExtensionInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionInstanceView - ApiError = Azure::Compute::Mgmt::V2018_06_01::Models::ApiError - PurchasePlan = Azure::Compute::Mgmt::V2018_06_01::Models::PurchasePlan - RollbackStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollbackStatusInfo + VirtualMachineScaleSetSku = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSku UsageName = Azure::Compute::Mgmt::V2018_06_01::Models::UsageName - UpgradeOperationHistoryStatus = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoryStatus - ManagedArtifact = Azure::Compute::Mgmt::V2018_06_01::Models::ManagedArtifact - RollingUpgradeProgressInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeProgressInfo + VirtualMachineScaleSetListSkusResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListSkusResult KeyVaultSecretReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultSecretReference - UpgradeOperationHistoricalStatusInfoProperties = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfoProperties - DiffDiskSettings = Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskSettings - UpgradeOperationHistoricalStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfo - StorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::StorageProfile - VirtualMachineScaleSetListOSUpgradeHistory = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListOSUpgradeHistory - WinRMConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::WinRMConfiguration VirtualMachineHealthStatus = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineHealthStatus - LinuxConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::LinuxConfiguration + ListUsagesResult = Azure::Compute::Mgmt::V2018_06_01::Models::ListUsagesResult VirtualMachineScaleSetVMInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceView - ReplicationStatus = Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatus - SnapshotSku = Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotSku - VirtualMachineExtensionHandlerInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionHandlerInstanceView + VaultSecretGroup = Azure::Compute::Mgmt::V2018_06_01::Models::VaultSecretGroup + SubResourceReadOnly = Azure::Compute::Mgmt::V2018_06_01::Models::SubResourceReadOnly + DiskList = Azure::Compute::Mgmt::V2018_06_01::Models::DiskList VirtualMachineScaleSetVMListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMListResult - VirtualMachineIdentityUserAssignedIdentitiesValue = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentityUserAssignedIdentitiesValue + UpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradePolicy + VirtualMachineExtensionHandlerInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionHandlerInstanceView + PurchasePlan = Azure::Compute::Mgmt::V2018_06_01::Models::PurchasePlan + RollingUpgradeProgressInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeProgressInfo + AccessUri = Azure::Compute::Mgmt::V2018_06_01::Models::AccessUri + ApiErrorBase = Azure::Compute::Mgmt::V2018_06_01::Models::ApiErrorBase + GalleryArtifactPublishingProfileBase = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactPublishingProfileBase + InnerError = Azure::Compute::Mgmt::V2018_06_01::Models::InnerError + VirtualMachineSize = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSize + ApiError = Azure::Compute::Mgmt::V2018_06_01::Models::ApiError + SshPublicKey = Azure::Compute::Mgmt::V2018_06_01::Models::SshPublicKey RollingUpgradeRunningStatus = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeRunningStatus - RegionalReplicationStatus = Azure::Compute::Mgmt::V2018_06_01::Models::RegionalReplicationStatus - DiskList = Azure::Compute::Mgmt::V2018_06_01::Models::DiskList - RollingUpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradePolicy - Resource = Azure::Compute::Mgmt::V2018_06_01::Models::Resource - ImageStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::ImageStorageProfile UpdateResource = Azure::Compute::Mgmt::V2018_06_01::Models::UpdateResource - VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue - SubResourceReadOnly = Azure::Compute::Mgmt::V2018_06_01::Models::SubResourceReadOnly - GalleryImageVersionList = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionList - RecoveryWalkResponse = Azure::Compute::Mgmt::V2018_06_01::Models::RecoveryWalkResponse - GalleryArtifactPublishingProfileBase = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactPublishingProfileBase - DiskUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::DiskUpdate - ListUsagesResult = Azure::Compute::Mgmt::V2018_06_01::Models::ListUsagesResult - EncryptionSettings = Azure::Compute::Mgmt::V2018_06_01::Models::EncryptionSettings - DiskEncryptionSettings = Azure::Compute::Mgmt::V2018_06_01::Models::DiskEncryptionSettings - LogAnalyticsInputBase = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsInputBase - AdditionalUnattendContent = Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalUnattendContent - LogAnalyticsOutput = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOutput - VaultSecretGroup = Azure::Compute::Mgmt::V2018_06_01::Models::VaultSecretGroup - LogAnalyticsOperationResult = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOperationResult DiskInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::DiskInstanceView - RunCommandInputParameter = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInputParameter - VirtualMachineListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineListResult - RunCommandInput = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInput - ImageDiskReference = Azure::Compute::Mgmt::V2018_06_01::Models::ImageDiskReference + VirtualMachineInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineInstanceView + Resource = Azure::Compute::Mgmt::V2018_06_01::Models::Resource + BootDiagnostics = Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnostics RunCommandParameterDefinition = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandParameterDefinition + RunCommandInputParameter = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInputParameter GalleryImageList = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageList - RunCommandDocumentBase = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocumentBase + VirtualMachineListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineListResult + GalleryImageIdentifier = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageIdentifier + AdditionalUnattendContent = Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalUnattendContent HardwareProfile = Azure::Compute::Mgmt::V2018_06_01::Models::HardwareProfile - KeyVaultAndKeyReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultAndKeyReference - SshPublicKey = Azure::Compute::Mgmt::V2018_06_01::Models::SshPublicKey - RunCommandListResult = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandListResult + VirtualMachineImageResource = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImageResource + DiskEncryptionSettings = Azure::Compute::Mgmt::V2018_06_01::Models::DiskEncryptionSettings + AvailabilitySet = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySet + VirtualMachineExtensionImage = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionImage + VirtualMachineCaptureResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureResult MaintenanceRedeployStatus = Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceRedeployStatus - RunCommandResult = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandResult - VirtualMachineScaleSetOSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSProfile + ImageDiskReference = Azure::Compute::Mgmt::V2018_06_01::Models::ImageDiskReference + VirtualMachineImage = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImage + VirtualMachine = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachine GalleryIdentifier = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryIdentifier OSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::OSDisk KeyVaultAndSecretReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultAndSecretReference - ImageOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::ImageOSDisk - GalleryImageIdentifier = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageIdentifier - BootDiagnostics = Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnostics - ResourceRange = Azure::Compute::Mgmt::V2018_06_01::Models::ResourceRange - DataDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::DataDiskImage RecommendedMachineConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::RecommendedMachineConfiguration - 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 + Image = Azure::Compute::Mgmt::V2018_06_01::Models::Image + DiskUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::DiskUpdate + ManagedDiskParameters = Azure::Compute::Mgmt::V2018_06_01::Models::ManagedDiskParameters + SnapshotUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotUpdate 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 + RunCommandResult = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandResult + VirtualMachineScaleSetIPConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIPConfiguration ImageReference = Azure::Compute::Mgmt::V2018_06_01::Models::ImageReference - ManagedDiskParameters = Azure::Compute::Mgmt::V2018_06_01::Models::ManagedDiskParameters + VirtualMachineScaleSetNetworkConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfiguration 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 + VirtualMachineExtension = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtension + ImageOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::ImageOSDisk + ResourceRange = Azure::Compute::Mgmt::V2018_06_01::Models::ResourceRange VirtualMachineScaleSetUpdateIPConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateIPConfiguration - VirtualMachineScaleSetNetworkConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfiguration + RollingUpgradeStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeStatusInfo 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 + DataDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::DataDiskImage + VirtualMachineScaleSetOSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSProfile + AvailabilitySetSkuTypes = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetSkuTypes + Disk = Azure::Compute::Mgmt::V2018_06_01::Models::Disk + OperatingSystemTypes = Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemTypes + Snapshot = Azure::Compute::Mgmt::V2018_06_01::Models::Snapshot + CachingTypes = Azure::Compute::Mgmt::V2018_06_01::Models::CachingTypes 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 + StatusLevelTypes = Azure::Compute::Mgmt::V2018_06_01::Models::StatusLevelTypes + ComponentNames = Azure::Compute::Mgmt::V2018_06_01::Models::ComponentNames 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 + RunCommandDocument = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocument GalleryDataDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage GalleryImageVersion = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersion - Disk = Azure::Compute::Mgmt::V2018_06_01::Models::Disk - Snapshot = Azure::Compute::Mgmt::V2018_06_01::Models::Snapshot - StatusLevelTypes = Azure::Compute::Mgmt::V2018_06_01::Models::StatusLevelTypes - AvailabilitySetSkuTypes = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetSkuTypes - OperatingSystemTypes = Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemTypes + SettingNames = Azure::Compute::Mgmt::V2018_06_01::Models::SettingNames VirtualMachineSizeTypes = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeTypes - CachingTypes = Azure::Compute::Mgmt::V2018_06_01::Models::CachingTypes + ResourceIdentityType = Azure::Compute::Mgmt::V2018_06_01::Models::ResourceIdentityType DiskCreateOptionTypes = Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOptionTypes StorageAccountTypes = Azure::Compute::Mgmt::V2018_06_01::Models::StorageAccountTypes - DiffDiskOptions = Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskOptions 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 + RollingUpgradeActionType = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeActionType + DiskCreateOption = Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOption ProtocolTypes = Azure::Compute::Mgmt::V2018_06_01::Models::ProtocolTypes - ResourceIdentityType = Azure::Compute::Mgmt::V2018_06_01::Models::ResourceIdentityType + IPVersion = Azure::Compute::Mgmt::V2018_06_01::Models::IPVersion 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 + GalleryOSDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryOSDiskImage + AccessLevel = Azure::Compute::Mgmt::V2018_06_01::Models::AccessLevel + InstanceViewTypes = Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewTypes + DiffDiskOptions = Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskOptions 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 - 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 DiskStorageAccountTypes = Azure::Compute::Mgmt::V2018_06_01::Models::DiskStorageAccountTypes - DiskCreateOption = Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOption - SnapshotStorageAccountTypes = Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotStorageAccountTypes - AccessLevel = Azure::Compute::Mgmt::V2018_06_01::Models::AccessLevel - InstanceViewTypes = Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewTypes ReplicationStatusTypes = Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatusTypes + VirtualMachineScaleSetSkuScaleType = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuScaleType + AggregatedReplicationState = Azure::Compute::Mgmt::V2018_06_01::Models::AggregatedReplicationState + SnapshotStorageAccountTypes = Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotStorageAccountTypes end class ComputeManagementClass - attr_reader :resource_skus, :operations, :availability_sets, :virtual_machine_extension_images, :virtual_machine_extensions, :virtual_machine_images, :usage_operations, :virtual_machines, :virtual_machine_sizes, :images, :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, :disks, :snapshots, :configurable, :base_url, :options, :model_classes + attr_reader :resource_skus, :usage_operations, :virtual_machine_sizes, :images, :virtual_machine_scale_sets, :virtual_machine_scale_set_extensions, :virtual_machine_scale_set_rolling_upgrades, :virtual_machine_scale_set_vms, :gallery_images, :operations, :virtual_machine_run_commands, :disks, :gallery_image_versions, :galleries, :snapshots, :log_analytics, :availability_sets, :virtual_machine_extension_images, :virtual_machine_extensions, :virtual_machines, :virtual_machine_images, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -291,26 +291,26 @@ def initialize(configurable, base_url=nil, options=nil) @client_3.subscription_id = configurable.subscription_id end add_telemetry(@client_3) - @operations = @client_3.operations - @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_machine_images = @client_3.virtual_machine_images @usage_operations = @client_3.usage_operations - @virtual_machines = @client_3.virtual_machines @virtual_machine_sizes = @client_3.virtual_machine_sizes @images = @client_3.images @virtual_machine_scale_sets = @client_3.virtual_machine_scale_sets @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 + @operations = @client_3.operations + @virtual_machine_run_commands = @client_3.virtual_machine_run_commands @disks = @client_3.disks + @gallery_image_versions = @client_3.gallery_image_versions + @galleries = @client_3.galleries @snapshots = @client_3.snapshots + @log_analytics = @client_3.log_analytics + @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 @model_classes = ModelClasses.new end @@ -335,62 +335,110 @@ 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 + def resource_skus_result + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkusResult end - def resource_sku_location_info - Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuLocationInfo + def resource_sku_restrictions_reason_code + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsReasonCode end - def resource_sku_capabilities - Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapabilities + def resource_sku_restriction_info + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionInfo end - def resource_sku - Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSku + def resource_sku_capacity + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapacity end 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 + def resource_sku_capabilities + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapabilities end def resource_sku_capacity_scale_type Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapacityScaleType end + def resource_sku_restrictions + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictions + end def resource_sku_restrictions_type Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsType end - def resource_sku_restrictions_reason_code - Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsReasonCode + def resource_sku + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSku end - def compute_long_running_operation_properties - Azure::Compute::Mgmt::V2017_12_01::Models::ComputeLongRunningOperationProperties + def resource_sku_location_info + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuLocationInfo end def operation_status_response Azure::Compute::Mgmt::V2017_12_01::Models::OperationStatusResponse end - def api_entity_reference - Azure::Compute::Mgmt::V2018_06_01::Models::ApiEntityReference + def compute_long_running_operation_properties + Azure::Compute::Mgmt::V2017_12_01::Models::ComputeLongRunningOperationProperties end - def virtual_machine_scale_set_public_ipaddress_configuration_dns_settings - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + def compute_operation_value + Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationValue + end + def auto_osupgrade_policy + Azure::Compute::Mgmt::V2018_06_01::Models::AutoOSUpgradePolicy end def compute_operation_list_result Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationListResult end - def virtual_machine_scale_set_ip_tag - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIpTag + def recovery_walk_response + Azure::Compute::Mgmt::V2018_06_01::Models::RecoveryWalkResponse end - def sub_resource - Azure::Compute::Mgmt::V2018_06_01::Models::SubResource + def virtual_machine_scale_set_list_osupgrade_history + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListOSUpgradeHistory end - def virtual_machine_scale_set_public_ipaddress_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfiguration + def log_analytics_output + Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOutput + end + def log_analytics_input_base + Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsInputBase + end + def upgrade_operation_historical_status_info + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfo + end + def upgrade_operation_historical_status_info_properties + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfoProperties + end + def rollback_status_info + Azure::Compute::Mgmt::V2018_06_01::Models::RollbackStatusInfo + end + def upgrade_operation_history_status + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoryStatus + end + def availability_set_update + Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetUpdate + end + def virtual_machine_update + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineUpdate + end + def image_update + Azure::Compute::Mgmt::V2018_06_01::Models::ImageUpdate + end + def request_rate_by_interval_input + Azure::Compute::Mgmt::V2018_06_01::Models::RequestRateByIntervalInput + end + 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 virtual_machine_priority_types + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachinePriorityTypes + end + def virtual_machine_eviction_policy_types + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineEvictionPolicyTypes + end + def upgrade_state + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeState + end + def upgrade_operation_invoker + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationInvoker + end + def interval_in_mins + Azure::Compute::Mgmt::V2018_06_01::Models::IntervalInMins end def virtual_machine_scale_set_managed_disk_parameters Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetManagedDiskParameters @@ -398,395 +446,389 @@ def virtual_machine_scale_set_managed_disk_parameters def virtual_machine_scale_set_osdisk Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSDisk end - def availability_set_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult + def sub_resource + Azure::Compute::Mgmt::V2018_06_01::Models::SubResource end def virtual_machine_scale_set_update_osdisk Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSDisk end - def virtual_machine_size_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeListResult + def encryption_settings + Azure::Compute::Mgmt::V2018_06_01::Models::EncryptionSettings end - def virtual_machine_scale_set_data_disk - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetDataDisk + def availability_set_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult 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 virtual_machine_scale_set_storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetStorageProfile + def virtual_machine_size_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeListResult end - def gallery_disk_image - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDiskImage + def virtual_machine_scale_set_identity + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentity end - def virtual_machine_scale_set_update_storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateStorageProfile + def run_command_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandListResult + end + def run_command_document_base + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocumentBase end def virtual_machine_extensions_list_result Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionsListResult end - def compute_operation_value - Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationValue - end def osdisk_image Azure::Compute::Mgmt::V2018_06_01::Models::OSDiskImage end + def run_command_input + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInput + end + def usage + Azure::Compute::Mgmt::V2018_06_01::Models::Usage + end + def virtual_machine_scale_set_ip_tag + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIpTag + end + def virtual_machine_capture_parameters + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureParameters + end + def snapshot_sku + Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotSku + end + def plan + Azure::Compute::Mgmt::V2018_06_01::Models::Plan + end + def virtual_machine_scale_set_update_osprofile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSProfile + end + def snapshot_list + Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotList + end def instance_view_status Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewStatus end + def gallery_list + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryList + end + def gallery_disk_image + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDiskImage + end def gallery_artifact_source Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactSource end + def target_region + Azure::Compute::Mgmt::V2018_06_01::Models::TargetRegion + end def sku Azure::Compute::Mgmt::V2018_06_01::Models::Sku end - def usage - Azure::Compute::Mgmt::V2018_06_01::Models::Usage + def virtual_machine_scale_set_data_disk + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetDataDisk end - def creation_data - Azure::Compute::Mgmt::V2018_06_01::Models::CreationData + def key_vault_key_reference + Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultKeyReference end - def virtual_machine_capture_parameters - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureParameters + def virtual_machine_scale_set_storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetStorageProfile + end + def virtual_hard_disk + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualHardDisk + end + def virtual_machine_scale_set_update_storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateStorageProfile + end + def image_purchase_plan + Azure::Compute::Mgmt::V2018_06_01::Models::ImagePurchasePlan + end + def api_entity_reference + Azure::Compute::Mgmt::V2018_06_01::Models::ApiEntityReference + end + def additional_capabilities + Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalCapabilities + end + def virtual_machine_scale_set_public_ipaddress_configuration_dns_settings + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + end + def win_rmlistener + Azure::Compute::Mgmt::V2018_06_01::Models::WinRMListener + end + def virtual_machine_scale_set_public_ipaddress_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfiguration + end + def windows_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::WindowsConfiguration end def virtual_machine_scale_set_update_public_ipaddress_configuration Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration end - def plan - Azure::Compute::Mgmt::V2018_06_01::Models::Plan + def ssh_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration + end + def osprofile + Azure::Compute::Mgmt::V2018_06_01::Models::OSProfile + end + def disallowed + Azure::Compute::Mgmt::V2018_06_01::Models::Disallowed end def source_vault Azure::Compute::Mgmt::V2018_06_01::Models::SourceVault end - def target_region - Azure::Compute::Mgmt::V2018_06_01::Models::TargetRegion - end - def image_purchase_plan - Azure::Compute::Mgmt::V2018_06_01::Models::ImagePurchasePlan - end - def key_vault_key_reference - Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultKeyReference + def virtual_machine_agent_instance_view + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineAgentInstanceView end def virtual_machine_scale_set_network_configuration_dns_settings Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfigurationDnsSettings end - def virtual_hard_disk - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualHardDisk + def vault_certificate + Azure::Compute::Mgmt::V2018_06_01::Models::VaultCertificate end - def disallowed - Azure::Compute::Mgmt::V2018_06_01::Models::Disallowed + def creation_data + Azure::Compute::Mgmt::V2018_06_01::Models::CreationData end - def snapshot_list - Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotList + def diagnostics_profile + Azure::Compute::Mgmt::V2018_06_01::Models::DiagnosticsProfile end - def data_disk - Azure::Compute::Mgmt::V2018_06_01::Models::DataDisk + def boot_diagnostics_instance_view + Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnosticsInstanceView + end + def network_profile + Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile end def virtual_machine_scale_set_network_profile Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkProfile end - def additional_capabilities - Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalCapabilities + def diff_disk_settings + Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskSettings end def virtual_machine_scale_set_update_network_profile Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkProfile end - def win_rmlistener - Azure::Compute::Mgmt::V2018_06_01::Models::WinRMListener + def virtual_machine_identity_user_assigned_identities_value + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentityUserAssignedIdentitiesValue end - def snapshot_update - Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotUpdate + def regional_replication_status + Azure::Compute::Mgmt::V2018_06_01::Models::RegionalReplicationStatus end - def windows_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::WindowsConfiguration + def storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::StorageProfile end def virtual_machine_scale_set_extension_list_result Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionListResult end - def ssh_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration - end def virtual_machine_scale_set_extension_profile Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionProfile end - def vault_certificate - Azure::Compute::Mgmt::V2018_06_01::Models::VaultCertificate + def image_storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::ImageStorageProfile end def virtual_machine_scale_set_vmprofile Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMProfile end - def osprofile - Azure::Compute::Mgmt::V2018_06_01::Models::OSProfile + def key_vault_and_key_reference + Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultAndKeyReference end def virtual_machine_scale_set_update_vmprofile Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateVMProfile end - def network_profile - Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile + def virtual_machine_scale_set_identity_user_assigned_identities_value + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue end - def access_uri - Azure::Compute::Mgmt::V2018_06_01::Models::AccessUri + def disk_sku + Azure::Compute::Mgmt::V2018_06_01::Models::DiskSku end - def diagnostics_profile - Azure::Compute::Mgmt::V2018_06_01::Models::DiagnosticsProfile + def gallery_image_version_storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionStorageProfile end - def grant_access_data - Azure::Compute::Mgmt::V2018_06_01::Models::GrantAccessData + def managed_artifact + Azure::Compute::Mgmt::V2018_06_01::Models::ManagedArtifact end - def virtual_machine_agent_instance_view - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineAgentInstanceView + def rolling_upgrade_policy + Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradePolicy end def virtual_machine_scale_set_vminstance_ids Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceIDs end - def boot_diagnostics_instance_view - Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnosticsInstanceView + def data_disk + Azure::Compute::Mgmt::V2018_06_01::Models::DataDisk end def virtual_machine_scale_set_vminstance_required_ids Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceRequiredIDs end - def virtual_machine_identity - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentity + def win_rmconfiguration + Azure::Compute::Mgmt::V2018_06_01::Models::WinRMConfiguration end def virtual_machine_status_code_count Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineStatusCodeCount end - def virtual_machine_instance_view - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineInstanceView + 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_image_version_storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionStorageProfile + def grant_access_data + Azure::Compute::Mgmt::V2018_06_01::Models::GrantAccessData end def virtual_machine_scale_set_vmextensions_summary Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMExtensionsSummary end - def auto_osupgrade_policy - Azure::Compute::Mgmt::V2018_06_01::Models::AutoOSUpgradePolicy + def replication_status + Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatus end def virtual_machine_scale_set_instance_view Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetInstanceView end - def upgrade_policy - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradePolicy + def virtual_machine_identity + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentity end def virtual_machine_scale_set_list_result Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListResult end - def image_data_disk - Azure::Compute::Mgmt::V2018_06_01::Models::ImageDataDisk + def gallery_image_version_list + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionList end def virtual_machine_scale_set_list_with_link_result Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListWithLinkResult end - def disk_sku - Azure::Compute::Mgmt::V2018_06_01::Models::DiskSku + def image_data_disk + Azure::Compute::Mgmt::V2018_06_01::Models::ImageDataDisk end def virtual_machine_scale_set_sku_capacity Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuCapacity end - def image_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::ImageListResult - end - def virtual_machine_scale_set_sku - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSku - end - def virtual_machine_scale_set_identity - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentity - end - def virtual_machine_scale_set_list_skus_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListSkusResult - end - def virtual_machine_scale_set_update_osprofile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSProfile - end - def api_error_base - Azure::Compute::Mgmt::V2018_06_01::Models::ApiErrorBase - end - def virtual_machine_size - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSize - end - 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 api_error - Azure::Compute::Mgmt::V2018_06_01::Models::ApiError - end - def purchase_plan - Azure::Compute::Mgmt::V2018_06_01::Models::PurchasePlan - end - def rollback_status_info - Azure::Compute::Mgmt::V2018_06_01::Models::RollbackStatusInfo + def virtual_machine_scale_set_sku + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSku end def usage_name Azure::Compute::Mgmt::V2018_06_01::Models::UsageName end - def upgrade_operation_history_status - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoryStatus - end - def managed_artifact - Azure::Compute::Mgmt::V2018_06_01::Models::ManagedArtifact - end - def rolling_upgrade_progress_info - Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeProgressInfo + def virtual_machine_scale_set_list_skus_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListSkusResult end def key_vault_secret_reference Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultSecretReference end - def upgrade_operation_historical_status_info_properties - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfoProperties - end - def diff_disk_settings - Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskSettings - end - def upgrade_operation_historical_status_info - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfo - end - def storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::StorageProfile - end - def virtual_machine_scale_set_list_osupgrade_history - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListOSUpgradeHistory - end - def win_rmconfiguration - Azure::Compute::Mgmt::V2018_06_01::Models::WinRMConfiguration - end def virtual_machine_health_status Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineHealthStatus end - def linux_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::LinuxConfiguration + def list_usages_result + Azure::Compute::Mgmt::V2018_06_01::Models::ListUsagesResult end def virtual_machine_scale_set_vminstance_view Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceView end - def replication_status - Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatus - end - def snapshot_sku - Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotSku - end - def virtual_machine_extension_handler_instance_view - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionHandlerInstanceView - end - def virtual_machine_scale_set_vmlist_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMListResult - end - def virtual_machine_identity_user_assigned_identities_value - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentityUserAssignedIdentitiesValue - end - def rolling_upgrade_running_status - Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeRunningStatus + def vault_secret_group + Azure::Compute::Mgmt::V2018_06_01::Models::VaultSecretGroup end - def regional_replication_status - Azure::Compute::Mgmt::V2018_06_01::Models::RegionalReplicationStatus + def sub_resource_read_only + Azure::Compute::Mgmt::V2018_06_01::Models::SubResourceReadOnly end def disk_list Azure::Compute::Mgmt::V2018_06_01::Models::DiskList end - def rolling_upgrade_policy - Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradePolicy - end - def resource - Azure::Compute::Mgmt::V2018_06_01::Models::Resource + def virtual_machine_scale_set_vmlist_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMListResult end - def image_storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::ImageStorageProfile + def upgrade_policy + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradePolicy end - def update_resource - Azure::Compute::Mgmt::V2018_06_01::Models::UpdateResource + def virtual_machine_extension_handler_instance_view + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionHandlerInstanceView end - def virtual_machine_scale_set_identity_user_assigned_identities_value - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue + def purchase_plan + Azure::Compute::Mgmt::V2018_06_01::Models::PurchasePlan end - def sub_resource_read_only - Azure::Compute::Mgmt::V2018_06_01::Models::SubResourceReadOnly + def rolling_upgrade_progress_info + Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeProgressInfo end - def gallery_image_version_list - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionList + def access_uri + Azure::Compute::Mgmt::V2018_06_01::Models::AccessUri end - def recovery_walk_response - Azure::Compute::Mgmt::V2018_06_01::Models::RecoveryWalkResponse + def api_error_base + Azure::Compute::Mgmt::V2018_06_01::Models::ApiErrorBase end def gallery_artifact_publishing_profile_base Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactPublishingProfileBase end - def disk_update - Azure::Compute::Mgmt::V2018_06_01::Models::DiskUpdate - end - def list_usages_result - Azure::Compute::Mgmt::V2018_06_01::Models::ListUsagesResult - end - def encryption_settings - Azure::Compute::Mgmt::V2018_06_01::Models::EncryptionSettings - end - def disk_encryption_settings - Azure::Compute::Mgmt::V2018_06_01::Models::DiskEncryptionSettings - end - def log_analytics_input_base - Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsInputBase + def inner_error + Azure::Compute::Mgmt::V2018_06_01::Models::InnerError end - def additional_unattend_content - Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalUnattendContent + def virtual_machine_size + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSize end - def log_analytics_output - Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOutput + def api_error + Azure::Compute::Mgmt::V2018_06_01::Models::ApiError end - def vault_secret_group - Azure::Compute::Mgmt::V2018_06_01::Models::VaultSecretGroup + def ssh_public_key + Azure::Compute::Mgmt::V2018_06_01::Models::SshPublicKey end - def log_analytics_operation_result - Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOperationResult + def rolling_upgrade_running_status + Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeRunningStatus + end + def update_resource + Azure::Compute::Mgmt::V2018_06_01::Models::UpdateResource end def disk_instance_view Azure::Compute::Mgmt::V2018_06_01::Models::DiskInstanceView end - def run_command_input_parameter - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInputParameter - end - def virtual_machine_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineListResult + def virtual_machine_instance_view + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineInstanceView end - def run_command_input - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInput + def resource + Azure::Compute::Mgmt::V2018_06_01::Models::Resource end - def image_disk_reference - Azure::Compute::Mgmt::V2018_06_01::Models::ImageDiskReference + def boot_diagnostics + Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnostics end def run_command_parameter_definition Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandParameterDefinition end + def run_command_input_parameter + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInputParameter + end def gallery_image_list Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageList end - def run_command_document_base - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocumentBase + def virtual_machine_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineListResult + end + def gallery_image_identifier + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageIdentifier + end + def additional_unattend_content + Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalUnattendContent end def hardware_profile Azure::Compute::Mgmt::V2018_06_01::Models::HardwareProfile end - def key_vault_and_key_reference - Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultAndKeyReference + def virtual_machine_image_resource + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImageResource end - def ssh_public_key - Azure::Compute::Mgmt::V2018_06_01::Models::SshPublicKey + def disk_encryption_settings + Azure::Compute::Mgmt::V2018_06_01::Models::DiskEncryptionSettings end - def run_command_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandListResult + def availability_set + Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySet + end + def virtual_machine_extension_image + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionImage + end + def virtual_machine_capture_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureResult end def maintenance_redeploy_status Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceRedeployStatus end - def run_command_result - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandResult + def image_disk_reference + Azure::Compute::Mgmt::V2018_06_01::Models::ImageDiskReference end - def virtual_machine_scale_set_osprofile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSProfile + def virtual_machine_image + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImage + end + def virtual_machine + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachine end def gallery_identifier Azure::Compute::Mgmt::V2018_06_01::Models::GalleryIdentifier @@ -797,77 +839,53 @@ def osdisk def key_vault_and_secret_reference Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultAndSecretReference end - def image_osdisk - Azure::Compute::Mgmt::V2018_06_01::Models::ImageOSDisk - end - def gallery_image_identifier - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageIdentifier - end - def boot_diagnostics - Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnostics - end - def resource_range - Azure::Compute::Mgmt::V2018_06_01::Models::ResourceRange - end - def data_disk_image - Azure::Compute::Mgmt::V2018_06_01::Models::DataDiskImage - end def recommended_machine_configuration Azure::Compute::Mgmt::V2018_06_01::Models::RecommendedMachineConfiguration 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 + def image + Azure::Compute::Mgmt::V2018_06_01::Models::Image end - def virtual_machine_extension_image - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionImage + def disk_update + Azure::Compute::Mgmt::V2018_06_01::Models::DiskUpdate end - def virtual_machine_image_resource - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImageResource + def managed_disk_parameters + Azure::Compute::Mgmt::V2018_06_01::Models::ManagedDiskParameters end - def virtual_machine_extension - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtension + def snapshot_update + Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotUpdate end def virtual_machine_extension_update Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionUpdate end - def virtual_machine_image - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImage + def run_command_result + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandResult end - def virtual_machine_capture_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureResult + def virtual_machine_scale_set_ipconfiguration + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIPConfiguration end def image_reference Azure::Compute::Mgmt::V2018_06_01::Models::ImageReference end - def managed_disk_parameters - Azure::Compute::Mgmt::V2018_06_01::Models::ManagedDiskParameters + def virtual_machine_scale_set_network_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfiguration 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 - def image - Azure::Compute::Mgmt::V2018_06_01::Models::Image + def virtual_machine_extension + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtension end - def image_update - Azure::Compute::Mgmt::V2018_06_01::Models::ImageUpdate + def image_osdisk + Azure::Compute::Mgmt::V2018_06_01::Models::ImageOSDisk end - def virtual_machine_scale_set_ipconfiguration - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIPConfiguration + def resource_range + Azure::Compute::Mgmt::V2018_06_01::Models::ResourceRange 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 + def rolling_upgrade_status_info + Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeStatusInfo end def virtual_machine_scale_set_update_network_configuration Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkConfiguration @@ -878,23 +896,38 @@ def virtual_machine_scale_set_extension def virtual_machine_scale_set Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSet end + def data_disk_image + Azure::Compute::Mgmt::V2018_06_01::Models::DataDiskImage + end + def virtual_machine_scale_set_osprofile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSProfile + end + def availability_set_sku_types + Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetSkuTypes + end + def disk + Azure::Compute::Mgmt::V2018_06_01::Models::Disk + end + def operating_system_types + Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemTypes + end + def snapshot + Azure::Compute::Mgmt::V2018_06_01::Models::Snapshot + end + def caching_types + Azure::Compute::Mgmt::V2018_06_01::Models::CachingTypes + 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 - def request_rate_by_interval_input - Azure::Compute::Mgmt::V2018_06_01::Models::RequestRateByIntervalInput - end - def throttled_requests_input - Azure::Compute::Mgmt::V2018_06_01::Models::ThrottledRequestsInput + def status_level_types + Azure::Compute::Mgmt::V2018_06_01::Models::StatusLevelTypes end - def run_command_document - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocument + def component_names + Azure::Compute::Mgmt::V2018_06_01::Models::ComponentNames end def gallery Azure::Compute::Mgmt::V2018_06_01::Models::Gallery @@ -905,8 +938,8 @@ def gallery_image 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 + def run_command_document + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocument end def gallery_data_disk_image Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage @@ -914,26 +947,14 @@ def gallery_data_disk_image def gallery_image_version Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersion end - def disk - Azure::Compute::Mgmt::V2018_06_01::Models::Disk - end - def snapshot - Azure::Compute::Mgmt::V2018_06_01::Models::Snapshot - end - def status_level_types - Azure::Compute::Mgmt::V2018_06_01::Models::StatusLevelTypes - end - def availability_set_sku_types - Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetSkuTypes - end - def operating_system_types - Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemTypes + def setting_names + Azure::Compute::Mgmt::V2018_06_01::Models::SettingNames 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 + def resource_identity_type + Azure::Compute::Mgmt::V2018_06_01::Models::ResourceIdentityType end def disk_create_option_types Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOptionTypes @@ -941,23 +962,20 @@ def disk_create_option_types def storage_account_types Azure::Compute::Mgmt::V2018_06_01::Models::StorageAccountTypes end - def diff_disk_options - Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskOptions - end def pass_names Azure::Compute::Mgmt::V2018_06_01::Models::PassNames end - def component_names - Azure::Compute::Mgmt::V2018_06_01::Models::ComponentNames + def rolling_upgrade_action_type + Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeActionType end - def setting_names - Azure::Compute::Mgmt::V2018_06_01::Models::SettingNames + def disk_create_option + Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOption 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 + def ipversion + Azure::Compute::Mgmt::V2018_06_01::Models::IPVersion end def maintenance_operation_result_code_types Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceOperationResultCodeTypes @@ -968,36 +986,21 @@ def upgrade_mode def operating_system_state_types Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemStateTypes end - def ipversion - Azure::Compute::Mgmt::V2018_06_01::Models::IPVersion - end - def virtual_machine_priority_types - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachinePriorityTypes - end - def virtual_machine_eviction_policy_types - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineEvictionPolicyTypes + def gallery_osdisk_image + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryOSDiskImage end - def virtual_machine_scale_set_sku_scale_type - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuScaleType + def access_level + Azure::Compute::Mgmt::V2018_06_01::Models::AccessLevel end - def upgrade_state - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeState + def instance_view_types + Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewTypes end - def upgrade_operation_invoker - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationInvoker + def diff_disk_options + Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskOptions end def rolling_upgrade_status_code Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeStatusCode end - def rolling_upgrade_action_type - Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeActionType - end - def interval_in_mins - Azure::Compute::Mgmt::V2018_06_01::Models::IntervalInMins - 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 @@ -1007,20 +1010,17 @@ def host_caching def disk_storage_account_types Azure::Compute::Mgmt::V2018_06_01::Models::DiskStorageAccountTypes end - def disk_create_option - Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOption - end - def snapshot_storage_account_types - Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotStorageAccountTypes + def replication_status_types + Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatusTypes end - def access_level - Azure::Compute::Mgmt::V2018_06_01::Models::AccessLevel + 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 + def aggregated_replication_state + Azure::Compute::Mgmt::V2018_06_01::Models::AggregatedReplicationState end - def replication_status_types - Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatusTypes + def snapshot_storage_account_types + Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotStorageAccountTypes end end end diff --git a/azure_sdk/lib/latest/modules/computervision_profile_module.rb b/azure_sdk/lib/latest/modules/computervision_profile_module.rb index 2a7e5a2600..77de889af1 100644 --- a/azure_sdk/lib/latest/modules/computervision_profile_module.rb +++ b/azure_sdk/lib/latest/modules/computervision_profile_module.rb @@ -8,25 +8,6 @@ module Azure::Profiles::Latest module ComputerVision module Models - FaceDescription = Azure::CognitiveServices::ComputerVision::V2_0::Models::FaceDescription - ImageMetadata = Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageMetadata - Line = Azure::CognitiveServices::ComputerVision::V2_0::Models::Line - ImageAnalysis = Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageAnalysis - TextOperationResult = Azure::CognitiveServices::ComputerVision::V2_0::Models::TextOperationResult - OcrWord = Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrWord - CelebritiesModel = Azure::CognitiveServices::ComputerVision::V2_0::Models::CelebritiesModel - OcrLine = Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrLine - CategoryDetail = Azure::CognitiveServices::ComputerVision::V2_0::Models::CategoryDetail - OcrRegion = Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrRegion - AdultInfo = Azure::CognitiveServices::ComputerVision::V2_0::Models::AdultInfo - OcrResult = Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrResult - ImageType = Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageType - ModelDescription = Azure::CognitiveServices::ComputerVision::V2_0::Models::ModelDescription - ImageCaption = Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageCaption - ListModelsResult = Azure::CognitiveServices::ComputerVision::V2_0::Models::ListModelsResult - Word = Azure::CognitiveServices::ComputerVision::V2_0::Models::Word - DomainModelResults = Azure::CognitiveServices::ComputerVision::V2_0::Models::DomainModelResults - FaceRectangle = Azure::CognitiveServices::ComputerVision::V2_0::Models::FaceRectangle CelebrityResults = Azure::CognitiveServices::ComputerVision::V2_0::Models::CelebrityResults Category = Azure::CognitiveServices::ComputerVision::V2_0::Models::Category LandmarkResults = Azure::CognitiveServices::ComputerVision::V2_0::Models::LandmarkResults @@ -46,6 +27,25 @@ module Models OcrLanguages = Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrLanguages TextRecognitionMode = Azure::CognitiveServices::ComputerVision::V2_0::Models::TextRecognitionMode Details = Azure::CognitiveServices::ComputerVision::V2_0::Models::Details + ImageType = Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageType + FaceDescription = Azure::CognitiveServices::ComputerVision::V2_0::Models::FaceDescription + ImageMetadata = Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageMetadata + Line = Azure::CognitiveServices::ComputerVision::V2_0::Models::Line + ImageAnalysis = Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageAnalysis + TextOperationResult = Azure::CognitiveServices::ComputerVision::V2_0::Models::TextOperationResult + OcrWord = Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrWord + CelebritiesModel = Azure::CognitiveServices::ComputerVision::V2_0::Models::CelebritiesModel + OcrLine = Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrLine + CategoryDetail = Azure::CognitiveServices::ComputerVision::V2_0::Models::CategoryDetail + OcrRegion = Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrRegion + AdultInfo = Azure::CognitiveServices::ComputerVision::V2_0::Models::AdultInfo + OcrResult = Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrResult + ModelDescription = Azure::CognitiveServices::ComputerVision::V2_0::Models::ModelDescription + ImageCaption = Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageCaption + ListModelsResult = Azure::CognitiveServices::ComputerVision::V2_0::Models::ListModelsResult + Word = Azure::CognitiveServices::ComputerVision::V2_0::Models::Word + DomainModelResults = Azure::CognitiveServices::ComputerVision::V2_0::Models::DomainModelResults + FaceRectangle = Azure::CognitiveServices::ComputerVision::V2_0::Models::FaceRectangle end class ComputerVisionDataClass @@ -77,63 +77,6 @@ def method_missing(method, *args) end class ModelClasses - def face_description - Azure::CognitiveServices::ComputerVision::V2_0::Models::FaceDescription - end - def image_metadata - Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageMetadata - end - def line - Azure::CognitiveServices::ComputerVision::V2_0::Models::Line - end - def image_analysis - Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageAnalysis - end - def text_operation_result - Azure::CognitiveServices::ComputerVision::V2_0::Models::TextOperationResult - end - def ocr_word - Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrWord - end - def celebrities_model - Azure::CognitiveServices::ComputerVision::V2_0::Models::CelebritiesModel - end - def ocr_line - Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrLine - end - def category_detail - Azure::CognitiveServices::ComputerVision::V2_0::Models::CategoryDetail - end - def ocr_region - Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrRegion - end - def adult_info - Azure::CognitiveServices::ComputerVision::V2_0::Models::AdultInfo - end - def ocr_result - Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrResult - end - def image_type - Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageType - end - def model_description - Azure::CognitiveServices::ComputerVision::V2_0::Models::ModelDescription - end - def image_caption - Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageCaption - end - def list_models_result - Azure::CognitiveServices::ComputerVision::V2_0::Models::ListModelsResult - end - def word - Azure::CognitiveServices::ComputerVision::V2_0::Models::Word - end - def domain_model_results - Azure::CognitiveServices::ComputerVision::V2_0::Models::DomainModelResults - end - def face_rectangle - Azure::CognitiveServices::ComputerVision::V2_0::Models::FaceRectangle - end def celebrity_results Azure::CognitiveServices::ComputerVision::V2_0::Models::CelebrityResults end @@ -191,6 +134,63 @@ def text_recognition_mode def details Azure::CognitiveServices::ComputerVision::V2_0::Models::Details end + def image_type + Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageType + end + def face_description + Azure::CognitiveServices::ComputerVision::V2_0::Models::FaceDescription + end + def image_metadata + Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageMetadata + end + def line + Azure::CognitiveServices::ComputerVision::V2_0::Models::Line + end + def image_analysis + Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageAnalysis + end + def text_operation_result + Azure::CognitiveServices::ComputerVision::V2_0::Models::TextOperationResult + end + def ocr_word + Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrWord + end + def celebrities_model + Azure::CognitiveServices::ComputerVision::V2_0::Models::CelebritiesModel + end + def ocr_line + Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrLine + end + def category_detail + Azure::CognitiveServices::ComputerVision::V2_0::Models::CategoryDetail + end + def ocr_region + Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrRegion + end + def adult_info + Azure::CognitiveServices::ComputerVision::V2_0::Models::AdultInfo + end + def ocr_result + Azure::CognitiveServices::ComputerVision::V2_0::Models::OcrResult + end + def model_description + Azure::CognitiveServices::ComputerVision::V2_0::Models::ModelDescription + end + def image_caption + Azure::CognitiveServices::ComputerVision::V2_0::Models::ImageCaption + end + def list_models_result + Azure::CognitiveServices::ComputerVision::V2_0::Models::ListModelsResult + end + def word + Azure::CognitiveServices::ComputerVision::V2_0::Models::Word + end + def domain_model_results + Azure::CognitiveServices::ComputerVision::V2_0::Models::DomainModelResults + end + def face_rectangle + Azure::CognitiveServices::ComputerVision::V2_0::Models::FaceRectangle + end 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..0f337565e6 100644 --- a/azure_sdk/lib/latest/modules/consumption_profile_module.rb +++ b/azure_sdk/lib/latest/modules/consumption_profile_module.rb @@ -16,11 +16,13 @@ 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 Operations = Azure::Consumption::Mgmt::V2018_06_30::Operations + Tags = Azure::Consumption::Mgmt::V2018_06_30::Tags module Models + ErrorResponse = Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorResponse + ProxyResource = Azure::Consumption::Mgmt::V2018_06_30::Models::ProxyResource Notification = Azure::Consumption::Mgmt::V2018_06_30::Models::Notification MeterDetails = Azure::Consumption::Mgmt::V2018_06_30::Models::MeterDetails CurrentSpend = Azure::Consumption::Mgmt::V2018_06_30::Models::CurrentSpend @@ -29,48 +31,46 @@ 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 QueryOptions = Azure::Consumption::Mgmt::V2018_06_30::Models::QueryOptions + Tag = Azure::Consumption::Mgmt::V2018_06_30::Models::Tag ReservationSummariesListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummariesListResult - 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 + PriceSheetProperties = Azure::Consumption::Mgmt::V2018_06_30::Models::PriceSheetProperties ResourceAttributes = Azure::Consumption::Mgmt::V2018_06_30::Models::ResourceAttributes ReservationDetailsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetailsListResult + Resource = Azure::Consumption::Mgmt::V2018_06_30::Models::Resource + ErrorDetails = Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorDetails + OperationDisplay = Azure::Consumption::Mgmt::V2018_06_30::Models::OperationDisplay + Balance = Azure::Consumption::Mgmt::V2018_06_30::Models::Balance + Operation = Azure::Consumption::Mgmt::V2018_06_30::Models::Operation ForecastsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastsListResult - UsageDetail = Azure::Consumption::Mgmt::V2018_06_30::Models::UsageDetail + OperationListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::OperationListResult Marketplace = Azure::Consumption::Mgmt::V2018_06_30::Models::Marketplace - Balance = Azure::Consumption::Mgmt::V2018_06_30::Models::Balance + TagsResult = Azure::Consumption::Mgmt::V2018_06_30::Models::TagsResult ReservationSummary = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummary + UsageDetail = Azure::Consumption::Mgmt::V2018_06_30::Models::UsageDetail + CategoryType = Azure::Consumption::Mgmt::V2018_06_30::Models::CategoryType + Forecast = Azure::Consumption::Mgmt::V2018_06_30::Models::Forecast + CostTag = Azure::Consumption::Mgmt::V2018_06_30::Models::CostTag ReservationDetail = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetail - TagsResult = Azure::Consumption::Mgmt::V2018_06_30::Models::TagsResult + TimeGrainType = Azure::Consumption::Mgmt::V2018_06_30::Models::TimeGrainType Budget = Azure::Consumption::Mgmt::V2018_06_30::Models::Budget - CostTag = Azure::Consumption::Mgmt::V2018_06_30::Models::CostTag + Grain = Azure::Consumption::Mgmt::V2018_06_30::Models::Grain PriceSheetResult = Azure::Consumption::Mgmt::V2018_06_30::Models::PriceSheetResult - Forecast = Azure::Consumption::Mgmt::V2018_06_30::Models::Forecast - BillingFrequency = Azure::Consumption::Mgmt::V2018_06_30::Models::BillingFrequency - CategoryType = Azure::Consumption::Mgmt::V2018_06_30::Models::CategoryType - TimeGrainType = Azure::Consumption::Mgmt::V2018_06_30::Models::TimeGrainType OperatorType = Azure::Consumption::Mgmt::V2018_06_30::Models::OperatorType - Grain = Azure::Consumption::Mgmt::V2018_06_30::Models::Grain + BillingFrequency = Azure::Consumption::Mgmt::V2018_06_30::Models::BillingFrequency ChargeType = Azure::Consumption::Mgmt::V2018_06_30::Models::ChargeType Bound = Azure::Consumption::Mgmt::V2018_06_30::Models::Bound Datagrain = Azure::Consumption::Mgmt::V2018_06_30::Models::Datagrain 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, :operations, :tags, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -89,9 +89,9 @@ 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 @operations = @client_0.operations + @tags = @client_0.tags @model_classes = ModelClasses.new end @@ -110,6 +110,12 @@ def method_missing(method, *args) end class ModelClasses + def error_response + Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorResponse + end + def proxy_resource + Azure::Consumption::Mgmt::V2018_06_30::Models::ProxyResource + end def notification Azure::Consumption::Mgmt::V2018_06_30::Models::Notification end @@ -134,27 +140,12 @@ 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 @@ -164,80 +155,89 @@ def balance_properties_new_purchases_details_item def query_options Azure::Consumption::Mgmt::V2018_06_30::Models::QueryOptions end + def tag + Azure::Consumption::Mgmt::V2018_06_30::Models::Tag + end def reservation_summaries_list_result Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummariesListResult end + def reservation_recommendations_list_result + Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationRecommendationsListResult + end + def forecast_properties_confidence_levels_item + Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastPropertiesConfidenceLevelsItem + end def price_sheet_properties Azure::Consumption::Mgmt::V2018_06_30::Models::PriceSheetProperties end - def reservation_recommendations_list_result - Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationRecommendationsListResult + def resource_attributes + Azure::Consumption::Mgmt::V2018_06_30::Models::ResourceAttributes end - def proxy_resource - Azure::Consumption::Mgmt::V2018_06_30::Models::ProxyResource + def reservation_details_list_result + Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetailsListResult end def resource Azure::Consumption::Mgmt::V2018_06_30::Models::Resource end - def forecast_properties_confidence_levels_item - Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastPropertiesConfidenceLevelsItem + def error_details + Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorDetails 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 balance + Azure::Consumption::Mgmt::V2018_06_30::Models::Balance end - def reservation_details_list_result - Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetailsListResult + def operation + Azure::Consumption::Mgmt::V2018_06_30::Models::Operation end def forecasts_list_result Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastsListResult end - def usage_detail - Azure::Consumption::Mgmt::V2018_06_30::Models::UsageDetail + def operation_list_result + Azure::Consumption::Mgmt::V2018_06_30::Models::OperationListResult end def marketplace Azure::Consumption::Mgmt::V2018_06_30::Models::Marketplace end - def balance - Azure::Consumption::Mgmt::V2018_06_30::Models::Balance + def tags_result + Azure::Consumption::Mgmt::V2018_06_30::Models::TagsResult end def reservation_summary Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummary end - def reservation_detail - Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetail + def usage_detail + Azure::Consumption::Mgmt::V2018_06_30::Models::UsageDetail end - def tags_result - Azure::Consumption::Mgmt::V2018_06_30::Models::TagsResult + def category_type + Azure::Consumption::Mgmt::V2018_06_30::Models::CategoryType end - def budget - Azure::Consumption::Mgmt::V2018_06_30::Models::Budget + def forecast + Azure::Consumption::Mgmt::V2018_06_30::Models::Forecast end def cost_tag Azure::Consumption::Mgmt::V2018_06_30::Models::CostTag end - def price_sheet_result - Azure::Consumption::Mgmt::V2018_06_30::Models::PriceSheetResult + def reservation_detail + Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetail end - def forecast - Azure::Consumption::Mgmt::V2018_06_30::Models::Forecast + def time_grain_type + Azure::Consumption::Mgmt::V2018_06_30::Models::TimeGrainType end - def billing_frequency - Azure::Consumption::Mgmt::V2018_06_30::Models::BillingFrequency + def budget + Azure::Consumption::Mgmt::V2018_06_30::Models::Budget end - def category_type - Azure::Consumption::Mgmt::V2018_06_30::Models::CategoryType + def grain + Azure::Consumption::Mgmt::V2018_06_30::Models::Grain end - def time_grain_type - Azure::Consumption::Mgmt::V2018_06_30::Models::TimeGrainType + def price_sheet_result + Azure::Consumption::Mgmt::V2018_06_30::Models::PriceSheetResult end def operator_type Azure::Consumption::Mgmt::V2018_06_30::Models::OperatorType end - def grain - Azure::Consumption::Mgmt::V2018_06_30::Models::Grain + def billing_frequency + Azure::Consumption::Mgmt::V2018_06_30::Models::BillingFrequency end def charge_type Azure::Consumption::Mgmt::V2018_06_30::Models::ChargeType diff --git a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb index c2c23fc2cd..084ec9e629 100644 --- a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb @@ -7,40 +7,19 @@ module Azure::Profiles::Latest module ContainerInstance module Mgmt - ContainerGroups = Azure::ContainerInstance::Mgmt::V2018_10_01::ContainerGroups - Operations = Azure::ContainerInstance::Mgmt::V2018_10_01::Operations ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_10_01::ContainerGroupUsage ContainerOperations = Azure::ContainerInstance::Mgmt::V2018_10_01::ContainerOperations ServiceAssociationLink = Azure::ContainerInstance::Mgmt::V2018_10_01::ServiceAssociationLink + Operations = Azure::ContainerInstance::Mgmt::V2018_10_01::Operations + ContainerGroups = Azure::ContainerInstance::Mgmt::V2018_10_01::ContainerGroups module Models - Port = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Port - ContainerPort = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerPort - IpAddress = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::IpAddress - ContainerState = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerState - ContainerGroupPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupPropertiesInstanceView - ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerPropertiesInstanceView - LogAnalytics = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::LogAnalytics - ResourceRequests = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceRequests - ContainerGroupDiagnostics = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupDiagnostics - ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceRequirements - ContainerGroupNetworkProfile = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupNetworkProfile - ContainerExec = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerExec - DnsConfiguration = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::DnsConfiguration - ContainerProbe = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerProbe Container = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Container GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::GitRepoVolume - OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperationDisplay ContainerGroupIdentityUserAssignedIdentitiesValue = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupIdentityUserAssignedIdentitiesValue - Operation = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Operation ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ImageRegistryCredential - OperationListResult = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperationListResult - Event = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Event - UsageName = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::UsageName ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceLimits - Usage = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Usage ContainerHttpGet = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerHttpGet - UsageListResult = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::UsageListResult Volume = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Volume ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupListResult EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::EnvironmentVariable @@ -48,25 +27,46 @@ module Models VolumeMount = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::VolumeMount ContainerExecRequestTerminalSize = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerExecRequestTerminalSize ContainerGroupIdentity = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupIdentity + Event = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Event ContainerExecRequest = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerExecRequest - AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::AzureFileVolume ContainerExecResponse = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerExecResponse GpuResource = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::GpuResource - Resource = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Resource - ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup + AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::AzureFileVolume ContainerNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerNetworkProtocol GpuSku = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::GpuSku - ResourceIdentityType = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceIdentityType + ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup ContainerGroupRestartPolicy = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupRestartPolicy - ContainerGroupNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupNetworkProtocol + ResourceIdentityType = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceIdentityType ContainerGroupIpAddressType = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupIpAddressType + ContainerGroupNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupNetworkProtocol + ContainerInstanceOperationsOrigin = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerInstanceOperationsOrigin OperatingSystemTypes = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperatingSystemTypes + ContainerProbe = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerProbe LogAnalyticsLogType = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::LogAnalyticsLogType - ContainerInstanceOperationsOrigin = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerInstanceOperationsOrigin + UsageListResult = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::UsageListResult + UsageName = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::UsageName + LogAnalytics = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::LogAnalytics + Resource = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Resource + OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperationDisplay + Operation = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Operation + OperationListResult = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperationListResult + Port = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Port + ContainerPort = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerPort + IpAddress = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::IpAddress + ContainerState = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerState + ContainerGroupPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupPropertiesInstanceView + ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerPropertiesInstanceView + ResourceRequests = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceRequests + ContainerGroupDiagnostics = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupDiagnostics + ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceRequirements + ContainerGroupNetworkProfile = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupNetworkProfile + ContainerExec = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerExec + DnsConfiguration = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::DnsConfiguration + Usage = Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Usage end class ContainerInstanceManagementClass - attr_reader :container_groups, :operations, :container_group_usage, :container_operations, :service_association_link, :configurable, :base_url, :options, :model_classes + attr_reader :container_group_usage, :container_operations, :service_association_link, :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 @@ -76,11 +76,11 @@ 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 @service_association_link = @client_0.service_association_link + @operations = @client_0.operations + @container_groups = @client_0.container_groups @model_classes = ModelClasses.new end @@ -99,87 +99,24 @@ def method_missing(method, *args) end class ModelClasses - def port - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Port - end - def container_port - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerPort - end - def ip_address - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::IpAddress - end - def container_state - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerState - end - def container_group_properties_instance_view - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupPropertiesInstanceView - end - def container_properties_instance_view - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerPropertiesInstanceView - end - def log_analytics - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::LogAnalytics - end - def resource_requests - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceRequests - end - def container_group_diagnostics - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupDiagnostics - end - def resource_requirements - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceRequirements - end - def container_group_network_profile - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupNetworkProfile - end - def container_exec - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerExec - end - def dns_configuration - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::DnsConfiguration - end - def container_probe - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerProbe - end def container Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Container end def git_repo_volume Azure::ContainerInstance::Mgmt::V2018_10_01::Models::GitRepoVolume end - def operation_display - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperationDisplay - end def container_group_identity_user_assigned_identities_value Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupIdentityUserAssignedIdentitiesValue end - def operation - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Operation - end def image_registry_credential Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ImageRegistryCredential end - def operation_list_result - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperationListResult - end - def event - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Event - end - def usage_name - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::UsageName - end def resource_limits Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceLimits end - def usage - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Usage - end def container_http_get Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerHttpGet end - def usage_list_result - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::UsageListResult - end def volume Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Volume end @@ -201,23 +138,20 @@ def container_exec_request_terminal_size def container_group_identity Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupIdentity end + def event + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Event + end def container_exec_request Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerExecRequest end - def azure_file_volume - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::AzureFileVolume - end def container_exec_response Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerExecResponse end def gpu_resource Azure::ContainerInstance::Mgmt::V2018_10_01::Models::GpuResource end - def resource - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Resource - end - def container_group - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup + def azure_file_volume + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::AzureFileVolume end def container_network_protocol Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerNetworkProtocol @@ -225,26 +159,92 @@ def container_network_protocol def gpu_sku Azure::ContainerInstance::Mgmt::V2018_10_01::Models::GpuSku end - def resource_identity_type - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceIdentityType + def container_group + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroup end def container_group_restart_policy Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupRestartPolicy end - def container_group_network_protocol - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupNetworkProtocol + def resource_identity_type + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceIdentityType end def container_group_ip_address_type Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupIpAddressType end + def container_group_network_protocol + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupNetworkProtocol + end + def container_instance_operations_origin + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerInstanceOperationsOrigin + end def operating_system_types Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperatingSystemTypes end + def container_probe + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerProbe + end def log_analytics_log_type Azure::ContainerInstance::Mgmt::V2018_10_01::Models::LogAnalyticsLogType end - def container_instance_operations_origin - Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerInstanceOperationsOrigin + def usage_list_result + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::UsageListResult + end + def usage_name + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::UsageName + end + def log_analytics + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::LogAnalytics + end + def resource + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Resource + end + def operation_display + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperationDisplay + end + def operation + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Operation + end + def operation_list_result + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::OperationListResult + end + def port + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Port + end + def container_port + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerPort + end + def ip_address + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::IpAddress + end + def container_state + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerState + end + def container_group_properties_instance_view + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupPropertiesInstanceView + end + def container_properties_instance_view + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerPropertiesInstanceView + end + def resource_requests + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceRequests + end + def container_group_diagnostics + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupDiagnostics + end + def resource_requirements + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ResourceRequirements + end + def container_group_network_profile + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerGroupNetworkProfile + end + def container_exec + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::ContainerExec + end + def dns_configuration + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::DnsConfiguration + end + def usage + Azure::ContainerInstance::Mgmt::V2018_10_01::Models::Usage 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 e052991918..fd0b2bcc10 100644 --- a/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb @@ -10,11 +10,14 @@ module Mgmt Operations = Azure::ContainerRegistry::Mgmt::V2017_10_01::Operations Replications = Azure::ContainerRegistry::Mgmt::V2017_10_01::Replications Webhooks = Azure::ContainerRegistry::Mgmt::V2017_10_01::Webhooks - Registries = Azure::ContainerRegistry::Mgmt::V2018_09_01::Registries Runs = Azure::ContainerRegistry::Mgmt::V2018_09_01::Runs Tasks = Azure::ContainerRegistry::Mgmt::V2018_09_01::Tasks + Registries = Azure::ContainerRegistry::Mgmt::V2018_09_01::Registries module Models + Sku = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Sku + Request = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request + Event = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event RegistryUsageListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageListResult QuarantinePolicy = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::QuarantinePolicy ImportSource = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportSource @@ -25,7 +28,6 @@ module Models RegistryNameStatus = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryNameStatus OperationMetricSpecificationDefinition = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationMetricSpecificationDefinition OperationDefinition = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationDefinition - Sku = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Sku ReplicationUpdateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationUpdateParameters StorageAccountProperties = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::StorageAccountProperties ReplicationListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationListResult @@ -33,42 +35,40 @@ module Models 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 + WebhookUpdateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookUpdateParameters ImportSourceCredentials = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportSourceCredentials EventInfo = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventInfo OperationServiceSpecificationDefinition = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationServiceSpecificationDefinition - CallbackConfig = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::CallbackConfig - Status = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Status + WebhookListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookListResult Target = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Target - EventListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventListResult + CallbackConfig = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::CallbackConfig RegistryListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListResult - Request = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request - RegistryUsage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsage + EventListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventListResult Actor = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Actor - OperationListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationListResult - 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 VirtualNetworkRule = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::VirtualNetworkRule EventRequestMessage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventRequestMessage - ImportImageParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportImageParameters + RegistryUsage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsage EventResponseMessage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventResponseMessage Registry = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Registry + EventContent = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventContent 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 - DefaultAction = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::DefaultAction + ImportImageParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportImageParameters PasswordName = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PasswordName - RegistryUsageUnit = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageUnit + DefaultAction = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::DefaultAction PolicyStatus = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PolicyStatus - TrustPolicyType = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::TrustPolicyType + SkuTier = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuTier WebhookStatus = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookStatus + TrustPolicyType = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::TrustPolicyType + RegistryUsageUnit = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageUnit WebhookAction = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookAction + Status = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Status + OperationListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationListResult + Webhook = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Webhook + SkuName = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuName + Source = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Source PlatformUpdateParameters = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::PlatformUpdateParameters TaskStepUpdateParameters = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskStepUpdateParameters ImageDescriptor = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::ImageDescriptor @@ -84,32 +84,31 @@ module Models RunGetLogResult = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunGetLogResult TaskUpdateParameters = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskUpdateParameters TaskStepProperties = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskStepProperties - Resource = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Resource SourceProperties = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceProperties - ProxyResource = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::ProxyResource BaseImageTrigger = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::BaseImageTrigger - Argument = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Argument + ProxyResource = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::ProxyResource RunUpdateParameters = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunUpdateParameters TaskListResult = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskListResult BaseImageDependency = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::BaseImageDependency ImageUpdateTrigger = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::ImageUpdateTrigger AuthInfo = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::AuthInfo + Argument = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Argument SetValue = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SetValue - RunListResult = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunListResult SourceTrigger = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceTrigger PlatformProperties = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::PlatformProperties + RunListResult = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunListResult TriggerProperties = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TriggerProperties - RunRequest = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunRequest Run = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Run Task = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Task + RunRequest = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunRequest DockerBuildRequest = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::DockerBuildRequest - FileTaskRunRequest = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskRunRequest TaskRunRequest = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskRunRequest EncodedTaskRunRequest = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::EncodedTaskRunRequest + FileTaskRunRequest = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskRunRequest DockerBuildStep = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::DockerBuildStep - FileTaskStep = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskStep EncodedTaskStep = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::EncodedTaskStep DockerBuildStepUpdateParameters = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::DockerBuildStepUpdateParameters + FileTaskStep = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskStep FileTaskStepUpdateParameters = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskStepUpdateParameters EncodedTaskStepUpdateParameters = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::EncodedTaskStepUpdateParameters RunStatus = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunStatus @@ -117,18 +116,19 @@ module Models OS = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::OS Architecture = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Architecture Variant = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Variant - ProvisioningState = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::ProvisioningState TaskStatus = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskStatus - BaseImageDependencyType = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::BaseImageDependencyType + ProvisioningState = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::ProvisioningState SourceControlType = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceControlType - TokenType = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TokenType + BaseImageDependencyType = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::BaseImageDependencyType SourceTriggerEvent = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceTriggerEvent - TriggerStatus = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TriggerStatus + TokenType = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TokenType BaseImageTriggerType = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::BaseImageTriggerType + TriggerStatus = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TriggerStatus + Resource = Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Resource end class ContainerRegistryManagementClass - attr_reader :operations, :replications, :webhooks, :registries, :runs, :tasks, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :replications, :webhooks, :runs, :tasks, :registries, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -147,9 +147,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) - @registries = @client_1.registries @runs = @client_1.runs @tasks = @client_1.tasks + @registries = @client_1.registries @model_classes = ModelClasses.new end @@ -170,6 +170,15 @@ def method_missing(method, *args) end class ModelClasses + def sku + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Sku + end + def request + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request + end + def event + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event + end def registry_usage_list_result Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageListResult end @@ -200,9 +209,6 @@ def operation_metric_specification_definition def operation_definition Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationDefinition end - def sku - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Sku - end def replication_update_parameters Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationUpdateParameters end @@ -224,14 +230,11 @@ 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 + def webhook_update_parameters + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookUpdateParameters end def import_source_credentials Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportSourceCredentials @@ -242,50 +245,35 @@ def event_info def operation_service_specification_definition Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationServiceSpecificationDefinition end - def callback_config - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::CallbackConfig - end - def status - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Status + def webhook_list_result + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookListResult end def target Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Target end - def event_list_result - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventListResult + def callback_config + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::CallbackConfig end def registry_list_result Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListResult end - def request - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request - end - def registry_usage - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsage + def event_list_result + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventListResult end def actor Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Actor end - def operation_list_result - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationListResult - 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 virtual_network_rule Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::VirtualNetworkRule end def event_request_message Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventRequestMessage end - def import_image_parameters - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportImageParameters + def registry_usage + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsage end def event_response_message Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventResponseMessage @@ -293,45 +281,57 @@ def event_response_message def registry Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Registry end + def event_content + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventContent + 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 - end - def sku_tier - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuTier - end - def default_action - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::DefaultAction + def import_image_parameters + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportImageParameters end def password_name Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PasswordName end - def registry_usage_unit - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageUnit + def default_action + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::DefaultAction end def policy_status Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PolicyStatus end - def trust_policy_type - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::TrustPolicyType + def sku_tier + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuTier end def webhook_status Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookStatus end + def trust_policy_type + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::TrustPolicyType + end + def registry_usage_unit + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageUnit + end def webhook_action Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookAction end + def status + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Status + end + def operation_list_result + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationListResult + end + def webhook + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Webhook + end + def sku_name + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuName + end + def source + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Source + end def platform_update_parameters Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::PlatformUpdateParameters end @@ -377,20 +377,14 @@ def task_update_parameters def task_step_properties Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskStepProperties end - def resource - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Resource - end def source_properties Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceProperties end - def proxy_resource - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::ProxyResource - end def base_image_trigger Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::BaseImageTrigger end - def argument - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Argument + def proxy_resource + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::ProxyResource end def run_update_parameters Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunUpdateParameters @@ -407,54 +401,57 @@ def image_update_trigger def auth_info Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::AuthInfo end + def argument + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Argument + end def set_value Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SetValue end - def run_list_result - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunListResult - end def source_trigger Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceTrigger end def platform_properties Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::PlatformProperties end + def run_list_result + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunListResult + end def trigger_properties Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TriggerProperties end - def run_request - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunRequest - end def run Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Run end def task Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Task end + def run_request + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::RunRequest + end def docker_build_request Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::DockerBuildRequest end - def file_task_run_request - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskRunRequest - end def task_run_request Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskRunRequest end def encoded_task_run_request Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::EncodedTaskRunRequest end + def file_task_run_request + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskRunRequest + end def docker_build_step Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::DockerBuildStep end - def file_task_step - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskStep - end def encoded_task_step Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::EncodedTaskStep end def docker_build_step_update_parameters Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::DockerBuildStepUpdateParameters end + def file_task_step + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskStep + end def file_task_step_update_parameters Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::FileTaskStepUpdateParameters end @@ -476,29 +473,32 @@ def architecture def variant Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Variant end + def task_status + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskStatus + end def provisioning_state Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::ProvisioningState end - def task_status - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TaskStatus + def source_control_type + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceControlType end def base_image_dependency_type Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::BaseImageDependencyType end - def source_control_type - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceControlType + def source_trigger_event + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceTriggerEvent end def token_type Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TokenType end - def source_trigger_event - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::SourceTriggerEvent + def base_image_trigger_type + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::BaseImageTriggerType end def trigger_status Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::TriggerStatus end - def base_image_trigger_type - Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::BaseImageTriggerType + def resource + Azure::ContainerRegistry::Mgmt::V2018_09_01::Models::Resource 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..5d00a58913 100644 --- a/azure_sdk/lib/latest/modules/containerservice_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerservice_profile_module.rb @@ -12,42 +12,42 @@ module Mgmt 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 + ContainerService = Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerService + ContainerServiceCustomProfile = Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceCustomProfile + TagsObject = Azure::ContainerService::Mgmt::V2018_03_31::Models::TagsObject + 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 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 + Resource = Azure::ContainerService::Mgmt::V2018_03_31::Models::Resource + 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 + OperationListResult = Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult + ContainerServiceNetworkProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceNetworkProfile 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 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 NetworkPlugin = Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPlugin NetworkPolicy = Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPolicy + 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 @@ -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 @@ -110,32 +107,62 @@ def container_service_agent_pool_profile def container_service_list_result Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceListResult end + def container_service_orchestrator_types + Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceOrchestratorTypes + end def container_service Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerService end - def container_service_orchestrator_types - Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceOrchestratorTypes + def container_service_custom_profile + Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceCustomProfile + end + def tags_object + Azure::ContainerService::Mgmt::V2018_03_31::Models::TagsObject + 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 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 resource + Azure::ContainerService::Mgmt::V2018_03_31::Models::Resource + end + 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 operation_list_result + Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult + end + def container_service_network_profile + Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceNetworkProfile end def managed_cluster_addon_profile Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterAddonProfile @@ -146,33 +173,15 @@ 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 end @@ -182,30 +191,21 @@ 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 - end def network_plugin Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPlugin end def network_policy Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPolicy 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 ea95ccaebe..2dfae4b7a4 100644 --- a/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb +++ b/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb @@ -16,8 +16,6 @@ module ContentModerator module Models ImageAdditionalInfoItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem - Image = Azure::CognitiveServices::ContentModerator::V1_0::Models::Image - Tag = Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag ImageIds = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageIds Frames = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frames TermsInList = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsInList @@ -26,19 +24,15 @@ module Models Classification = Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification TermsPaging = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsPaging Email = Azure::CognitiveServices::ContentModerator::V1_0::Models::Email + Face = Azure::CognitiveServices::ContentModerator::V1_0::Models::Face Terms = Azure::CognitiveServices::ContentModerator::V1_0::Models::Terms IPA = Azure::CognitiveServices::ContentModerator::V1_0::Models::IPA Review = Azure::CognitiveServices::ContentModerator::V1_0::Models::Review - Address = Azure::CognitiveServices::ContentModerator::V1_0::Models::Address JobExecutionReportDetails = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobExecutionReportDetails DetectedTerms = Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedTerms - Job = Azure::CognitiveServices::ContentModerator::V1_0::Models::Job - Face = Azure::CognitiveServices::ContentModerator::V1_0::Models::Face - JobListResult = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult Candidate = Azure::CognitiveServices::ContentModerator::V1_0::Models::Candidate JobId = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobId Evaluate = Azure::CognitiveServices::ContentModerator::V1_0::Models::Evaluate - Error = Azure::CognitiveServices::ContentModerator::V1_0::Models::Error MatchResponse = Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse APIError = Azure::CognitiveServices::ContentModerator::V1_0::Models::APIError ImageList = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList @@ -47,31 +41,37 @@ module Models TranscriptModerationBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItem Frame = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frame CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem - ClassificationCategory3 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory3 CreateVideoReviewsBodyItemVideoFramesItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemMetadataItem SSN = Azure::CognitiveServices::ContentModerator::V1_0::Models::SSN - CreateVideoReviewsBodyItemVideoFramesItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem + ClassificationCategory3 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory3 PII = Azure::CognitiveServices::ContentModerator::V1_0::Models::PII + JobListResult = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult + CreateVideoReviewsBodyItemVideoFramesItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem + CreateVideoReviewsBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem CreateVideoReviewsBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemMetadataItem FoundFaces = Azure::CognitiveServices::ContentModerator::V1_0::Models::FoundFaces - CreateVideoReviewsBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem + TermList = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList Match = Azure::CognitiveServices::ContentModerator::V1_0::Models::Match Body = Azure::CognitiveServices::ContentModerator::V1_0::Models::Body - TermList = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList - ImageUrl = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl - ClassificationCategory1 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory1 VideoFrameBodyItemReviewerResultTagsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem - Phone = Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone + ClassificationCategory1 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory1 VideoFrameBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem - OCR = Azure::CognitiveServices::ContentModerator::V1_0::Models::OCR + Phone = Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone VideoFrameBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItem + OCR = Azure::CognitiveServices::ContentModerator::V1_0::Models::OCR + Error = Azure::CognitiveServices::ContentModerator::V1_0::Models::Error KeyValuePair = Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair CreateReviewBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItemMetadataItem Screen = Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen CreateReviewBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItem - Status = Azure::CognitiveServices::ContentModerator::V1_0::Models::Status Content = Azure::CognitiveServices::ContentModerator::V1_0::Models::Content DetectedLanguage = Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedLanguage + Job = Azure::CognitiveServices::ContentModerator::V1_0::Models::Job + ImageUrl = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl + Tag = Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag + Address = Azure::CognitiveServices::ContentModerator::V1_0::Models::Address + Status = Azure::CognitiveServices::ContentModerator::V1_0::Models::Status + Image = Azure::CognitiveServices::ContentModerator::V1_0::Models::Image end class ContentModeratorDataClass @@ -113,12 +113,6 @@ class ModelClasses def image_additional_info_item Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem end - def image - Azure::CognitiveServices::ContentModerator::V1_0::Models::Image - end - def tag - Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag - end def image_ids Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageIds end @@ -143,6 +137,9 @@ def terms_paging def email Azure::CognitiveServices::ContentModerator::V1_0::Models::Email end + def face + Azure::CognitiveServices::ContentModerator::V1_0::Models::Face + end def terms Azure::CognitiveServices::ContentModerator::V1_0::Models::Terms end @@ -152,24 +149,12 @@ def ipa def review Azure::CognitiveServices::ContentModerator::V1_0::Models::Review end - def address - Azure::CognitiveServices::ContentModerator::V1_0::Models::Address - end def job_execution_report_details Azure::CognitiveServices::ContentModerator::V1_0::Models::JobExecutionReportDetails end def detected_terms Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedTerms end - def job - Azure::CognitiveServices::ContentModerator::V1_0::Models::Job - end - def face - Azure::CognitiveServices::ContentModerator::V1_0::Models::Face - end - def job_list_result - Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult - end def candidate Azure::CognitiveServices::ContentModerator::V1_0::Models::Candidate end @@ -179,9 +164,6 @@ def job_id def evaluate Azure::CognitiveServices::ContentModerator::V1_0::Models::Evaluate end - def error - Azure::CognitiveServices::ContentModerator::V1_0::Models::Error - end def match_response Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse end @@ -206,29 +188,35 @@ def frame def create_video_reviews_body_item_video_frames_item_reviewer_result_tags_item Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem end - def classification_category3 - Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory3 - end def create_video_reviews_body_item_video_frames_item_metadata_item Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemMetadataItem end def ssn Azure::CognitiveServices::ContentModerator::V1_0::Models::SSN end - def create_video_reviews_body_item_video_frames_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem + def classification_category3 + Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory3 end def pii Azure::CognitiveServices::ContentModerator::V1_0::Models::PII end + def job_list_result + Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult + end + def create_video_reviews_body_item_video_frames_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem + end + def create_video_reviews_body_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem + 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 + def term_list + Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList end def match Azure::CognitiveServices::ContentModerator::V1_0::Models::Match @@ -236,29 +224,26 @@ def match def body Azure::CognitiveServices::ContentModerator::V1_0::Models::Body end - def term_list - Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList - end - def image_url - Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl + def video_frame_body_item_reviewer_result_tags_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem end def classification_category1 Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory1 end - def video_frame_body_item_reviewer_result_tags_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem + def video_frame_body_item_metadata_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem end def phone Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone end - def video_frame_body_item_metadata_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem + def video_frame_body_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItem end def ocr Azure::CognitiveServices::ContentModerator::V1_0::Models::OCR end - def video_frame_body_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItem + def error + Azure::CognitiveServices::ContentModerator::V1_0::Models::Error end def key_value_pair Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair @@ -272,15 +257,30 @@ def screen def create_review_body_item Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItem end - def status - Azure::CognitiveServices::ContentModerator::V1_0::Models::Status - end def content Azure::CognitiveServices::ContentModerator::V1_0::Models::Content end def detected_language Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedLanguage end + def job + Azure::CognitiveServices::ContentModerator::V1_0::Models::Job + end + def image_url + Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl + 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 image + Azure::CognitiveServices::ContentModerator::V1_0::Models::Image + 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..65e2b5d80f 100644 --- a/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb @@ -7,9 +7,10 @@ module Azure::Profiles::Latest module CustomerInsights module Mgmt + Images = Azure::CustomerInsights::Mgmt::V2017_04_26::Images + Links = Azure::CustomerInsights::Mgmt::V2017_04_26::Links 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 @@ -18,22 +19,20 @@ module Mgmt ConnectorMappings = Azure::CustomerInsights::Mgmt::V2017_04_26::ConnectorMappings Kpi = Azure::CustomerInsights::Mgmt::V2017_04_26::Kpi WidgetTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::WidgetTypes + Profiles = Azure::CustomerInsights::Mgmt::V2017_04_26::Profiles 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 + RoleAssignments = Azure::CustomerInsights::Mgmt::V2017_04_26::RoleAssignments module Models 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 StrongId = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::StrongId + ProfileListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult 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,23 +45,19 @@ 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 + PredictionSystemGeneratedEntities = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionSystemGeneratedEntities RelationshipTypeFieldMapping = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipTypeFieldMapping PredictionListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionListResult - RelationshipLinkFieldMapping = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipLinkFieldMapping LinkListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkListResult HubListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::HubListResult - PredictionModelStatus = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelStatus + RelationshipLinkFieldMapping = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipLinkFieldMapping PropertyDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PropertyDefinition RelationshipListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipListResult SalesforceConnectorProperties = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::SalesforceConnectorProperties @@ -72,29 +67,30 @@ module Models ConnectorMappingProperties = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingProperties CanonicalProfileDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalProfileDefinition KpiAlias = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiAlias + PredictionModelStatus = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelStatus 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 ProfileEnumValidValuesFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileEnumValidValuesFormat - AssignmentPrincipal = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AssignmentPrincipal + ProxyResource = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProxyResource CrmConnectorEntities = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CrmConnectorEntities - ResourceSetDescription = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ResourceSetDescription + AssignmentPrincipal = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AssignmentPrincipal KpiGroupByMetadata = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiGroupByMetadata - PredictionDistributionDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionDistributionDefinition + ResourceSetDescription = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ResourceSetDescription 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 + PredictionDistributionDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionDistributionDefinition PredictionDistributionDefinitionDistributionsItem = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionDistributionDefinitionDistributionsItem - KpiDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiDefinition + SalesforceDiscoverSetting = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::SalesforceDiscoverSetting RoleListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleListResult - ConnectorMappingStructure = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStructure + KpiDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiDefinition GetImageUploadUrlInput = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::GetImageUploadUrlInput - ParticipantProfilePropertyReference = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ParticipantProfilePropertyReference + ConnectorMappingStructure = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStructure ImageDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ImageDefinition - Hub = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Hub + RoleAssignmentListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentListResult EntityTypeDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityTypeDefinition + Hub = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Hub + ParticipantProfilePropertyReference = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ParticipantProfilePropertyReference 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 @@ -102,38 +98,42 @@ module Models 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 + Resource = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Resource 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 + LinkResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkResourceFormat 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 + ViewResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ViewResourceFormat PredictionResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat + OperationDisplay = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationDisplay + RoleResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleResourceFormat + Operation = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Operation 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 + OperationListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationListResult 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 + DataSourceType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::DataSourceType 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 + ConnectorStates = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorStates 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 + ConnectorMappingStates = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStates 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 + LinkTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkTypes PredictionModelLifeCycle = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelLifeCycle + CanonicalPropertyValueType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalPropertyValueType + Status = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Status 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, :links, :operations, :hubs, :interactions, :relationships, :relationship_links, :authorization_policies, :connectors, :connector_mappings, :kpi, :widget_types, :profiles, :views, :roles, :predictions, :role_assignments, :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,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @images = @client_0.images + @links = @client_0.links @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 @@ -154,12 +155,11 @@ def initialize(configurable, base_url=nil, options=nil) @connector_mappings = @client_0.connector_mappings @kpi = @client_0.kpi @widget_types = @client_0.widget_types + @profiles = @client_0.profiles @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 + @role_assignments = @client_0.role_assignments @model_classes = ModelClasses.new end @@ -190,18 +190,15 @@ def participant def strong_id Azure::CustomerInsights::Mgmt::V2017_04_26::Models::StrongId end + def profile_list_result + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult + end def metadata_definition_base Azure::CustomerInsights::Mgmt::V2017_04_26::Models::MetadataDefinitionBase end - def prediction_system_generated_entities - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionSystemGeneratedEntities - end 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 +235,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,44 +244,35 @@ 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 def authorization_policy_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AuthorizationPolicyListResult end + def prediction_system_generated_entities + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionSystemGeneratedEntities + end def relationship_type_field_mapping Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipTypeFieldMapping end def prediction_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionListResult end - def relationship_link_field_mapping - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipLinkFieldMapping - end def link_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkListResult end def hub_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::HubListResult end - def prediction_model_status - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelStatus + def relationship_link_field_mapping + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipLinkFieldMapping end def property_definition Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PropertyDefinition @@ -316,12 +301,12 @@ def canonical_profile_definition def kpi_alias Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiAlias end + def prediction_model_status + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelStatus + end 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 @@ -334,57 +319,60 @@ def widget_type_list_result def profile_enum_valid_values_format Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileEnumValidValuesFormat end - def assignment_principal - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AssignmentPrincipal + def proxy_resource + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProxyResource end def crm_connector_entities Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CrmConnectorEntities end - def resource_set_description - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ResourceSetDescription + def assignment_principal + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AssignmentPrincipal end def kpi_group_by_metadata Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiGroupByMetadata end - def prediction_distribution_definition - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionDistributionDefinition + def resource_set_description + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ResourceSetDescription end 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 + def prediction_distribution_definition + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionDistributionDefinition end def prediction_distribution_definition_distributions_item Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionDistributionDefinitionDistributionsItem end - def kpi_definition - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiDefinition + def salesforce_discover_setting + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::SalesforceDiscoverSetting end def role_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleListResult end - def connector_mapping_structure - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStructure + def kpi_definition + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiDefinition end def get_image_upload_url_input Azure::CustomerInsights::Mgmt::V2017_04_26::Models::GetImageUploadUrlInput end - def participant_profile_property_reference - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ParticipantProfilePropertyReference + def connector_mapping_structure + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStructure end def image_definition Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ImageDefinition end - def hub - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Hub + def role_assignment_list_result + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentListResult end def entity_type_definition Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityTypeDefinition end + def hub + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Hub + end + def participant_profile_property_reference + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ParticipantProfilePropertyReference + end def profile_resource_format Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileResourceFormat end @@ -406,8 +394,8 @@ def connector_mapping_resource_format 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 + def resource + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Resource end def relationship_resource_format Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipResourceFormat @@ -415,8 +403,8 @@ def relationship_resource_format 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 + def link_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkResourceFormat end def widget_type_resource_format Azure::CustomerInsights::Mgmt::V2017_04_26::Models::WidgetTypeResourceFormat @@ -424,20 +412,26 @@ def widget_type_resource_format 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 + def view_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ViewResourceFormat end def prediction_resource_format Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat end + def operation_display + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationDisplay + end + def role_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleResourceFormat + end + def operation + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Operation + 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 + def operation_list_result + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationListResult end def provisioning_states Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProvisioningStates @@ -448,8 +442,8 @@ def permission_types def connector_types Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorTypes end - def connector_states - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorStates + def data_source_type + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::DataSourceType end def error_management_types Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ErrorManagementTypes @@ -460,8 +454,8 @@ def frequency_types 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 + def connector_states + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorStates end def calculation_window_types Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CalculationWindowTypes @@ -472,8 +466,8 @@ def kpi_functions def entity_type Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityType end - def link_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkTypes + def connector_mapping_states + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStates end def instance_operation_type Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InstanceOperationType @@ -484,12 +478,18 @@ def cardinality_types 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 + def link_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkTypes end def prediction_model_life_cycle Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelLifeCycle end + def canonical_property_value_type + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalPropertyValueType + end + def status + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Status + end end end end diff --git a/azure_sdk/lib/latest/modules/customimagesearch_profile_module.rb b/azure_sdk/lib/latest/modules/customimagesearch_profile_module.rb index 32b749c9d6..934116afaf 100644 --- a/azure_sdk/lib/latest/modules/customimagesearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customimagesearch_profile_module.rb @@ -10,29 +10,29 @@ module Customimagesearch module Models Query = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Query - Error = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Error - ResponseBase = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ResponseBase ImageObject = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageObject - Images = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Images - Response = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Response - Answer = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Answer - SearchResultsAnswer = Azure::CognitiveServices::Customimagesearch::V1_0::Models::SearchResultsAnswer MediaObject = Azure::CognitiveServices::Customimagesearch::V1_0::Models::MediaObject - Thing = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Thing - CreativeWork = Azure::CognitiveServices::Customimagesearch::V1_0::Models::CreativeWork - Identifiable = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Identifiable - ErrorResponse = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorResponse WebPage = Azure::CognitiveServices::Customimagesearch::V1_0::Models::WebPage - ErrorCode = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorCode ErrorSubCode = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorSubCode ImageAspect = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageAspect - ImageColor = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageColor + ErrorResponse = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorResponse Freshness = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Freshness ImageContent = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageContent ImageType = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageType ImageLicense = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageLicense - SafeSearch = Azure::CognitiveServices::Customimagesearch::V1_0::Models::SafeSearch ImageSize = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageSize + ImageColor = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageColor + Response = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Response + Images = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Images + ResponseBase = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ResponseBase + Answer = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Answer + SearchResultsAnswer = Azure::CognitiveServices::Customimagesearch::V1_0::Models::SearchResultsAnswer + Thing = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Thing + CreativeWork = Azure::CognitiveServices::Customimagesearch::V1_0::Models::CreativeWork + Identifiable = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Identifiable + ErrorCode = Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorCode + Error = Azure::CognitiveServices::Customimagesearch::V1_0::Models::Error + SafeSearch = Azure::CognitiveServices::Customimagesearch::V1_0::Models::SafeSearch end class CustomimagesearchDataClass @@ -68,56 +68,23 @@ class ModelClasses def query Azure::CognitiveServices::Customimagesearch::V1_0::Models::Query end - def error - Azure::CognitiveServices::Customimagesearch::V1_0::Models::Error - end - def response_base - Azure::CognitiveServices::Customimagesearch::V1_0::Models::ResponseBase - end def image_object Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageObject end - def images - Azure::CognitiveServices::Customimagesearch::V1_0::Models::Images - end - def response - Azure::CognitiveServices::Customimagesearch::V1_0::Models::Response - end - def answer - Azure::CognitiveServices::Customimagesearch::V1_0::Models::Answer - end - def search_results_answer - Azure::CognitiveServices::Customimagesearch::V1_0::Models::SearchResultsAnswer - end def media_object Azure::CognitiveServices::Customimagesearch::V1_0::Models::MediaObject end - def thing - Azure::CognitiveServices::Customimagesearch::V1_0::Models::Thing - end - def creative_work - Azure::CognitiveServices::Customimagesearch::V1_0::Models::CreativeWork - end - def identifiable - Azure::CognitiveServices::Customimagesearch::V1_0::Models::Identifiable - end - def error_response - Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorResponse - end def web_page Azure::CognitiveServices::Customimagesearch::V1_0::Models::WebPage end - def error_code - Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorCode - end def error_sub_code Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorSubCode end def image_aspect Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageAspect end - def image_color - Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageColor + def error_response + Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorResponse end def freshness Azure::CognitiveServices::Customimagesearch::V1_0::Models::Freshness @@ -131,12 +98,45 @@ def image_type def image_license Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageLicense end - def safe_search - Azure::CognitiveServices::Customimagesearch::V1_0::Models::SafeSearch - end def image_size Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageSize end + def image_color + Azure::CognitiveServices::Customimagesearch::V1_0::Models::ImageColor + end + def response + Azure::CognitiveServices::Customimagesearch::V1_0::Models::Response + end + def images + Azure::CognitiveServices::Customimagesearch::V1_0::Models::Images + end + def response_base + Azure::CognitiveServices::Customimagesearch::V1_0::Models::ResponseBase + end + def answer + Azure::CognitiveServices::Customimagesearch::V1_0::Models::Answer + end + def search_results_answer + Azure::CognitiveServices::Customimagesearch::V1_0::Models::SearchResultsAnswer + end + def thing + Azure::CognitiveServices::Customimagesearch::V1_0::Models::Thing + end + def creative_work + Azure::CognitiveServices::Customimagesearch::V1_0::Models::CreativeWork + end + def identifiable + Azure::CognitiveServices::Customimagesearch::V1_0::Models::Identifiable + end + def error_code + Azure::CognitiveServices::Customimagesearch::V1_0::Models::ErrorCode + end + def error + Azure::CognitiveServices::Customimagesearch::V1_0::Models::Error + end + def safe_search + Azure::CognitiveServices::Customimagesearch::V1_0::Models::SafeSearch + 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 8ae22a3efb..ae8a6dc2cd 100644 --- a/azure_sdk/lib/latest/modules/customsearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customsearch_profile_module.rb @@ -9,25 +9,25 @@ module CustomSearch CustomInstance = Azure::CognitiveServices::CustomSearch::V1_0::CustomInstance 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 + ErrorSubCode = Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorSubCode + SafeSearch = Azure::CognitiveServices::CustomSearch::V1_0::Models::SafeSearch + TextFormat = Azure::CognitiveServices::CustomSearch::V1_0::Models::TextFormat + Query = Azure::CognitiveServices::CustomSearch::V1_0::Models::Query + QueryContext = Azure::CognitiveServices::CustomSearch::V1_0::Models::QueryContext + ResponseBase = Azure::CognitiveServices::CustomSearch::V1_0::Models::ResponseBase + WebPage = Azure::CognitiveServices::CustomSearch::V1_0::Models::WebPage 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 + Identifiable = Azure::CognitiveServices::CustomSearch::V1_0::Models::Identifiable ErrorCode = Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorCode - ErrorSubCode = Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorSubCode - SafeSearch = Azure::CognitiveServices::CustomSearch::V1_0::Models::SafeSearch - TextFormat = Azure::CognitiveServices::CustomSearch::V1_0::Models::TextFormat + Error = Azure::CognitiveServices::CustomSearch::V1_0::Models::Error + Response = Azure::CognitiveServices::CustomSearch::V1_0::Models::Response + WebMetaTag = Azure::CognitiveServices::CustomSearch::V1_0::Models::WebMetaTag end class CustomSearchDataClass @@ -60,39 +60,36 @@ def method_missing(method, *args) end class ModelClasses - def response_base - Azure::CognitiveServices::CustomSearch::V1_0::Models::ResponseBase + def web_web_answer + Azure::CognitiveServices::CustomSearch::V1_0::Models::WebWebAnswer end - def query_context - Azure::CognitiveServices::CustomSearch::V1_0::Models::QueryContext + def search_response + Azure::CognitiveServices::CustomSearch::V1_0::Models::SearchResponse + end + def error_sub_code + Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorSubCode + end + def safe_search + Azure::CognitiveServices::CustomSearch::V1_0::Models::SafeSearch + end + def text_format + Azure::CognitiveServices::CustomSearch::V1_0::Models::TextFormat end def query Azure::CognitiveServices::CustomSearch::V1_0::Models::Query end - def error - Azure::CognitiveServices::CustomSearch::V1_0::Models::Error + def query_context + Azure::CognitiveServices::CustomSearch::V1_0::Models::QueryContext end - def web_meta_tag - Azure::CognitiveServices::CustomSearch::V1_0::Models::WebMetaTag + def response_base + Azure::CognitiveServices::CustomSearch::V1_0::Models::ResponseBase end def web_page Azure::CognitiveServices::CustomSearch::V1_0::Models::WebPage end - def web_web_answer - Azure::CognitiveServices::CustomSearch::V1_0::Models::WebWebAnswer - end - def search_response - Azure::CognitiveServices::CustomSearch::V1_0::Models::SearchResponse - end def search_results_answer Azure::CognitiveServices::CustomSearch::V1_0::Models::SearchResultsAnswer end - 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 @@ -105,17 +102,20 @@ def thing def creative_work Azure::CognitiveServices::CustomSearch::V1_0::Models::CreativeWork end + def identifiable + Azure::CognitiveServices::CustomSearch::V1_0::Models::Identifiable + end def error_code Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorCode end - def error_sub_code - Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorSubCode + def error + Azure::CognitiveServices::CustomSearch::V1_0::Models::Error end - def safe_search - Azure::CognitiveServices::CustomSearch::V1_0::Models::SafeSearch + def response + Azure::CognitiveServices::CustomSearch::V1_0::Models::Response end - def text_format - Azure::CognitiveServices::CustomSearch::V1_0::Models::TextFormat + def web_meta_tag + Azure::CognitiveServices::CustomSearch::V1_0::Models::WebMetaTag end end end diff --git a/azure_sdk/lib/latest/modules/customvisionprediction_profile_module.rb b/azure_sdk/lib/latest/modules/customvisionprediction_profile_module.rb index a6e4181cc6..b8fd580264 100644 --- a/azure_sdk/lib/latest/modules/customvisionprediction_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customvisionprediction_profile_module.rb @@ -9,8 +9,8 @@ module Customvisionprediction module Models Prediction = Azure::CognitiveServices::Customvisionprediction::V2_0::Models::Prediction - ImageUrl = Azure::CognitiveServices::Customvisionprediction::V2_0::Models::ImageUrl ImagePrediction = Azure::CognitiveServices::Customvisionprediction::V2_0::Models::ImagePrediction + ImageUrl = Azure::CognitiveServices::Customvisionprediction::V2_0::Models::ImageUrl BoundingBox = Azure::CognitiveServices::Customvisionprediction::V2_0::Models::BoundingBox end @@ -46,12 +46,12 @@ class ModelClasses def prediction Azure::CognitiveServices::Customvisionprediction::V2_0::Models::Prediction end - def image_url - Azure::CognitiveServices::Customvisionprediction::V2_0::Models::ImageUrl - end def image_prediction Azure::CognitiveServices::Customvisionprediction::V2_0::Models::ImagePrediction end + def image_url + Azure::CognitiveServices::Customvisionprediction::V2_0::Models::ImageUrl + end def bounding_box Azure::CognitiveServices::Customvisionprediction::V2_0::Models::BoundingBox end diff --git a/azure_sdk/lib/latest/modules/customvisiontraining_profile_module.rb b/azure_sdk/lib/latest/modules/customvisiontraining_profile_module.rb index bd1531689f..7c33c822d4 100644 --- a/azure_sdk/lib/latest/modules/customvisiontraining_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customvisiontraining_profile_module.rb @@ -8,52 +8,52 @@ module Azure::Profiles::Latest module Customvisiontraining module Models - ImageIdCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateBatch + ImageFileCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateBatch + ProjectSettings = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ProjectSettings + ImageTagCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateEntry + ImageRegion = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegion + Iteration = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Iteration + ImageUrlCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateBatch + Export = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Export + ImageRegionCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateBatch + ImageCreateStatus = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateStatus + Classifier = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Classifier + ExportPlatformModel = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportPlatformModel + ImageRegionCreateSummary = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateSummary + IterationPerformance = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::IterationPerformance + ExportFlavorModel = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportFlavorModel + ExportStatusModel = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportStatusModel + ImageTagCreateSummary = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateSummary + TagType = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagType + Region = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Region Domain = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Domain + OrderBy = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::OrderBy + ImageTag = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTag + ImageUrl = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrl + Tag = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Tag + ImageIdCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateBatch BoundingBox = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::BoundingBox ImageTagCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateBatch RegionProposal = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::RegionProposal ImageRegionCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateEntry ImageRegionProposal = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionProposal ImageRegionCreateResult = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateResult - ImageUrl = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrl - ImageTag = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTag Prediction = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Prediction - Image = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Image ImagePrediction = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImagePrediction ImageCreateSummary = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateSummary + Image = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Image PredictionQueryTag = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryTag - ImageFileCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateEntry PredictionQueryToken = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryToken ImageUrlCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateEntry + ImageFileCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateEntry StoredImagePrediction = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::StoredImagePrediction - ImageIdCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateEntry PredictionQueryResult = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryResult - ImageTagCreateSummary = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateSummary + Project = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Project + ImageIdCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateEntry TagPerformance = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagPerformance - ImageRegionCreateSummary = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateSummary - IterationPerformance = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::IterationPerformance + DomainType = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::DomainType ImageCreateResult = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateResult ImagePerformance = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImagePerformance - ImageFileCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateBatch - ProjectSettings = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ProjectSettings - ImageTagCreateEntry = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateEntry - Project = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Project - ImageRegion = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegion - Iteration = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Iteration - ImageUrlCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateBatch - Export = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Export - Region = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Region - Tag = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Tag - ImageRegionCreateBatch = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateBatch - DomainType = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::DomainType - ImageCreateStatus = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateStatus - OrderBy = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::OrderBy - Classifier = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Classifier - ExportPlatformModel = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportPlatformModel - ExportStatusModel = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportStatusModel - ExportFlavorModel = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportFlavorModel - TagType = Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagType end class CustomvisiontrainingDataClass @@ -85,12 +85,78 @@ def method_missing(method, *args) end class ModelClasses - def image_id_create_batch - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateBatch + def image_file_create_batch + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateBatch + end + def project_settings + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ProjectSettings + end + def image_tag_create_entry + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateEntry + end + def image_region + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegion + end + def iteration + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Iteration + end + def image_url_create_batch + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateBatch + end + def export + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Export + end + def image_region_create_batch + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateBatch + end + def image_create_status + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateStatus + end + def classifier + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Classifier + end + def export_platform_model + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportPlatformModel + end + def image_region_create_summary + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateSummary + end + def iteration_performance + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::IterationPerformance + end + def export_flavor_model + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportFlavorModel + end + def export_status_model + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportStatusModel + end + def image_tag_create_summary + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateSummary + end + def tag_type + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagType + end + def region + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Region end def domain Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Domain end + def order_by + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::OrderBy + end + def image_tag + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTag + end + def image_url + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrl + end + def tag + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Tag + end + def image_id_create_batch + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateBatch + end def bounding_box Azure::CognitiveServices::Customvisiontraining::V2_2::Models::BoundingBox end @@ -109,56 +175,47 @@ def image_region_proposal def image_region_create_result Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateResult end - def image_url - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrl - end - def image_tag - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTag - end def prediction Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Prediction end - def image - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Image - end def image_prediction Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImagePrediction end def image_create_summary Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateSummary end + def image + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Image + end def prediction_query_tag Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryTag end - def image_file_create_entry - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateEntry - end def prediction_query_token Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryToken end def image_url_create_entry Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateEntry end + def image_file_create_entry + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateEntry + end def stored_image_prediction Azure::CognitiveServices::Customvisiontraining::V2_2::Models::StoredImagePrediction end - def image_id_create_entry - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateEntry - end def prediction_query_result Azure::CognitiveServices::Customvisiontraining::V2_2::Models::PredictionQueryResult end - def image_tag_create_summary - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateSummary + def project + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Project + end + def image_id_create_entry + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageIdCreateEntry end def tag_performance Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagPerformance end - def image_region_create_summary - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateSummary - end - def iteration_performance - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::IterationPerformance + def domain_type + Azure::CognitiveServices::Customvisiontraining::V2_2::Models::DomainType end def image_create_result Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateResult @@ -166,63 +223,6 @@ def image_create_result def image_performance Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImagePerformance end - def image_file_create_batch - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageFileCreateBatch - end - def project_settings - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ProjectSettings - end - def image_tag_create_entry - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageTagCreateEntry - end - def project - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Project - end - def image_region - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegion - end - def iteration - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Iteration - end - def image_url_create_batch - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageUrlCreateBatch - end - def export - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Export - end - def region - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Region - end - def tag - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Tag - end - def image_region_create_batch - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageRegionCreateBatch - end - def domain_type - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::DomainType - end - def image_create_status - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ImageCreateStatus - end - def order_by - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::OrderBy - end - def classifier - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Classifier - end - def export_platform_model - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportPlatformModel - end - def export_status_model - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportStatusModel - end - def export_flavor_model - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::ExportFlavorModel - end - def tag_type - Azure::CognitiveServices::Customvisiontraining::V2_2::Models::TagType - 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..68484ecc93 100644 --- a/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb @@ -9,20 +9,18 @@ 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 + StorageAccounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::StorageAccounts FirewallRules = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::FirewallRules - Operations = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Operations Locations = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Locations + Operations = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Operations module Models + CheckNameAvailabilityParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters + SubscriptionState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubscriptionState 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 @@ -33,41 +31,43 @@ module Models 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 StorageAccountInformationListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInformationListResult UpdateStorageAccountWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountWithAccountParameters SasTokenInformationListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInformationListResult + Resource = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Resource 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 DataLakeAnalyticsAccountListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListResult AddDataLakeStoreParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddDataLakeStoreParameters FirewallRuleListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallRuleListResult - AddStorageAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountParameters + OperationDisplay = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationDisplay DataLakeStoreAccountInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInformation - StorageAccountInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInformation + Operation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Operation ComputePolicy = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicy - FirewallRule = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallRule - DataLakeAnalyticsAccount = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount + OperationListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationListResult + SubResource = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubResource DataLakeAnalyticsAccountBasic = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountBasic - StorageContainer = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainer - AADObjectType = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AADObjectType + StorageAccountInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInformation FirewallState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallState - FirewallAllowAzureIpsState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState + AddStorageAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountParameters + DataLakeAnalyticsAccount = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount TierType = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::TierType + StorageContainer = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainer + FirewallRule = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallRule DataLakeAnalyticsAccountStatus = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountStatus - DataLakeAnalyticsAccountState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountState + FirewallAllowAzureIpsState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState OperationOrigin = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationOrigin - SubscriptionState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubscriptionState + AADObjectType = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AADObjectType + DataLakeAnalyticsAccountState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountState 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 :accounts, :data_lake_store_accounts, :compute_policies, :storage_accounts, :firewall_rules, :locations, :operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -79,11 +79,11 @@ def initialize(configurable, base_url=nil, options=nil) 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 + @storage_accounts = @client_0.storage_accounts @firewall_rules = @client_0.firewall_rules - @operations = @client_0.operations @locations = @client_0.locations + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -102,27 +102,21 @@ def method_missing(method, *args) end class ModelClasses + def check_name_availability_parameters + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters + end + def subscription_state + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubscriptionState + end 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 @@ -153,9 +147,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 @@ -174,12 +165,12 @@ def update_storage_account_with_account_parameters def sas_token_information_list_result Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInformationListResult end + def resource + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Resource + end 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 @@ -198,53 +189,62 @@ def add_data_lake_store_parameters def firewall_rule_list_result Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallRuleListResult end - def add_storage_account_parameters - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountParameters + def operation_display + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationDisplay end def data_lake_store_account_information Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInformation end - def storage_account_information - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInformation + def operation + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Operation end def compute_policy Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicy end - def firewall_rule - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallRule + def operation_list_result + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationListResult end - def data_lake_analytics_account - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount + def sub_resource + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubResource end def data_lake_analytics_account_basic Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountBasic end - def storage_container - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainer - end - def aadobject_type - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AADObjectType + def storage_account_information + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInformation end def firewall_state Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallState end - def firewall_allow_azure_ips_state - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState + def add_storage_account_parameters + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountParameters + end + def data_lake_analytics_account + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount end def tier_type Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::TierType end + def storage_container + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainer + end + def firewall_rule + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallRule + end def data_lake_analytics_account_status Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountStatus end - def data_lake_analytics_account_state - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountState + def firewall_allow_azure_ips_state + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState end def operation_origin Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationOrigin end - def subscription_state - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubscriptionState + def aadobject_type + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AADObjectType + end + def data_lake_analytics_account_state + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountState 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..2d3c3d4655 100644 --- a/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb +++ b/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb @@ -8,16 +8,13 @@ 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 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 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 +23,49 @@ 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 + CheckNameAvailabilityParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters UpdateTrustedIdProviderWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateTrustedIdProviderWithAccountParameters - OperationListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationListResult 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 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 + DataLakeStoreAccountListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountListResult 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 TrustedIdProviderState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TrustedIdProviderState - TierType = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TierType + EncryptionState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionState DataLakeStoreAccountStatus = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountStatus 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 + VirtualNetworkRule = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::VirtualNetworkRule + 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 + CreateFirewallRuleWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateFirewallRuleWithAccountParameters + CreateOrUpdateFirewallRuleParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateOrUpdateFirewallRuleParameters + Resource = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Resource + UpdateFirewallRuleWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateFirewallRuleWithAccountParameters + FirewallRuleListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRuleListResult + OperationDisplay = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationDisplay + Operation = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Operation + FirewallRule = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRule + OperationListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationListResult + SubResource = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubResource + 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 + OperationOrigin = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationOrigin end class DataLakeStoreManagementClass - attr_reader :accounts, :firewall_rules, :virtual_network_rules, :trusted_id_providers, :operations, :locations, :configurable, :base_url, :options, :model_classes + attr_reader :accounts, :operations, :firewall_rules, :locations, :virtual_network_rules, :trusted_id_providers, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -76,11 +76,11 @@ def initialize(configurable, base_url=nil, options=nil) 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 @model_classes = ModelClasses.new end @@ -99,15 +99,6 @@ 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 encryption_identity Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionIdentity end @@ -132,9 +123,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,60 +132,27 @@ 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 def virtual_network_rule_list_result Azure::DataLakeStore::Mgmt::V2016_11_01::Models::VirtualNetworkRuleListResult end + def check_name_availability_parameters + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters + end 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 - end def update_data_lake_store_account_parameters Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateDataLakeStoreAccountParameters end - 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 @@ -210,23 +165,17 @@ def data_lake_store_account_basic def encryption_config_type Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionConfigType end - def encryption_state - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionState + def data_lake_store_account_list_result + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountListResult 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 - 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 + def encryption_state + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionState end def data_lake_store_account_status Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountStatus @@ -234,12 +183,63 @@ def data_lake_store_account_status 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 - end def subscription_state Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubscriptionState end + def virtual_network_rule + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::VirtualNetworkRule + end + def capability_information + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CapabilityInformation + end + 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 + 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 resource + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Resource + 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 operation_display + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationDisplay + end + def operation + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Operation + end + def firewall_rule + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRule + end + def operation_list_result + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationListResult + end + def sub_resource + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubResource + 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 operation_origin + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationOrigin + end end end end diff --git a/azure_sdk/lib/latest/modules/datamigration_profile_module.rb b/azure_sdk/lib/latest/modules/datamigration_profile_module.rb index 09d994aa89..a3f97a0e90 100644 --- a/azure_sdk/lib/latest/modules/datamigration_profile_module.rb +++ b/azure_sdk/lib/latest/modules/datamigration_profile_module.rb @@ -7,18 +7,16 @@ module Azure::Profiles::Latest module DataMigration module Mgmt + Usages = Azure::DataMigration::Mgmt::V2018_07_15_preview::Usages ResourceSkus = Azure::DataMigration::Mgmt::V2018_07_15_preview::ResourceSkus Services = Azure::DataMigration::Mgmt::V2018_07_15_preview::Services - Tasks = Azure::DataMigration::Mgmt::V2018_07_15_preview::Tasks Projects = Azure::DataMigration::Mgmt::V2018_07_15_preview::Projects - Usages = Azure::DataMigration::Mgmt::V2018_07_15_preview::Usages - Operations = Azure::DataMigration::Mgmt::V2018_07_15_preview::Operations Files = Azure::DataMigration::Mgmt::V2018_07_15_preview::Files + Operations = Azure::DataMigration::Mgmt::V2018_07_15_preview::Operations + Tasks = Azure::DataMigration::Mgmt::V2018_07_15_preview::Tasks module Models MigrateSqlServerSqlMITaskOutput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlMITaskOutput - ResourceSkuRestrictions = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictions - Resource = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Resource DataMigrationServiceStatusResponse = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DataMigrationServiceStatusResponse ServiceSkuList = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ServiceSkuList ReportableException = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ReportableException @@ -36,7 +34,6 @@ module Models DataMigrationError = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DataMigrationError TaskList = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::TaskList NonSqlMigrationTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::NonSqlMigrationTaskInput - ValidationError = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ValidationError NonSqlDataMigrationTable = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::NonSqlDataMigrationTable WaitStatistics = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::WaitStatistics MongoDbProgress = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbProgress @@ -69,9 +66,7 @@ module Models MigrationReportResult = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrationReportResult ServerProperties = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ServerProperties QuotaList = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::QuotaList - ResourceSkusResult = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkusResult Quota = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Quota - ResourceSkuCapacity = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapacity MigrateSqlServerSqlDbTaskOutput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbTaskOutput MigrateMySqlAzureDbForMySqlSyncTaskOutput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateMySqlAzureDbForMySqlSyncTaskOutput MigrateSqlServerSqlDbDatabaseInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbDatabaseInput @@ -90,7 +85,6 @@ module Models GetProjectDetailsNonSqlTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::GetProjectDetailsNonSqlTaskInput StartMigrationScenarioServerRoleResult = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::StartMigrationScenarioServerRoleResult MongoDbShardKeyField = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbShardKeyField - ApiError = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ApiError MongoDbMigrationSettings = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbMigrationSettings DatabaseInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseInfo BlobShare = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::BlobShare @@ -103,7 +97,6 @@ module Models ConnectToTargetAzureDbForMySqlTaskOutput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToTargetAzureDbForMySqlTaskOutput MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput ConnectToTargetAzureDbForMySqlTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToTargetAzureDbForMySqlTaskInput - ResourceSku = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSku MongoDbClusterInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbClusterInfo MigrateMySqlAzureDbForMySqlSyncDatabaseInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateMySqlAzureDbForMySqlSyncDatabaseInput ConnectToTargetSqlMITaskOutput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToTargetSqlMITaskOutput @@ -121,7 +114,6 @@ module Models MongoDbShardKeyInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbShardKeyInfo ConnectToSourceMySqlTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToSourceMySqlTaskInput GetUserTablesSqlTaskOutput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::GetUserTablesSqlTaskOutput - ResourceSkuCapabilities = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapabilities GetUserTablesSqlTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::GetUserTablesSqlTaskInput ConnectionInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectionInfo ConnectToSourceSqlServerTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToSourceSqlServerTaskInput @@ -135,9 +127,7 @@ module Models ConnectToTargetSqlDbTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToTargetSqlDbTaskInput DataMigrationProjectMetadata = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DataMigrationProjectMetadata DatabaseFileInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseFileInfo - ResourceSkuCosts = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCosts MigrationEligibilityInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrationEligibilityInfo - TrackedResource = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::TrackedResource ProjectFile = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectFile MigrateSyncCompleteCommandProperties = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSyncCompleteCommandProperties PostgreSqlConnectionInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::PostgreSqlConnectionInfo @@ -166,6 +156,7 @@ module Models MigrateSqlServerSqlDbSyncTaskOutputDatabaseError = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbSyncTaskOutputDatabaseError MigrateSqlServerSqlDbSyncTaskOutputError = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbSyncTaskOutputError MigrateSqlServerSqlDbSyncTaskOutputTableLevel = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbSyncTaskOutputTableLevel + ValidationError = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ValidationError MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel MigrateSqlServerSqlDbSyncTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbSyncTaskInput @@ -197,67 +188,76 @@ module Models ConnectToSourceSqlServerTaskOutputTaskLevel = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToSourceSqlServerTaskOutputTaskLevel ConnectToSourceSqlServerSyncTaskProperties = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToSourceSqlServerSyncTaskProperties ConnectToSourceSqlServerTaskProperties = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToSourceSqlServerTaskProperties - MongoDbCollectionInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCollectionInfo + ResourceSkuCapacity = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapacity MongoDbDatabaseInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbDatabaseInfo - ConnectToMongoDbTaskProperties = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToMongoDbTaskProperties + ResourceSkuCosts = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCosts ProjectTask = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectTask + ResourceSkuCapabilities = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapabilities + MongoDbCollectionInfo = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCollectionInfo + ResourceSkuRestrictions = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictions + ConnectToMongoDbTaskProperties = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToMongoDbTaskProperties + ResourceSku = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSku DataMigrationService = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DataMigrationService - Project = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Project + ResourceSkusResult = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkusResult ConnectToSourceMySqlTaskProperties = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToSourceMySqlTaskProperties MigrateSchemaSqlServerSqlDbTaskInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskInput MigrateSchemaSqlServerSqlDbTaskProperties = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskProperties - MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel + Project = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Project MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel MigrateSchemaSqlServerSqlDbTaskOutputError = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskOutputError MigrateSchemaSqlTaskOutputError = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlTaskOutputError - MongoDbCancelCommand = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCancelCommand + MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel MongoDbFinishCommandInput = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbFinishCommandInput MongoDbFinishCommand = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbFinishCommand MongoDbRestartCommand = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbRestartCommand - CommandState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::CommandState + MongoDbCancelCommand = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCancelCommand SqlSourcePlatform = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::SqlSourcePlatform AuthenticationType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::AuthenticationType MongoDbErrorType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbErrorType - MongoDbMigrationState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbMigrationState + CommandState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::CommandState MongoDbShardKeyOrder = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbShardKeyOrder MongoDbReplication = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbReplication BackupType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::BackupType - BackupMode = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::BackupMode + MongoDbMigrationState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbMigrationState SyncTableMigrationState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::SyncTableMigrationState SyncDatabaseMigrationReportingState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::SyncDatabaseMigrationReportingState ValidationStatus = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ValidationStatus + BackupMode = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::BackupMode + TrackedResource = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::TrackedResource Severity = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Severity + DatabaseMigrationStage = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseMigrationStage UpdateActionType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::UpdateActionType ObjectType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ObjectType MigrationState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrationState - DatabaseMigrationStage = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseMigrationStage + DatabaseState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseState MigrationStatus = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrationStatus LoginMigrationStage = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::LoginMigrationStage LoginType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::LoginType - DatabaseState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseState + MongoDbClusterType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbClusterType DatabaseCompatLevel = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseCompatLevel DatabaseFileType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseFileType ServerLevelPermissionsGroup = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ServerLevelPermissionsGroup - MongoDbClusterType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbClusterType + ProjectSourcePlatform = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectSourcePlatform TaskState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::TaskState ServiceProvisioningState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ServiceProvisioningState ProjectTargetPlatform = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectTargetPlatform - ProjectSourcePlatform = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectSourcePlatform + MySqlTargetPlatformType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MySqlTargetPlatformType ProjectProvisioningState = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectProvisioningState NameCheckFailureReason = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::NameCheckFailureReason ServiceScalability = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ServiceScalability - ResourceSkuRestrictionsType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictionsType - ResourceSkuRestrictionsReasonCode = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictionsReasonCode - ResourceSkuCapacityScaleType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapacityScaleType - MySqlTargetPlatformType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MySqlTargetPlatformType + ErrorType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ErrorType SchemaMigrationOption = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::SchemaMigrationOption SchemaMigrationStage = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::SchemaMigrationStage DataMigrationResultCode = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DataMigrationResultCode - ErrorType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ErrorType + ApiError = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ApiError + Resource = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Resource + ResourceSkuCapacityScaleType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapacityScaleType + ResourceSkuRestrictionsType = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictionsType + ResourceSkuRestrictionsReasonCode = Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictionsReasonCode end class DataMigrationManagementClass - attr_reader :resource_skus, :services, :tasks, :projects, :usages, :operations, :files, :configurable, :base_url, :options, :model_classes + attr_reader :usages, :resource_skus, :services, :projects, :files, :operations, :tasks, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -267,13 +267,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 @resource_skus = @client_0.resource_skus @services = @client_0.services - @tasks = @client_0.tasks @projects = @client_0.projects - @usages = @client_0.usages - @operations = @client_0.operations @files = @client_0.files + @operations = @client_0.operations + @tasks = @client_0.tasks @model_classes = ModelClasses.new end @@ -295,12 +295,6 @@ class ModelClasses def migrate_sql_server_sql_mitask_output Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlMITaskOutput end - def resource_sku_restrictions - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictions - end - def resource - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Resource - end def data_migration_service_status_response Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DataMigrationServiceStatusResponse end @@ -352,9 +346,6 @@ def task_list def non_sql_migration_task_input Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::NonSqlMigrationTaskInput end - def validation_error - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ValidationError - end def non_sql_data_migration_table Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::NonSqlDataMigrationTable end @@ -451,15 +442,9 @@ def server_properties def quota_list Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::QuotaList end - def resource_skus_result - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkusResult - end def quota Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Quota end - def resource_sku_capacity - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapacity - end def migrate_sql_server_sql_db_task_output Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbTaskOutput end @@ -514,9 +499,6 @@ def start_migration_scenario_server_role_result def mongo_db_shard_key_field Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbShardKeyField end - def api_error - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ApiError - end def mongo_db_migration_settings Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbMigrationSettings end @@ -553,9 +535,6 @@ def migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_input def connect_to_target_azure_db_for_my_sql_task_input Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToTargetAzureDbForMySqlTaskInput end - def resource_sku - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSku - end def mongo_db_cluster_info Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbClusterInfo end @@ -607,9 +586,6 @@ def connect_to_source_my_sql_task_input def get_user_tables_sql_task_output Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::GetUserTablesSqlTaskOutput end - def resource_sku_capabilities - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapabilities - end def get_user_tables_sql_task_input Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::GetUserTablesSqlTaskInput end @@ -649,15 +625,9 @@ def data_migration_project_metadata def database_file_info Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseFileInfo end - def resource_sku_costs - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCosts - end def migration_eligibility_info Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrationEligibilityInfo end - def tracked_resource - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::TrackedResource - end def project_file Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectFile end @@ -742,6 +712,9 @@ def migrate_sql_server_sql_db_sync_task_output_error def migrate_sql_server_sql_db_sync_task_output_table_level Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbSyncTaskOutputTableLevel end + def validation_error + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ValidationError + end def migrate_sql_server_sql_db_sync_task_output_database_level Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel end @@ -835,23 +808,38 @@ def connect_to_source_sql_server_sync_task_properties def connect_to_source_sql_server_task_properties Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToSourceSqlServerTaskProperties end - def mongo_db_collection_info - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCollectionInfo + def resource_sku_capacity + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapacity end def mongo_db_database_info Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbDatabaseInfo end - def connect_to_mongo_db_task_properties - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToMongoDbTaskProperties + def resource_sku_costs + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCosts end def project_task Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectTask end + def resource_sku_capabilities + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapabilities + end + def mongo_db_collection_info + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCollectionInfo + end + def resource_sku_restrictions + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictions + end + def connect_to_mongo_db_task_properties + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToMongoDbTaskProperties + end + def resource_sku + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSku + end def data_migration_service Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DataMigrationService end - def project - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Project + def resource_skus_result + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkusResult end def connect_to_source_my_sql_task_properties Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectToSourceMySqlTaskProperties @@ -862,8 +850,8 @@ def migrate_schema_sql_server_sql_db_task_input def migrate_schema_sql_server_sql_db_task_properties Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskProperties end - def migrate_schema_sql_server_sql_db_task_output_migration_level - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel + def project + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Project end def migrate_schema_sql_server_sql_db_task_output_database_level Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel @@ -874,8 +862,8 @@ def migrate_schema_sql_server_sql_db_task_output_error def migrate_schema_sql_task_output_error Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlTaskOutputError end - def mongo_db_cancel_command - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCancelCommand + def migrate_schema_sql_server_sql_db_task_output_migration_level + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel end def mongo_db_finish_command_input Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbFinishCommandInput @@ -886,8 +874,8 @@ def mongo_db_finish_command def mongo_db_restart_command Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbRestartCommand end - def command_state - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::CommandState + def mongo_db_cancel_command + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCancelCommand end def sql_source_platform Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::SqlSourcePlatform @@ -898,8 +886,8 @@ def authentication_type def mongo_db_error_type Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbErrorType end - def mongo_db_migration_state - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbMigrationState + def command_state + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::CommandState end def mongo_db_shard_key_order Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbShardKeyOrder @@ -910,8 +898,8 @@ def mongo_db_replication def backup_type Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::BackupType end - def backup_mode - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::BackupMode + def mongo_db_migration_state + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbMigrationState end def sync_table_migration_state Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::SyncTableMigrationState @@ -922,9 +910,18 @@ def sync_database_migration_reporting_state def validation_status Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ValidationStatus end + def backup_mode + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::BackupMode + end + def tracked_resource + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::TrackedResource + end def severity Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Severity end + def database_migration_stage + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseMigrationStage + end def update_action_type Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::UpdateActionType end @@ -934,8 +931,8 @@ def object_type def migration_state Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrationState end - def database_migration_stage - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseMigrationStage + def database_state + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseState end def migration_status Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MigrationStatus @@ -946,8 +943,8 @@ def login_migration_stage def login_type Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::LoginType end - def database_state - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseState + def mongo_db_cluster_type + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbClusterType end def database_compat_level Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DatabaseCompatLevel @@ -958,8 +955,8 @@ def database_file_type def server_level_permissions_group Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ServerLevelPermissionsGroup end - def mongo_db_cluster_type - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbClusterType + def project_source_platform + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectSourcePlatform end def task_state Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::TaskState @@ -970,8 +967,8 @@ def service_provisioning_state def project_target_platform Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectTargetPlatform end - def project_source_platform - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectSourcePlatform + def my_sql_target_platform_type + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MySqlTargetPlatformType end def project_provisioning_state Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectProvisioningState @@ -982,17 +979,8 @@ def name_check_failure_reason def service_scalability Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ServiceScalability end - def resource_sku_restrictions_type - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictionsType - end - def resource_sku_restrictions_reason_code - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictionsReasonCode - end - def resource_sku_capacity_scale_type - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapacityScaleType - end - def my_sql_target_platform_type - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MySqlTargetPlatformType + def error_type + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ErrorType end def schema_migration_option Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::SchemaMigrationOption @@ -1003,8 +991,20 @@ def schema_migration_stage def data_migration_result_code Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::DataMigrationResultCode end - def error_type - Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ErrorType + def api_error + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ApiError + end + def resource + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::Resource + end + def resource_sku_capacity_scale_type + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuCapacityScaleType + end + def resource_sku_restrictions_type + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictionsType + end + def resource_sku_restrictions_reason_code + Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ResourceSkuRestrictionsReasonCode 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..c112ac6338 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 - Sku = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Sku - ErrorResponse = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorResponse 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 + Sku = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Sku 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 Controller = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Controller + Resource = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Resource + SkuTier = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::SkuTier KubernetesConnectionDetails = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::KubernetesConnectionDetails + ErrorDetails = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorDetails 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 + TrackedResource = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::TrackedResource 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 @@ -64,12 +64,6 @@ class ModelClasses def controller_connection_details_list Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerConnectionDetailsList 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 - end def controller_update_parameters Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerUpdateParameters end @@ -88,29 +82,35 @@ 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 + def sku + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Sku 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 - end def controller Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Controller end + def resource + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Resource + end + def sku_tier + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::SkuTier + end def kubernetes_connection_details Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::KubernetesConnectionDetails end + def error_details + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorDetails + 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 + def error_response + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorResponse + end + def tracked_resource + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::TrackedResource 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..80c9afff79 100644 --- a/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb +++ b/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb @@ -7,9 +7,10 @@ module Azure::Profiles::Latest module DevTestLabs module Mgmt + GalleryImages = Azure::DevTestLabs::Mgmt::V2016_05_15::GalleryImages + VirtualNetworks = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualNetworks 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 +18,28 @@ 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 PolicySets = Azure::DevTestLabs::Mgmt::V2016_05_15::PolicySets - Policies = Azure::DevTestLabs::Mgmt::V2016_05_15::Policies + VirtualMachines = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualMachines 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 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 + ServiceRunners = Azure::DevTestLabs::Mgmt::V2016_05_15::ServiceRunners + Disks = Azure::DevTestLabs::Mgmt::V2016_05_15::Disks + Operations = Azure::DevTestLabs::Mgmt::V2016_05_15::Operations + Policies = Azure::DevTestLabs::Mgmt::V2016_05_15::Policies module Models + GalleryImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImage + HttpStatusCode = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HttpStatusCode + User = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::User + PolicyStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyStatus + Resource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Resource 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 @@ -44,6 +48,7 @@ module Models HourDetailsFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HourDetailsFragment WeekDetails = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::WeekDetails UserSecretStore = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserSecretStore + InboundNatRule = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::InboundNatRule HourDetails = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HourDetails ArtifactParameterProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactParameterProperties ArtifactInstallProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactInstallProperties @@ -52,15 +57,13 @@ module Models ResponseWithContinuationLabVirtualMachine = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationLabVirtualMachine ArmTemplateInfo = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplateInfo NetworkInterfaceProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NetworkInterfaceProperties - ResponseWithContinuationUser = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationUser + Subnet = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Subnet LabVirtualMachineCreationParameter = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachineCreationParameter - ArtifactDeploymentStatusPropertiesFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactDeploymentStatusPropertiesFragment + ResponseWithContinuationUser = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationUser 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 + ArtifactInstallPropertiesFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactInstallPropertiesFragment GalleryImageReferenceFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImageReferenceFragment ParameterInfo = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ParameterInfo ComputeDataDisk = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeDataDisk @@ -87,16 +90,15 @@ 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 ArtifactDeploymentStatusProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactDeploymentStatusProperties ShutdownNotificationContent = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ShutdownNotificationContent + Event = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Event 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 @@ -116,82 +118,80 @@ 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 + UserIdentity = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity + ArtifactDeploymentStatusPropertiesFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactDeploymentStatusPropertiesFragment 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 - ResponseWithContinuationArtifactSource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArtifactSource + AttachNewDataDiskOptions = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachNewDataDiskOptions ComputeVmInstanceViewStatusFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeVmInstanceViewStatusFragment ResponseWithContinuationCustomImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationCustomImage - EvaluatePoliciesProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EvaluatePoliciesProperties + ResponseWithContinuationArtifactSource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArtifactSource ResponseWithContinuationDisk = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDisk AttachDiskProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachDiskProperties - ResponseWithContinuationDtlEnvironment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDtlEnvironment + EvaluatePoliciesProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EvaluatePoliciesProperties NotificationSettingsFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationSettingsFragment ResponseWithContinuationFormula = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationFormula - CustomImagePropertiesCustom = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImagePropertiesCustom + ResponseWithContinuationDtlEnvironment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDtlEnvironment 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 - ScheduleFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment + CustomImagePropertiesCustom = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImagePropertiesCustom ApplicableScheduleFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableScheduleFragment ArmTemplate = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplate - Artifact = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Artifact + ScheduleFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment ArtifactSource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSource ArtifactSourceFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSourceFragment - CustomImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImage - Disk = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Disk + Artifact = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Artifact DtlEnvironment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DtlEnvironment Formula = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Formula - GalleryImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImage - Lab = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Lab + CustomImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImage 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 + Lab = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Lab LabVirtualMachineFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachineFragment 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 + LabVirtualMachine = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachine PolicyFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFragment + Policy = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy + NotificationChannelFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelFragment + Disk = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Disk 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 + VirtualNetwork = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork 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 CostThresholdStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostThresholdStatus - WindowsOsState = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::WindowsOsState - LinuxOsState = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LinuxOsState + EnableStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EnableStatus + SourceControlType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SourceControlType CustomImageOsType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImageOsType 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 + WindowsOsState = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::WindowsOsState + Schedule = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule FileUploadOptions = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::FileUploadOptions PremiumDataDisk = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PremiumDataDisk + NotificationChannelEventType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelEventType + VirtualMachineCreationSource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualMachineCreationSource + Port = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Port + PolicyFactName = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFactName TargetCostStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TargetCostStatus ReportingCycleType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ReportingCycleType + TransportProtocol = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TransportProtocol + LinuxOsState = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LinuxOsState + UsagePermissionType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UsagePermissionType 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 - UsagePermissionType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UsagePermissionType 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 :gallery_images, :virtual_networks, :provider_operations, :labs, :global_schedules, :artifact_sources, :arm_templates, :artifacts, :costs, :custom_images, :formulas, :notification_channels, :policy_sets, :virtual_machines, :schedules, :users, :environments, :secrets, :virtual_machine_schedules, :service_runners, :disks, :operations, :policies, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -201,9 +201,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @gallery_images = @client_0.gallery_images + @virtual_networks = @client_0.virtual_networks @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 +212,18 @@ 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 @policy_sets = @client_0.policy_sets - @policies = @client_0.policies + @virtual_machines = @client_0.virtual_machines @schedules = @client_0.schedules - @service_runners = @client_0.service_runners @users = @client_0.users - @disks = @client_0.disks @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 + @service_runners = @client_0.service_runners + @disks = @client_0.disks + @operations = @client_0.operations + @policies = @client_0.policies @model_classes = ModelClasses.new end @@ -242,6 +242,21 @@ def method_missing(method, *args) end class ModelClasses + def gallery_image + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImage + end + def http_status_code + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HttpStatusCode + end + def user + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::User + end + def policy_status + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyStatus + end + def resource + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Resource + end def external_subnet_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ExternalSubnetFragment end @@ -251,9 +266,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 @@ -278,6 +290,9 @@ def week_details def user_secret_store Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserSecretStore end + def inbound_nat_rule + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::InboundNatRule + end def hour_details Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HourDetails end @@ -302,32 +317,26 @@ def arm_template_info def network_interface_properties Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NetworkInterfaceProperties end - def response_with_continuation_user - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationUser + def subnet + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Subnet end def lab_virtual_machine_creation_parameter Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachineCreationParameter end - def artifact_deployment_status_properties_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactDeploymentStatusPropertiesFragment + def response_with_continuation_user + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationUser end def formula_properties_from_vm Azure::DevTestLabs::Mgmt::V2016_05_15::Models::FormulaPropertiesFromVm end - def artifact_install_properties_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactInstallPropertiesFragment - end 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 - def attach_new_data_disk_options - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachNewDataDiskOptions + def artifact_install_properties_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactInstallPropertiesFragment end def gallery_image_reference_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImageReferenceFragment @@ -407,9 +416,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 +425,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 @@ -437,6 +440,9 @@ def artifact_deployment_status_properties def shutdown_notification_content Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ShutdownNotificationContent end + def event + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Event + end def response_with_continuation_secret Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationSecret end @@ -494,9 +500,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,12 +512,15 @@ 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 + def user_identity + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity + end + def artifact_deployment_status_properties_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactDeploymentStatusPropertiesFragment + end def response_with_continuation_arm_template Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArmTemplate end @@ -527,8 +533,8 @@ def response_with_continuation_artifact def arm_template_parameter_properties Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplateParameterProperties end - def response_with_continuation_artifact_source - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArtifactSource + def attach_new_data_disk_options + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachNewDataDiskOptions end def compute_vm_instance_view_status_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeVmInstanceViewStatusFragment @@ -536,8 +542,8 @@ def compute_vm_instance_view_status_fragment 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 response_with_continuation_artifact_source + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArtifactSource end def response_with_continuation_disk Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDisk @@ -545,8 +551,8 @@ def response_with_continuation_disk def attach_disk_properties Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachDiskProperties end - def response_with_continuation_dtl_environment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDtlEnvironment + def evaluate_policies_properties + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EvaluatePoliciesProperties end def notification_settings_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationSettingsFragment @@ -554,20 +560,17 @@ def notification_settings_fragment 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 response_with_continuation_dtl_environment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDtlEnvironment 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 end - def schedule_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment + def custom_image_properties_custom + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImagePropertiesCustom end def applicable_schedule_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableScheduleFragment @@ -575,8 +578,8 @@ def applicable_schedule_fragment def arm_template Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplate end - def artifact - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Artifact + def schedule_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment end def artifact_source Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSource @@ -584,11 +587,8 @@ def artifact_source def artifact_source_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSourceFragment end - def custom_image - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImage - end - def disk - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Disk + def artifact + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Artifact end def dtl_environment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DtlEnvironment @@ -596,11 +596,8 @@ def dtl_environment def formula Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Formula end - def gallery_image - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImage - end - def lab - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Lab + def custom_image + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImage end def lab_cost Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabCost @@ -608,8 +605,8 @@ 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 lab + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Lab end def lab_virtual_machine_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachineFragment @@ -617,14 +614,20 @@ def lab_virtual_machine_fragment def notification_channel Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannel end - def notification_channel_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelFragment + 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 policy Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy end - def policy_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFragment + def notification_channel_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelFragment + end + def disk + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Disk end def secret Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Secret @@ -632,38 +635,29 @@ def secret def service_runner Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ServiceRunner end - def user - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::User - end - def virtual_network - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork - end def user_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserFragment end def virtual_network_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetworkFragment end - def enable_status - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EnableStatus + def virtual_network + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork end def notification_status Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationStatus end - def source_control_type - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SourceControlType - 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 end - def windows_os_state - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::WindowsOsState + def enable_status + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EnableStatus end - def linux_os_state - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LinuxOsState + def source_control_type + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SourceControlType end def custom_image_os_type Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImageOsType @@ -671,14 +665,11 @@ def custom_image_os_type 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 - end - def transport_protocol - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TransportProtocol + def windows_os_state + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::WindowsOsState end - def virtual_machine_creation_source - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualMachineCreationSource + def schedule + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule end def file_upload_options Azure::DevTestLabs::Mgmt::V2016_05_15::Models::FileUploadOptions @@ -686,30 +677,39 @@ def file_upload_options def premium_data_disk Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PremiumDataDisk end + def notification_channel_event_type + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelEventType + end + def virtual_machine_creation_source + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualMachineCreationSource + end + def port + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Port + end + def policy_fact_name + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFactName + end def target_cost_status Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TargetCostStatus end def reporting_cycle_type Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ReportingCycleType end - def cost_type - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostType + def transport_protocol + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TransportProtocol end - def http_status_code - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HttpStatusCode + def linux_os_state + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LinuxOsState end - def policy_status - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyStatus + def usage_permission_type + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UsagePermissionType end - def policy_fact_name - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFactName + def cost_type + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostType end def policy_evaluator_type Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyEvaluatorType end - def usage_permission_type - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UsagePermissionType - end 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 9eefb6b119..b7dc6411ae 100644 --- a/azure_sdk/lib/latest/modules/dns_profile_module.rb +++ b/azure_sdk/lib/latest/modules/dns_profile_module.rb @@ -11,29 +11,29 @@ module Mgmt Zones = Azure::Dns::Mgmt::V2018_03_01_preview::Zones module Models + ZoneUpdate = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneUpdate + CaaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::CaaRecord + ZoneType = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneType RecordSetUpdateParameters = Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordSetUpdateParameters - ARecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ARecord RecordSetListResult = Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordSetListResult + AaaaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::AaaaRecord + ARecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ARecord MxRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::MxRecord - SubResource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SubResource PtrRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::PtrRecord - NsRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::NsRecord SrvRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SrvRecord CnameRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::CnameRecord - SoaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SoaRecord - Resource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::Resource RecordSet = Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordSet - 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 - AaaaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::AaaaRecord - CaaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::CaaRecord + TxtRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::TxtRecord + NsRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::NsRecord + SoaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SoaRecord TrackedResource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::TrackedResource Zone = Azure::Dns::Mgmt::V2018_03_01_preview::Models::Zone ProxyResource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ProxyResource AzureEntityResource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::AzureEntityResource - ZoneType = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneType RecordType = Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordType + Resource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::Resource + SubResource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SubResource end class DnsManagementClass @@ -67,56 +67,53 @@ def method_missing(method, *args) end class ModelClasses + def zone_update + Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneUpdate + end + def caa_record + Azure::Dns::Mgmt::V2018_03_01_preview::Models::CaaRecord + end + def zone_type + Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneType + end def record_set_update_parameters Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordSetUpdateParameters end - def arecord - Azure::Dns::Mgmt::V2018_03_01_preview::Models::ARecord - end def record_set_list_result Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordSetListResult end + def aaaa_record + Azure::Dns::Mgmt::V2018_03_01_preview::Models::AaaaRecord + end + def arecord + Azure::Dns::Mgmt::V2018_03_01_preview::Models::ARecord + end def mx_record Azure::Dns::Mgmt::V2018_03_01_preview::Models::MxRecord 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 ns_record - Azure::Dns::Mgmt::V2018_03_01_preview::Models::NsRecord - end def srv_record Azure::Dns::Mgmt::V2018_03_01_preview::Models::SrvRecord end def cname_record Azure::Dns::Mgmt::V2018_03_01_preview::Models::CnameRecord end - def soa_record - Azure::Dns::Mgmt::V2018_03_01_preview::Models::SoaRecord - end - def resource - Azure::Dns::Mgmt::V2018_03_01_preview::Models::Resource - end def record_set Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordSet end - def zone_update - Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneUpdate + def zone_list_result + Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneListResult 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 aaaa_record - Azure::Dns::Mgmt::V2018_03_01_preview::Models::AaaaRecord + def ns_record + Azure::Dns::Mgmt::V2018_03_01_preview::Models::NsRecord end - def caa_record - Azure::Dns::Mgmt::V2018_03_01_preview::Models::CaaRecord + def soa_record + Azure::Dns::Mgmt::V2018_03_01_preview::Models::SoaRecord end def tracked_resource Azure::Dns::Mgmt::V2018_03_01_preview::Models::TrackedResource @@ -130,12 +127,15 @@ def proxy_resource def azure_entity_resource Azure::Dns::Mgmt::V2018_03_01_preview::Models::AzureEntityResource 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 + def resource + Azure::Dns::Mgmt::V2018_03_01_preview::Models::Resource + end + def sub_resource + Azure::Dns::Mgmt::V2018_03_01_preview::Models::SubResource + 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 31c2610086..b8e6c2b526 100644 --- a/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb @@ -9,28 +9,19 @@ module EntitySearch EntitiesOperations = Azure::CognitiveServices::EntitySearch::V1_0::EntitiesOperations module Models - ResponseBase = Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase - QueryContext = Azure::CognitiveServices::EntitySearch::V1_0::Models::QueryContext - 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 + MediaObject = Azure::CognitiveServices::EntitySearch::V1_0::Models::MediaObject + ErrorSubCode = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorSubCode + ErrorResponse = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorResponse 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 + ContractualRulesContractualRule = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesContractualRule + EntitiesEntityPresentationInfo = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntitiesEntityPresentationInfo 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 ContractualRulesAttribution = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesAttribution - MediaObject = Azure::CognitiveServices::EntitySearch::V1_0::Models::MediaObject CivicStructure = Azure::CognitiveServices::EntitySearch::V1_0::Models::CivicStructure LocalBusiness = Azure::CognitiveServices::EntitySearch::V1_0::Models::LocalBusiness TouristAttraction = Azure::CognitiveServices::EntitySearch::V1_0::Models::TouristAttraction @@ -49,12 +40,21 @@ module Models Hotel = Azure::CognitiveServices::EntitySearch::V1_0::Models::Hotel EntityQueryScenario = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityQueryScenario EntityScenario = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityScenario + AnswerType = Azure::CognitiveServices::EntitySearch::V1_0::Models::AnswerType + Error = Azure::CognitiveServices::EntitySearch::V1_0::Models::Error + SearchResponse = Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResponse + Entities = Azure::CognitiveServices::EntitySearch::V1_0::Models::Entities + QueryContext = Azure::CognitiveServices::EntitySearch::V1_0::Models::QueryContext EntityType = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType + ResponseBase = Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase + Answer = Azure::CognitiveServices::EntitySearch::V1_0::Models::Answer + SearchResultsAnswer = Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResultsAnswer + Thing = Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing + CreativeWork = Azure::CognitiveServices::EntitySearch::V1_0::Models::CreativeWork + Identifiable = Azure::CognitiveServices::EntitySearch::V1_0::Models::Identifiable 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 + ResponseFormat = Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat end class EntitySearchDataClass @@ -87,51 +87,30 @@ def method_missing(method, *args) end class ModelClasses - def response_base - Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase - end - def query_context - Azure::CognitiveServices::EntitySearch::V1_0::Models::QueryContext - 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 error - Azure::CognitiveServices::EntitySearch::V1_0::Models::Error - end def image_object Azure::CognitiveServices::EntitySearch::V1_0::Models::ImageObject end - def response - Azure::CognitiveServices::EntitySearch::V1_0::Models::Response + def media_object + Azure::CognitiveServices::EntitySearch::V1_0::Models::MediaObject end - def thing - Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing + def error_sub_code + Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorSubCode end - def search_response - Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResponse + def error_response + Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorResponse end - def answer - Azure::CognitiveServices::EntitySearch::V1_0::Models::Answer + def response + Azure::CognitiveServices::EntitySearch::V1_0::Models::Response end - def search_results_answer - Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResultsAnswer + def contractual_rules_contractual_rule + Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesContractualRule end - def entities - Azure::CognitiveServices::EntitySearch::V1_0::Models::Entities + def entities_entity_presentation_info + Azure::CognitiveServices::EntitySearch::V1_0::Models::EntitiesEntityPresentationInfo end 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 @@ -141,18 +120,12 @@ def place 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 contractual_rules_attribution Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesAttribution end - def media_object - Azure::CognitiveServices::EntitySearch::V1_0::Models::MediaObject - end def civic_structure Azure::CognitiveServices::EntitySearch::V1_0::Models::CivicStructure end @@ -207,24 +180,51 @@ def entity_query_scenario def entity_scenario Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityScenario end + def answer_type + Azure::CognitiveServices::EntitySearch::V1_0::Models::AnswerType + end + def error + Azure::CognitiveServices::EntitySearch::V1_0::Models::Error + end + def search_response + Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResponse + end + def entities + Azure::CognitiveServices::EntitySearch::V1_0::Models::Entities + end + def query_context + Azure::CognitiveServices::EntitySearch::V1_0::Models::QueryContext + end def entity_type Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType end - def error_code - Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorCode + def response_base + Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase end - def error_sub_code - Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorSubCode + def answer + Azure::CognitiveServices::EntitySearch::V1_0::Models::Answer end - def answer_type - Azure::CognitiveServices::EntitySearch::V1_0::Models::AnswerType + def search_results_answer + Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResultsAnswer end - def response_format - Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat + def thing + Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing + end + def creative_work + Azure::CognitiveServices::EntitySearch::V1_0::Models::CreativeWork + end + def identifiable + Azure::CognitiveServices::EntitySearch::V1_0::Models::Identifiable + end + def error_code + Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorCode end def safe_search Azure::CognitiveServices::EntitySearch::V1_0::Models::SafeSearch end + def response_format + Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat + 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 df9094bef8..fefd8d97a4 100644 --- a/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb +++ b/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb @@ -187,12 +187,12 @@ def job_state end end module Mgmt + Topics = Azure::EventGrid::Mgmt::V2018_09_15_preview::Topics + TopicTypes = Azure::EventGrid::Mgmt::V2018_09_15_preview::TopicTypes + Operations = Azure::EventGrid::Mgmt::V2018_09_15_preview::Operations Domains = Azure::EventGrid::Mgmt::V2018_09_15_preview::Domains DomainTopics = Azure::EventGrid::Mgmt::V2018_09_15_preview::DomainTopics EventSubscriptions = Azure::EventGrid::Mgmt::V2018_09_15_preview::EventSubscriptions - Operations = Azure::EventGrid::Mgmt::V2018_09_15_preview::Operations - Topics = Azure::EventGrid::Mgmt::V2018_09_15_preview::Topics - TopicTypes = Azure::EventGrid::Mgmt::V2018_09_15_preview::TopicTypes module Models TopicSharedAccessKeys = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TopicSharedAccessKeys @@ -209,16 +209,14 @@ module Models JsonFieldWithDefault = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::JsonFieldWithDefault RetryPolicy = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::RetryPolicy JsonField = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::JsonField - Resource = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Resource - OperationsListResult = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::OperationsListResult DomainsListResult = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::DomainsListResult - Operation = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Operation EventSubscriptionDestination = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionDestination OperationInfo = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::OperationInfo + OperationsListResult = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::OperationsListResult DeadLetterDestination = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::DeadLetterDestination - EventSubscriptionsListResult = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionsListResult DomainRegenerateKeyRequest = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::DomainRegenerateKeyRequest EventTypesListResult = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventTypesListResult + EventSubscriptionsListResult = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionsListResult EventSubscriptionFilter = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionFilter TopicTypesListResult = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TopicTypesListResult Domain = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Domain @@ -242,21 +240,23 @@ module Models HybridConnectionEventSubscriptionDestination = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::HybridConnectionEventSubscriptionDestination EventSubscription = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscription JsonInputSchemaMapping = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::JsonInputSchemaMapping - TrackedResource = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TrackedResource Topic = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Topic EventType = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventType TopicTypeInfo = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TopicTypeInfo DomainProvisioningState = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::DomainProvisioningState InputSchema = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::InputSchema EventSubscriptionProvisioningState = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionProvisioningState - EventDeliverySchema = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventDeliverySchema + TrackedResource = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TrackedResource TopicProvisioningState = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TopicProvisioningState - ResourceRegionType = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::ResourceRegionType + EventDeliverySchema = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventDeliverySchema TopicTypeProvisioningState = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TopicTypeProvisioningState + ResourceRegionType = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::ResourceRegionType + Resource = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Resource + Operation = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Operation end class EventGridManagementClass - attr_reader :domains, :domain_topics, :event_subscriptions, :operations, :topics, :topic_types, :configurable, :base_url, :options, :model_classes + attr_reader :topics, :topic_types, :operations, :domains, :domain_topics, :event_subscriptions, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -266,12 +266,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @topics = @client_0.topics + @topic_types = @client_0.topic_types + @operations = @client_0.operations @domains = @client_0.domains @domain_topics = @client_0.domain_topics @event_subscriptions = @client_0.event_subscriptions - @operations = @client_0.operations - @topics = @client_0.topics - @topic_types = @client_0.topic_types @model_classes = ModelClasses.new end @@ -332,36 +332,30 @@ def retry_policy def json_field Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::JsonField end - def resource - Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Resource - end - def operations_list_result - Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::OperationsListResult - end def domains_list_result Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::DomainsListResult end - def operation - Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Operation - end def event_subscription_destination Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionDestination end def operation_info Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::OperationInfo end + def operations_list_result + Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::OperationsListResult + end def dead_letter_destination Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::DeadLetterDestination end - def event_subscriptions_list_result - Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionsListResult - end def domain_regenerate_key_request Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::DomainRegenerateKeyRequest end def event_types_list_result Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventTypesListResult end + def event_subscriptions_list_result + Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionsListResult + end def event_subscription_filter Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionFilter end @@ -431,9 +425,6 @@ def event_subscription def json_input_schema_mapping Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::JsonInputSchemaMapping end - def tracked_resource - Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TrackedResource - end def topic Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Topic end @@ -452,18 +443,27 @@ def input_schema def event_subscription_provisioning_state Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventSubscriptionProvisioningState end - def event_delivery_schema - Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventDeliverySchema + def tracked_resource + Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TrackedResource end def topic_provisioning_state Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TopicProvisioningState end - def resource_region_type - Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::ResourceRegionType + def event_delivery_schema + Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::EventDeliverySchema end def topic_type_provisioning_state Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TopicTypeProvisioningState end + def resource_region_type + Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::ResourceRegionType + end + def resource + Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Resource + end + def operation + Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::Operation + 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..47683b49ea 100644 --- a/azure_sdk/lib/latest/modules/eventhub_profile_module.rb +++ b/azure_sdk/lib/latest/modules/eventhub_profile_module.rb @@ -9,34 +9,34 @@ 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 + Configuration = Azure::EventHub::Mgmt::V2018_01_01_preview::Configuration module Models - ClusterQuotaConfigurationProperties = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties + Resource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource + IPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction + Sku = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku OperationDisplay = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationDisplay - ErrorResponse = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse + SkuTier = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuTier + Operation = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Operation + VirtualNetworkRule = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule 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 + ErrorResponse = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse + 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 SkuName = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuName - SkuTier = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuTier - IPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction end class EventHubManagementClass - attr_reader :operations, :clusters, :configuration, :namespaces, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :clusters, :namespaces, :configuration, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -48,8 +48,8 @@ def initialize(configurable, base_url=nil, options=nil) add_telemetry(@client_0) @operations = @client_0.operations @clusters = @client_0.clusters - @configuration = @client_0.configuration @namespaces = @client_0.namespaces + @configuration = @client_0.configuration @model_classes = ModelClasses.new end @@ -68,14 +68,26 @@ def method_missing(method, *args) end class ModelClasses - def cluster_quota_configuration_properties - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties + def resource + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource + end + def ipaction + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction + end + def sku + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku 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 + def sku_tier + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuTier + end + def operation + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Operation + end + def virtual_network_rule + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule end def operation_list_result Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationListResult @@ -83,14 +95,11 @@ def operation_list_result 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 + def error_response + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse end - def sku - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku + 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 @@ -104,30 +113,21 @@ 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 - end def sku_name Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuName 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 - end 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..67ad124b5f 100644 --- a/azure_sdk/lib/latest/modules/face_profile_module.rb +++ b/azure_sdk/lib/latest/modules/face_profile_module.rb @@ -6,16 +6,17 @@ module Azure::Profiles::Latest module Face + FaceListOperations = Azure::CognitiveServices::Face::V1_0::FaceListOperations Face = Azure::CognitiveServices::Face::V1_0::Face PersonGroupPerson = Azure::CognitiveServices::Face::V1_0::PersonGroupPerson PersonGroupOperations = Azure::CognitiveServices::Face::V1_0::PersonGroupOperations - FaceListOperations = Azure::CognitiveServices::Face::V1_0::FaceListOperations module Models - FindSimilarRequest = Azure::CognitiveServices::Face::V1_0::Models::FindSimilarRequest + APIError = Azure::CognitiveServices::Face::V1_0::Models::APIError Error = Azure::CognitiveServices::Face::V1_0::Models::Error - SimilarFace = Azure::CognitiveServices::Face::V1_0::Models::SimilarFace FaceRectangle = Azure::CognitiveServices::Face::V1_0::Models::FaceRectangle + FindSimilarRequest = Azure::CognitiveServices::Face::V1_0::Models::FindSimilarRequest + SimilarFace = Azure::CognitiveServices::Face::V1_0::Models::SimilarFace GroupRequest = Azure::CognitiveServices::Face::V1_0::Models::GroupRequest FaceLandmarks = Azure::CognitiveServices::Face::V1_0::Models::FaceLandmarks GroupResult = Azure::CognitiveServices::Face::V1_0::Models::GroupResult @@ -31,37 +32,36 @@ module Models VerifyFaceToFaceRequest = Azure::CognitiveServices::Face::V1_0::Models::VerifyFaceToFaceRequest 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 UpdatePersonFaceRequest = Azure::CognitiveServices::Face::V1_0::Models::UpdatePersonFaceRequest Blur = Azure::CognitiveServices::Face::V1_0::Models::Blur + ImageUrl = Azure::CognitiveServices::Face::V1_0::Models::ImageUrl TrainingStatus = Azure::CognitiveServices::Face::V1_0::Models::TrainingStatus - FaceList = Azure::CognitiveServices::Face::V1_0::Models::FaceList PersonGroup = Azure::CognitiveServices::Face::V1_0::Models::PersonGroup Person = Azure::CognitiveServices::Face::V1_0::Models::Person - Gender = Azure::CognitiveServices::Face::V1_0::Models::Gender + FaceList = Azure::CognitiveServices::Face::V1_0::Models::FaceList 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 + HairColorType = Azure::CognitiveServices::Face::V1_0::Models::HairColorType ExposureLevel = Azure::CognitiveServices::Face::V1_0::Models::ExposureLevel NoiseLevel = Azure::CognitiveServices::Face::V1_0::Models::NoiseLevel - FindSimilarMatchMode = Azure::CognitiveServices::Face::V1_0::Models::FindSimilarMatchMode + Gender = Azure::CognitiveServices::Face::V1_0::Models::Gender TrainingStatusType = Azure::CognitiveServices::Face::V1_0::Models::TrainingStatusType + FindSimilarMatchMode = Azure::CognitiveServices::Face::V1_0::Models::FindSimilarMatchMode FaceAttributeType = Azure::CognitiveServices::Face::V1_0::Models::FaceAttributeType 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, :face, :person_group_person, :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_list_operations = @client_0.face_list_operations @face = @client_0.face @person_group_person = @client_0.person_group_person @person_group_operations = @client_0.person_group_operations - @face_list_operations = @client_0.face_list_operations @model_classes = ModelClasses.new end @@ -93,18 +93,21 @@ def method_missing(method, *args) end class ModelClasses - def find_similar_request - Azure::CognitiveServices::Face::V1_0::Models::FindSimilarRequest + def apierror + Azure::CognitiveServices::Face::V1_0::Models::APIError 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 find_similar_request + Azure::CognitiveServices::Face::V1_0::Models::FindSimilarRequest + end + def similar_face + Azure::CognitiveServices::Face::V1_0::Models::SimilarFace + end def group_request Azure::CognitiveServices::Face::V1_0::Models::GroupRequest end @@ -150,9 +153,6 @@ def face_attributes 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,9 +171,6 @@ 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 @@ -189,45 +186,48 @@ def update_person_face_request def blur Azure::CognitiveServices::Face::V1_0::Models::Blur end + def image_url + Azure::CognitiveServices::Face::V1_0::Models::ImageUrl + end def training_status Azure::CognitiveServices::Face::V1_0::Models::TrainingStatus end - def face_list - Azure::CognitiveServices::Face::V1_0::Models::FaceList - end def person_group Azure::CognitiveServices::Face::V1_0::Models::PersonGroup end def person Azure::CognitiveServices::Face::V1_0::Models::Person end - def gender - Azure::CognitiveServices::Face::V1_0::Models::Gender + def face_list + Azure::CognitiveServices::Face::V1_0::Models::FaceList end def glasses_type Azure::CognitiveServices::Face::V1_0::Models::GlassesType end - def hair_color_type - Azure::CognitiveServices::Face::V1_0::Models::HairColorType - end def accessory_type Azure::CognitiveServices::Face::V1_0::Models::AccessoryType end def blur_level Azure::CognitiveServices::Face::V1_0::Models::BlurLevel end + def hair_color_type + Azure::CognitiveServices::Face::V1_0::Models::HairColorType + end def exposure_level Azure::CognitiveServices::Face::V1_0::Models::ExposureLevel end def noise_level Azure::CognitiveServices::Face::V1_0::Models::NoiseLevel end - def find_similar_match_mode - Azure::CognitiveServices::Face::V1_0::Models::FindSimilarMatchMode + def gender + Azure::CognitiveServices::Face::V1_0::Models::Gender end def training_status_type Azure::CognitiveServices::Face::V1_0::Models::TrainingStatusType end + def find_similar_match_mode + Azure::CognitiveServices::Face::V1_0::Models::FindSimilarMatchMode + end def face_attribute_type Azure::CognitiveServices::Face::V1_0::Models::FaceAttributeType end diff --git a/azure_sdk/lib/latest/modules/features_profile_module.rb b/azure_sdk/lib/latest/modules/features_profile_module.rb index b35902ef72..014d2eec97 100644 --- a/azure_sdk/lib/latest/modules/features_profile_module.rb +++ b/azure_sdk/lib/latest/modules/features_profile_module.rb @@ -10,12 +10,12 @@ module Mgmt Features = Azure::Features::Mgmt::V2015_12_01::Features module Models - OperationDisplay = Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties - Operation = Azure::Features::Mgmt::V2015_12_01::Models::Operation + OperationDisplay = Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult - OperationListResult = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult + Operation = Azure::Features::Mgmt::V2015_12_01::Models::Operation FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult + OperationListResult = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult end class FeaturesManagementClass @@ -48,24 +48,24 @@ def method_missing(method, *args) end class ModelClasses - def operation_display - Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay - end def feature_properties Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties end - def operation - Azure::Features::Mgmt::V2015_12_01::Models::Operation + def operation_display + Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay end def feature_operations_list_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult end - def operation_list_result - Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult + def operation + Azure::Features::Mgmt::V2015_12_01::Models::Operation end def feature_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult end + def operation_list_result + Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult + 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..d17c9764fe 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 + Users = Azure::GraphRbac::V1_6::Users 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 module Models + ApplicationCreateParameters = Azure::GraphRbac::V1_6::Models::ApplicationCreateParameters + ServicePrincipalListResult = Azure::GraphRbac::V1_6::Models::ServicePrincipalListResult + PasswordProfile = Azure::GraphRbac::V1_6::Models::PasswordProfile + DirectoryObjectListResult = Azure::GraphRbac::V1_6::Models::DirectoryObjectListResult + ApplicationUpdateParameters = Azure::GraphRbac::V1_6::Models::ApplicationUpdateParameters + AADObject = Azure::GraphRbac::V1_6::Models::AADObject + UserBase = Azure::GraphRbac::V1_6::Models::UserBase + GetObjectsParameters = Azure::GraphRbac::V1_6::Models::GetObjectsParameters + DomainListResult = Azure::GraphRbac::V1_6::Models::DomainListResult + SignInName = Azure::GraphRbac::V1_6::Models::SignInName + PasswordCredentialListResult = Azure::GraphRbac::V1_6::Models::PasswordCredentialListResult + RequiredResourceAccess = Azure::GraphRbac::V1_6::Models::RequiredResourceAccess + 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 + UserUpdateParameters = Azure::GraphRbac::V1_6::Models::UserUpdateParameters + User = Azure::GraphRbac::V1_6::Models::User + Application = Azure::GraphRbac::V1_6::Models::Application + UserType = Azure::GraphRbac::V1_6::Models::UserType + UserCreateParameters = Azure::GraphRbac::V1_6::Models::UserCreateParameters + Domain = Azure::GraphRbac::V1_6::Models::Domain 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 GroupGetMemberGroupsResult = Azure::GraphRbac::V1_6::Models::GroupGetMemberGroupsResult KeyCredentialListResult = Azure::GraphRbac::V1_6::Models::KeyCredentialListResult CheckGroupMembershipParameters = Azure::GraphRbac::V1_6::Models::CheckGroupMembershipParameters + GraphError = Azure::GraphRbac::V1_6::Models::GraphError KeyCredentialsUpdateParameters = Azure::GraphRbac::V1_6::Models::KeyCredentialsUpdateParameters CheckGroupMembershipResult = Azure::GraphRbac::V1_6::Models::CheckGroupMembershipResult PasswordCredentialsUpdateParameters = Azure::GraphRbac::V1_6::Models::PasswordCredentialsUpdateParameters ServicePrincipalCreateParameters = Azure::GraphRbac::V1_6::Models::ServicePrincipalCreateParameters GetObjectsResult = Azure::GraphRbac::V1_6::Models::GetObjectsResult - DomainListResult = Azure::GraphRbac::V1_6::Models::DomainListResult PasswordCredential = Azure::GraphRbac::V1_6::Models::PasswordCredential - ServicePrincipalListResult = Azure::GraphRbac::V1_6::Models::ServicePrincipalListResult - ApplicationUpdateParameters = Azure::GraphRbac::V1_6::Models::ApplicationUpdateParameters - PasswordProfile = Azure::GraphRbac::V1_6::Models::PasswordProfile - DirectoryObjectListResult = Azure::GraphRbac::V1_6::Models::DirectoryObjectListResult - UserBase = Azure::GraphRbac::V1_6::Models::UserBase - AADObject = Azure::GraphRbac::V1_6::Models::AADObject - 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 :users, :objects, :applications, :groups, :service_principals, :domains, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -69,11 +69,11 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @users = @client_0.users @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 @model_classes = ModelClasses.new @@ -93,99 +93,42 @@ def method_missing(method, *args) end class ModelClasses - 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 - def resource_access - Azure::GraphRbac::V1_6::Models::ResourceAccess - end - 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 - 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 - end - def check_group_membership_parameters - Azure::GraphRbac::V1_6::Models::CheckGroupMembershipParameters - end - def key_credentials_update_parameters - Azure::GraphRbac::V1_6::Models::KeyCredentialsUpdateParameters - end - def check_group_membership_result - Azure::GraphRbac::V1_6::Models::CheckGroupMembershipResult - end - def password_credentials_update_parameters - Azure::GraphRbac::V1_6::Models::PasswordCredentialsUpdateParameters - end - def service_principal_create_parameters - Azure::GraphRbac::V1_6::Models::ServicePrincipalCreateParameters - end - def get_objects_result - Azure::GraphRbac::V1_6::Models::GetObjectsResult - end - def domain_list_result - Azure::GraphRbac::V1_6::Models::DomainListResult - end - def password_credential - Azure::GraphRbac::V1_6::Models::PasswordCredential - 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 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 + def user_base + Azure::GraphRbac::V1_6::Models::UserBase end def get_objects_parameters Azure::GraphRbac::V1_6::Models::GetObjectsParameters end - def password_credential_list_result - Azure::GraphRbac::V1_6::Models::PasswordCredentialListResult + def domain_list_result + Azure::GraphRbac::V1_6::Models::DomainListResult end def sign_in_name Azure::GraphRbac::V1_6::Models::SignInName end + def password_credential_list_result + Azure::GraphRbac::V1_6::Models::PasswordCredentialListResult + end + def required_resource_access + Azure::GraphRbac::V1_6::Models::RequiredResourceAccess + end def application_add_owner_parameters Azure::GraphRbac::V1_6::Models::ApplicationAddOwnerParameters end @@ -198,27 +141,84 @@ def directory_object 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 end def user Azure::GraphRbac::V1_6::Models::User end + def application + Azure::GraphRbac::V1_6::Models::Application + end def user_type Azure::GraphRbac::V1_6::Models::UserType end + def user_create_parameters + Azure::GraphRbac::V1_6::Models::UserCreateParameters + end + def domain + Azure::GraphRbac::V1_6::Models::Domain + end + def group_add_member_parameters + Azure::GraphRbac::V1_6::Models::GroupAddMemberParameters + end + def group_create_parameters + Azure::GraphRbac::V1_6::Models::GroupCreateParameters + end + def key_credential + Azure::GraphRbac::V1_6::Models::KeyCredential + end + def resource_access + Azure::GraphRbac::V1_6::Models::ResourceAccess + end + def group_list_result + Azure::GraphRbac::V1_6::Models::GroupListResult + 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 + 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 + end + def check_group_membership_parameters + Azure::GraphRbac::V1_6::Models::CheckGroupMembershipParameters + end + def graph_error + Azure::GraphRbac::V1_6::Models::GraphError + end + def key_credentials_update_parameters + Azure::GraphRbac::V1_6::Models::KeyCredentialsUpdateParameters + end + def check_group_membership_result + Azure::GraphRbac::V1_6::Models::CheckGroupMembershipResult + end + def password_credentials_update_parameters + Azure::GraphRbac::V1_6::Models::PasswordCredentialsUpdateParameters + end + def service_principal_create_parameters + Azure::GraphRbac::V1_6::Models::ServicePrincipalCreateParameters + end + def get_objects_result + Azure::GraphRbac::V1_6::Models::GetObjectsResult + end + def password_credential + Azure::GraphRbac::V1_6::Models::PasswordCredential + end 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 f384643ee1..d1642f6668 100644 --- a/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb @@ -9,37 +9,41 @@ module ImageSearch ImagesOperations = Azure::CognitiveServices::ImageSearch::V1_0::ImagesOperations module Models + Query = Azure::CognitiveServices::ImageSearch::V1_0::Models::Query + ImageObject = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageObject + MediaObject = Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject + WebPage = Azure::CognitiveServices::ImageSearch::V1_0::Models::WebPage + ErrorSubCode = Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorSubCode + ImageAspect = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageAspect + ErrorResponse = Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorResponse + 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 + ImageSize = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageSize + Response = Azure::CognitiveServices::ImageSearch::V1_0::Models::Response + Organization = Azure::CognitiveServices::ImageSearch::V1_0::Models::Organization + Intangible = Azure::CognitiveServices::ImageSearch::V1_0::Models::Intangible + StructuredValue = Azure::CognitiveServices::ImageSearch::V1_0::Models::StructuredValue + Error = Azure::CognitiveServices::ImageSearch::V1_0::Models::Error RelatedSearchesModule = Azure::CognitiveServices::ImageSearch::V1_0::Models::RelatedSearchesModule InsightsTag = Azure::CognitiveServices::ImageSearch::V1_0::Models::InsightsTag RecognizedEntitiesModule = Azure::CognitiveServices::ImageSearch::V1_0::Models::RecognizedEntitiesModule 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 @@ -47,26 +51,22 @@ module Models 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 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 ImageCropType = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageCropType + Images = Azure::CognitiveServices::ImageSearch::V1_0::Models::Images ImageInsightModule = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsightModule + Person = Azure::CognitiveServices::ImageSearch::V1_0::Models::Person + ResponseBase = Azure::CognitiveServices::ImageSearch::V1_0::Models::ResponseBase + Answer = Azure::CognitiveServices::ImageSearch::V1_0::Models::Answer + SearchResultsAnswer = Azure::CognitiveServices::ImageSearch::V1_0::Models::SearchResultsAnswer + Thing = Azure::CognitiveServices::ImageSearch::V1_0::Models::Thing + CreativeWork = Azure::CognitiveServices::ImageSearch::V1_0::Models::CreativeWork + Identifiable = Azure::CognitiveServices::ImageSearch::V1_0::Models::Identifiable + ErrorCode = Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorCode + SafeSearch = Azure::CognitiveServices::ImageSearch::V1_0::Models::SafeSearch end class ImageSearchDataClass @@ -99,6 +99,60 @@ def method_missing(method, *args) end class ModelClasses + def query + Azure::CognitiveServices::ImageSearch::V1_0::Models::Query + end + def image_object + Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageObject + end + def media_object + Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject + end + def web_page + Azure::CognitiveServices::ImageSearch::V1_0::Models::WebPage + end + def error_sub_code + Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorSubCode + end + def image_aspect + Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageAspect + end + def error_response + Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorResponse + end + def image_color + Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageColor + end + def freshness + Azure::CognitiveServices::ImageSearch::V1_0::Models::Freshness + end + 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 image_size + Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageSize + end + def response + Azure::CognitiveServices::ImageSearch::V1_0::Models::Response + end + def organization + Azure::CognitiveServices::ImageSearch::V1_0::Models::Organization + end + def intangible + Azure::CognitiveServices::ImageSearch::V1_0::Models::Intangible + end + def structured_value + Azure::CognitiveServices::ImageSearch::V1_0::Models::StructuredValue + end + def error + Azure::CognitiveServices::ImageSearch::V1_0::Models::Error + end def related_searches_module Azure::CognitiveServices::ImageSearch::V1_0::Models::RelatedSearchesModule end @@ -117,9 +171,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 +189,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 +204,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 @@ -213,65 +225,53 @@ def image_insights 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 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 + def image_crop_type + Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageCropType end - def error_sub_code - Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorSubCode + def images + Azure::CognitiveServices::ImageSearch::V1_0::Models::Images end - def image_aspect - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageAspect + def image_insight_module + Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsightModule end - def image_color - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageColor + def person + Azure::CognitiveServices::ImageSearch::V1_0::Models::Person end - def freshness - Azure::CognitiveServices::ImageSearch::V1_0::Models::Freshness + def response_base + Azure::CognitiveServices::ImageSearch::V1_0::Models::ResponseBase end - def image_content - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageContent + def answer + Azure::CognitiveServices::ImageSearch::V1_0::Models::Answer end - def image_type - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageType + def search_results_answer + Azure::CognitiveServices::ImageSearch::V1_0::Models::SearchResultsAnswer end - def image_license - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageLicense + def thing + Azure::CognitiveServices::ImageSearch::V1_0::Models::Thing end - def safe_search - Azure::CognitiveServices::ImageSearch::V1_0::Models::SafeSearch + def creative_work + Azure::CognitiveServices::ImageSearch::V1_0::Models::CreativeWork end - def image_size - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageSize + def identifiable + Azure::CognitiveServices::ImageSearch::V1_0::Models::Identifiable end - def image_crop_type - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageCropType + def error_code + Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorCode end - def image_insight_module - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsightModule + def safe_search + Azure::CognitiveServices::ImageSearch::V1_0::Models::SafeSearch 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 72c6b47929..c1727218f5 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 - AppListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult - AppSkuInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo + Resource = Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource + ErrorDetails = Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails 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 - ErrorResponseBody = Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorResponseBody + AppListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult OperationListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult - Resource = Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource + ErrorResponseBody = Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorResponseBody OperationInputs = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs - ErrorDetails = Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails AppAvailabilityInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppAvailabilityInfo + AppPatch = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch App = Azure::IotCentral::Mgmt::V2018_09_01::Models::App + AppSkuInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo AppSku = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSku 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,42 +57,42 @@ def method_missing(method, *args) end class ModelClasses - def app_list_result - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult + def resource + Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource end - def app_sku_info - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo + def error_details + Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails end def operation_display Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay end - def app_patch - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch - end def operation Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation end - def error_response_body - Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorResponseBody + def app_list_result + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult end def operation_list_result Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult end - def resource - Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource + def error_response_body + Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorResponseBody end def operation_inputs Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs end - def error_details - Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails - end def app_availability_info Azure::IotCentral::Mgmt::V2018_09_01::Models::AppAvailabilityInfo end + def app_patch + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch + end def app Azure::IotCentral::Mgmt::V2018_09_01::Models::App end + def app_sku_info + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo + end def app_sku Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSku 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..d495772fdf 100644 --- a/azure_sdk/lib/latest/modules/iothub_profile_module.rb +++ b/azure_sdk/lib/latest/modules/iothub_profile_module.rb @@ -13,7 +13,48 @@ module Mgmt Certificates = Azure::IotHub::Mgmt::V2018_04_01::Certificates module Models - ErrorDetails = Azure::IotHub::Mgmt::V2018_04_01::Models::ErrorDetails + TestAllRoutesInput = Azure::IotHub::Mgmt::V2018_04_01::Models::TestAllRoutesInput + OperationsMonitoringProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationsMonitoringProperties + OperationListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationListResult + MatchedRoute = Azure::IotHub::Mgmt::V2018_04_01::Models::MatchedRoute + UserSubscriptionQuota = Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuota + Resource = Azure::IotHub::Mgmt::V2018_04_01::Models::Resource + 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 + RoutingServiceBusQueueEndpointProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingServiceBusQueueEndpointProperties + FallbackRouteProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::FallbackRouteProperties + RouteErrorRange = Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorRange + RouteErrorPosition = Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorPosition + RouteCompilationError = Azure::IotHub::Mgmt::V2018_04_01::Models::RouteCompilationError + CertificateBodyDescription = Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateBodyDescription + IotHubSkuInfo = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuInfo + FeedbackProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::FeedbackProperties + TestRouteResult = Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteResult + TestRouteResultDetails = Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteResultDetails + ExportDevicesRequest = Azure::IotHub::Mgmt::V2018_04_01::Models::ExportDevicesRequest + ImportDevicesRequest = Azure::IotHub::Mgmt::V2018_04_01::Models::ImportDevicesRequest + RoutingEventHubProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingEventHubProperties + AccessRights = Azure::IotHub::Mgmt::V2018_04_01::Models::AccessRights + Operation = Azure::IotHub::Mgmt::V2018_04_01::Models::Operation + IotHubDescription = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubDescription + OperationMonitoringLevel = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationMonitoringLevel + IpFilterActionType = Azure::IotHub::Mgmt::V2018_04_01::Models::IpFilterActionType + RoutingSource = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingSource + IotHubSkuTier = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuTier + Capabilities = Azure::IotHub::Mgmt::V2018_04_01::Models::Capabilities + IotHubSku = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSku + IotHubScaleType = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubScaleType + 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 + IotHubNameUnavailabilityReason = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubNameUnavailabilityReason + TestResultStatus = Azure::IotHub::Mgmt::V2018_04_01::Models::TestResultStatus + RouteErrorSeverity = Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorSeverity + Name = Azure::IotHub::Mgmt::V2018_04_01::Models::Name + IpFilterRule = Azure::IotHub::Mgmt::V2018_04_01::Models::IpFilterRule + 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 @@ -25,6 +66,7 @@ module Models RegistryStatistics = Azure::IotHub::Mgmt::V2018_04_01::Models::RegistryStatistics EventHubProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::EventHubProperties JobResponse = Azure::IotHub::Mgmt::V2018_04_01::Models::JobResponse + ErrorDetails = Azure::IotHub::Mgmt::V2018_04_01::Models::ErrorDetails RoutingServiceBusTopicEndpointProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingServiceBusTopicEndpointProperties JobResponseListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::JobResponseListResult RoutingStorageContainerProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingStorageContainerProperties @@ -39,57 +81,15 @@ 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 + CertificateWithNonceDescription = Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateWithNonceDescription 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 - 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 RoutingMessage = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingMessage StorageEndpointProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::StorageEndpointProperties - TestAllRoutesInput = Azure::IotHub::Mgmt::V2018_04_01::Models::TestAllRoutesInput - OperationsMonitoringProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationsMonitoringProperties - 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 - IotHubSkuInfo = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuInfo - RouteCompilationError = Azure::IotHub::Mgmt::V2018_04_01::Models::RouteCompilationError - CertificateBodyDescription = Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateBodyDescription - TestRouteResultDetails = Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteResultDetails - FeedbackProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::FeedbackProperties - 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 - 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 - 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 - IotHubScaleType = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubScaleType - IotHubNameUnavailabilityReason = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubNameUnavailabilityReason - TestResultStatus = Azure::IotHub::Mgmt::V2018_04_01::Models::TestResultStatus - RouteErrorSeverity = Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorSeverity end class IotHubManagementClass @@ -125,8 +125,131 @@ def method_missing(method, *args) end class ModelClasses - def error_details - Azure::IotHub::Mgmt::V2018_04_01::Models::ErrorDetails + def test_all_routes_input + Azure::IotHub::Mgmt::V2018_04_01::Models::TestAllRoutesInput + end + def operations_monitoring_properties + Azure::IotHub::Mgmt::V2018_04_01::Models::OperationsMonitoringProperties + end + def operation_list_result + Azure::IotHub::Mgmt::V2018_04_01::Models::OperationListResult + end + def matched_route + Azure::IotHub::Mgmt::V2018_04_01::Models::MatchedRoute + end + def user_subscription_quota + Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuota + end + def resource + Azure::IotHub::Mgmt::V2018_04_01::Models::Resource + end + def shared_access_signature_authorization_rule_list_result + Azure::IotHub::Mgmt::V2018_04_01::Models::SharedAccessSignatureAuthorizationRuleListResult + end + def test_all_routes_result + Azure::IotHub::Mgmt::V2018_04_01::Models::TestAllRoutesResult + end + def certificate_verification_description + Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateVerificationDescription + end + def test_route_input + Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteInput + end + def routing_service_bus_queue_endpoint_properties + Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingServiceBusQueueEndpointProperties + end + def fallback_route_properties + Azure::IotHub::Mgmt::V2018_04_01::Models::FallbackRouteProperties + end + def route_error_range + Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorRange + end + def route_error_position + Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorPosition + end + def route_compilation_error + Azure::IotHub::Mgmt::V2018_04_01::Models::RouteCompilationError + end + def certificate_body_description + Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateBodyDescription + end + def iot_hub_sku_info + Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuInfo + end + def feedback_properties + Azure::IotHub::Mgmt::V2018_04_01::Models::FeedbackProperties + end + def test_route_result + Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteResult + end + def test_route_result_details + Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteResultDetails + end + def export_devices_request + Azure::IotHub::Mgmt::V2018_04_01::Models::ExportDevicesRequest + end + def import_devices_request + Azure::IotHub::Mgmt::V2018_04_01::Models::ImportDevicesRequest + end + def routing_event_hub_properties + Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingEventHubProperties + end + def access_rights + Azure::IotHub::Mgmt::V2018_04_01::Models::AccessRights + end + def operation + Azure::IotHub::Mgmt::V2018_04_01::Models::Operation + end + def iot_hub_description + Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubDescription + end + def operation_monitoring_level + Azure::IotHub::Mgmt::V2018_04_01::Models::OperationMonitoringLevel + end + 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 + end + def iot_hub_sku_tier + Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuTier + end + def capabilities + Azure::IotHub::Mgmt::V2018_04_01::Models::Capabilities + end + def iot_hub_sku + Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSku + end + def iot_hub_scale_type + Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubScaleType + end + 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 + end + def iot_hub_name_unavailability_reason + Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubNameUnavailabilityReason + 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 name + Azure::IotHub::Mgmt::V2018_04_01::Models::Name + end + def ip_filter_rule + Azure::IotHub::Mgmt::V2018_04_01::Models::IpFilterRule + 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 @@ -161,6 +284,9 @@ def event_hub_properties def job_response Azure::IotHub::Mgmt::V2018_04_01::Models::JobResponse end + def error_details + Azure::IotHub::Mgmt::V2018_04_01::Models::ErrorDetails + end def routing_service_bus_topic_endpoint_properties Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingServiceBusTopicEndpointProperties end @@ -203,20 +329,14 @@ 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 + def certificate_with_nonce_description + Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateWithNonceDescription end def iot_hub_name_availability_info Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubNameAvailabilityInfo @@ -224,18 +344,6 @@ def iot_hub_name_availability_info 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 - 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 @@ -248,114 +356,6 @@ def routing_message def storage_endpoint_properties Azure::IotHub::Mgmt::V2018_04_01::Models::StorageEndpointProperties end - def test_all_routes_input - Azure::IotHub::Mgmt::V2018_04_01::Models::TestAllRoutesInput - end - def operations_monitoring_properties - Azure::IotHub::Mgmt::V2018_04_01::Models::OperationsMonitoringProperties - end - def matched_route - Azure::IotHub::Mgmt::V2018_04_01::Models::MatchedRoute - end - def shared_access_signature_authorization_rule_list_result - Azure::IotHub::Mgmt::V2018_04_01::Models::SharedAccessSignatureAuthorizationRuleListResult - end - def test_all_routes_result - Azure::IotHub::Mgmt::V2018_04_01::Models::TestAllRoutesResult - end - def certificate_verification_description - Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateVerificationDescription - end - 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 - def fallback_route_properties - Azure::IotHub::Mgmt::V2018_04_01::Models::FallbackRouteProperties - end - def route_error_range - Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorRange - end - def iot_hub_sku_info - Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuInfo - end - def route_compilation_error - Azure::IotHub::Mgmt::V2018_04_01::Models::RouteCompilationError - end - def certificate_body_description - Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateBodyDescription - end - def test_route_result_details - Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteResultDetails - end - def feedback_properties - Azure::IotHub::Mgmt::V2018_04_01::Models::FeedbackProperties - end - def test_route_result - Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteResult - end - def routing_event_hub_properties - Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingEventHubProperties - end - 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 - def iot_hub_description - Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubDescription - end - def access_rights - Azure::IotHub::Mgmt::V2018_04_01::Models::AccessRights - end - 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 - end - def operation_monitoring_level - Azure::IotHub::Mgmt::V2018_04_01::Models::OperationMonitoringLevel - end - def capabilities - Azure::IotHub::Mgmt::V2018_04_01::Models::Capabilities - end - def iot_hub_sku - Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSku - end - def iot_hub_sku_tier - Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuTier - end - 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 - end - def iot_hub_scale_type - Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubScaleType - end - def iot_hub_name_unavailability_reason - Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubNameUnavailabilityReason - 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 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..8ca06ec0ed 100644 --- a/azure_sdk/lib/latest/modules/keyvault_profile_module.rb +++ b/azure_sdk/lib/latest/modules/keyvault_profile_module.rb @@ -9,82 +9,86 @@ module Azure::Profiles::Latest module KeyVault module Models - KeyRestoreParameters = Azure::KeyVault::V7_0::Models::KeyRestoreParameters - SecretSetParameters = Azure::KeyVault::V7_0::Models::SecretSetParameters - JsonWebKey = Azure::KeyVault::V7_0::Models::JsonWebKey - SecretUpdateParameters = Azure::KeyVault::V7_0::Models::SecretUpdateParameters - KeyBundle = Azure::KeyVault::V7_0::Models::KeyBundle - CertificateCreateParameters = Azure::KeyVault::V7_0::Models::CertificateCreateParameters + Action = Azure::KeyVault::V7_0::Models::Action + BackupCertificateResult = Azure::KeyVault::V7_0::Models::BackupCertificateResult + DeletedSasDefinitionListResult = Azure::KeyVault::V7_0::Models::DeletedSasDefinitionListResult + StorageRestoreParameters = Azure::KeyVault::V7_0::Models::StorageRestoreParameters + BackupStorageResult = Azure::KeyVault::V7_0::Models::BackupStorageResult + CertificateRestoreParameters = Azure::KeyVault::V7_0::Models::CertificateRestoreParameters + DeletedStorageListResult = Azure::KeyVault::V7_0::Models::DeletedStorageListResult + DeletedStorageBundle = Azure::KeyVault::V7_0::Models::DeletedStorageBundle + DeletedStorageAccountItem = Azure::KeyVault::V7_0::Models::DeletedStorageAccountItem + DeletedSasDefinitionBundle = Azure::KeyVault::V7_0::Models::DeletedSasDefinitionBundle + DeletedSasDefinitionItem = Azure::KeyVault::V7_0::Models::DeletedSasDefinitionItem + SasTokenType = Azure::KeyVault::V7_0::Models::SasTokenType + KeyOperationsParameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters KeySignParameters = Azure::KeyVault::V7_0::Models::KeySignParameters + JsonWebKey = Azure::KeyVault::V7_0::Models::JsonWebKey KeyVerifyParameters = Azure::KeyVault::V7_0::Models::KeyVerifyParameters - BackupCertificateResult = Azure::KeyVault::V7_0::Models::BackupCertificateResult + KeyBundle = Azure::KeyVault::V7_0::Models::KeyBundle KeyUpdateParameters = Azure::KeyVault::V7_0::Models::KeyUpdateParameters - SecretItem = Azure::KeyVault::V7_0::Models::SecretItem + KeyImportParameters = Azure::KeyVault::V7_0::Models::KeyImportParameters Attributes = Azure::KeyVault::V7_0::Models::Attributes KeyVaultError = Azure::KeyVault::V7_0::Models::KeyVaultError - SecretRestoreParameters = Azure::KeyVault::V7_0::Models::SecretRestoreParameters - SasDefinitionAttributes = Azure::KeyVault::V7_0::Models::SasDefinitionAttributes + SecretBundle = Azure::KeyVault::V7_0::Models::SecretBundle + StorageListResult = Azure::KeyVault::V7_0::Models::StorageListResult SasDefinitionUpdateParameters = Azure::KeyVault::V7_0::Models::SasDefinitionUpdateParameters KeyItem = Azure::KeyVault::V7_0::Models::KeyItem - CertificateIssuerItem = Azure::KeyVault::V7_0::Models::CertificateIssuerItem - SasDefinitionListResult = Azure::KeyVault::V7_0::Models::SasDefinitionListResult - SecretProperties = Azure::KeyVault::V7_0::Models::SecretProperties + SecretRestoreParameters = Azure::KeyVault::V7_0::Models::SecretRestoreParameters + SasDefinitionAttributes = Azure::KeyVault::V7_0::Models::SasDefinitionAttributes + CertificateItem = Azure::KeyVault::V7_0::Models::CertificateItem + KeyRestoreParameters = Azure::KeyVault::V7_0::Models::KeyRestoreParameters + KeyProperties = Azure::KeyVault::V7_0::Models::KeyProperties + SecretSetParameters = Azure::KeyVault::V7_0::Models::SecretSetParameters + SubjectAlternativeNames = Azure::KeyVault::V7_0::Models::SubjectAlternativeNames + SecretUpdateParameters = Azure::KeyVault::V7_0::Models::SecretUpdateParameters + Trigger = Azure::KeyVault::V7_0::Models::Trigger + CertificateCreateParameters = Azure::KeyVault::V7_0::Models::CertificateCreateParameters + LifetimeAction = Azure::KeyVault::V7_0::Models::LifetimeAction CertificateImportParameters = Azure::KeyVault::V7_0::Models::CertificateImportParameters - X509CertificateProperties = Azure::KeyVault::V7_0::Models::X509CertificateProperties + CertificatePolicy = Azure::KeyVault::V7_0::Models::CertificatePolicy CertificateUpdateParameters = Azure::KeyVault::V7_0::Models::CertificateUpdateParameters - Action = Azure::KeyVault::V7_0::Models::Action + SasDefinitionItem = Azure::KeyVault::V7_0::Models::SasDefinitionItem CertificateMergeParameters = Azure::KeyVault::V7_0::Models::CertificateMergeParameters - IssuerParameters = Azure::KeyVault::V7_0::Models::IssuerParameters CertificateIssuerSetParameters = Azure::KeyVault::V7_0::Models::CertificateIssuerSetParameters - CertificateBundle = Azure::KeyVault::V7_0::Models::CertificateBundle + Error = Azure::KeyVault::V7_0::Models::Error CertificateIssuerUpdateParameters = Azure::KeyVault::V7_0::Models::CertificateIssuerUpdateParameters - DeletedSasDefinitionListResult = Azure::KeyVault::V7_0::Models::DeletedSasDefinitionListResult + OrganizationDetails = Azure::KeyVault::V7_0::Models::OrganizationDetails CertificateOperationUpdateParameter = Azure::KeyVault::V7_0::Models::CertificateOperationUpdateParameter - CertificateOperation = Azure::KeyVault::V7_0::Models::CertificateOperation + IssuerBundle = Azure::KeyVault::V7_0::Models::IssuerBundle KeyOperationResult = Azure::KeyVault::V7_0::Models::KeyOperationResult - AdministratorDetails = Azure::KeyVault::V7_0::Models::AdministratorDetails + Contacts = Azure::KeyVault::V7_0::Models::Contacts 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 + SasDefinitionCreateParameters = Azure::KeyVault::V7_0::Models::SasDefinitionCreateParameters DeletedKeyListResult = Azure::KeyVault::V7_0::Models::DeletedKeyListResult - KeyCreateParameters = Azure::KeyVault::V7_0::Models::KeyCreateParameters + CertificateIssuerItem = Azure::KeyVault::V7_0::Models::CertificateIssuerItem SecretListResult = Azure::KeyVault::V7_0::Models::SecretListResult - KeyOperationsParameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters + X509CertificateProperties = Azure::KeyVault::V7_0::Models::X509CertificateProperties DeletedSecretListResult = Azure::KeyVault::V7_0::Models::DeletedSecretListResult - SecretBundle = Azure::KeyVault::V7_0::Models::SecretBundle + IssuerParameters = Azure::KeyVault::V7_0::Models::IssuerParameters CertificateListResult = Azure::KeyVault::V7_0::Models::CertificateListResult - StorageRestoreParameters = Azure::KeyVault::V7_0::Models::StorageRestoreParameters + SasDefinitionBundle = Azure::KeyVault::V7_0::Models::SasDefinitionBundle DeletedCertificateListResult = Azure::KeyVault::V7_0::Models::DeletedCertificateListResult - KeyProperties = Azure::KeyVault::V7_0::Models::KeyProperties + AdministratorDetails = Azure::KeyVault::V7_0::Models::AdministratorDetails CertificateIssuerListResult = Azure::KeyVault::V7_0::Models::CertificateIssuerListResult - Trigger = Azure::KeyVault::V7_0::Models::Trigger + Contact = Azure::KeyVault::V7_0::Models::Contact BackupKeyResult = Azure::KeyVault::V7_0::Models::BackupKeyResult - CertificatePolicy = Azure::KeyVault::V7_0::Models::CertificatePolicy + SecretItem = Azure::KeyVault::V7_0::Models::SecretItem 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 + SecretProperties = Azure::KeyVault::V7_0::Models::SecretProperties PendingCertificateSigningRequestResult = Azure::KeyVault::V7_0::Models::PendingCertificateSigningRequestResult - Contacts = Azure::KeyVault::V7_0::Models::Contacts + CertificateBundle = Azure::KeyVault::V7_0::Models::CertificateBundle StorageAccountAttributes = Azure::KeyVault::V7_0::Models::StorageAccountAttributes + IssuerAttributes = Azure::KeyVault::V7_0::Models::IssuerAttributes StorageBundle = Azure::KeyVault::V7_0::Models::StorageBundle - CertificateItem = Azure::KeyVault::V7_0::Models::CertificateItem - SasDefinitionItem = Azure::KeyVault::V7_0::Models::SasDefinitionItem - LifetimeAction = Azure::KeyVault::V7_0::Models::LifetimeAction + SasDefinitionListResult = Azure::KeyVault::V7_0::Models::SasDefinitionListResult StorageAccountCreateParameters = Azure::KeyVault::V7_0::Models::StorageAccountCreateParameters - IssuerCredentials = Azure::KeyVault::V7_0::Models::IssuerCredentials + CertificateOperation = Azure::KeyVault::V7_0::Models::CertificateOperation 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 + KeyCreateParameters = Azure::KeyVault::V7_0::Models::KeyCreateParameters StorageAccountItem = Azure::KeyVault::V7_0::Models::StorageAccountItem - IssuerBundle = Azure::KeyVault::V7_0::Models::IssuerBundle - SasDefinitionBundle = Azure::KeyVault::V7_0::Models::SasDefinitionBundle - SasDefinitionCreateParameters = Azure::KeyVault::V7_0::Models::SasDefinitionCreateParameters - StorageListResult = Azure::KeyVault::V7_0::Models::StorageListResult - CertificateRestoreParameters = Azure::KeyVault::V7_0::Models::CertificateRestoreParameters - DeletedStorageListResult = Azure::KeyVault::V7_0::Models::DeletedStorageListResult KeyAttributes = Azure::KeyVault::V7_0::Models::KeyAttributes DeletedKeyBundle = Azure::KeyVault::V7_0::Models::DeletedKeyBundle DeletedKeyItem = Azure::KeyVault::V7_0::Models::DeletedKeyItem @@ -92,12 +96,9 @@ module Models DeletedSecretBundle = Azure::KeyVault::V7_0::Models::DeletedSecretBundle DeletedSecretItem = Azure::KeyVault::V7_0::Models::DeletedSecretItem CertificateAttributes = Azure::KeyVault::V7_0::Models::CertificateAttributes + IssuerCredentials = Azure::KeyVault::V7_0::Models::IssuerCredentials DeletedCertificateBundle = Azure::KeyVault::V7_0::Models::DeletedCertificateBundle DeletedCertificateItem = Azure::KeyVault::V7_0::Models::DeletedCertificateItem - DeletedStorageBundle = Azure::KeyVault::V7_0::Models::DeletedStorageBundle - DeletedStorageAccountItem = Azure::KeyVault::V7_0::Models::DeletedStorageAccountItem - DeletedSasDefinitionBundle = Azure::KeyVault::V7_0::Models::DeletedSasDefinitionBundle - DeletedSasDefinitionItem = Azure::KeyVault::V7_0::Models::DeletedSasDefinitionItem JsonWebKeyType = Azure::KeyVault::V7_0::Models::JsonWebKeyType JsonWebKeyCurveName = Azure::KeyVault::V7_0::Models::JsonWebKeyCurveName DeletionRecoveryLevel = Azure::KeyVault::V7_0::Models::DeletionRecoveryLevel @@ -106,7 +107,6 @@ module Models JsonWebKeyOperation = Azure::KeyVault::V7_0::Models::JsonWebKeyOperation JsonWebKeyEncryptionAlgorithm = Azure::KeyVault::V7_0::Models::JsonWebKeyEncryptionAlgorithm JsonWebKeySignatureAlgorithm = Azure::KeyVault::V7_0::Models::JsonWebKeySignatureAlgorithm - SasTokenType = Azure::KeyVault::V7_0::Models::SasTokenType end class KeyVaultDataClass @@ -138,38 +138,62 @@ def method_missing(method, *args) end class ModelClasses - def key_restore_parameters - Azure::KeyVault::V7_0::Models::KeyRestoreParameters + def action + Azure::KeyVault::V7_0::Models::Action end - def secret_set_parameters - Azure::KeyVault::V7_0::Models::SecretSetParameters + def backup_certificate_result + Azure::KeyVault::V7_0::Models::BackupCertificateResult end - def json_web_key - Azure::KeyVault::V7_0::Models::JsonWebKey + def deleted_sas_definition_list_result + Azure::KeyVault::V7_0::Models::DeletedSasDefinitionListResult end - def secret_update_parameters - Azure::KeyVault::V7_0::Models::SecretUpdateParameters + def storage_restore_parameters + Azure::KeyVault::V7_0::Models::StorageRestoreParameters end - def key_bundle - Azure::KeyVault::V7_0::Models::KeyBundle + def backup_storage_result + Azure::KeyVault::V7_0::Models::BackupStorageResult end - def certificate_create_parameters - Azure::KeyVault::V7_0::Models::CertificateCreateParameters + def certificate_restore_parameters + Azure::KeyVault::V7_0::Models::CertificateRestoreParameters + end + def deleted_storage_list_result + Azure::KeyVault::V7_0::Models::DeletedStorageListResult + end + def deleted_storage_bundle + Azure::KeyVault::V7_0::Models::DeletedStorageBundle + end + def deleted_storage_account_item + Azure::KeyVault::V7_0::Models::DeletedStorageAccountItem + end + def deleted_sas_definition_bundle + Azure::KeyVault::V7_0::Models::DeletedSasDefinitionBundle + end + def deleted_sas_definition_item + Azure::KeyVault::V7_0::Models::DeletedSasDefinitionItem + end + def sas_token_type + Azure::KeyVault::V7_0::Models::SasTokenType + end + def key_operations_parameters + Azure::KeyVault::V7_0::Models::KeyOperationsParameters end def key_sign_parameters Azure::KeyVault::V7_0::Models::KeySignParameters end + def json_web_key + Azure::KeyVault::V7_0::Models::JsonWebKey + end def key_verify_parameters Azure::KeyVault::V7_0::Models::KeyVerifyParameters end - def backup_certificate_result - Azure::KeyVault::V7_0::Models::BackupCertificateResult + def key_bundle + Azure::KeyVault::V7_0::Models::KeyBundle end def key_update_parameters Azure::KeyVault::V7_0::Models::KeyUpdateParameters end - def secret_item - Azure::KeyVault::V7_0::Models::SecretItem + def key_import_parameters + Azure::KeyVault::V7_0::Models::KeyImportParameters end def attributes Azure::KeyVault::V7_0::Models::Attributes @@ -177,11 +201,11 @@ def attributes def key_vault_error Azure::KeyVault::V7_0::Models::KeyVaultError end - def secret_restore_parameters - Azure::KeyVault::V7_0::Models::SecretRestoreParameters + def secret_bundle + Azure::KeyVault::V7_0::Models::SecretBundle end - def sas_definition_attributes - Azure::KeyVault::V7_0::Models::SasDefinitionAttributes + def storage_list_result + Azure::KeyVault::V7_0::Models::StorageListResult end def sas_definition_update_parameters Azure::KeyVault::V7_0::Models::SasDefinitionUpdateParameters @@ -189,183 +213,171 @@ def sas_definition_update_parameters def key_item Azure::KeyVault::V7_0::Models::KeyItem end - def certificate_issuer_item - Azure::KeyVault::V7_0::Models::CertificateIssuerItem + def secret_restore_parameters + Azure::KeyVault::V7_0::Models::SecretRestoreParameters end - def sas_definition_list_result - Azure::KeyVault::V7_0::Models::SasDefinitionListResult + def sas_definition_attributes + Azure::KeyVault::V7_0::Models::SasDefinitionAttributes end - def secret_properties - Azure::KeyVault::V7_0::Models::SecretProperties + def certificate_item + Azure::KeyVault::V7_0::Models::CertificateItem + end + def key_restore_parameters + Azure::KeyVault::V7_0::Models::KeyRestoreParameters + end + def key_properties + Azure::KeyVault::V7_0::Models::KeyProperties + end + def secret_set_parameters + Azure::KeyVault::V7_0::Models::SecretSetParameters + end + def subject_alternative_names + Azure::KeyVault::V7_0::Models::SubjectAlternativeNames + end + def secret_update_parameters + Azure::KeyVault::V7_0::Models::SecretUpdateParameters + end + def trigger + Azure::KeyVault::V7_0::Models::Trigger + end + def certificate_create_parameters + Azure::KeyVault::V7_0::Models::CertificateCreateParameters + end + def lifetime_action + Azure::KeyVault::V7_0::Models::LifetimeAction end def certificate_import_parameters Azure::KeyVault::V7_0::Models::CertificateImportParameters end - def x509_certificate_properties - Azure::KeyVault::V7_0::Models::X509CertificateProperties + def certificate_policy + Azure::KeyVault::V7_0::Models::CertificatePolicy end def certificate_update_parameters Azure::KeyVault::V7_0::Models::CertificateUpdateParameters end - def action - Azure::KeyVault::V7_0::Models::Action + def sas_definition_item + Azure::KeyVault::V7_0::Models::SasDefinitionItem end def certificate_merge_parameters Azure::KeyVault::V7_0::Models::CertificateMergeParameters end - def issuer_parameters - Azure::KeyVault::V7_0::Models::IssuerParameters - end def certificate_issuer_set_parameters Azure::KeyVault::V7_0::Models::CertificateIssuerSetParameters end - def certificate_bundle - Azure::KeyVault::V7_0::Models::CertificateBundle + def error + Azure::KeyVault::V7_0::Models::Error end def certificate_issuer_update_parameters Azure::KeyVault::V7_0::Models::CertificateIssuerUpdateParameters end - def deleted_sas_definition_list_result - Azure::KeyVault::V7_0::Models::DeletedSasDefinitionListResult + def organization_details + Azure::KeyVault::V7_0::Models::OrganizationDetails end def certificate_operation_update_parameter Azure::KeyVault::V7_0::Models::CertificateOperationUpdateParameter end - def certificate_operation - Azure::KeyVault::V7_0::Models::CertificateOperation + def issuer_bundle + Azure::KeyVault::V7_0::Models::IssuerBundle end def key_operation_result Azure::KeyVault::V7_0::Models::KeyOperationResult end - def administrator_details - Azure::KeyVault::V7_0::Models::AdministratorDetails + def contacts + Azure::KeyVault::V7_0::Models::Contacts end def key_verify_result Azure::KeyVault::V7_0::Models::KeyVerifyResult end - 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 + def sas_definition_create_parameters + Azure::KeyVault::V7_0::Models::SasDefinitionCreateParameters end def deleted_key_list_result Azure::KeyVault::V7_0::Models::DeletedKeyListResult end - def key_create_parameters - Azure::KeyVault::V7_0::Models::KeyCreateParameters + def certificate_issuer_item + Azure::KeyVault::V7_0::Models::CertificateIssuerItem end def secret_list_result Azure::KeyVault::V7_0::Models::SecretListResult end - def key_operations_parameters - Azure::KeyVault::V7_0::Models::KeyOperationsParameters + def x509_certificate_properties + Azure::KeyVault::V7_0::Models::X509CertificateProperties end def deleted_secret_list_result Azure::KeyVault::V7_0::Models::DeletedSecretListResult end - def secret_bundle - Azure::KeyVault::V7_0::Models::SecretBundle + def issuer_parameters + Azure::KeyVault::V7_0::Models::IssuerParameters end def certificate_list_result Azure::KeyVault::V7_0::Models::CertificateListResult end - def storage_restore_parameters - Azure::KeyVault::V7_0::Models::StorageRestoreParameters + def sas_definition_bundle + Azure::KeyVault::V7_0::Models::SasDefinitionBundle end def deleted_certificate_list_result Azure::KeyVault::V7_0::Models::DeletedCertificateListResult end - def key_properties - Azure::KeyVault::V7_0::Models::KeyProperties + def administrator_details + Azure::KeyVault::V7_0::Models::AdministratorDetails end def certificate_issuer_list_result Azure::KeyVault::V7_0::Models::CertificateIssuerListResult end - def trigger - Azure::KeyVault::V7_0::Models::Trigger + def contact + Azure::KeyVault::V7_0::Models::Contact end def backup_key_result Azure::KeyVault::V7_0::Models::BackupKeyResult end - def certificate_policy - Azure::KeyVault::V7_0::Models::CertificatePolicy + def secret_item + Azure::KeyVault::V7_0::Models::SecretItem end 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 - def organization_details - Azure::KeyVault::V7_0::Models::OrganizationDetails + def secret_properties + Azure::KeyVault::V7_0::Models::SecretProperties end def pending_certificate_signing_request_result Azure::KeyVault::V7_0::Models::PendingCertificateSigningRequestResult end - def contacts - Azure::KeyVault::V7_0::Models::Contacts + def certificate_bundle + Azure::KeyVault::V7_0::Models::CertificateBundle end def storage_account_attributes Azure::KeyVault::V7_0::Models::StorageAccountAttributes end + def issuer_attributes + Azure::KeyVault::V7_0::Models::IssuerAttributes + end def storage_bundle Azure::KeyVault::V7_0::Models::StorageBundle end - def certificate_item - Azure::KeyVault::V7_0::Models::CertificateItem - end - def sas_definition_item - Azure::KeyVault::V7_0::Models::SasDefinitionItem - end - def lifetime_action - Azure::KeyVault::V7_0::Models::LifetimeAction + def sas_definition_list_result + Azure::KeyVault::V7_0::Models::SasDefinitionListResult end def storage_account_create_parameters Azure::KeyVault::V7_0::Models::StorageAccountCreateParameters end - def issuer_credentials - Azure::KeyVault::V7_0::Models::IssuerCredentials + def certificate_operation + Azure::KeyVault::V7_0::Models::CertificateOperation end def storage_account_update_parameters Azure::KeyVault::V7_0::Models::StorageAccountUpdateParameters end - def key_import_parameters - Azure::KeyVault::V7_0::Models::KeyImportParameters - end def storage_account_regenerte_key_parameters Azure::KeyVault::V7_0::Models::StorageAccountRegenerteKeyParameters end - def subject_alternative_names - Azure::KeyVault::V7_0::Models::SubjectAlternativeNames + def key_create_parameters + Azure::KeyVault::V7_0::Models::KeyCreateParameters end def storage_account_item Azure::KeyVault::V7_0::Models::StorageAccountItem end - def issuer_bundle - Azure::KeyVault::V7_0::Models::IssuerBundle - end - def sas_definition_bundle - Azure::KeyVault::V7_0::Models::SasDefinitionBundle - end - def sas_definition_create_parameters - Azure::KeyVault::V7_0::Models::SasDefinitionCreateParameters - end - def storage_list_result - Azure::KeyVault::V7_0::Models::StorageListResult - end - def certificate_restore_parameters - Azure::KeyVault::V7_0::Models::CertificateRestoreParameters - end - def deleted_storage_list_result - Azure::KeyVault::V7_0::Models::DeletedStorageListResult - end def key_attributes Azure::KeyVault::V7_0::Models::KeyAttributes end @@ -387,24 +399,15 @@ def deleted_secret_item def certificate_attributes Azure::KeyVault::V7_0::Models::CertificateAttributes end + def issuer_credentials + Azure::KeyVault::V7_0::Models::IssuerCredentials + end def deleted_certificate_bundle Azure::KeyVault::V7_0::Models::DeletedCertificateBundle end def deleted_certificate_item Azure::KeyVault::V7_0::Models::DeletedCertificateItem end - def deleted_storage_bundle - Azure::KeyVault::V7_0::Models::DeletedStorageBundle - end - def deleted_storage_account_item - Azure::KeyVault::V7_0::Models::DeletedStorageAccountItem - end - def deleted_sas_definition_bundle - Azure::KeyVault::V7_0::Models::DeletedSasDefinitionBundle - end - def deleted_sas_definition_item - Azure::KeyVault::V7_0::Models::DeletedSasDefinitionItem - end def json_web_key_type Azure::KeyVault::V7_0::Models::JsonWebKeyType end @@ -429,9 +432,6 @@ def json_web_key_encryption_algorithm def json_web_key_signature_algorithm Azure::KeyVault::V7_0::Models::JsonWebKeySignatureAlgorithm end - def sas_token_type - Azure::KeyVault::V7_0::Models::SasTokenType - end end end module Mgmt @@ -439,42 +439,42 @@ module Mgmt Operations = Azure::KeyVault::Mgmt::V2018_02_14::Operations module Models - VaultAccessPolicyParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyParameters + Operation = Azure::KeyVault::Mgmt::V2018_02_14::Models::Operation + SecretPermissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::SecretPermissions + OperationListResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationListResult + StoragePermissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::StoragePermissions + CreateMode = Azure::KeyVault::Mgmt::V2018_02_14::Models::CreateMode + CertificatePermissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::CertificatePermissions + Sku = Azure::KeyVault::Mgmt::V2018_02_14::Models::Sku + NetworkRuleBypassOptions = Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleBypassOptions + NetworkRuleAction = Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleAction + VirtualNetworkRule = Azure::KeyVault::Mgmt::V2018_02_14::Models::VirtualNetworkRule Permissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::Permissions + AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyUpdateKind + Reason = Azure::KeyVault::Mgmt::V2018_02_14::Models::Reason + Resource = Azure::KeyVault::Mgmt::V2018_02_14::Models::Resource + OperationDisplay = Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationDisplay 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 + VaultProperties = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultProperties + VaultAccessPolicyProperties = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyProperties ResourceListResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::ResourceListResult - VaultPatchParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultPatchParameters + VaultCreateOrUpdateParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultCreateOrUpdateParameters VaultCheckNameAvailabilityParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultCheckNameAvailabilityParameters - AccessPolicyEntry = Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyEntry + VaultAccessPolicyParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyParameters 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 + VaultPatchProperties = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultPatchProperties LogSpecification = Azure::KeyVault::Mgmt::V2018_02_14::Models::LogSpecification - VirtualNetworkRule = Azure::KeyVault::Mgmt::V2018_02_14::Models::VirtualNetworkRule + VaultPatchParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultPatchParameters 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 + IPRule = Azure::KeyVault::Mgmt::V2018_02_14::Models::IPRule + DeletedVaultProperties = Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVaultProperties Vault = Azure::KeyVault::Mgmt::V2018_02_14::Models::Vault + NetworkRuleSet = Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleSet SkuName = Azure::KeyVault::Mgmt::V2018_02_14::Models::SkuName 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 - StoragePermissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::StoragePermissions - 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 + AccessPolicyEntry = Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyEntry end class KeyVaultManagementClass @@ -508,113 +508,113 @@ def method_missing(method, *args) end class ModelClasses - def vault_access_policy_parameters - Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyParameters + def operation + Azure::KeyVault::Mgmt::V2018_02_14::Models::Operation + end + def secret_permissions + Azure::KeyVault::Mgmt::V2018_02_14::Models::SecretPermissions + end + def operation_list_result + Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationListResult + end + def storage_permissions + Azure::KeyVault::Mgmt::V2018_02_14::Models::StoragePermissions + end + def create_mode + Azure::KeyVault::Mgmt::V2018_02_14::Models::CreateMode + end + def certificate_permissions + Azure::KeyVault::Mgmt::V2018_02_14::Models::CertificatePermissions + end + def sku + Azure::KeyVault::Mgmt::V2018_02_14::Models::Sku + end + def network_rule_bypass_options + Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleBypassOptions + end + def network_rule_action + Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleAction + end + def virtual_network_rule + Azure::KeyVault::Mgmt::V2018_02_14::Models::VirtualNetworkRule end def permissions Azure::KeyVault::Mgmt::V2018_02_14::Models::Permissions end + def access_policy_update_kind + Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyUpdateKind + end + def reason + Azure::KeyVault::Mgmt::V2018_02_14::Models::Reason + end + def resource + Azure::KeyVault::Mgmt::V2018_02_14::Models::Resource + end + def operation_display + Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationDisplay + 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 + def vault_properties + Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultProperties end - def deleted_vault_properties - Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVaultProperties + def vault_access_policy_properties + Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyProperties 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 + def vault_create_or_update_parameters + Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultCreateOrUpdateParameters end def vault_check_name_availability_parameters Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultCheckNameAvailabilityParameters end - def access_policy_entry - Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyEntry + def vault_access_policy_parameters + Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyParameters 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 + def vault_patch_properties + Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultPatchProperties 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 vault_patch_parameters + Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultPatchParameters end def service_specification Azure::KeyVault::Mgmt::V2018_02_14::Models::ServiceSpecification end - def sku - Azure::KeyVault::Mgmt::V2018_02_14::Models::Sku - end - def operation - Azure::KeyVault::Mgmt::V2018_02_14::Models::Operation - end - def vault_access_policy_properties - Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyProperties + def iprule + Azure::KeyVault::Mgmt::V2018_02_14::Models::IPRule end - def operation_list_result - Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationListResult + def deleted_vault_properties + Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVaultProperties end def vault Azure::KeyVault::Mgmt::V2018_02_14::Models::Vault end + def network_rule_set + Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleSet + end def sku_name Azure::KeyVault::Mgmt::V2018_02_14::Models::SkuName end def key_permissions Azure::KeyVault::Mgmt::V2018_02_14::Models::KeyPermissions end - def secret_permissions - Azure::KeyVault::Mgmt::V2018_02_14::Models::SecretPermissions - end - def certificate_permissions - Azure::KeyVault::Mgmt::V2018_02_14::Models::CertificatePermissions - end - def storage_permissions - Azure::KeyVault::Mgmt::V2018_02_14::Models::StoragePermissions - end - def create_mode - Azure::KeyVault::Mgmt::V2018_02_14::Models::CreateMode - end - def network_rule_bypass_options - Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleBypassOptions - end - def network_rule_action - Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleAction - 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 access_policy_entry + Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyEntry end end end diff --git a/azure_sdk/lib/latest/modules/kusto_profile_module.rb b/azure_sdk/lib/latest/modules/kusto_profile_module.rb index 26b5d00da1..1726b14ba5 100644 --- a/azure_sdk/lib/latest/modules/kusto_profile_module.rb +++ b/azure_sdk/lib/latest/modules/kusto_profile_module.rb @@ -7,10 +7,10 @@ module Azure::Profiles::Latest module Kusto module Mgmt + Operations = Azure::Kusto::Mgmt::V2018_09_07_preview::Operations Clusters = Azure::Kusto::Mgmt::V2018_09_07_preview::Clusters Databases = Azure::Kusto::Mgmt::V2018_09_07_preview::Databases EventHubConnections = Azure::Kusto::Mgmt::V2018_09_07_preview::EventHubConnections - Operations = Azure::Kusto::Mgmt::V2018_09_07_preview::Operations module Models DatabasePrincipalListResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabasePrincipalListResult @@ -22,40 +22,40 @@ module Models EventHubConnectionValidation = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::EventHubConnectionValidation TrustedExternalTenant = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::TrustedExternalTenant AzureCapacity = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureCapacity - OperationListResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::OperationListResult DatabaseStatistics = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabaseStatistics - Operation = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Operation - OperationDisplay = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::OperationDisplay ListResourceSkusResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ListResourceSkusResult - ClusterListResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ClusterListResult ListSkusResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ListSkusResult - Resource = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Resource EventHubConnectionValidationResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::EventHubConnectionValidationResult ClusterCheckNameRequest = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ClusterCheckNameRequest DatabasePrincipal = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabasePrincipal DatabaseCheckNameRequest = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabaseCheckNameRequest DatabaseListResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabaseListResult CheckNameResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::CheckNameResult - Cluster = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Cluster ClusterUpdate = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ClusterUpdate - Database = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Database DatabaseUpdate = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabaseUpdate EventHubConnectionUpdate = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::EventHubConnectionUpdate EventHubConnection = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::EventHubConnection - TrackedResource = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::TrackedResource - AzureEntityResource = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureEntityResource ProxyResource = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ProxyResource - State = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::State - ProvisioningState = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ProvisioningState - AzureSkuName = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureSkuName + TrackedResource = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::TrackedResource AzureScaleType = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureScaleType + Resource = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Resource + AzureEntityResource = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureEntityResource DataFormat = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DataFormat + AzureSkuName = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureSkuName + State = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::State DatabasePrincipalRole = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabasePrincipalRole DatabasePrincipalType = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabasePrincipalType + OperationDisplay = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::OperationDisplay + Operation = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Operation + OperationListResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::OperationListResult + ProvisioningState = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ProvisioningState + Database = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Database + ClusterListResult = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ClusterListResult + Cluster = Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Cluster end class KustoManagementClass - attr_reader :clusters, :databases, :event_hub_connections, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :clusters, :databases, :event_hub_connections, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -65,10 +65,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 @databases = @client_0.databases @event_hub_connections = @client_0.event_hub_connections - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -114,30 +114,15 @@ def trusted_external_tenant def azure_capacity Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureCapacity end - def operation_list_result - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::OperationListResult - end def database_statistics Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabaseStatistics end - def operation - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Operation - end - def operation_display - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::OperationDisplay - end def list_resource_skus_result Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ListResourceSkusResult end - def cluster_list_result - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ClusterListResult - end def list_skus_result Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ListSkusResult end - def resource - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Resource - end def event_hub_connection_validation_result Azure::Kusto::Mgmt::V2018_09_07_preview::Models::EventHubConnectionValidationResult end @@ -156,15 +141,9 @@ def database_list_result def check_name_result Azure::Kusto::Mgmt::V2018_09_07_preview::Models::CheckNameResult end - def cluster - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Cluster - end def cluster_update Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ClusterUpdate end - def database - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Database - end def database_update Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabaseUpdate end @@ -174,29 +153,29 @@ def event_hub_connection_update def event_hub_connection Azure::Kusto::Mgmt::V2018_09_07_preview::Models::EventHubConnection end + def proxy_resource + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ProxyResource + end def tracked_resource Azure::Kusto::Mgmt::V2018_09_07_preview::Models::TrackedResource end - def azure_entity_resource - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureEntityResource + def azure_scale_type + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureScaleType end - def proxy_resource - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ProxyResource + def resource + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Resource end - def state - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::State + def azure_entity_resource + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureEntityResource end - def provisioning_state - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ProvisioningState + def data_format + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DataFormat end def azure_sku_name Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureSkuName end - def azure_scale_type - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::AzureScaleType - end - def data_format - Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DataFormat + def state + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::State end def database_principal_role Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabasePrincipalRole @@ -204,6 +183,27 @@ def database_principal_role def database_principal_type Azure::Kusto::Mgmt::V2018_09_07_preview::Models::DatabasePrincipalType end + def operation_display + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::OperationDisplay + end + def operation + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Operation + end + def operation_list_result + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::OperationListResult + end + def provisioning_state + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ProvisioningState + end + def database + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Database + end + def cluster_list_result + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::ClusterListResult + end + def cluster + Azure::Kusto::Mgmt::V2018_09_07_preview::Models::Cluster + end end end end diff --git a/azure_sdk/lib/latest/modules/links_profile_module.rb b/azure_sdk/lib/latest/modules/links_profile_module.rb index c35b95d1e8..2645ebac39 100644 --- a/azure_sdk/lib/latest/modules/links_profile_module.rb +++ b/azure_sdk/lib/latest/modules/links_profile_module.rb @@ -15,9 +15,9 @@ module Models OperationDisplay = Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay ResourceLinkProperties = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties Operation = Azure::Links::Mgmt::V2016_09_01::Models::Operation + ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink ResourceLinkFilter = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter OperationListResult = Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult - ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink Filter = Azure::Links::Mgmt::V2016_09_01::Models::Filter end @@ -64,15 +64,15 @@ def resource_link_properties def operation Azure::Links::Mgmt::V2016_09_01::Models::Operation end + def resource_link + Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink + end def resource_link_filter Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter end def operation_list_result Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult end - def resource_link - Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink - end def filter Azure::Links::Mgmt::V2016_09_01::Models::Filter end diff --git a/azure_sdk/lib/latest/modules/localsearch_profile_module.rb b/azure_sdk/lib/latest/modules/localsearch_profile_module.rb index e8979b0ba2..875297a8c6 100644 --- a/azure_sdk/lib/latest/modules/localsearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/localsearch_profile_module.rb @@ -9,32 +9,32 @@ module LocalSearch Local = Azure::CognitiveServices::LocalSearch::V1_0::Local module Models - ResponseBase = Azure::CognitiveServices::LocalSearch::V1_0::Models::ResponseBase - GeoCoordinates = Azure::CognitiveServices::LocalSearch::V1_0::Models::GeoCoordinates + SafeSearch = Azure::CognitiveServices::LocalSearch::V1_0::Models::SafeSearch + EntityScenario = Azure::CognitiveServices::LocalSearch::V1_0::Models::EntityScenario + ErrorSubCode = Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorSubCode + ErrorResponse = Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorResponse + Response = Azure::CognitiveServices::LocalSearch::V1_0::Models::Response + SearchResponse = Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchResponse EntitiesEntityPresentationInfo = Azure::CognitiveServices::LocalSearch::V1_0::Models::EntitiesEntityPresentationInfo - QueryContext = Azure::CognitiveServices::LocalSearch::V1_0::Models::QueryContext - Error = Azure::CognitiveServices::LocalSearch::V1_0::Models::Error - SearchResultsAnswer = Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchResultsAnswer Places = Azure::CognitiveServices::LocalSearch::V1_0::Models::Places PostalAddress = Azure::CognitiveServices::LocalSearch::V1_0::Models::PostalAddress Place = Azure::CognitiveServices::LocalSearch::V1_0::Models::Place Action = Azure::CognitiveServices::LocalSearch::V1_0::Models::Action - Identifiable = Azure::CognitiveServices::LocalSearch::V1_0::Models::Identifiable - Response = Azure::CognitiveServices::LocalSearch::V1_0::Models::Response - Thing = Azure::CognitiveServices::LocalSearch::V1_0::Models::Thing - SearchResponse = Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchResponse + Intangible = Azure::CognitiveServices::LocalSearch::V1_0::Models::Intangible + QueryContext = Azure::CognitiveServices::LocalSearch::V1_0::Models::QueryContext + GeoCoordinates = Azure::CognitiveServices::LocalSearch::V1_0::Models::GeoCoordinates + ResponseBase = Azure::CognitiveServices::LocalSearch::V1_0::Models::ResponseBase Answer = Azure::CognitiveServices::LocalSearch::V1_0::Models::Answer - ErrorResponse = Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorResponse + SearchResultsAnswer = Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchResultsAnswer + StructuredValue = Azure::CognitiveServices::LocalSearch::V1_0::Models::StructuredValue + Thing = Azure::CognitiveServices::LocalSearch::V1_0::Models::Thing CreativeWork = Azure::CognitiveServices::LocalSearch::V1_0::Models::CreativeWork - Intangible = Azure::CognitiveServices::LocalSearch::V1_0::Models::Intangible SearchAction = Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchAction - StructuredValue = Azure::CognitiveServices::LocalSearch::V1_0::Models::StructuredValue - EntityScenario = Azure::CognitiveServices::LocalSearch::V1_0::Models::EntityScenario + Identifiable = Azure::CognitiveServices::LocalSearch::V1_0::Models::Identifiable EntityType = Azure::CognitiveServices::LocalSearch::V1_0::Models::EntityType - ErrorCode = Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorCode - ErrorSubCode = Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorSubCode + Error = Azure::CognitiveServices::LocalSearch::V1_0::Models::Error ResponseFormat = Azure::CognitiveServices::LocalSearch::V1_0::Models::ResponseFormat - SafeSearch = Azure::CognitiveServices::LocalSearch::V1_0::Models::SafeSearch + ErrorCode = Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorCode end class LocalSearchDataClass @@ -67,23 +67,26 @@ def method_missing(method, *args) end class ModelClasses - def response_base - Azure::CognitiveServices::LocalSearch::V1_0::Models::ResponseBase + def safe_search + Azure::CognitiveServices::LocalSearch::V1_0::Models::SafeSearch end - def geo_coordinates - Azure::CognitiveServices::LocalSearch::V1_0::Models::GeoCoordinates + def entity_scenario + Azure::CognitiveServices::LocalSearch::V1_0::Models::EntityScenario end - def entities_entity_presentation_info - Azure::CognitiveServices::LocalSearch::V1_0::Models::EntitiesEntityPresentationInfo + def error_sub_code + Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorSubCode end - def query_context - Azure::CognitiveServices::LocalSearch::V1_0::Models::QueryContext + def error_response + Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorResponse end - def error - Azure::CognitiveServices::LocalSearch::V1_0::Models::Error + def response + Azure::CognitiveServices::LocalSearch::V1_0::Models::Response end - def search_results_answer - Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchResultsAnswer + def search_response + Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchResponse + end + def entities_entity_presentation_info + Azure::CognitiveServices::LocalSearch::V1_0::Models::EntitiesEntityPresentationInfo end def places Azure::CognitiveServices::LocalSearch::V1_0::Models::Places @@ -97,53 +100,50 @@ def place def action Azure::CognitiveServices::LocalSearch::V1_0::Models::Action end - def identifiable - Azure::CognitiveServices::LocalSearch::V1_0::Models::Identifiable + def intangible + Azure::CognitiveServices::LocalSearch::V1_0::Models::Intangible end - def response - Azure::CognitiveServices::LocalSearch::V1_0::Models::Response + def query_context + Azure::CognitiveServices::LocalSearch::V1_0::Models::QueryContext end - def thing - Azure::CognitiveServices::LocalSearch::V1_0::Models::Thing + def geo_coordinates + Azure::CognitiveServices::LocalSearch::V1_0::Models::GeoCoordinates end - def search_response - Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchResponse + def response_base + Azure::CognitiveServices::LocalSearch::V1_0::Models::ResponseBase end def answer Azure::CognitiveServices::LocalSearch::V1_0::Models::Answer end - def error_response - Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorResponse + def search_results_answer + Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchResultsAnswer + end + def structured_value + Azure::CognitiveServices::LocalSearch::V1_0::Models::StructuredValue + end + def thing + Azure::CognitiveServices::LocalSearch::V1_0::Models::Thing end def creative_work Azure::CognitiveServices::LocalSearch::V1_0::Models::CreativeWork end - def intangible - Azure::CognitiveServices::LocalSearch::V1_0::Models::Intangible - end def search_action Azure::CognitiveServices::LocalSearch::V1_0::Models::SearchAction end - def structured_value - Azure::CognitiveServices::LocalSearch::V1_0::Models::StructuredValue - end - def entity_scenario - Azure::CognitiveServices::LocalSearch::V1_0::Models::EntityScenario + def identifiable + Azure::CognitiveServices::LocalSearch::V1_0::Models::Identifiable end def entity_type Azure::CognitiveServices::LocalSearch::V1_0::Models::EntityType end - def error_code - Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorCode - end - def error_sub_code - Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorSubCode + def error + Azure::CognitiveServices::LocalSearch::V1_0::Models::Error end def response_format Azure::CognitiveServices::LocalSearch::V1_0::Models::ResponseFormat end - def safe_search - Azure::CognitiveServices::LocalSearch::V1_0::Models::SafeSearch + def error_code + Azure::CognitiveServices::LocalSearch::V1_0::Models::ErrorCode end end end diff --git a/azure_sdk/lib/latest/modules/logic_profile_module.rb b/azure_sdk/lib/latest/modules/logic_profile_module.rb index 43a536dea9..f172bdf5c0 100644 --- a/azure_sdk/lib/latest/modules/logic_profile_module.rb +++ b/azure_sdk/lib/latest/modules/logic_profile_module.rb @@ -31,8 +31,17 @@ module Mgmt Operations = Azure::Logic::Mgmt::V2018_07_01_preview::Operations module Models + ErrorResponse = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorResponse + OperationDisplay = Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationDisplay + Operation = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Operation + OperationListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationListResult + SkuName = Azure::Logic::Mgmt::V2018_07_01_preview::Models::SkuName + ContentHash = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ContentHash + ContentLink = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ContentLink + SubResource = Azure::Logic::Mgmt::V2018_07_01_preview::Models::SubResource + KeyVaultKeyReference = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyReference + Sku = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Sku X12EnvelopeOverride = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12EnvelopeOverride - Resource = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Resource X12ValidationOverride = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12ValidationOverride ResourceReference = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ResourceReference X12MessageIdentifier = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12MessageIdentifier @@ -50,20 +59,15 @@ module Models X12AcknowledgementSettings = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12AcknowledgementSettings WorkflowTriggerCallbackUrl = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerCallbackUrl X12MessageFilter = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12MessageFilter - ContentHash = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ContentHash X12SecuritySettings = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12SecuritySettings RequestHistoryListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RequestHistoryListResult X12ProcessingSettings = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12ProcessingSettings WorkflowTriggerHistoryFilter = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerHistoryFilter - SubResource = Azure::Logic::Mgmt::V2018_07_01_preview::Models::SubResource RequestHistoryProperties = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RequestHistoryProperties - Sku = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Sku WorkflowRunFilter = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunFilter WorkflowRunListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunListResult Expression = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Expression - ErrorResponse = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorResponse WorkflowListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowListResult - Request = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Request JsonSchema = Azure::Logic::Mgmt::V2018_07_01_preview::Models::JsonSchema WorkflowRunActionListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunActionListResult X12ProtocolSettings = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12ProtocolSettings @@ -103,17 +107,16 @@ module Models AgreementContent = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AgreementContent WorkflowTriggerHistoryListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerHistoryListResult RunCorrelation = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RunCorrelation - Response = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Response IntegrationAccountAgreementListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountAgreementListResult RetryHistory = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RetryHistory IntegrationAccountAgreementFilter = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountAgreementFilter RegenerateActionParameter = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RegenerateActionParameter KeyVaultKeyReferenceKeyVault = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyReferenceKeyVault IntegrationAccountListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountListResult - KeyVaultKeyReference = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyReference IntegrationAccountSchemaListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSchemaListResult OperationResultProperties = Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationResultProperties IntegrationAccountMapListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMapListResult + Resource = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Resource IntegrationAccountCertificateListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountCertificateListResult PartnerContent = Azure::Logic::Mgmt::V2018_07_01_preview::Models::PartnerContent IntegrationAccountSessionFilter = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSessionFilter @@ -122,83 +125,80 @@ module Models AS2ValidationSettings = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AS2ValidationSettings IntegrationAccountSessionListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSessionListResult AS2OneWayAgreement = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AS2OneWayAgreement - OperationDisplay = Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationDisplay WorkflowTriggerListCallbackUrlQueries = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerListCallbackUrlQueries - Operation = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Operation WorkflowRunTrigger = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunTrigger - OperationListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationListResult - WorkflowRunActionFilter = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunActionFilter RepetitionIndex = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RepetitionIndex CallbackUrl = Azure::Logic::Mgmt::V2018_07_01_preview::Models::CallbackUrl - ListKeyVaultKeysDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ListKeyVaultKeysDefinition + WorkflowRunActionFilter = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunActionFilter BusinessIdentity = Azure::Logic::Mgmt::V2018_07_01_preview::Models::BusinessIdentity KeyVaultKeyAttributes = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyAttributes - AS2MdnSettings = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AS2MdnSettings + ListKeyVaultKeysDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ListKeyVaultKeysDefinition KeyVaultKey = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKey WorkflowTriggerRecurrence = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerRecurrence - KeyVaultKeyCollection = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyCollection + AS2MdnSettings = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AS2MdnSettings ErrorProperties = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorProperties TrackingEventErrorInfo = Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrackingEventErrorInfo - IntegrationAccountMapPropertiesParametersSchema = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMapPropertiesParametersSchema + KeyVaultKeyCollection = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyCollection TrackingEvent = Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrackingEvent AS2ErrorSettings = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AS2ErrorSettings - TrackingEventsDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrackingEventsDefinition + IntegrationAccountMapPropertiesParametersSchema = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMapPropertiesParametersSchema IntegrationAccountSku = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSku SetTriggerStateActionDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::SetTriggerStateActionDefinition - ContentLink = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ContentLink - ErrorInfo = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorInfo + TrackingEventsDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrackingEventsDefinition IntegrationAccountPartnerListResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountPartnerListResult ExpressionTraces = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ExpressionTraces - Workflow = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow + ErrorInfo = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorInfo WorkflowVersion = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowVersion WorkflowTrigger = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTrigger - WorkflowTriggerHistory = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerHistory + Workflow = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow WorkflowOutputParameter = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowOutputParameter WorkflowRun = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRun - WorkflowRunAction = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunAction + WorkflowTriggerHistory = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerHistory IntegrationAccount = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccount IntegrationAccountSchema = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSchema - IntegrationAccountMap = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMap + WorkflowRunAction = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunAction IntegrationAccountPartner = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountPartner + Request = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Request + IntegrationAccountMap = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMap + IntegrationAccountSession = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSession IntegrationAccountAgreement = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountAgreement IntegrationAccountCertificate = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountCertificate - IntegrationAccountSession = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSession - KeyVaultReference = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultReference + WorkflowRunActionRepetitionDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunActionRepetitionDefinition ExpressionRoot = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ExpressionRoot AzureResourceErrorInfo = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AzureResourceErrorInfo - WorkflowRunActionRepetitionDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunActionRepetitionDefinition - OperationResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationResult + ArtifactContentPropertiesDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ArtifactContentPropertiesDefinition RunActionCorrelation = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RunActionCorrelation AssemblyDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AssemblyDefinition - ArtifactContentPropertiesDefinition = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ArtifactContentPropertiesDefinition + BatchConfiguration = Azure::Logic::Mgmt::V2018_07_01_preview::Models::BatchConfiguration AssemblyProperties = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AssemblyProperties BatchConfigurationProperties = Azure::Logic::Mgmt::V2018_07_01_preview::Models::BatchConfigurationProperties - BatchConfiguration = Azure::Logic::Mgmt::V2018_07_01_preview::Models::BatchConfiguration + WorkflowState = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowState RequestHistory = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RequestHistory WorkflowProvisioningState = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowProvisioningState - WorkflowState = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowState - SkuName = Azure::Logic::Mgmt::V2018_07_01_preview::Models::SkuName - ParameterType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ParameterType - WorkflowTriggerProvisioningState = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerProvisioningState WorkflowStatus = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowStatus + Response = Azure::Logic::Mgmt::V2018_07_01_preview::Models::Response RecurrenceFrequency = Azure::Logic::Mgmt::V2018_07_01_preview::Models::RecurrenceFrequency DaysOfWeek = Azure::Logic::Mgmt::V2018_07_01_preview::Models::DaysOfWeek - DayOfWeek = Azure::Logic::Mgmt::V2018_07_01_preview::Models::DayOfWeek - KeyType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyType + ParameterType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::ParameterType + WorkflowTriggerProvisioningState = Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerProvisioningState + KeyVaultReference = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultReference IntegrationAccountSkuName = Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSkuName SchemaType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::SchemaType - MapType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::MapType - PartnerType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::PartnerType - AgreementType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AgreementType - HashingAlgorithm = Azure::Logic::Mgmt::V2018_07_01_preview::Models::HashingAlgorithm + DayOfWeek = Azure::Logic::Mgmt::V2018_07_01_preview::Models::DayOfWeek + KeyType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyType EncryptionAlgorithm = Azure::Logic::Mgmt::V2018_07_01_preview::Models::EncryptionAlgorithm + HashingAlgorithm = Azure::Logic::Mgmt::V2018_07_01_preview::Models::HashingAlgorithm + PartnerType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::PartnerType SigningAlgorithm = Azure::Logic::Mgmt::V2018_07_01_preview::Models::SigningAlgorithm TrailingSeparatorPolicy = Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrailingSeparatorPolicy - X12CharacterSet = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12CharacterSet + MapType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::MapType SegmentTerminatorSuffix = Azure::Logic::Mgmt::V2018_07_01_preview::Models::SegmentTerminatorSuffix + AgreementType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::AgreementType + OperationResult = Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationResult + UsageIndicator = Azure::Logic::Mgmt::V2018_07_01_preview::Models::UsageIndicator X12DateFormat = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12DateFormat X12TimeFormat = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12TimeFormat - UsageIndicator = Azure::Logic::Mgmt::V2018_07_01_preview::Models::UsageIndicator + X12CharacterSet = Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12CharacterSet MessageFilterType = Azure::Logic::Mgmt::V2018_07_01_preview::Models::MessageFilterType EdifactCharacterSet = Azure::Logic::Mgmt::V2018_07_01_preview::Models::EdifactCharacterSet EdifactDecimalIndicator = Azure::Logic::Mgmt::V2018_07_01_preview::Models::EdifactDecimalIndicator @@ -258,12 +258,39 @@ def method_missing(method, *args) end class ModelClasses + def error_response + Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorResponse + end + def operation_display + Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationDisplay + end + def operation + Azure::Logic::Mgmt::V2018_07_01_preview::Models::Operation + end + def operation_list_result + Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationListResult + end + def sku_name + Azure::Logic::Mgmt::V2018_07_01_preview::Models::SkuName + end + def content_hash + Azure::Logic::Mgmt::V2018_07_01_preview::Models::ContentHash + end + def content_link + Azure::Logic::Mgmt::V2018_07_01_preview::Models::ContentLink + end + def sub_resource + Azure::Logic::Mgmt::V2018_07_01_preview::Models::SubResource + end + def key_vault_key_reference + Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyReference + end + def sku + Azure::Logic::Mgmt::V2018_07_01_preview::Models::Sku + end def x12_envelope_override Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12EnvelopeOverride end - def resource - Azure::Logic::Mgmt::V2018_07_01_preview::Models::Resource - end def x12_validation_override Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12ValidationOverride end @@ -315,9 +342,6 @@ def workflow_trigger_callback_url def x12_message_filter Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12MessageFilter end - def content_hash - Azure::Logic::Mgmt::V2018_07_01_preview::Models::ContentHash - end def x12_security_settings Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12SecuritySettings end @@ -330,15 +354,9 @@ def x12_processing_settings def workflow_trigger_history_filter Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerHistoryFilter end - def sub_resource - Azure::Logic::Mgmt::V2018_07_01_preview::Models::SubResource - end def request_history_properties Azure::Logic::Mgmt::V2018_07_01_preview::Models::RequestHistoryProperties end - def sku - Azure::Logic::Mgmt::V2018_07_01_preview::Models::Sku - end def workflow_run_filter Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunFilter end @@ -348,15 +366,9 @@ def workflow_run_list_result def expression Azure::Logic::Mgmt::V2018_07_01_preview::Models::Expression end - def error_response - Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorResponse - end def workflow_list_result Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowListResult end - def request - Azure::Logic::Mgmt::V2018_07_01_preview::Models::Request - end def json_schema Azure::Logic::Mgmt::V2018_07_01_preview::Models::JsonSchema end @@ -474,9 +486,6 @@ def workflow_trigger_history_list_result def run_correlation Azure::Logic::Mgmt::V2018_07_01_preview::Models::RunCorrelation end - def response - Azure::Logic::Mgmt::V2018_07_01_preview::Models::Response - end def integration_account_agreement_list_result Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountAgreementListResult end @@ -495,9 +504,6 @@ def key_vault_key_reference_key_vault def integration_account_list_result Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountListResult end - def key_vault_key_reference - Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyReference - end def integration_account_schema_list_result Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSchemaListResult end @@ -507,6 +513,9 @@ def operation_result_properties def integration_account_map_list_result Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMapListResult end + def resource + Azure::Logic::Mgmt::V2018_07_01_preview::Models::Resource + end def integration_account_certificate_list_result Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountCertificateListResult end @@ -531,32 +540,20 @@ def integration_account_session_list_result def as2_one_way_agreement Azure::Logic::Mgmt::V2018_07_01_preview::Models::AS2OneWayAgreement end - def operation_display - Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationDisplay - end def workflow_trigger_list_callback_url_queries Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerListCallbackUrlQueries end - def operation - Azure::Logic::Mgmt::V2018_07_01_preview::Models::Operation - end def workflow_run_trigger Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunTrigger end - def operation_list_result - Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationListResult - end - def workflow_run_action_filter - Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunActionFilter - end def repetition_index Azure::Logic::Mgmt::V2018_07_01_preview::Models::RepetitionIndex end def callback_url Azure::Logic::Mgmt::V2018_07_01_preview::Models::CallbackUrl end - def list_key_vault_keys_definition - Azure::Logic::Mgmt::V2018_07_01_preview::Models::ListKeyVaultKeysDefinition + def workflow_run_action_filter + Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunActionFilter end def business_identity Azure::Logic::Mgmt::V2018_07_01_preview::Models::BusinessIdentity @@ -564,8 +561,8 @@ def business_identity def key_vault_key_attributes Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyAttributes end - def as2_mdn_settings - Azure::Logic::Mgmt::V2018_07_01_preview::Models::AS2MdnSettings + def list_key_vault_keys_definition + Azure::Logic::Mgmt::V2018_07_01_preview::Models::ListKeyVaultKeysDefinition end def key_vault_key Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKey @@ -573,8 +570,8 @@ def key_vault_key def workflow_trigger_recurrence Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerRecurrence end - def key_vault_key_collection - Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyCollection + def as2_mdn_settings + Azure::Logic::Mgmt::V2018_07_01_preview::Models::AS2MdnSettings end def error_properties Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorProperties @@ -582,8 +579,8 @@ def error_properties def tracking_event_error_info Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrackingEventErrorInfo end - def integration_account_map_properties_parameters_schema - Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMapPropertiesParametersSchema + def key_vault_key_collection + Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultKeyCollection end def tracking_event Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrackingEvent @@ -591,8 +588,8 @@ def tracking_event def as2_error_settings Azure::Logic::Mgmt::V2018_07_01_preview::Models::AS2ErrorSettings end - def tracking_events_definition - Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrackingEventsDefinition + def integration_account_map_properties_parameters_schema + Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMapPropertiesParametersSchema end def integration_account_sku Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSku @@ -600,11 +597,8 @@ def integration_account_sku def set_trigger_state_action_definition Azure::Logic::Mgmt::V2018_07_01_preview::Models::SetTriggerStateActionDefinition end - def content_link - Azure::Logic::Mgmt::V2018_07_01_preview::Models::ContentLink - end - def error_info - Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorInfo + def tracking_events_definition + Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrackingEventsDefinition end def integration_account_partner_list_result Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountPartnerListResult @@ -612,8 +606,8 @@ def integration_account_partner_list_result def expression_traces Azure::Logic::Mgmt::V2018_07_01_preview::Models::ExpressionTraces end - def workflow - Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow + def error_info + Azure::Logic::Mgmt::V2018_07_01_preview::Models::ErrorInfo end def workflow_version Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowVersion @@ -621,8 +615,8 @@ def workflow_version def workflow_trigger Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTrigger end - def workflow_trigger_history - Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerHistory + def workflow + Azure::Logic::Mgmt::V2018_07_01_preview::Models::Workflow end def workflow_output_parameter Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowOutputParameter @@ -630,8 +624,8 @@ def workflow_output_parameter def workflow_run Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRun end - def workflow_run_action - Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunAction + def workflow_trigger_history + Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerHistory end def integration_account Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccount @@ -639,23 +633,29 @@ def integration_account def integration_account_schema Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSchema end - def integration_account_map - Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMap + def workflow_run_action + Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunAction end def integration_account_partner Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountPartner end + def request + Azure::Logic::Mgmt::V2018_07_01_preview::Models::Request + end + def integration_account_map + Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountMap + end + def integration_account_session + Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSession + end def integration_account_agreement Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountAgreement end def integration_account_certificate Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountCertificate end - def integration_account_session - Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSession - end - def key_vault_reference - Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultReference + def workflow_run_action_repetition_definition + Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunActionRepetitionDefinition end def expression_root Azure::Logic::Mgmt::V2018_07_01_preview::Models::ExpressionRoot @@ -663,11 +663,8 @@ def expression_root def azure_resource_error_info Azure::Logic::Mgmt::V2018_07_01_preview::Models::AzureResourceErrorInfo end - def workflow_run_action_repetition_definition - Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowRunActionRepetitionDefinition - end - def operation_result - Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationResult + def artifact_content_properties_definition + Azure::Logic::Mgmt::V2018_07_01_preview::Models::ArtifactContentPropertiesDefinition end def run_action_correlation Azure::Logic::Mgmt::V2018_07_01_preview::Models::RunActionCorrelation @@ -675,8 +672,8 @@ def run_action_correlation def assembly_definition Azure::Logic::Mgmt::V2018_07_01_preview::Models::AssemblyDefinition end - def artifact_content_properties_definition - Azure::Logic::Mgmt::V2018_07_01_preview::Models::ArtifactContentPropertiesDefinition + def batch_configuration + Azure::Logic::Mgmt::V2018_07_01_preview::Models::BatchConfiguration end def assembly_properties Azure::Logic::Mgmt::V2018_07_01_preview::Models::AssemblyProperties @@ -684,8 +681,8 @@ def assembly_properties def batch_configuration_properties Azure::Logic::Mgmt::V2018_07_01_preview::Models::BatchConfigurationProperties end - def batch_configuration - Azure::Logic::Mgmt::V2018_07_01_preview::Models::BatchConfiguration + def workflow_state + Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowState end def request_history Azure::Logic::Mgmt::V2018_07_01_preview::Models::RequestHistory @@ -693,32 +690,26 @@ def request_history def workflow_provisioning_state Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowProvisioningState end - def workflow_state - Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowState - end - def sku_name - Azure::Logic::Mgmt::V2018_07_01_preview::Models::SkuName - end - def parameter_type - Azure::Logic::Mgmt::V2018_07_01_preview::Models::ParameterType - end - def workflow_trigger_provisioning_state - Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerProvisioningState - end def workflow_status Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowStatus end + def response + Azure::Logic::Mgmt::V2018_07_01_preview::Models::Response + end def recurrence_frequency Azure::Logic::Mgmt::V2018_07_01_preview::Models::RecurrenceFrequency end def days_of_week Azure::Logic::Mgmt::V2018_07_01_preview::Models::DaysOfWeek end - def day_of_week - Azure::Logic::Mgmt::V2018_07_01_preview::Models::DayOfWeek + def parameter_type + Azure::Logic::Mgmt::V2018_07_01_preview::Models::ParameterType end - def key_type - Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyType + def workflow_trigger_provisioning_state + Azure::Logic::Mgmt::V2018_07_01_preview::Models::WorkflowTriggerProvisioningState + end + def key_vault_reference + Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyVaultReference end def integration_account_sku_name Azure::Logic::Mgmt::V2018_07_01_preview::Models::IntegrationAccountSkuName @@ -726,20 +717,20 @@ def integration_account_sku_name def schema_type Azure::Logic::Mgmt::V2018_07_01_preview::Models::SchemaType end - def map_type - Azure::Logic::Mgmt::V2018_07_01_preview::Models::MapType + def day_of_week + Azure::Logic::Mgmt::V2018_07_01_preview::Models::DayOfWeek end - def partner_type - Azure::Logic::Mgmt::V2018_07_01_preview::Models::PartnerType + def key_type + Azure::Logic::Mgmt::V2018_07_01_preview::Models::KeyType end - def agreement_type - Azure::Logic::Mgmt::V2018_07_01_preview::Models::AgreementType + def encryption_algorithm + Azure::Logic::Mgmt::V2018_07_01_preview::Models::EncryptionAlgorithm end def hashing_algorithm Azure::Logic::Mgmt::V2018_07_01_preview::Models::HashingAlgorithm end - def encryption_algorithm - Azure::Logic::Mgmt::V2018_07_01_preview::Models::EncryptionAlgorithm + def partner_type + Azure::Logic::Mgmt::V2018_07_01_preview::Models::PartnerType end def signing_algorithm Azure::Logic::Mgmt::V2018_07_01_preview::Models::SigningAlgorithm @@ -747,20 +738,29 @@ def signing_algorithm def trailing_separator_policy Azure::Logic::Mgmt::V2018_07_01_preview::Models::TrailingSeparatorPolicy end - def x12_character_set - Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12CharacterSet + def map_type + Azure::Logic::Mgmt::V2018_07_01_preview::Models::MapType end def segment_terminator_suffix Azure::Logic::Mgmt::V2018_07_01_preview::Models::SegmentTerminatorSuffix end + def agreement_type + Azure::Logic::Mgmt::V2018_07_01_preview::Models::AgreementType + end + def operation_result + Azure::Logic::Mgmt::V2018_07_01_preview::Models::OperationResult + end + def usage_indicator + Azure::Logic::Mgmt::V2018_07_01_preview::Models::UsageIndicator + end def x12_date_format Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12DateFormat end def x12_time_format Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12TimeFormat end - def usage_indicator - Azure::Logic::Mgmt::V2018_07_01_preview::Models::UsageIndicator + def x12_character_set + Azure::Logic::Mgmt::V2018_07_01_preview::Models::X12CharacterSet end def message_filter_type Azure::Logic::Mgmt::V2018_07_01_preview::Models::MessageFilterType diff --git a/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb b/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb index 4b198c7d23..8173a18678 100644 --- a/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb +++ b/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb @@ -11,12 +11,23 @@ module Mgmt WebServices = Azure::MachineLearning::Mgmt::V2017_01_01::WebServices module Models - AssetItem = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetItem + 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 + ProvisioningState = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ProvisioningState + InputPortType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::InputPortType + OutputPortType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OutputPortType + StorageAccount = Azure::MachineLearning::Mgmt::V2017_01_01::Models::StorageAccount + AsyncOperationStatus = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AsyncOperationStatus + OperationDisplayInfo = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationDisplayInfo + ParameterType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ParameterType + OperationEntity = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntity + OperationEntityListResult = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntityListResult Resource = Azure::MachineLearning::Mgmt::V2017_01_01::Models::Resource + AssetItem = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetItem WebServiceParameter = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServiceParameter RealtimeConfiguration = Azure::MachineLearning::Mgmt::V2017_01_01::Models::RealtimeConfiguration 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 @@ -30,27 +41,16 @@ module Models 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 AsyncOperationErrorInfo = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AsyncOperationErrorInfo 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 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 - OutputPortType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OutputPortType - ParameterType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ParameterType end class MachineLearningManagementClass @@ -84,12 +84,48 @@ def method_missing(method, *args) end class ModelClasses - def asset_item - Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetItem + def column_type + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnType + end + def column_format + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnFormat + end + def asset_type + Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetType + end + def provisioning_state + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ProvisioningState + 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 storage_account + Azure::MachineLearning::Mgmt::V2017_01_01::Models::StorageAccount + end + def async_operation_status + Azure::MachineLearning::Mgmt::V2017_01_01::Models::AsyncOperationStatus + end + def operation_display_info + Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationDisplayInfo + end + def parameter_type + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ParameterType + end + def operation_entity + Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntity + end + def operation_entity_list_result + Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntityListResult end def resource Azure::MachineLearning::Mgmt::V2017_01_01::Models::Resource end + def asset_item + Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetItem + end def web_service_parameter Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServiceParameter end @@ -99,9 +135,6 @@ def realtime_configuration 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 @@ -141,9 +174,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 @@ -159,51 +189,21 @@ def async_operation_error_info 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 operation_entity - Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntity - end def web_service Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebService 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 - end - def column_format - Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnFormat - 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 parameter_type - Azure::MachineLearning::Mgmt::V2017_01_01::Models::ParameterType - end end end 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..bca65779b1 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 Identity = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Identity - 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 + Plan = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Plan 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 + GenericResource = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::GenericResource + Sku = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Sku ApplicationArtifactType = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationArtifactType ResourceIdentityType = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ResourceIdentityType + ProvisioningState = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ProvisioningState + ErrorResponse = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ErrorResponse + ApplicationListResult = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationListResult + Application = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Application + PlanPatchable = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::PlanPatchable + ApplicationProviderAuthorization = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationProviderAuthorization + ApplicationDefinitionListResult = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationDefinitionListResult end class ManagedApplicationsManagementClass @@ -62,41 +62,17 @@ def method_missing(method, *args) end class ModelClasses - def sku - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Sku - end - def plan - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Plan - end def identity Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Identity 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 + def plan + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Plan end def application_patchable Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationPatchable @@ -104,18 +80,42 @@ def application_patchable 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 + 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_artifact_type Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationArtifactType end def resource_identity_type Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ResourceIdentityType end + def provisioning_state + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ProvisioningState + end + def error_response + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ErrorResponse + end + def application_list_result + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationListResult + end + def application + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Application + end + def plan_patchable + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::PlanPatchable + 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 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..81c4d9179b 100644 --- a/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb +++ b/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb @@ -13,10 +13,10 @@ module Mgmt module Models Identity = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity OperationDisplay = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationDisplay + UserAssignedIdentities = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentities 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 @@ -56,6 +56,9 @@ def identity def operation_display Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationDisplay end + 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 @@ -65,9 +68,6 @@ def user_assigned_identities_list_result 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..19dc3d1608 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 + Resource = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Resource + ErrorResponse = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponse OperationDisplay = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay Operation = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Operation - 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 + ErrorResponseError = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponseError AgreementTerms = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::AgreementTerms 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,23 +51,23 @@ def method_missing(method, *args) end class ModelClasses + def resource + Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Resource + end + def error_response + Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponse + end def operation_display Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay end def operation Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Operation 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 + def error_response_error + Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponseError end def agreement_terms Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::AgreementTerms diff --git a/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb b/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb index 3268625d67..e85593c950 100644 --- a/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb @@ -7,10 +7,13 @@ module Azure::Profiles::Latest module MediaServices module Mgmt - AccountFilters = Azure::MediaServices::Mgmt::V2018_07_01::AccountFilters + LiveEvents = Azure::MediaServices::Mgmt::V2018_07_01::LiveEvents + LiveOutputs = Azure::MediaServices::Mgmt::V2018_07_01::LiveOutputs + StreamingEndpoints = Azure::MediaServices::Mgmt::V2018_07_01::StreamingEndpoints Operations = Azure::MediaServices::Mgmt::V2018_07_01::Operations - Mediaservices = Azure::MediaServices::Mgmt::V2018_07_01::Mediaservices Locations = Azure::MediaServices::Mgmt::V2018_07_01::Locations + AccountFilters = Azure::MediaServices::Mgmt::V2018_07_01::AccountFilters + Mediaservices = Azure::MediaServices::Mgmt::V2018_07_01::Mediaservices Assets = Azure::MediaServices::Mgmt::V2018_07_01::Assets AssetFilters = Azure::MediaServices::Mgmt::V2018_07_01::AssetFilters ContentKeyPolicies = Azure::MediaServices::Mgmt::V2018_07_01::ContentKeyPolicies @@ -18,148 +21,134 @@ module Mgmt Jobs = Azure::MediaServices::Mgmt::V2018_07_01::Jobs StreamingPolicies = Azure::MediaServices::Mgmt::V2018_07_01::StreamingPolicies StreamingLocators = Azure::MediaServices::Mgmt::V2018_07_01::StreamingLocators - LiveEvents = Azure::MediaServices::Mgmt::V2018_07_01::LiveEvents - LiveOutputs = Azure::MediaServices::Mgmt::V2018_07_01::LiveOutputs - StreamingEndpoints = Azure::MediaServices::Mgmt::V2018_07_01::StreamingEndpoints module Models + CheckNameAvailabilityInput = Azure::MediaServices::Mgmt::V2018_07_01::Models::CheckNameAvailabilityInput + Job = Azure::MediaServices::Mgmt::V2018_07_01::Models::Job + OperationDisplay = Azure::MediaServices::Mgmt::V2018_07_01::Models::OperationDisplay + Operation = Azure::MediaServices::Mgmt::V2018_07_01::Models::Operation + ServiceSpecification = Azure::MediaServices::Mgmt::V2018_07_01::Models::ServiceSpecification Codec = Azure::MediaServices::Mgmt::V2018_07_01::Models::Codec PresentationTimeRange = Azure::MediaServices::Mgmt::V2018_07_01::Models::PresentationTimeRange ContentKeyPolicyProperties = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyProperties FirstQuality = Azure::MediaServices::Mgmt::V2018_07_01::Models::FirstQuality FilterTrackSelection = Azure::MediaServices::Mgmt::V2018_07_01::Models::FilterTrackSelection StreamingPolicyFairPlayConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyFairPlayConfiguration - ODataError = Azure::MediaServices::Mgmt::V2018_07_01::Models::ODataError ContentKeyPolicyCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyCollection AccountFilterCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::AccountFilterCollection Preset = Azure::MediaServices::Mgmt::V2018_07_01::Models::Preset - Resource = Azure::MediaServices::Mgmt::V2018_07_01::Models::Resource FilterTrackPropertyCondition = Azure::MediaServices::Mgmt::V2018_07_01::Models::FilterTrackPropertyCondition - Provider = Azure::MediaServices::Mgmt::V2018_07_01::Models::Provider StreamingPath = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPath MetricDimension = Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricDimension StreamingLocatorContentKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorContentKey - ServiceSpecification = Azure::MediaServices::Mgmt::V2018_07_01::Models::ServiceSpecification ListContentKeysResponse = Azure::MediaServices::Mgmt::V2018_07_01::Models::ListContentKeysResponse - Operation = Azure::MediaServices::Mgmt::V2018_07_01::Models::Operation Overlay = Azure::MediaServices::Mgmt::V2018_07_01::Models::Overlay EntityNameAvailabilityCheckOutput = Azure::MediaServices::Mgmt::V2018_07_01::Models::EntityNameAvailabilityCheckOutput CommonEncryptionCbcs = Azure::MediaServices::Mgmt::V2018_07_01::Models::CommonEncryptionCbcs SyncStorageKeysInput = Azure::MediaServices::Mgmt::V2018_07_01::Models::SyncStorageKeysInput CommonEncryptionCenc = Azure::MediaServices::Mgmt::V2018_07_01::Models::CommonEncryptionCenc - ApiError = Azure::MediaServices::Mgmt::V2018_07_01::Models::ApiError - OperationCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::OperationCollection LiveOutputListResult = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveOutputListResult - CheckNameAvailabilityInput = Azure::MediaServices::Mgmt::V2018_07_01::Models::CheckNameAvailabilityInput LiveEventEndpoint = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEndpoint AssetContainerSas = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetContainerSas - OperationDisplay = Azure::MediaServices::Mgmt::V2018_07_01::Models::OperationDisplay StorageEncryptedAssetDecryptionData = Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageEncryptedAssetDecryptionData Metric = Azure::MediaServices::Mgmt::V2018_07_01::Models::Metric ListStreamingLocatorsResponse = Azure::MediaServices::Mgmt::V2018_07_01::Models::ListStreamingLocatorsResponse MetricProperties = Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricProperties + ODataError = Azure::MediaServices::Mgmt::V2018_07_01::Models::ODataError StreamingPolicyPlayReadyConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyPlayReadyConfiguration - Location = Azure::MediaServices::Mgmt::V2018_07_01::Models::Location - ListContainerSasInput = Azure::MediaServices::Mgmt::V2018_07_01::Models::ListContainerSasInput - StorageAccount = Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccount ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction JobInput = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobInput - StreamingPolicyContentKeys = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyContentKeys + OperationCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::OperationCollection Hls = Azure::MediaServices::Mgmt::V2018_07_01::Models::Hls ContentKeyPolicyPlayReadyPlayRight = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyPlayRight + ListContainerSasInput = Azure::MediaServices::Mgmt::V2018_07_01::Models::ListContainerSasInput EnvelopeEncryption = Azure::MediaServices::Mgmt::V2018_07_01::Models::EnvelopeEncryption ContentKeyPolicyPlayReadyLicense = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyLicense - NoEncryption = Azure::MediaServices::Mgmt::V2018_07_01::Models::NoEncryption + StreamingPolicyContentKeys = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyContentKeys DefaultKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::DefaultKey - Format = Azure::MediaServices::Mgmt::V2018_07_01::Models::Format - ContentKeyPolicyConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyConfiguration + NoEncryption = Azure::MediaServices::Mgmt::V2018_07_01::Models::NoEncryption EnabledProtocols = Azure::MediaServices::Mgmt::V2018_07_01::Models::EnabledProtocols - TrackPropertyCondition = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCondition + ContentKeyPolicyConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyConfiguration CencDrmConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::CencDrmConfiguration - TransformCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::TransformCollection + TrackPropertyCondition = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCondition CbcsDrmConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::CbcsDrmConfiguration - StreamingPolicyCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyCollection + TransformCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::TransformCollection JobError = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobError - Deinterlace = Azure::MediaServices::Mgmt::V2018_07_01::Models::Deinterlace + StreamingPolicyCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyCollection StreamingLocatorCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorCollection - Rectangle = Azure::MediaServices::Mgmt::V2018_07_01::Models::Rectangle + Deinterlace = Azure::MediaServices::Mgmt::V2018_07_01::Models::Deinterlace IPRange = Azure::MediaServices::Mgmt::V2018_07_01::Models::IPRange - MediaServiceCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::MediaServiceCollection - Filters = Azure::MediaServices::Mgmt::V2018_07_01::Models::Filters + Rectangle = Azure::MediaServices::Mgmt::V2018_07_01::Models::Rectangle AssetFileEncryptionMetadata = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetFileEncryptionMetadata - Layer = Azure::MediaServices::Mgmt::V2018_07_01::Models::Layer + MediaServiceCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::MediaServiceCollection StreamingPolicyWidevineConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyWidevineConfiguration - StreamingEndpointListResult = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointListResult + Layer = Azure::MediaServices::Mgmt::V2018_07_01::Models::Layer AssetFilterCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetFilterCollection - StreamingEntityScaleUnit = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEntityScaleUnit + StreamingEndpointListResult = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointListResult StreamingPolicyContentKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyContentKey - StreamingEndpointAccessControl = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointAccessControl + StreamingEntityScaleUnit = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEntityScaleUnit ContentKeyPolicyRestriction = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestriction - AkamaiAccessControl = Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiAccessControl + StreamingEndpointAccessControl = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointAccessControl ContentKeyPolicyRestrictionTokenKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestrictionTokenKey - AkamaiSignatureHeaderAuthenticationKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiSignatureHeaderAuthenticationKey + AkamaiAccessControl = Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiAccessControl ListPathsResponse = Azure::MediaServices::Mgmt::V2018_07_01::Models::ListPathsResponse - OutputFile = Azure::MediaServices::Mgmt::V2018_07_01::Models::OutputFile + AkamaiSignatureHeaderAuthenticationKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiSignatureHeaderAuthenticationKey JobErrorDetail = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorDetail - LiveEventListResult = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventListResult + OutputFile = Azure::MediaServices::Mgmt::V2018_07_01::Models::OutputFile SubscriptionMediaServiceCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::SubscriptionMediaServiceCollection LiveEventActionInput = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventActionInput - AssetCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetCollection CrossSiteAccessPolicies = Azure::MediaServices::Mgmt::V2018_07_01::Models::CrossSiteAccessPolicies ContentKeyPolicyTokenClaim = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenClaim - LiveEventEncoding = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEncoding + LiveEventListResult = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventListResult JobCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobCollection LiveEventPreview = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventPreview + AssetCollection = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetCollection ContentKeyPolicyOption = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyOption LiveEventPreviewAccessControl = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventPreviewAccessControl - ContentKeyPolicyPlayReadyContentKeyLocation = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentKeyLocation + LiveEventEncoding = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEncoding LiveEventInput = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInput - JobOutput = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobOutput + ContentKeyPolicyPlayReadyContentKeyLocation = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentKeyLocation LiveEventInputAccessControl = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInputAccessControl - TrackSelection = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackSelection + JobOutput = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobOutput IPAccessControl = Azure::MediaServices::Mgmt::V2018_07_01::Models::IPAccessControl - AssetStreamingLocator = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetStreamingLocator + TrackSelection = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackSelection TransformOutput = Azure::MediaServices::Mgmt::V2018_07_01::Models::TransformOutput - AccountFilter = Azure::MediaServices::Mgmt::V2018_07_01::Models::AccountFilter - TrackedResource = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackedResource - ProxyResource = Azure::MediaServices::Mgmt::V2018_07_01::Models::ProxyResource + AssetStreamingLocator = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetStreamingLocator MediaService = Azure::MediaServices::Mgmt::V2018_07_01::Models::MediaService - SubscriptionMediaService = Azure::MediaServices::Mgmt::V2018_07_01::Models::SubscriptionMediaService + AccountFilter = Azure::MediaServices::Mgmt::V2018_07_01::Models::AccountFilter Asset = Azure::MediaServices::Mgmt::V2018_07_01::Models::Asset - AssetFilter = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetFilter + SubscriptionMediaService = Azure::MediaServices::Mgmt::V2018_07_01::Models::SubscriptionMediaService ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader - ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier + AssetFilter = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetFilter ContentKeyPolicyOpenRestriction = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyOpenRestriction - ContentKeyPolicyUnknownRestriction = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyUnknownRestriction + ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier ContentKeyPolicySymmetricTokenKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicySymmetricTokenKey - ContentKeyPolicyRsaTokenKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRsaTokenKey + ContentKeyPolicyUnknownRestriction = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyUnknownRestriction ContentKeyPolicyX509CertificateTokenKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyX509CertificateTokenKey - ContentKeyPolicyTokenRestriction = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenRestriction + ContentKeyPolicyRsaTokenKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRsaTokenKey ContentKeyPolicyClearKeyConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyClearKeyConfiguration - ContentKeyPolicyUnknownConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyUnknownConfiguration + ContentKeyPolicyTokenRestriction = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenRestriction ContentKeyPolicyWidevineConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyWidevineConfiguration - ContentKeyPolicyPlayReadyConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyConfiguration + ContentKeyPolicyUnknownConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyUnknownConfiguration ContentKeyPolicyFairPlayConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyFairPlayConfiguration - ContentKeyPolicy = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicy + ContentKeyPolicyPlayReadyConfiguration = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyConfiguration Audio = Azure::MediaServices::Mgmt::V2018_07_01::Models::Audio - AacAudio = Azure::MediaServices::Mgmt::V2018_07_01::Models::AacAudio + ContentKeyPolicy = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicy AudioAnalyzerPreset = Azure::MediaServices::Mgmt::V2018_07_01::Models::AudioAnalyzerPreset - AudioOverlay = Azure::MediaServices::Mgmt::V2018_07_01::Models::AudioOverlay + AacAudio = Azure::MediaServices::Mgmt::V2018_07_01::Models::AacAudio CopyVideo = Azure::MediaServices::Mgmt::V2018_07_01::Models::CopyVideo - Video = Azure::MediaServices::Mgmt::V2018_07_01::Models::Video - Image = Azure::MediaServices::Mgmt::V2018_07_01::Models::Image + AudioOverlay = Azure::MediaServices::Mgmt::V2018_07_01::Models::AudioOverlay ImageFormat = Azure::MediaServices::Mgmt::V2018_07_01::Models::ImageFormat - JpgFormat = Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgFormat + Video = Azure::MediaServices::Mgmt::V2018_07_01::Models::Video PngFormat = Azure::MediaServices::Mgmt::V2018_07_01::Models::PngFormat - CopyAudio = Azure::MediaServices::Mgmt::V2018_07_01::Models::CopyAudio + JpgFormat = Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgFormat VideoLayer = Azure::MediaServices::Mgmt::V2018_07_01::Models::VideoLayer - H264Layer = Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Layer + CopyAudio = Azure::MediaServices::Mgmt::V2018_07_01::Models::CopyAudio H264Video = Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Video - JpgLayer = Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgLayer + H264Layer = Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Layer JpgImage = Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgImage - MultiBitrateFormat = Azure::MediaServices::Mgmt::V2018_07_01::Models::MultiBitrateFormat + JpgLayer = Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgLayer Mp4Format = Azure::MediaServices::Mgmt::V2018_07_01::Models::Mp4Format - PngLayer = Azure::MediaServices::Mgmt::V2018_07_01::Models::PngLayer PngImage = Azure::MediaServices::Mgmt::V2018_07_01::Models::PngImage BuiltInStandardEncoderPreset = Azure::MediaServices::Mgmt::V2018_07_01::Models::BuiltInStandardEncoderPreset StandardEncoderPreset = Azure::MediaServices::Mgmt::V2018_07_01::Models::StandardEncoderPreset @@ -172,7 +161,6 @@ module Models JobInputAsset = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobInputAsset JobInputHttp = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobInputHttp JobOutputAsset = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobOutputAsset - Job = Azure::MediaServices::Mgmt::V2018_07_01::Models::Job StreamingPolicy = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicy StreamingLocator = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocator LiveOutput = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveOutput @@ -182,7 +170,6 @@ module Models FilterTrackPropertyCompareOperation = Azure::MediaServices::Mgmt::V2018_07_01::Models::FilterTrackPropertyCompareOperation MetricUnit = Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricUnit MetricAggregationType = Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricAggregationType - StorageAccountType = Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccountType AssetStorageEncryptionFormat = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetStorageEncryptionFormat AssetContainerPermission = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetContainerPermission ContentKeyPolicyPlayReadyUnknownOutputPassingOption = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyUnknownOutputPassingOption @@ -190,37 +177,50 @@ module Models ContentKeyPolicyPlayReadyContentType = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentType ContentKeyPolicyRestrictionTokenType = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestrictionTokenType ContentKeyPolicyFairPlayRentalAndLeaseKeyType = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyFairPlayRentalAndLeaseKeyType - AacAudioProfile = Azure::MediaServices::Mgmt::V2018_07_01::Models::AacAudioProfile + TrackedResource = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackedResource StretchMode = Azure::MediaServices::Mgmt::V2018_07_01::Models::StretchMode + ProxyResource = Azure::MediaServices::Mgmt::V2018_07_01::Models::ProxyResource DeinterlaceParity = Azure::MediaServices::Mgmt::V2018_07_01::Models::DeinterlaceParity DeinterlaceMode = Azure::MediaServices::Mgmt::V2018_07_01::Models::DeinterlaceMode - Rotation = Azure::MediaServices::Mgmt::V2018_07_01::Models::Rotation + MultiBitrateFormat = Azure::MediaServices::Mgmt::V2018_07_01::Models::MultiBitrateFormat + AacAudioProfile = Azure::MediaServices::Mgmt::V2018_07_01::Models::AacAudioProfile + PngLayer = Azure::MediaServices::Mgmt::V2018_07_01::Models::PngLayer H264VideoProfile = Azure::MediaServices::Mgmt::V2018_07_01::Models::H264VideoProfile EntropyMode = Azure::MediaServices::Mgmt::V2018_07_01::Models::EntropyMode - H264Complexity = Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Complexity + Rotation = Azure::MediaServices::Mgmt::V2018_07_01::Models::Rotation EncoderNamedPreset = Azure::MediaServices::Mgmt::V2018_07_01::Models::EncoderNamedPreset InsightsType = Azure::MediaServices::Mgmt::V2018_07_01::Models::InsightsType - OnErrorType = Azure::MediaServices::Mgmt::V2018_07_01::Models::OnErrorType + H264Complexity = Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Complexity Priority = Azure::MediaServices::Mgmt::V2018_07_01::Models::Priority JobErrorCode = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCode - JobErrorCategory = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCategory + OnErrorType = Azure::MediaServices::Mgmt::V2018_07_01::Models::OnErrorType JobRetry = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobRetry - JobState = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobState TrackPropertyType = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyType + JobErrorCategory = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCategory + JobState = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobState + StreamingPolicyStreamingProtocol = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyStreamingProtocol TrackPropertyCompareOperation = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCompareOperation StreamingLocatorContentKeyType = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorContentKeyType - StreamingPolicyStreamingProtocol = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyStreamingProtocol + LiveEventInputProtocol = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInputProtocol EncryptionScheme = Azure::MediaServices::Mgmt::V2018_07_01::Models::EncryptionScheme LiveOutputResourceState = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveOutputResourceState - LiveEventInputProtocol = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInputProtocol + StreamOptionsFlag = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamOptionsFlag LiveEventEncodingType = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEncodingType LiveEventResourceState = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventResourceState - StreamOptionsFlag = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamOptionsFlag StreamingEndpointResourceState = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointResourceState + Provider = Azure::MediaServices::Mgmt::V2018_07_01::Models::Provider + Filters = Azure::MediaServices::Mgmt::V2018_07_01::Models::Filters + ApiError = Azure::MediaServices::Mgmt::V2018_07_01::Models::ApiError + Format = Azure::MediaServices::Mgmt::V2018_07_01::Models::Format + Resource = Azure::MediaServices::Mgmt::V2018_07_01::Models::Resource + Image = Azure::MediaServices::Mgmt::V2018_07_01::Models::Image + Location = Azure::MediaServices::Mgmt::V2018_07_01::Models::Location + StorageAccount = Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccount + StorageAccountType = Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccountType end class MediaServicesManagementClass - attr_reader :account_filters, :operations, :mediaservices, :locations, :assets, :asset_filters, :content_key_policies, :transforms, :jobs, :streaming_policies, :streaming_locators, :live_events, :live_outputs, :streaming_endpoints, :configurable, :base_url, :options, :model_classes + attr_reader :live_events, :live_outputs, :streaming_endpoints, :operations, :locations, :account_filters, :mediaservices, :assets, :asset_filters, :content_key_policies, :transforms, :jobs, :streaming_policies, :streaming_locators, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -230,10 +230,13 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @account_filters = @client_0.account_filters + @live_events = @client_0.live_events + @live_outputs = @client_0.live_outputs + @streaming_endpoints = @client_0.streaming_endpoints @operations = @client_0.operations - @mediaservices = @client_0.mediaservices @locations = @client_0.locations + @account_filters = @client_0.account_filters + @mediaservices = @client_0.mediaservices @assets = @client_0.assets @asset_filters = @client_0.asset_filters @content_key_policies = @client_0.content_key_policies @@ -241,9 +244,6 @@ def initialize(configurable, base_url=nil, options=nil) @jobs = @client_0.jobs @streaming_policies = @client_0.streaming_policies @streaming_locators = @client_0.streaming_locators - @live_events = @client_0.live_events - @live_outputs = @client_0.live_outputs - @streaming_endpoints = @client_0.streaming_endpoints @model_classes = ModelClasses.new end @@ -262,6 +262,21 @@ def method_missing(method, *args) end class ModelClasses + def check_name_availability_input + Azure::MediaServices::Mgmt::V2018_07_01::Models::CheckNameAvailabilityInput + end + def job + Azure::MediaServices::Mgmt::V2018_07_01::Models::Job + end + def operation_display + Azure::MediaServices::Mgmt::V2018_07_01::Models::OperationDisplay + end + def operation + Azure::MediaServices::Mgmt::V2018_07_01::Models::Operation + end + def service_specification + Azure::MediaServices::Mgmt::V2018_07_01::Models::ServiceSpecification + end def codec Azure::MediaServices::Mgmt::V2018_07_01::Models::Codec end @@ -280,9 +295,6 @@ def filter_track_selection def streaming_policy_fair_play_configuration Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyFairPlayConfiguration end - def odata_error - Azure::MediaServices::Mgmt::V2018_07_01::Models::ODataError - end def content_key_policy_collection Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyCollection end @@ -292,15 +304,9 @@ def account_filter_collection def preset Azure::MediaServices::Mgmt::V2018_07_01::Models::Preset end - def resource - Azure::MediaServices::Mgmt::V2018_07_01::Models::Resource - end def filter_track_property_condition Azure::MediaServices::Mgmt::V2018_07_01::Models::FilterTrackPropertyCondition end - def provider - Azure::MediaServices::Mgmt::V2018_07_01::Models::Provider - end def streaming_path Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPath end @@ -310,15 +316,9 @@ def metric_dimension def streaming_locator_content_key Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorContentKey end - def service_specification - Azure::MediaServices::Mgmt::V2018_07_01::Models::ServiceSpecification - end def list_content_keys_response Azure::MediaServices::Mgmt::V2018_07_01::Models::ListContentKeysResponse end - def operation - Azure::MediaServices::Mgmt::V2018_07_01::Models::Operation - end def overlay Azure::MediaServices::Mgmt::V2018_07_01::Models::Overlay end @@ -334,27 +334,15 @@ def sync_storage_keys_input def common_encryption_cenc Azure::MediaServices::Mgmt::V2018_07_01::Models::CommonEncryptionCenc end - def api_error - Azure::MediaServices::Mgmt::V2018_07_01::Models::ApiError - end - def operation_collection - Azure::MediaServices::Mgmt::V2018_07_01::Models::OperationCollection - end def live_output_list_result Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveOutputListResult end - def check_name_availability_input - Azure::MediaServices::Mgmt::V2018_07_01::Models::CheckNameAvailabilityInput - end def live_event_endpoint Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEndpoint end def asset_container_sas Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetContainerSas end - def operation_display - Azure::MediaServices::Mgmt::V2018_07_01::Models::OperationDisplay - end def storage_encrypted_asset_decryption_data Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageEncryptedAssetDecryptionData end @@ -367,26 +355,20 @@ def list_streaming_locators_response def metric_properties Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricProperties end + def odata_error + Azure::MediaServices::Mgmt::V2018_07_01::Models::ODataError + end def streaming_policy_play_ready_configuration Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyPlayReadyConfiguration end - def location - Azure::MediaServices::Mgmt::V2018_07_01::Models::Location - end - def list_container_sas_input - Azure::MediaServices::Mgmt::V2018_07_01::Models::ListContainerSasInput - end - def storage_account - Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccount - end def content_key_policy_play_ready_explicit_analog_television_restriction Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction end def job_input Azure::MediaServices::Mgmt::V2018_07_01::Models::JobInput end - def streaming_policy_content_keys - Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyContentKeys + def operation_collection + Azure::MediaServices::Mgmt::V2018_07_01::Models::OperationCollection end def hls Azure::MediaServices::Mgmt::V2018_07_01::Models::Hls @@ -394,110 +376,107 @@ def hls def content_key_policy_play_ready_play_right Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyPlayRight end + def list_container_sas_input + Azure::MediaServices::Mgmt::V2018_07_01::Models::ListContainerSasInput + end def envelope_encryption Azure::MediaServices::Mgmt::V2018_07_01::Models::EnvelopeEncryption end def content_key_policy_play_ready_license Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyLicense end - def no_encryption - Azure::MediaServices::Mgmt::V2018_07_01::Models::NoEncryption + def streaming_policy_content_keys + Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyContentKeys end def default_key Azure::MediaServices::Mgmt::V2018_07_01::Models::DefaultKey end - def format - Azure::MediaServices::Mgmt::V2018_07_01::Models::Format - end - def content_key_policy_configuration - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyConfiguration + def no_encryption + Azure::MediaServices::Mgmt::V2018_07_01::Models::NoEncryption end def enabled_protocols Azure::MediaServices::Mgmt::V2018_07_01::Models::EnabledProtocols end - def track_property_condition - Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCondition + def content_key_policy_configuration + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyConfiguration end def cenc_drm_configuration Azure::MediaServices::Mgmt::V2018_07_01::Models::CencDrmConfiguration end - def transform_collection - Azure::MediaServices::Mgmt::V2018_07_01::Models::TransformCollection + def track_property_condition + Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCondition end def cbcs_drm_configuration Azure::MediaServices::Mgmt::V2018_07_01::Models::CbcsDrmConfiguration end - def streaming_policy_collection - Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyCollection + def transform_collection + Azure::MediaServices::Mgmt::V2018_07_01::Models::TransformCollection end def job_error Azure::MediaServices::Mgmt::V2018_07_01::Models::JobError end - def deinterlace - Azure::MediaServices::Mgmt::V2018_07_01::Models::Deinterlace + def streaming_policy_collection + Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyCollection end def streaming_locator_collection Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorCollection end - def rectangle - Azure::MediaServices::Mgmt::V2018_07_01::Models::Rectangle + def deinterlace + Azure::MediaServices::Mgmt::V2018_07_01::Models::Deinterlace end def iprange Azure::MediaServices::Mgmt::V2018_07_01::Models::IPRange end - def media_service_collection - Azure::MediaServices::Mgmt::V2018_07_01::Models::MediaServiceCollection - end - def filters - Azure::MediaServices::Mgmt::V2018_07_01::Models::Filters + def rectangle + Azure::MediaServices::Mgmt::V2018_07_01::Models::Rectangle end def asset_file_encryption_metadata Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetFileEncryptionMetadata end - def layer - Azure::MediaServices::Mgmt::V2018_07_01::Models::Layer + def media_service_collection + Azure::MediaServices::Mgmt::V2018_07_01::Models::MediaServiceCollection end def streaming_policy_widevine_configuration Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyWidevineConfiguration end - def streaming_endpoint_list_result - Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointListResult + def layer + Azure::MediaServices::Mgmt::V2018_07_01::Models::Layer end def asset_filter_collection Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetFilterCollection end - def streaming_entity_scale_unit - Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEntityScaleUnit + def streaming_endpoint_list_result + Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointListResult end def streaming_policy_content_key Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyContentKey end - def streaming_endpoint_access_control - Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointAccessControl + def streaming_entity_scale_unit + Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEntityScaleUnit end def content_key_policy_restriction Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestriction end - def akamai_access_control - Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiAccessControl + def streaming_endpoint_access_control + Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointAccessControl end def content_key_policy_restriction_token_key Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestrictionTokenKey end - def akamai_signature_header_authentication_key - Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiSignatureHeaderAuthenticationKey + def akamai_access_control + Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiAccessControl end def list_paths_response Azure::MediaServices::Mgmt::V2018_07_01::Models::ListPathsResponse end - def output_file - Azure::MediaServices::Mgmt::V2018_07_01::Models::OutputFile + def akamai_signature_header_authentication_key + Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiSignatureHeaderAuthenticationKey end def job_error_detail Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorDetail end - def live_event_list_result - Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventListResult + def output_file + Azure::MediaServices::Mgmt::V2018_07_01::Models::OutputFile end def subscription_media_service_collection Azure::MediaServices::Mgmt::V2018_07_01::Models::SubscriptionMediaServiceCollection @@ -505,17 +484,14 @@ def subscription_media_service_collection def live_event_action_input Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventActionInput end - def asset_collection - Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetCollection - end def cross_site_access_policies Azure::MediaServices::Mgmt::V2018_07_01::Models::CrossSiteAccessPolicies end def content_key_policy_token_claim Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenClaim end - def live_event_encoding - Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEncoding + def live_event_list_result + Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventListResult end def job_collection Azure::MediaServices::Mgmt::V2018_07_01::Models::JobCollection @@ -523,156 +499,147 @@ def job_collection def live_event_preview Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventPreview end + def asset_collection + Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetCollection + end def content_key_policy_option Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyOption end def live_event_preview_access_control Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventPreviewAccessControl end - def content_key_policy_play_ready_content_key_location - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentKeyLocation + def live_event_encoding + Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEncoding end def live_event_input Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInput end - def job_output - Azure::MediaServices::Mgmt::V2018_07_01::Models::JobOutput + def content_key_policy_play_ready_content_key_location + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentKeyLocation end def live_event_input_access_control Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInputAccessControl end - def track_selection - Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackSelection + def job_output + Azure::MediaServices::Mgmt::V2018_07_01::Models::JobOutput end def ipaccess_control Azure::MediaServices::Mgmt::V2018_07_01::Models::IPAccessControl end - def asset_streaming_locator - Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetStreamingLocator + def track_selection + Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackSelection end def transform_output Azure::MediaServices::Mgmt::V2018_07_01::Models::TransformOutput end - def account_filter - Azure::MediaServices::Mgmt::V2018_07_01::Models::AccountFilter - end - def tracked_resource - Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackedResource - end - def proxy_resource - Azure::MediaServices::Mgmt::V2018_07_01::Models::ProxyResource + def asset_streaming_locator + Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetStreamingLocator end def media_service Azure::MediaServices::Mgmt::V2018_07_01::Models::MediaService end - def subscription_media_service - Azure::MediaServices::Mgmt::V2018_07_01::Models::SubscriptionMediaService + def account_filter + Azure::MediaServices::Mgmt::V2018_07_01::Models::AccountFilter end def asset Azure::MediaServices::Mgmt::V2018_07_01::Models::Asset end - def asset_filter - Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetFilter + def subscription_media_service + Azure::MediaServices::Mgmt::V2018_07_01::Models::SubscriptionMediaService end def content_key_policy_play_ready_content_encryption_key_from_header Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader end - def content_key_policy_play_ready_content_encryption_key_from_key_identifier - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier + def asset_filter + Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetFilter end def content_key_policy_open_restriction Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyOpenRestriction end - def content_key_policy_unknown_restriction - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyUnknownRestriction + def content_key_policy_play_ready_content_encryption_key_from_key_identifier + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier end def content_key_policy_symmetric_token_key Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicySymmetricTokenKey end - def content_key_policy_rsa_token_key - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRsaTokenKey + def content_key_policy_unknown_restriction + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyUnknownRestriction end def content_key_policy_x509_certificate_token_key Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyX509CertificateTokenKey end - def content_key_policy_token_restriction - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenRestriction + def content_key_policy_rsa_token_key + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRsaTokenKey end def content_key_policy_clear_key_configuration Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyClearKeyConfiguration end - def content_key_policy_unknown_configuration - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyUnknownConfiguration + def content_key_policy_token_restriction + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenRestriction end def content_key_policy_widevine_configuration Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyWidevineConfiguration end - def content_key_policy_play_ready_configuration - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyConfiguration + def content_key_policy_unknown_configuration + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyUnknownConfiguration end def content_key_policy_fair_play_configuration Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyFairPlayConfiguration end - def content_key_policy - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicy + def content_key_policy_play_ready_configuration + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyConfiguration end def audio Azure::MediaServices::Mgmt::V2018_07_01::Models::Audio end - def aac_audio - Azure::MediaServices::Mgmt::V2018_07_01::Models::AacAudio + def content_key_policy + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicy end def audio_analyzer_preset Azure::MediaServices::Mgmt::V2018_07_01::Models::AudioAnalyzerPreset end - def audio_overlay - Azure::MediaServices::Mgmt::V2018_07_01::Models::AudioOverlay + def aac_audio + Azure::MediaServices::Mgmt::V2018_07_01::Models::AacAudio end def copy_video Azure::MediaServices::Mgmt::V2018_07_01::Models::CopyVideo end - def video - Azure::MediaServices::Mgmt::V2018_07_01::Models::Video - end - def image - Azure::MediaServices::Mgmt::V2018_07_01::Models::Image + def audio_overlay + Azure::MediaServices::Mgmt::V2018_07_01::Models::AudioOverlay end def image_format Azure::MediaServices::Mgmt::V2018_07_01::Models::ImageFormat end - def jpg_format - Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgFormat + def video + Azure::MediaServices::Mgmt::V2018_07_01::Models::Video end def png_format Azure::MediaServices::Mgmt::V2018_07_01::Models::PngFormat end - def copy_audio - Azure::MediaServices::Mgmt::V2018_07_01::Models::CopyAudio + def jpg_format + Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgFormat end def video_layer Azure::MediaServices::Mgmt::V2018_07_01::Models::VideoLayer end - def h264_layer - Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Layer + def copy_audio + Azure::MediaServices::Mgmt::V2018_07_01::Models::CopyAudio end def h264_video Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Video end - def jpg_layer - Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgLayer + def h264_layer + Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Layer end def jpg_image Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgImage end - def multi_bitrate_format - Azure::MediaServices::Mgmt::V2018_07_01::Models::MultiBitrateFormat + def jpg_layer + Azure::MediaServices::Mgmt::V2018_07_01::Models::JpgLayer end def mp4_format Azure::MediaServices::Mgmt::V2018_07_01::Models::Mp4Format end - def png_layer - Azure::MediaServices::Mgmt::V2018_07_01::Models::PngLayer - end def png_image Azure::MediaServices::Mgmt::V2018_07_01::Models::PngImage end @@ -709,9 +676,6 @@ def job_input_http def job_output_asset Azure::MediaServices::Mgmt::V2018_07_01::Models::JobOutputAsset end - def job - Azure::MediaServices::Mgmt::V2018_07_01::Models::Job - end def streaming_policy Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicy end @@ -739,9 +703,6 @@ def metric_unit def metric_aggregation_type Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricAggregationType end - def storage_account_type - Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccountType - end def asset_storage_encryption_format Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetStorageEncryptionFormat end @@ -763,20 +724,29 @@ def content_key_policy_restriction_token_type def content_key_policy_fair_play_rental_and_lease_key_type Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyFairPlayRentalAndLeaseKeyType end - def aac_audio_profile - Azure::MediaServices::Mgmt::V2018_07_01::Models::AacAudioProfile + def tracked_resource + Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackedResource end def stretch_mode Azure::MediaServices::Mgmt::V2018_07_01::Models::StretchMode end + def proxy_resource + Azure::MediaServices::Mgmt::V2018_07_01::Models::ProxyResource + end def deinterlace_parity Azure::MediaServices::Mgmt::V2018_07_01::Models::DeinterlaceParity end def deinterlace_mode Azure::MediaServices::Mgmt::V2018_07_01::Models::DeinterlaceMode end - def rotation - Azure::MediaServices::Mgmt::V2018_07_01::Models::Rotation + def multi_bitrate_format + Azure::MediaServices::Mgmt::V2018_07_01::Models::MultiBitrateFormat + end + def aac_audio_profile + Azure::MediaServices::Mgmt::V2018_07_01::Models::AacAudioProfile + end + def png_layer + Azure::MediaServices::Mgmt::V2018_07_01::Models::PngLayer end def h264_video_profile Azure::MediaServices::Mgmt::V2018_07_01::Models::H264VideoProfile @@ -784,8 +754,8 @@ def h264_video_profile def entropy_mode Azure::MediaServices::Mgmt::V2018_07_01::Models::EntropyMode end - def h264_complexity - Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Complexity + def rotation + Azure::MediaServices::Mgmt::V2018_07_01::Models::Rotation end def encoder_named_preset Azure::MediaServices::Mgmt::V2018_07_01::Models::EncoderNamedPreset @@ -793,8 +763,8 @@ def encoder_named_preset def insights_type Azure::MediaServices::Mgmt::V2018_07_01::Models::InsightsType end - def on_error_type - Azure::MediaServices::Mgmt::V2018_07_01::Models::OnErrorType + def h264_complexity + Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Complexity end def priority Azure::MediaServices::Mgmt::V2018_07_01::Models::Priority @@ -802,17 +772,23 @@ def priority def job_error_code Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCode end - def job_error_category - Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCategory + def on_error_type + Azure::MediaServices::Mgmt::V2018_07_01::Models::OnErrorType end def job_retry Azure::MediaServices::Mgmt::V2018_07_01::Models::JobRetry end + def track_property_type + Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyType + end + def job_error_category + Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCategory + end def job_state Azure::MediaServices::Mgmt::V2018_07_01::Models::JobState end - def track_property_type - Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyType + def streaming_policy_streaming_protocol + Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyStreamingProtocol end def track_property_compare_operation Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCompareOperation @@ -820,8 +796,8 @@ def track_property_compare_operation def streaming_locator_content_key_type Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorContentKeyType end - def streaming_policy_streaming_protocol - Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyStreamingProtocol + def live_event_input_protocol + Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInputProtocol end def encryption_scheme Azure::MediaServices::Mgmt::V2018_07_01::Models::EncryptionScheme @@ -829,8 +805,8 @@ def encryption_scheme def live_output_resource_state Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveOutputResourceState end - def live_event_input_protocol - Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInputProtocol + def stream_options_flag + Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamOptionsFlag end def live_event_encoding_type Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEncodingType @@ -838,12 +814,36 @@ def live_event_encoding_type def live_event_resource_state Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventResourceState end - def stream_options_flag - Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamOptionsFlag - end def streaming_endpoint_resource_state Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointResourceState end + def provider + Azure::MediaServices::Mgmt::V2018_07_01::Models::Provider + end + def filters + Azure::MediaServices::Mgmt::V2018_07_01::Models::Filters + end + def api_error + Azure::MediaServices::Mgmt::V2018_07_01::Models::ApiError + end + def format + Azure::MediaServices::Mgmt::V2018_07_01::Models::Format + end + def resource + Azure::MediaServices::Mgmt::V2018_07_01::Models::Resource + end + def image + Azure::MediaServices::Mgmt::V2018_07_01::Models::Image + end + def location + Azure::MediaServices::Mgmt::V2018_07_01::Models::Location + end + def storage_account + Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccount + end + def storage_account_type + Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccountType + 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..6c7b068efc 100644 --- a/azure_sdk/lib/latest/modules/monitor_profile_module.rb +++ b/azure_sdk/lib/latest/modules/monitor_profile_module.rb @@ -16,8 +16,8 @@ module Mgmt AlertRuleIncidents = Azure::Monitor::Mgmt::V2016_03_01::AlertRuleIncidents LogProfiles = Azure::Monitor::Mgmt::V2016_03_01::LogProfiles ActivityLogAlerts = Azure::Monitor::Mgmt::V2017_04_01::ActivityLogAlerts - DiagnosticSettingsOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsOperations DiagnosticSettingsCategoryOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsCategoryOperations + DiagnosticSettingsOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsOperations MetricBaseline = Azure::Monitor::Mgmt::V2017_11_01_preview::MetricBaseline MetricDefinitions = Azure::Monitor::Mgmt::V2018_01_01::MetricDefinitions Metrics = Azure::Monitor::Mgmt::V2018_01_01::Metrics @@ -27,11 +27,6 @@ module Mgmt ScheduledQueryRules = Azure::Monitor::Mgmt::V2018_04_16::ScheduledQueryRules module Models - 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 - AutoscaleProfile = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile - EventData = Azure::Monitor::Mgmt::V2015_04_01::Models::EventData EmailNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification WebhookNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification ScaleCapacity = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity @@ -44,34 +39,39 @@ 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 ScaleDirection = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection ScaleType = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType + OperationDisplay = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay + Operation = Azure::Monitor::Mgmt::V2015_04_01::Models::Operation + OperationListResult = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult + EventLevel = Azure::Monitor::Mgmt::V2015_04_01::Models::EventLevel + 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 + AutoscaleProfile = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile + EventData = Azure::Monitor::Mgmt::V2015_04_01::Models::EventData 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 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 + ManagementEventAggregationCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventAggregationCondition RuleAction = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleAction - IncidentListResult = Azure::Monitor::Mgmt::V2016_03_01::Models::IncidentListResult + Incident = Azure::Monitor::Mgmt::V2016_03_01::Models::Incident RuleMetricDataSource = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleMetricDataSource - RuleManagementEventDataSource = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventDataSource - ThresholdRuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::ThresholdRuleCondition + IncidentListResult = Azure::Monitor::Mgmt::V2016_03_01::Models::IncidentListResult LocationThresholdRuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::LocationThresholdRuleCondition - ManagementEventRuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventRuleCondition + RuleManagementEventDataSource = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventDataSource RuleEmailAction = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleEmailAction + ManagementEventRuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventRuleCondition + ThresholdRuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::ThresholdRuleCondition RuleWebhookAction = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleWebhookAction AlertRuleResource = Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResource LogProfileResource = Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResource @@ -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 + DiagnosticSettingsCategoryResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource + 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 - 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 + LocalizableString = Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString + MetricValue = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue + MetadataValue = Azure::Monitor::Mgmt::V2018_01_01::Models::MetadataValue + TimeSeriesElement = Azure::Monitor::Mgmt::V2018_01_01::Models::TimeSeriesElement Unit = Azure::Monitor::Mgmt::V2018_01_01::Models::Unit AggregationType = Azure::Monitor::Mgmt::V2018_01_01::Models::AggregationType + Metric = Azure::Monitor::Mgmt::V2018_01_01::Models::Metric ResultType = Azure::Monitor::Mgmt::V2018_01_01::Models::ResultType + Response = Azure::Monitor::Mgmt::V2018_01_01::Models::Response + 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 + MetricDimension = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricDimension + 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 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 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 - ActionGroupResource = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupResource ReceiverStatus = Azure::Monitor::Mgmt::V2018_03_01::Models::ReceiverStatus - LogSearchRuleResourceCollection = Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResourceCollection + ActionGroupList = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupList + ActionGroupResource = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupResource Resource = Azure::Monitor::Mgmt::V2018_04_16::Models::Resource - LogMetricTrigger = Azure::Monitor::Mgmt::V2018_04_16::Models::LogMetricTrigger + AlertSeverity = Azure::Monitor::Mgmt::V2018_04_16::Models::AlertSeverity 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 + ProvisioningState = Azure::Monitor::Mgmt::V2018_04_16::Models::ProvisioningState + LogSearchRuleResourceCollection = Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResourceCollection + LogMetricTrigger = Azure::Monitor::Mgmt::V2018_04_16::Models::LogMetricTrigger + TriggerCondition = Azure::Monitor::Mgmt::V2018_04_16::Models::TriggerCondition 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 LogSearchRuleResource = Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResource AlertingAction = Azure::Monitor::Mgmt::V2018_04_16::Models::AlertingAction 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 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 + Source = Azure::Monitor::Mgmt::V2018_04_16::Models::Source 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 :activity_logs, :autoscale_settings, :event_categories, :operations, :tenant_activity_logs, :alert_rules, :alert_rule_incidents, :log_profiles, :activity_log_alerts, :diagnostic_settings_category_operations, :diagnostic_settings_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 @@ -194,8 +194,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_3.subscription_id = configurable.subscription_id end add_telemetry(@client_3) - @diagnostic_settings_operations = @client_3.diagnostic_settings_operations @diagnostic_settings_category_operations = @client_3.diagnostic_settings_category_operations + @diagnostic_settings_operations = @client_3.diagnostic_settings_operations @client_4 = Azure::Monitor::Mgmt::V2017_11_01_preview::MonitorManagementClient.new(configurable.credentials, base_url, options) if(@client_4.respond_to?(:subscription_id)) @@ -259,21 +259,6 @@ def method_missing(method, *args) end class ModelClasses - def recurrent_schedule - Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule - end - def recurrence - Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence - end - def sender_authorization - Azure::Monitor::Mgmt::V2015_04_01::Models::SenderAuthorization - end - def autoscale_profile - Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile - end - def event_data - Azure::Monitor::Mgmt::V2015_04_01::Models::EventData - end def email_notification Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification end @@ -310,24 +295,12 @@ 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 @@ -343,6 +316,33 @@ def scale_direction def scale_type Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType end + def operation_display + Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay + 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 event_level + Azure::Monitor::Mgmt::V2015_04_01::Models::EventLevel + end + def recurrent_schedule + Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule + end + def recurrence + Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence + end + def sender_authorization + Azure::Monitor::Mgmt::V2015_04_01::Models::SenderAuthorization + end + def autoscale_profile + Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile + end + def event_data + Azure::Monitor::Mgmt::V2015_04_01::Models::EventData + end def rule_condition Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition end @@ -361,38 +361,38 @@ def rule_data_source def log_profile_resource_patch Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResourcePatch end + def log_profile_collection + Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileCollection + end def management_event_aggregation_condition Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventAggregationCondition end - def log_profile_collection - Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileCollection + def rule_action + Azure::Monitor::Mgmt::V2016_03_01::Models::RuleAction end def incident Azure::Monitor::Mgmt::V2016_03_01::Models::Incident end - def rule_action - Azure::Monitor::Mgmt::V2016_03_01::Models::RuleAction + def rule_metric_data_source + Azure::Monitor::Mgmt::V2016_03_01::Models::RuleMetricDataSource 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 + def location_threshold_rule_condition + Azure::Monitor::Mgmt::V2016_03_01::Models::LocationThresholdRuleCondition end def rule_management_event_data_source Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventDataSource end - def threshold_rule_condition - Azure::Monitor::Mgmt::V2016_03_01::Models::ThresholdRuleCondition - end - def location_threshold_rule_condition - Azure::Monitor::Mgmt::V2016_03_01::Models::LocationThresholdRuleCondition + def rule_email_action + Azure::Monitor::Mgmt::V2016_03_01::Models::RuleEmailAction end def management_event_rule_condition Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventRuleCondition end - def rule_email_action - Azure::Monitor::Mgmt::V2016_03_01::Models::RuleEmailAction + def threshold_rule_condition + Azure::Monitor::Mgmt::V2016_03_01::Models::ThresholdRuleCondition end def rule_webhook_action Azure::Monitor::Mgmt::V2016_03_01::Models::RuleWebhookAction @@ -430,6 +430,15 @@ def activity_log_alert_list def activity_log_alert_resource Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertResource end + def diagnostic_settings_category_resource + Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource + 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 +454,9 @@ 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,72 +475,81 @@ def calculate_baseline_response def sensitivity Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Sensitivity end - def metric_value - Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue + 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 localizable_string Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString end + def metric_value + Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue + 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 metric + Azure::Monitor::Mgmt::V2018_01_01::Models::Metric + end def result_type Azure::Monitor::Mgmt::V2018_01_01::Models::ResultType end + def response + Azure::Monitor::Mgmt::V2018_01_01::Models::Response + end + def enable_request + Azure::Monitor::Mgmt::V2018_03_01::Models::EnableRequest + end def email_receiver Azure::Monitor::Mgmt::V2018_03_01::Models::EmailReceiver end + def action_group_patch_body + Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupPatchBody + end + def webhook_receiver + Azure::Monitor::Mgmt::V2018_03_01::Models::WebhookReceiver + end + def metric_dimension + Azure::Monitor::Mgmt::V2018_03_01::Models::MetricDimension + end + def azure_app_push_receiver + Azure::Monitor::Mgmt::V2018_03_01::Models::AzureAppPushReceiver + end + 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 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 - end def metric_criteria Azure::Monitor::Mgmt::V2018_03_01::Models::MetricCriteria end @@ -556,56 +565,50 @@ 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 def azure_function_receiver Azure::Monitor::Mgmt::V2018_03_01::Models::AzureFunctionReceiver end 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 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 action_group_list + Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupList + end + def action_group_resource + Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupResource end def resource Azure::Monitor::Mgmt::V2018_04_16::Models::Resource end - def log_metric_trigger - Azure::Monitor::Mgmt::V2018_04_16::Models::LogMetricTrigger + def alert_severity + Azure::Monitor::Mgmt::V2018_04_16::Models::AlertSeverity end def schedule Azure::Monitor::Mgmt::V2018_04_16::Models::Schedule end - def trigger_condition - Azure::Monitor::Mgmt::V2018_04_16::Models::TriggerCondition - end def action Azure::Monitor::Mgmt::V2018_04_16::Models::Action end - def source - Azure::Monitor::Mgmt::V2018_04_16::Models::Source + def provisioning_state + Azure::Monitor::Mgmt::V2018_04_16::Models::ProvisioningState + 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 @@ -625,9 +628,6 @@ def alerting_action 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 end @@ -637,8 +637,8 @@ def conditional_operator 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 source + Azure::Monitor::Mgmt::V2018_04_16::Models::Source 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 5416cc60bc..d2ae3efedc 100644 --- a/azure_sdk/lib/latest/modules/network_profile_module.rb +++ b/azure_sdk/lib/latest/modules/network_profile_module.rb @@ -9,17 +9,27 @@ module Network module Mgmt ApplicationGateways = Azure::Network::Mgmt::V2018_10_01::ApplicationGateways ApplicationSecurityGroups = Azure::Network::Mgmt::V2018_10_01::ApplicationSecurityGroups + AvailableEndpointServices = Azure::Network::Mgmt::V2018_10_01::AvailableEndpointServices + ExpressRouteCircuitAuthorizations = Azure::Network::Mgmt::V2018_10_01::ExpressRouteCircuitAuthorizations + ExpressRouteCircuitPeerings = Azure::Network::Mgmt::V2018_10_01::ExpressRouteCircuitPeerings + ExpressRouteCircuits = Azure::Network::Mgmt::V2018_10_01::ExpressRouteCircuits + ExpressRouteServiceProviders = Azure::Network::Mgmt::V2018_10_01::ExpressRouteServiceProviders + LoadBalancers = Azure::Network::Mgmt::V2018_10_01::LoadBalancers + LoadBalancerBackendAddressPools = Azure::Network::Mgmt::V2018_10_01::LoadBalancerBackendAddressPools + LoadBalancerFrontendIPConfigurations = Azure::Network::Mgmt::V2018_10_01::LoadBalancerFrontendIPConfigurations + InboundNatRules = Azure::Network::Mgmt::V2018_10_01::InboundNatRules + LoadBalancerLoadBalancingRules = Azure::Network::Mgmt::V2018_10_01::LoadBalancerLoadBalancingRules + LoadBalancerNetworkInterfaces = Azure::Network::Mgmt::V2018_10_01::LoadBalancerNetworkInterfaces + LoadBalancerProbes = Azure::Network::Mgmt::V2018_10_01::LoadBalancerProbes + NetworkInterfaceIPConfigurations = Azure::Network::Mgmt::V2018_10_01::NetworkInterfaceIPConfigurations + NetworkInterfaceLoadBalancers = Azure::Network::Mgmt::V2018_10_01::NetworkInterfaceLoadBalancers + NetworkSecurityGroups = Azure::Network::Mgmt::V2018_10_01::NetworkSecurityGroups AvailableDelegations = Azure::Network::Mgmt::V2018_10_01::AvailableDelegations AvailableResourceGroupDelegations = Azure::Network::Mgmt::V2018_10_01::AvailableResourceGroupDelegations AzureFirewalls = Azure::Network::Mgmt::V2018_10_01::AzureFirewalls AzureFirewallFqdnTags = Azure::Network::Mgmt::V2018_10_01::AzureFirewallFqdnTags DdosProtectionPlans = Azure::Network::Mgmt::V2018_10_01::DdosProtectionPlans - AvailableEndpointServices = Azure::Network::Mgmt::V2018_10_01::AvailableEndpointServices - ExpressRouteCircuitAuthorizations = Azure::Network::Mgmt::V2018_10_01::ExpressRouteCircuitAuthorizations - ExpressRouteCircuitPeerings = Azure::Network::Mgmt::V2018_10_01::ExpressRouteCircuitPeerings ExpressRouteCircuitConnections = Azure::Network::Mgmt::V2018_10_01::ExpressRouteCircuitConnections - ExpressRouteCircuits = Azure::Network::Mgmt::V2018_10_01::ExpressRouteCircuits - ExpressRouteServiceProviders = Azure::Network::Mgmt::V2018_10_01::ExpressRouteServiceProviders ExpressRouteCrossConnections = Azure::Network::Mgmt::V2018_10_01::ExpressRouteCrossConnections ExpressRouteCrossConnectionPeerings = Azure::Network::Mgmt::V2018_10_01::ExpressRouteCrossConnectionPeerings ExpressRouteGateways = Azure::Network::Mgmt::V2018_10_01::ExpressRouteGateways @@ -28,491 +38,481 @@ module Mgmt ExpressRoutePorts = Azure::Network::Mgmt::V2018_10_01::ExpressRoutePorts ExpressRouteLinks = Azure::Network::Mgmt::V2018_10_01::ExpressRouteLinks InterfaceEndpoints = Azure::Network::Mgmt::V2018_10_01::InterfaceEndpoints - LoadBalancers = Azure::Network::Mgmt::V2018_10_01::LoadBalancers - LoadBalancerBackendAddressPools = Azure::Network::Mgmt::V2018_10_01::LoadBalancerBackendAddressPools - LoadBalancerFrontendIPConfigurations = Azure::Network::Mgmt::V2018_10_01::LoadBalancerFrontendIPConfigurations - InboundNatRules = Azure::Network::Mgmt::V2018_10_01::InboundNatRules - LoadBalancerLoadBalancingRules = Azure::Network::Mgmt::V2018_10_01::LoadBalancerLoadBalancingRules LoadBalancerOutboundRules = Azure::Network::Mgmt::V2018_10_01::LoadBalancerOutboundRules - LoadBalancerNetworkInterfaces = Azure::Network::Mgmt::V2018_10_01::LoadBalancerNetworkInterfaces - LoadBalancerProbes = Azure::Network::Mgmt::V2018_10_01::LoadBalancerProbes NetworkInterfaces = Azure::Network::Mgmt::V2018_10_01::NetworkInterfaces - NetworkInterfaceIPConfigurations = Azure::Network::Mgmt::V2018_10_01::NetworkInterfaceIPConfigurations - NetworkInterfaceLoadBalancers = Azure::Network::Mgmt::V2018_10_01::NetworkInterfaceLoadBalancers NetworkInterfaceTapConfigurations = Azure::Network::Mgmt::V2018_10_01::NetworkInterfaceTapConfigurations NetworkProfiles = Azure::Network::Mgmt::V2018_10_01::NetworkProfiles - NetworkSecurityGroups = Azure::Network::Mgmt::V2018_10_01::NetworkSecurityGroups + PacketCaptures = Azure::Network::Mgmt::V2018_10_01::PacketCaptures + ConnectionMonitors = Azure::Network::Mgmt::V2018_10_01::ConnectionMonitors + PublicIPPrefixes = Azure::Network::Mgmt::V2018_10_01::PublicIPPrefixes SecurityRules = Azure::Network::Mgmt::V2018_10_01::SecurityRules DefaultSecurityRules = Azure::Network::Mgmt::V2018_10_01::DefaultSecurityRules NetworkWatchers = Azure::Network::Mgmt::V2018_10_01::NetworkWatchers - PacketCaptures = Azure::Network::Mgmt::V2018_10_01::PacketCaptures - ConnectionMonitors = Azure::Network::Mgmt::V2018_10_01::ConnectionMonitors - Operations = Azure::Network::Mgmt::V2018_10_01::Operations + BgpServiceCommunities = Azure::Network::Mgmt::V2018_10_01::BgpServiceCommunities + ServiceEndpointPolicyDefinitions = Azure::Network::Mgmt::V2018_10_01::ServiceEndpointPolicyDefinitions PublicIPAddresses = Azure::Network::Mgmt::V2018_10_01::PublicIPAddresses - PublicIPPrefixes = Azure::Network::Mgmt::V2018_10_01::PublicIPPrefixes - RouteFilters = Azure::Network::Mgmt::V2018_10_01::RouteFilters RouteFilterRules = Azure::Network::Mgmt::V2018_10_01::RouteFilterRules RouteTables = Azure::Network::Mgmt::V2018_10_01::RouteTables Routes = Azure::Network::Mgmt::V2018_10_01::Routes - BgpServiceCommunities = Azure::Network::Mgmt::V2018_10_01::BgpServiceCommunities - ServiceEndpointPolicies = Azure::Network::Mgmt::V2018_10_01::ServiceEndpointPolicies - ServiceEndpointPolicyDefinitions = Azure::Network::Mgmt::V2018_10_01::ServiceEndpointPolicyDefinitions + VirtualNetworkGatewayConnections = Azure::Network::Mgmt::V2018_10_01::VirtualNetworkGatewayConnections Usages = Azure::Network::Mgmt::V2018_10_01::Usages VirtualNetworks = Azure::Network::Mgmt::V2018_10_01::VirtualNetworks - Subnets = Azure::Network::Mgmt::V2018_10_01::Subnets - VirtualNetworkPeerings = Azure::Network::Mgmt::V2018_10_01::VirtualNetworkPeerings + RouteFilters = Azure::Network::Mgmt::V2018_10_01::RouteFilters + Operations = Azure::Network::Mgmt::V2018_10_01::Operations VirtualNetworkGateways = Azure::Network::Mgmt::V2018_10_01::VirtualNetworkGateways - VirtualNetworkGatewayConnections = Azure::Network::Mgmt::V2018_10_01::VirtualNetworkGatewayConnections - LocalNetworkGateways = Azure::Network::Mgmt::V2018_10_01::LocalNetworkGateways - VirtualNetworkTaps = Azure::Network::Mgmt::V2018_10_01::VirtualNetworkTaps VirtualWans = Azure::Network::Mgmt::V2018_10_01::VirtualWans - VpnSites = Azure::Network::Mgmt::V2018_10_01::VpnSites + LocalNetworkGateways = Azure::Network::Mgmt::V2018_10_01::LocalNetworkGateways VpnSitesConfiguration = Azure::Network::Mgmt::V2018_10_01::VpnSitesConfiguration + ServiceEndpointPolicies = Azure::Network::Mgmt::V2018_10_01::ServiceEndpointPolicies + Subnets = Azure::Network::Mgmt::V2018_10_01::Subnets + VirtualNetworkPeerings = Azure::Network::Mgmt::V2018_10_01::VirtualNetworkPeerings + VpnConnections = Azure::Network::Mgmt::V2018_10_01::VpnConnections + VpnSites = Azure::Network::Mgmt::V2018_10_01::VpnSites + P2sVpnGateways = Azure::Network::Mgmt::V2018_10_01::P2sVpnGateways VirtualHubs = Azure::Network::Mgmt::V2018_10_01::VirtualHubs HubVirtualNetworkConnections = Azure::Network::Mgmt::V2018_10_01::HubVirtualNetworkConnections VpnGateways = Azure::Network::Mgmt::V2018_10_01::VpnGateways - VpnConnections = Azure::Network::Mgmt::V2018_10_01::VpnConnections + VirtualNetworkTaps = Azure::Network::Mgmt::V2018_10_01::VirtualNetworkTaps P2sVpnServerConfigurations = Azure::Network::Mgmt::V2018_10_01::P2sVpnServerConfigurations - P2sVpnGateways = Azure::Network::Mgmt::V2018_10_01::P2sVpnGateways module Models + Container = Azure::Network::Mgmt::V2018_10_01::Models::Container + PfsGroup = Azure::Network::Mgmt::V2018_10_01::Models::PfsGroup + BgpPeerState = Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerState + VirtualNetworkGatewayConnectionProtocol = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionProtocol + OfficeTrafficCategory = Azure::Network::Mgmt::V2018_10_01::Models::OfficeTrafficCategory + TunnelConnectionStatus = Azure::Network::Mgmt::V2018_10_01::Models::TunnelConnectionStatus + LogSpecification = Azure::Network::Mgmt::V2018_10_01::Models::LogSpecification + HTTPHeader = Azure::Network::Mgmt::V2018_10_01::Models::HTTPHeader + Severity = Azure::Network::Mgmt::V2018_10_01::Models::Severity + ManagedServiceIdentity = Azure::Network::Mgmt::V2018_10_01::Models::ManagedServiceIdentity + ErrorResponse = Azure::Network::Mgmt::V2018_10_01::Models::ErrorResponse + ApplicationGatewayBackendAddress = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendAddress + PublicIPAddressSku = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressSku + IpTag = Azure::Network::Mgmt::V2018_10_01::Models::IpTag + PublicIPAddressListResult = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressListResult + EndpointService = Azure::Network::Mgmt::V2018_10_01::Models::EndpointService + PublicIPAddressDnsSettings = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressDnsSettings + NetworkInterfaceListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceListResult + NetworkInterfaceDnsSettings = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceDnsSettings + NetworkInterfaceIPConfigurationListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceIPConfigurationListResult + ServiceEndpointPropertiesFormat = Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPropertiesFormat + ApplicationSecurityGroup = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationSecurityGroup + Delegation = Azure::Network::Mgmt::V2018_10_01::Models::Delegation ContainerNetworkInterfaceIpConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterfaceIpConfiguration ExpressRouteCircuitReference = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitReference - RouteListResult = Azure::Network::Mgmt::V2018_10_01::Models::RouteListResult - RouteTableListResult = Azure::Network::Mgmt::V2018_10_01::Models::RouteTableListResult - EndpointService = Azure::Network::Mgmt::V2018_10_01::Models::EndpointService ExpressRouteCrossConnectionListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionListResult - NetworkInterfaceDnsSettings = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceDnsSettings ExpressRouteCrossConnectionPeeringList = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionPeeringList VpnClientConnectionHealth = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientConnectionHealth VirtualHubId = Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubId + Operation = Azure::Network::Mgmt::V2018_10_01::Models::Operation VirtualWanSecurityProviders = Azure::Network::Mgmt::V2018_10_01::Models::VirtualWanSecurityProviders - ExpressRouteCircuitPeeringId = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringId + OperationListResult = Azure::Network::Mgmt::V2018_10_01::Models::OperationListResult VirtualWanSecurityProvider = Azure::Network::Mgmt::V2018_10_01::Models::VirtualWanSecurityProvider - ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds - PublicIPAddressSku = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressSku + ExpressRouteCircuitPeeringId = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringId ExpressRouteGatewayPropertiesAutoScaleConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayPropertiesAutoScaleConfiguration - IpTag = Azure::Network::Mgmt::V2018_10_01::Models::IpTag - RouteFilterRuleListResult = Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterRuleListResult - ListVpnConnectionsResult = Azure::Network::Mgmt::V2018_10_01::Models::ListVpnConnectionsResult - RouteFilterListResult = Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterListResult + ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds ListVirtualHubsResult = Azure::Network::Mgmt::V2018_10_01::Models::ListVirtualHubsResult - ExpressRouteGatewayList = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayList - VirtualHubRoute = Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubRoute + ListVpnConnectionsResult = Azure::Network::Mgmt::V2018_10_01::Models::ListVpnConnectionsResult ExpressRouteConnectionList = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnectionList + ExpressRouteGatewayList = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayList ListVpnSitesResult = Azure::Network::Mgmt::V2018_10_01::Models::ListVpnSitesResult - ExpressRoutePortsLocationBandwidths = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocationBandwidths ListVirtualWANsResult = Azure::Network::Mgmt::V2018_10_01::Models::ListVirtualWANsResult PublicIPPrefixListResult = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixListResult - VpnDeviceScriptParameters = Azure::Network::Mgmt::V2018_10_01::Models::VpnDeviceScriptParameters + VirtualHubRoute = Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubRoute ExpressRoutePortsLocationListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocationListResult - VirtualNetworkGatewayListConnectionsResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayListConnectionsResult - ReferencedPublicIpAddress = Azure::Network::Mgmt::V2018_10_01::Models::ReferencedPublicIpAddress - VirtualNetworkConnectionGatewayReference = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkConnectionGatewayReference ExpressRouteLinkListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkListResult - ApplicationGatewayBackendHealthHttpSettings = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthHttpSettings - PublicIPPrefixSku = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixSku - ApplicationGatewayBackendHealth = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealth + ExpressRoutePortsLocationBandwidths = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocationBandwidths ExpressRoutePortListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortListResult - ApplicationGatewaySslPolicy = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicy InterfaceEndpointListResult = Azure::Network::Mgmt::V2018_10_01::Models::InterfaceEndpointListResult - VpnClientIPsecParameters = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientIPsecParameters - LoadBalancerSku = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerSku - VirtualNetworkGatewayConnectionListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionListResult - PublicIPAddressListResult = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressListResult - GatewayRouteListResult = Azure::Network::Mgmt::V2018_10_01::Models::GatewayRouteListResult - OperationListResult = Azure::Network::Mgmt::V2018_10_01::Models::OperationListResult - BgpPeerStatusListResult = Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerStatusListResult - Operation = Azure::Network::Mgmt::V2018_10_01::Models::Operation - ApplicationGatewayProbeHealthResponseMatch = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayProbeHealthResponseMatch - OperationPropertiesFormatServiceSpecification = Azure::Network::Mgmt::V2018_10_01::Models::OperationPropertiesFormatServiceSpecification - GatewayRoute = Azure::Network::Mgmt::V2018_10_01::Models::GatewayRoute - LogSpecification = Azure::Network::Mgmt::V2018_10_01::Models::LogSpecification + PublicIPPrefixSku = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixSku ApplicationGatewayRewriteRuleActionSet = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRuleActionSet - LoadBalancerListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerListResult - BgpPeerStatus = Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerStatus - InboundNatRuleListResult = Azure::Network::Mgmt::V2018_10_01::Models::InboundNatRuleListResult - VpnClientConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientConfiguration - LoadBalancerBackendAddressPoolListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerBackendAddressPoolListResult ApplicationGatewayFirewallExclusion = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallExclusion - LoadBalancerFrontendIPConfigurationListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerFrontendIPConfigurationListResult ApplicationGatewayAutoscaleConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAutoscaleConfiguration - LoadBalancerLoadBalancingRuleListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerLoadBalancingRuleListResult - ManagedServiceIdentity = Azure::Network::Mgmt::V2018_10_01::Models::ManagedServiceIdentity LoadBalancerOutboundRuleListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerOutboundRuleListResult - ApplicationGatewayListResult = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayListResult - LoadBalancerProbeListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerProbeListResult - ApplicationGatewayFirewallRuleGroup = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRuleGroup - NetworkInterfaceListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceListResult - ApplicationGatewayAvailableWafRuleSetsResult = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult - ErrorDetails = Azure::Network::Mgmt::V2018_10_01::Models::ErrorDetails - VirtualNetworkUsage = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkUsage - Error = Azure::Network::Mgmt::V2018_10_01::Models::Error - Resource = Azure::Network::Mgmt::V2018_10_01::Models::Resource - AzureAsyncOperationResult = Azure::Network::Mgmt::V2018_10_01::Models::AzureAsyncOperationResult - ApplicationSecurityGroupListResult = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationSecurityGroupListResult NetworkInterfaceTapConfigurationListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceTapConfigurationListResult AvailableDelegationsResult = Azure::Network::Mgmt::V2018_10_01::Models::AvailableDelegationsResult - NetworkInterfaceIPConfigurationListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceIPConfigurationListResult AzureFirewallRCAction = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallRCAction - NetworkInterfaceLoadBalancerListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceLoadBalancerListResult AzureFirewallApplicationRule = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRule - EffectiveNetworkSecurityGroupAssociation = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityGroupAssociation AzureFirewallNatRCAction = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRCAction - EffectiveNetworkSecurityRule = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityRule - VirtualNetworkListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkListResult - EffectiveNetworkSecurityGroup = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityGroup - DhcpOptions = Azure::Network::Mgmt::V2018_10_01::Models::DhcpOptions - EffectiveNetworkSecurityGroupListResult = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityGroupListResult + ReferencedPublicIpAddress = Azure::Network::Mgmt::V2018_10_01::Models::ReferencedPublicIpAddress AzureFirewallListResult = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallListResult - EffectiveRoute = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRoute - AzureFirewallFqdnTagListResult = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallFqdnTagListResult - EffectiveRouteListResult = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRouteListResult DdosProtectionPlan = Azure::Network::Mgmt::V2018_10_01::Models::DdosProtectionPlan - MetricSpecification = Azure::Network::Mgmt::V2018_10_01::Models::MetricSpecification - AddressSpace = Azure::Network::Mgmt::V2018_10_01::Models::AddressSpace - Dimension = Azure::Network::Mgmt::V2018_10_01::Models::Dimension - UsagesListResult = Azure::Network::Mgmt::V2018_10_01::Models::UsagesListResult - Availability = Azure::Network::Mgmt::V2018_10_01::Models::Availability - ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringConfig - OperationDisplay = Azure::Network::Mgmt::V2018_10_01::Models::OperationDisplay - ExpressRouteCircuitStats = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitStats NetworkConfigurationDiagnosticResponse = Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticResponse - UsageName = Azure::Network::Mgmt::V2018_10_01::Models::UsageName - NetworkProfileListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkProfileListResult + AzureFirewallFqdnTagListResult = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallFqdnTagListResult + VpnClientIPsecParameters = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientIPsecParameters ServiceEndpointPolicyDefinitionListResult = Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicyDefinitionListResult - SecurityRuleListResult = Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleListResult - ExpressRouteCircuitPeeringListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringListResult - NetworkSecurityGroupListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityGroupListResult - ExpressRouteCircuitServiceProviderProperties = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitServiceProviderProperties - ErrorResponse = Azure::Network::Mgmt::V2018_10_01::Models::ErrorResponse - ExpressRouteCircuitArpTable = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitArpTable NetworkConfigurationDiagnosticResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticResult - ExpressRouteCircuitRoutesTable = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitRoutesTable - NetworkWatcherListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkWatcherListResult - ExpressRouteCircuitRoutesTableSummary = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitRoutesTableSummary - TopologyParameters = Azure::Network::Mgmt::V2018_10_01::Models::TopologyParameters - ExpressRouteCircuitListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitListResult - TopologyAssociation = Azure::Network::Mgmt::V2018_10_01::Models::TopologyAssociation - BGPCommunity = Azure::Network::Mgmt::V2018_10_01::Models::BGPCommunity - TopologyResource = Azure::Network::Mgmt::V2018_10_01::Models::TopologyResource - ExpressRouteCrossConnectionRoutesTableSummary = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionRoutesTableSummary - Topology = Azure::Network::Mgmt::V2018_10_01::Models::Topology - SubResource = Azure::Network::Mgmt::V2018_10_01::Models::SubResource - VerificationIPFlowParameters = Azure::Network::Mgmt::V2018_10_01::Models::VerificationIPFlowParameters P2SVpnProfileParameters = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnProfileParameters - VerificationIPFlowResult = Azure::Network::Mgmt::V2018_10_01::Models::VerificationIPFlowResult ListP2SVpnServerConfigurationsResult = Azure::Network::Mgmt::V2018_10_01::Models::ListP2SVpnServerConfigurationsResult - NextHopParameters = Azure::Network::Mgmt::V2018_10_01::Models::NextHopParameters - VpnSiteId = Azure::Network::Mgmt::V2018_10_01::Models::VpnSiteId - NextHopResult = Azure::Network::Mgmt::V2018_10_01::Models::NextHopResult + NetworkProfileListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkProfileListResult ListHubVirtualNetworkConnectionsResult = Azure::Network::Mgmt::V2018_10_01::Models::ListHubVirtualNetworkConnectionsResult - SecurityGroupViewParameters = Azure::Network::Mgmt::V2018_10_01::Models::SecurityGroupViewParameters VirtualHubRouteTable = Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubRouteTable - NetworkInterfaceAssociation = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceAssociation + OperationDisplay = Azure::Network::Mgmt::V2018_10_01::Models::OperationDisplay DeviceProperties = Azure::Network::Mgmt::V2018_10_01::Models::DeviceProperties - SubnetAssociation = Azure::Network::Mgmt::V2018_10_01::Models::SubnetAssociation - ApplicationGatewayBackendAddress = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendAddress - SecurityRuleAssociations = Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleAssociations - ApplicationGatewayBackendHealthServer = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthServer - SecurityGroupNetworkInterface = Azure::Network::Mgmt::V2018_10_01::Models::SecurityGroupNetworkInterface - ApplicationGatewaySku = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySku - SecurityGroupViewResult = Azure::Network::Mgmt::V2018_10_01::Models::SecurityGroupViewResult - ConnectionResetSharedKey = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionResetSharedKey - PacketCaptureStorageLocation = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureStorageLocation - ApplicationGatewayCustomError = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayCustomError - PacketCaptureFilter = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureFilter - VpnClientParameters = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientParameters - PacketCaptureParameters = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureParameters ApplicationGatewayRewriteRule = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRule - PacketCapture = Azure::Network::Mgmt::V2018_10_01::Models::PacketCapture - ApplicationGatewayFirewallDisabledRuleGroup = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallDisabledRuleGroup - PacketCaptureResult = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureResult - ManagedServiceIdentityUserAssignedIdentitiesValue = Azure::Network::Mgmt::V2018_10_01::Models::ManagedServiceIdentityUserAssignedIdentitiesValue - PacketCaptureListResult = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureListResult - ApplicationGatewayFirewallRule = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRule - PacketCaptureQueryStatusResult = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureQueryStatusResult - VirtualNetworkListUsageResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkListUsageResult - TroubleshootingParameters = Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingParameters - TagsObject = Azure::Network::Mgmt::V2018_10_01::Models::TagsObject - QueryTroubleshootingParameters = Azure::Network::Mgmt::V2018_10_01::Models::QueryTroubleshootingParameters - VirtualNetworkUsageName = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkUsageName - TroubleshootingRecommendedActions = Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingRecommendedActions - IPAddressAvailabilityResult = Azure::Network::Mgmt::V2018_10_01::Models::IPAddressAvailabilityResult - TroubleshootingDetails = Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingDetails + VpnSiteId = Azure::Network::Mgmt::V2018_10_01::Models::VpnSiteId + ExpressRouteCrossConnectionRoutesTableSummary = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionRoutesTableSummary AzureFirewallNetworkRule = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRule - TroubleshootingResult = Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingResult - SubnetListResult = Azure::Network::Mgmt::V2018_10_01::Models::SubnetListResult - RetentionPolicyParameters = Azure::Network::Mgmt::V2018_10_01::Models::RetentionPolicyParameters - DdosProtectionPlanListResult = Azure::Network::Mgmt::V2018_10_01::Models::DdosProtectionPlanListResult + ManagedServiceIdentityUserAssignedIdentitiesValue = Azure::Network::Mgmt::V2018_10_01::Models::ManagedServiceIdentityUserAssignedIdentitiesValue FlowLogFormatParameters = Azure::Network::Mgmt::V2018_10_01::Models::FlowLogFormatParameters - AuthorizationListResult = Azure::Network::Mgmt::V2018_10_01::Models::AuthorizationListResult - FlowLogStatusParameters = Azure::Network::Mgmt::V2018_10_01::Models::FlowLogStatusParameters - ExpressRouteConnectionId = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnectionId - TrafficAnalyticsConfigurationProperties = Azure::Network::Mgmt::V2018_10_01::Models::TrafficAnalyticsConfigurationProperties - Ipv6ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2018_10_01::Models::Ipv6ExpressRouteCircuitPeeringConfig + DdosProtectionPlanListResult = Azure::Network::Mgmt::V2018_10_01::Models::DdosProtectionPlanListResult TrafficAnalyticsProperties = Azure::Network::Mgmt::V2018_10_01::Models::TrafficAnalyticsProperties - BgpServiceCommunityListResult = Azure::Network::Mgmt::V2018_10_01::Models::BgpServiceCommunityListResult - FlowLogInformation = Azure::Network::Mgmt::V2018_10_01::Models::FlowLogInformation - ExpressRouteCircuitsRoutesTableListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsRoutesTableListResult - ConnectivitySource = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivitySource - ExpressRouteServiceProviderBandwidthsOffered = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProviderBandwidthsOffered - ConnectivityDestination = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityDestination - ExpressRouteCrossConnectionsRoutesTableSummaryListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionsRoutesTableSummaryListResult - HTTPHeader = Azure::Network::Mgmt::V2018_10_01::Models::HTTPHeader - ListP2SVpnGatewaysResult = Azure::Network::Mgmt::V2018_10_01::Models::ListP2SVpnGatewaysResult + ExpressRouteConnectionId = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnectionId + ApplicationGatewayCustomError = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayCustomError HTTPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::HTTPConfiguration - PublicIPAddressDnsSettings = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressDnsSettings - ProtocolConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ProtocolConfiguration + ExpressRouteCrossConnectionsRoutesTableSummaryListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionsRoutesTableSummaryListResult + TrafficAnalyticsConfigurationProperties = Azure::Network::Mgmt::V2018_10_01::Models::TrafficAnalyticsConfigurationProperties GetVpnSitesConfigurationRequest = Azure::Network::Mgmt::V2018_10_01::Models::GetVpnSitesConfigurationRequest - ConnectivityParameters = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityParameters - ApplicationGatewayConnectionDraining = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayConnectionDraining - ConnectivityIssue = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityIssue - LocalNetworkGatewayListResult = Azure::Network::Mgmt::V2018_10_01::Models::LocalNetworkGatewayListResult - ConnectivityHop = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityHop - VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayListResult - ConnectivityInformation = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityInformation - BgpSettings = Azure::Network::Mgmt::V2018_10_01::Models::BgpSettings - AzureReachabilityReportLocation = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportLocation - IpsecPolicy = Azure::Network::Mgmt::V2018_10_01::Models::IpsecPolicy - AzureReachabilityReportParameters = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportParameters - ApplicationGatewayAvailableSslPredefinedPolicies = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies - AzureReachabilityReportLatencyInfo = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportLatencyInfo + ProtocolConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ProtocolConfiguration + ListP2SVpnGatewaysResult = Azure::Network::Mgmt::V2018_10_01::Models::ListP2SVpnGatewaysResult AzureFirewallApplicationRuleProtocol = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleProtocol - AzureReachabilityReportItem = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportItem - VirtualNetworkPeeringListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkPeeringListResult - AzureReachabilityReport = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReport - EndpointServicesListResult = Azure::Network::Mgmt::V2018_10_01::Models::EndpointServicesListResult - AvailableProvidersListParameters = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListParameters ServiceEndpointPolicyListResult = Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicyListResult - AvailableProvidersListCity = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListCity - ExpressRouteCircuitsArpTableListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsArpTableListResult - AvailableProvidersListState = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListState - ExpressRouteServiceProviderListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProviderListResult - AvailableProvidersListCountry = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListCountry - ServiceEndpointPropertiesFormat = Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPropertiesFormat - AvailableProvidersList = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersList - VirtualNetworkTapListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkTapListResult - ConnectionMonitorSource = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorSource - TunnelConnectionHealth = Azure::Network::Mgmt::V2018_10_01::Models::TunnelConnectionHealth - ConnectionMonitorDestination = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorDestination - ApplicationGatewayWebApplicationFirewallConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration - ConnectionMonitorParameters = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorParameters - AvailableDelegation = Azure::Network::Mgmt::V2018_10_01::Models::AvailableDelegation - ConnectionMonitor = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitor - DnsNameAvailabilityResult = Azure::Network::Mgmt::V2018_10_01::Models::DnsNameAvailabilityResult - ConnectionMonitorResult = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorResult - ExpressRouteCircuitSku = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitSku - ConnectionMonitorListResult = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorListResult VpnProfileResponse = Azure::Network::Mgmt::V2018_10_01::Models::VpnProfileResponse - ConnectionStateSnapshot = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionStateSnapshot - ApplicationGatewayBackendHealthPool = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthPool - ConnectionMonitorQueryResult = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorQueryResult - VirtualNetworkGatewaySku = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewaySku - NetworkConfigurationDiagnosticProfile = Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticProfile - Usage = Azure::Network::Mgmt::V2018_10_01::Models::Usage - NetworkConfigurationDiagnosticParameters = Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticParameters + AvailableDelegation = Azure::Network::Mgmt::V2018_10_01::Models::AvailableDelegation ListVpnGatewaysResult = Azure::Network::Mgmt::V2018_10_01::Models::ListVpnGatewaysResult - MatchedRule = Azure::Network::Mgmt::V2018_10_01::Models::MatchedRule - AzureFirewallNatRule = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRule + VirtualNetworkTapListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkTapListResult + NetworkConfigurationDiagnosticParameters = Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticParameters NetworkSecurityRulesEvaluationResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityRulesEvaluationResult - ApplicationGatewayHeaderConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayHeaderConfiguration - EvaluatedNetworkSecurityGroup = Azure::Network::Mgmt::V2018_10_01::Models::EvaluatedNetworkSecurityGroup - ExpressRouteCircuitsRoutesTableSummaryListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsRoutesTableSummaryListResult + NetworkConfigurationDiagnosticProfile = Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticProfile + AzureFirewallNatRule = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRule NetworkSecurityGroupResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityGroupResult - NetworkInterfaceTapConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceTapConfiguration - ApplicationSecurityGroup = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationSecurityGroup - SecurityRule = Azure::Network::Mgmt::V2018_10_01::Models::SecurityRule - InterfaceEndpoint = Azure::Network::Mgmt::V2018_10_01::Models::InterfaceEndpoint - NetworkInterface = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterface + MatchedRule = Azure::Network::Mgmt::V2018_10_01::Models::MatchedRule + EvaluatedNetworkSecurityGroup = Azure::Network::Mgmt::V2018_10_01::Models::EvaluatedNetworkSecurityGroup NetworkSecurityGroup = Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityGroup - Route = Azure::Network::Mgmt::V2018_10_01::Models::Route - RouteTable = Azure::Network::Mgmt::V2018_10_01::Models::RouteTable + ApplicationGatewayHeaderConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayHeaderConfiguration + NetworkInterfaceTapConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceTapConfiguration ServiceEndpointPolicyDefinition = Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicyDefinition ServiceEndpointPolicy = Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicy - PublicIPAddress = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddress - IPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::IPConfiguration IPConfigurationProfile = Azure::Network::Mgmt::V2018_10_01::Models::IPConfigurationProfile - ResourceNavigationLink = Azure::Network::Mgmt::V2018_10_01::Models::ResourceNavigationLink - ServiceAssociationLink = Azure::Network::Mgmt::V2018_10_01::Models::ServiceAssociationLink - Delegation = Azure::Network::Mgmt::V2018_10_01::Models::Delegation Subnet = Azure::Network::Mgmt::V2018_10_01::Models::Subnet + ApplicationGatewayBackendAddressPool = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendAddressPool + Error = Azure::Network::Mgmt::V2018_10_01::Models::Error + InboundNatRule = Azure::Network::Mgmt::V2018_10_01::Models::InboundNatRule + NetworkInterfaceIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceIPConfiguration + NetworkInterface = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterface + AzureFirewallNatRuleCollection = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRuleCollection + SecurityRule = Azure::Network::Mgmt::V2018_10_01::Models::SecurityRule + InterfaceEndpoint = Azure::Network::Mgmt::V2018_10_01::Models::InterfaceEndpoint + AzureFirewallIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallIPConfiguration + IPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::IPConfiguration + PublicIPAddress = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddress FrontendIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::FrontendIPConfiguration VirtualNetworkTap = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkTap + ApplicationGatewayRewriteRuleSet = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRuleSet BackendAddressPool = Azure::Network::Mgmt::V2018_10_01::Models::BackendAddressPool - InboundNatRule = Azure::Network::Mgmt::V2018_10_01::Models::InboundNatRule - NetworkInterfaceIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceIPConfiguration - ApplicationGatewayBackendAddressPool = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendAddressPool + AzureFirewallApplicationRuleCollection = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleCollection + ExpressRouteCrossConnection = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnection + AzureFirewallNetworkRuleCollection = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRuleCollection + ServiceAssociationLink = Azure::Network::Mgmt::V2018_10_01::Models::ServiceAssociationLink + Route = Azure::Network::Mgmt::V2018_10_01::Models::Route + RouteTable = Azure::Network::Mgmt::V2018_10_01::Models::RouteTable + ExpressRouteCrossConnectionPeering = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionPeering + OutboundRule = Azure::Network::Mgmt::V2018_10_01::Models::OutboundRule + ExpressRouteConnection = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnection + ExpressRouteGateway = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGateway + AzureFirewall = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewall + AzureFirewallFqdnTag = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallFqdnTag + ApplicationGatewayTrustedRootCertificate = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayTrustedRootCertificate + TopologyAssociation = Azure::Network::Mgmt::V2018_10_01::Models::TopologyAssociation + TopologyResource = Azure::Network::Mgmt::V2018_10_01::Models::TopologyResource + OperationPropertiesFormatServiceSpecification = Azure::Network::Mgmt::V2018_10_01::Models::OperationPropertiesFormatServiceSpecification + VirtualNetworkConnectionGatewayReference = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkConnectionGatewayReference + LoadBalancerListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerListResult + ExpressRouteLink = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLink + InboundNatRuleListResult = Azure::Network::Mgmt::V2018_10_01::Models::InboundNatRuleListResult + LoadBalancerBackendAddressPoolListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerBackendAddressPoolListResult + ConnectionResetSharedKey = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionResetSharedKey + LoadBalancerFrontendIPConfigurationListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerFrontendIPConfigurationListResult + IpsecPolicy = Azure::Network::Mgmt::V2018_10_01::Models::IpsecPolicy + LoadBalancerLoadBalancingRuleListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerLoadBalancingRuleListResult + GatewayRouteListResult = Azure::Network::Mgmt::V2018_10_01::Models::GatewayRouteListResult + LoadBalancerProbeListResult = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerProbeListResult + BgpPeerStatusListResult = Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerStatusListResult + VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayListResult + ErrorDetails = Azure::Network::Mgmt::V2018_10_01::Models::ErrorDetails + ApplicationGatewayBackendHealthHttpSettings = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthHttpSettings + ApplicationGatewayBackendHealth = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealth + AzureAsyncOperationResult = Azure::Network::Mgmt::V2018_10_01::Models::AzureAsyncOperationResult + ApplicationGatewaySslPolicy = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicy + GatewayRoute = Azure::Network::Mgmt::V2018_10_01::Models::GatewayRoute + NetworkInterfaceLoadBalancerListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceLoadBalancerListResult + SubResource = Azure::Network::Mgmt::V2018_10_01::Models::SubResource + EffectiveNetworkSecurityGroupAssociation = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityGroupAssociation + VirtualNetworkGatewaySku = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewaySku + EffectiveNetworkSecurityRule = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityRule + ApplicationGatewayProbeHealthResponseMatch = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayProbeHealthResponseMatch + EffectiveNetworkSecurityGroup = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityGroup + VirtualNetworkUsageName = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkUsageName + EffectiveNetworkSecurityGroupListResult = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityGroupListResult + VirtualNetworkListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkListResult + EffectiveRoute = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRoute + BgpSettings = Azure::Network::Mgmt::V2018_10_01::Models::BgpSettings + EffectiveRouteListResult = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRouteListResult + ApplicationGatewayListResult = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayListResult + SecurityRuleListResult = Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleListResult + ApplicationGatewayFirewallRuleGroup = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRuleGroup + NetworkSecurityGroupListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityGroupListResult + ApplicationGatewayAvailableWafRuleSetsResult = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult + AddressSpace = Azure::Network::Mgmt::V2018_10_01::Models::AddressSpace + NetworkWatcherListResult = Azure::Network::Mgmt::V2018_10_01::Models::NetworkWatcherListResult + TopologyParameters = Azure::Network::Mgmt::V2018_10_01::Models::TopologyParameters + ApplicationSecurityGroupListResult = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationSecurityGroupListResult + DnsNameAvailabilityResult = Azure::Network::Mgmt::V2018_10_01::Models::DnsNameAvailabilityResult + Dimension = Azure::Network::Mgmt::V2018_10_01::Models::Dimension + EndpointServicesListResult = Azure::Network::Mgmt::V2018_10_01::Models::EndpointServicesListResult + MetricSpecification = Azure::Network::Mgmt::V2018_10_01::Models::MetricSpecification + AuthorizationListResult = Azure::Network::Mgmt::V2018_10_01::Models::AuthorizationListResult + Topology = Azure::Network::Mgmt::V2018_10_01::Models::Topology + VerificationIPFlowParameters = Azure::Network::Mgmt::V2018_10_01::Models::VerificationIPFlowParameters + BgpServiceCommunityListResult = Azure::Network::Mgmt::V2018_10_01::Models::BgpServiceCommunityListResult + VerificationIPFlowResult = Azure::Network::Mgmt::V2018_10_01::Models::VerificationIPFlowResult + Ipv6ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2018_10_01::Models::Ipv6ExpressRouteCircuitPeeringConfig + NextHopParameters = Azure::Network::Mgmt::V2018_10_01::Models::NextHopParameters + ExpressRouteCircuitSku = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitSku + NextHopResult = Azure::Network::Mgmt::V2018_10_01::Models::NextHopResult + RouteListResult = Azure::Network::Mgmt::V2018_10_01::Models::RouteListResult + SecurityGroupViewParameters = Azure::Network::Mgmt::V2018_10_01::Models::SecurityGroupViewParameters + ExpressRouteCircuitsArpTableListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsArpTableListResult + NetworkInterfaceAssociation = Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceAssociation + ExpressRouteCircuitsRoutesTableListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsRoutesTableListResult + SubnetAssociation = Azure::Network::Mgmt::V2018_10_01::Models::SubnetAssociation + ExpressRouteCircuitsRoutesTableSummaryListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsRoutesTableSummaryListResult + SecurityRuleAssociations = Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleAssociations + ExpressRouteServiceProviderBandwidthsOffered = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProviderBandwidthsOffered + SecurityGroupNetworkInterface = Azure::Network::Mgmt::V2018_10_01::Models::SecurityGroupNetworkInterface + ExpressRouteServiceProviderListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProviderListResult + SecurityGroupViewResult = Azure::Network::Mgmt::V2018_10_01::Models::SecurityGroupViewResult + RouteFilterRuleListResult = Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterRuleListResult + PacketCaptureStorageLocation = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureStorageLocation + PacketCaptureFilter = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureFilter + VirtualNetworkGatewayListConnectionsResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayListConnectionsResult + PacketCaptureParameters = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureParameters + PacketCapture = Azure::Network::Mgmt::V2018_10_01::Models::PacketCapture + VirtualNetworkGatewayConnectionListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionListResult + PacketCaptureResult = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureResult + PacketCaptureListResult = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureListResult + ApplicationGatewayBackendHealthServer = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthServer + PacketCaptureQueryStatusResult = Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureQueryStatusResult + ApplicationGatewaySku = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySku + TroubleshootingParameters = Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingParameters + BgpPeerStatus = Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerStatus + QueryTroubleshootingParameters = Azure::Network::Mgmt::V2018_10_01::Models::QueryTroubleshootingParameters + VirtualNetworkListUsageResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkListUsageResult + TroubleshootingRecommendedActions = Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingRecommendedActions + IPAddressAvailabilityResult = Azure::Network::Mgmt::V2018_10_01::Models::IPAddressAvailabilityResult + TroubleshootingDetails = Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingDetails + DhcpOptions = Azure::Network::Mgmt::V2018_10_01::Models::DhcpOptions + TroubleshootingResult = Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingResult + VirtualNetworkPeeringListResult = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkPeeringListResult + RetentionPolicyParameters = Azure::Network::Mgmt::V2018_10_01::Models::RetentionPolicyParameters + ApplicationGatewayAvailableSslPredefinedPolicies = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies + FlowLogStatusParameters = Azure::Network::Mgmt::V2018_10_01::Models::FlowLogStatusParameters + UsagesListResult = Azure::Network::Mgmt::V2018_10_01::Models::UsagesListResult + FlowLogInformation = Azure::Network::Mgmt::V2018_10_01::Models::FlowLogInformation + ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringConfig + ConnectivitySource = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivitySource + BGPCommunity = Azure::Network::Mgmt::V2018_10_01::Models::BGPCommunity + ConnectivityDestination = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityDestination + ExpressRouteCircuitServiceProviderProperties = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitServiceProviderProperties + ConnectivityParameters = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityParameters + ExpressRouteCircuitRoutesTable = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitRoutesTable + ConnectivityIssue = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityIssue + ExpressRouteCircuitListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitListResult + ConnectivityHop = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityHop + LoadBalancerSku = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerSku + ConnectivityInformation = Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityInformation + VpnDeviceScriptParameters = Azure::Network::Mgmt::V2018_10_01::Models::VpnDeviceScriptParameters + AzureReachabilityReportLocation = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportLocation + AzureReachabilityReportParameters = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportParameters + ApplicationGatewayConnectionDraining = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayConnectionDraining + UsageName = Azure::Network::Mgmt::V2018_10_01::Models::UsageName + VpnClientParameters = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientParameters + AzureReachabilityReportItem = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportItem + VirtualNetworkUsage = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkUsage + AzureReachabilityReport = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReport + ApplicationGatewayFirewallRule = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRule + AzureReachabilityReportLatencyInfo = Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportLatencyInfo + TagsObject = Azure::Network::Mgmt::V2018_10_01::Models::TagsObject + AvailableProvidersListCity = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListCity + ExpressRouteCircuitStats = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitStats + AvailableProvidersListState = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListState + ExpressRouteCircuitArpTable = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitArpTable + AvailableProvidersListParameters = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListParameters + RouteTableListResult = Azure::Network::Mgmt::V2018_10_01::Models::RouteTableListResult + AvailableProvidersList = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersList + LocalNetworkGatewayListResult = Azure::Network::Mgmt::V2018_10_01::Models::LocalNetworkGatewayListResult + ConnectionMonitorSource = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorSource + ApplicationGatewayBackendHealthPool = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthPool + AvailableProvidersListCountry = Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListCountry + ApplicationGatewayFirewallDisabledRuleGroup = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallDisabledRuleGroup + ConnectionMonitorParameters = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorParameters + ConnectionMonitorDestination = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorDestination + ExpressRouteCircuitRoutesTableSummary = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitRoutesTableSummary + ConnectionMonitorResult = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorResult + TunnelConnectionHealth = Azure::Network::Mgmt::V2018_10_01::Models::TunnelConnectionHealth + Resource = Azure::Network::Mgmt::V2018_10_01::Models::Resource + SubnetListResult = Azure::Network::Mgmt::V2018_10_01::Models::SubnetListResult + ConnectionMonitor = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitor + RouteFilterListResult = Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterListResult + ConnectionMonitorQueryResult = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorQueryResult + ExpressRouteCircuitPeeringListResult = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringListResult + VpnClientConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientConfiguration + Availability = Azure::Network::Mgmt::V2018_10_01::Models::Availability + ConnectionStateSnapshot = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionStateSnapshot ApplicationGatewayBackendHttpSettings = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHttpSettings - ApplicationGatewayIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayIPConfiguration + ConnectionMonitorListResult = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorListResult ApplicationGatewayAuthenticationCertificate = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAuthenticationCertificate - ApplicationGatewayTrustedRootCertificate = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayTrustedRootCertificate - ApplicationGatewaySslCertificate = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslCertificate + ApplicationGatewayIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayIPConfiguration ApplicationGatewayFrontendIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFrontendIPConfiguration - ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFrontendPort + ApplicationGatewaySslCertificate = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslCertificate ApplicationGatewayHttpListener = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayHttpListener - ApplicationGatewayPathRule = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayPathRule + ApplicationGatewayWebApplicationFirewallConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration ApplicationGatewayProbe = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayProbe + ApplicationGatewayPathRule = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayPathRule + ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFrontendPort ApplicationGatewayRequestRoutingRule = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRequestRoutingRule - ApplicationGatewayRewriteRuleSet = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRuleSet ApplicationGatewayRedirectConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRedirectConfiguration - ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayUrlPathMap + Usage = Azure::Network::Mgmt::V2018_10_01::Models::Usage ApplicationGateway = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGateway ApplicationGatewayFirewallRuleSet = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRuleSet - ApplicationGatewayAvailableSslOptions = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableSslOptions + ResourceNavigationLink = Azure::Network::Mgmt::V2018_10_01::Models::ResourceNavigationLink ApplicationGatewaySslPredefinedPolicy = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPredefinedPolicy - AzureFirewallIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallIPConfiguration - AzureFirewallApplicationRuleCollection = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleCollection - AzureFirewallNatRuleCollection = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRuleCollection - AzureFirewallNetworkRuleCollection = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRuleCollection - AzureFirewall = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewall - AzureFirewallFqdnTag = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallFqdnTag EndpointServiceResult = Azure::Network::Mgmt::V2018_10_01::Models::EndpointServiceResult + ApplicationGatewayAvailableSslOptions = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableSslOptions + ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayUrlPathMap + ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeering ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitAuthorization RouteFilterRule = Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterRule - ExpressRouteCircuitConnection = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitConnection - ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeering + ExpressRouteServiceProvider = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProvider RouteFilter = Azure::Network::Mgmt::V2018_10_01::Models::RouteFilter ExpressRouteCircuit = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuit - ExpressRouteServiceProvider = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProvider - ExpressRouteCrossConnectionPeering = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionPeering - ExpressRouteCrossConnection = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnection - ExpressRouteConnection = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnection - ExpressRouteGateway = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGateway - ExpressRoutePortsLocation = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocation - ExpressRouteLink = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLink - ExpressRoutePort = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePort + InboundNatPool = Azure::Network::Mgmt::V2018_10_01::Models::InboundNatPool LoadBalancingRule = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancingRule Probe = Azure::Network::Mgmt::V2018_10_01::Models::Probe - InboundNatPool = Azure::Network::Mgmt::V2018_10_01::Models::InboundNatPool - OutboundRule = Azure::Network::Mgmt::V2018_10_01::Models::OutboundRule - LoadBalancer = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancer - ContainerNetworkInterfaceConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterfaceConfiguration - Container = Azure::Network::Mgmt::V2018_10_01::Models::Container - ContainerNetworkInterface = Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterface - NetworkProfile = Azure::Network::Mgmt::V2018_10_01::Models::NetworkProfile NetworkWatcher = Azure::Network::Mgmt::V2018_10_01::Models::NetworkWatcher - PublicIPPrefix = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefix PatchRouteFilterRule = Azure::Network::Mgmt::V2018_10_01::Models::PatchRouteFilterRule - PatchRouteFilter = Azure::Network::Mgmt::V2018_10_01::Models::PatchRouteFilter + LoadBalancer = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancer BgpServiceCommunity = Azure::Network::Mgmt::V2018_10_01::Models::BgpServiceCommunity VirtualNetworkPeering = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkPeering - VirtualNetwork = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetwork - VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayIPConfiguration - VpnClientRootCertificate = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientRootCertificate + ExpressRouteCircuitConnection = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitConnection VpnClientRevokedCertificate = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientRevokedCertificate - VirtualNetworkGateway = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGateway - LocalNetworkGateway = Azure::Network::Mgmt::V2018_10_01::Models::LocalNetworkGateway + VpnClientRootCertificate = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientRootCertificate + VirtualNetwork = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetwork + NetworkProfile = Azure::Network::Mgmt::V2018_10_01::Models::NetworkProfile + ExpressRoutePortsLocation = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocation VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnection - ConnectionSharedKey = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionSharedKey - VirtualNetworkGatewayConnectionListEntity = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionListEntity + ExpressRoutePort = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePort + LocalNetworkGateway = Azure::Network::Mgmt::V2018_10_01::Models::LocalNetworkGateway + ContainerNetworkInterfaceConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterfaceConfiguration + ContainerNetworkInterface = Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterface + PublicIPPrefix = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefix P2SVpnServerConfigVpnClientRootCertificate = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigVpnClientRootCertificate - P2SVpnServerConfigVpnClientRevokedCertificate = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigVpnClientRevokedCertificate - P2SVpnServerConfigRadiusServerRootCertificate = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigRadiusServerRootCertificate - P2SVpnServerConfigRadiusClientRootCertificate = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigRadiusClientRootCertificate - P2SVpnServerConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfiguration + VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayIPConfiguration + ConnectionSharedKey = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionSharedKey + PatchRouteFilter = Azure::Network::Mgmt::V2018_10_01::Models::PatchRouteFilter + VirtualNetworkGateway = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGateway VirtualWAN = Azure::Network::Mgmt::V2018_10_01::Models::VirtualWAN VpnSite = Azure::Network::Mgmt::V2018_10_01::Models::VpnSite - HubVirtualNetworkConnection = Azure::Network::Mgmt::V2018_10_01::Models::HubVirtualNetworkConnection + VirtualNetworkGatewayConnectionListEntity = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionListEntity VirtualHub = Azure::Network::Mgmt::V2018_10_01::Models::VirtualHub VpnConnection = Azure::Network::Mgmt::V2018_10_01::Models::VpnConnection VpnGateway = Azure::Network::Mgmt::V2018_10_01::Models::VpnGateway P2SVpnGateway = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnGateway - IPAllocationMethod = Azure::Network::Mgmt::V2018_10_01::Models::IPAllocationMethod + ApplicationGatewayTier = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayTier SecurityRuleProtocol = Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleProtocol SecurityRuleAccess = Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleAccess SecurityRuleDirection = Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleDirection - RouteNextHopType = Azure::Network::Mgmt::V2018_10_01::Models::RouteNextHopType + IPAllocationMethod = Azure::Network::Mgmt::V2018_10_01::Models::IPAllocationMethod PublicIPAddressSkuName = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressSkuName - IPVersion = Azure::Network::Mgmt::V2018_10_01::Models::IPVersion TransportProtocol = Azure::Network::Mgmt::V2018_10_01::Models::TransportProtocol + RouteNextHopType = Azure::Network::Mgmt::V2018_10_01::Models::RouteNextHopType + ApplicationGatewaySslPolicyType = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicyType ApplicationGatewayProtocol = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayProtocol + P2SVpnServerConfigVpnClientRevokedCertificate = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigVpnClientRevokedCertificate + P2SVpnServerConfigRadiusServerRootCertificate = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigRadiusServerRootCertificate + P2SVpnServerConfigRadiusClientRootCertificate = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigRadiusClientRootCertificate + P2SVpnServerConfiguration = Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfiguration + ApplicationGatewaySslProtocol = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslProtocol + ResourceIdentityType = Azure::Network::Mgmt::V2018_10_01::Models::ResourceIdentityType + HubVirtualNetworkConnection = Azure::Network::Mgmt::V2018_10_01::Models::HubVirtualNetworkConnection + ApplicationGatewaySslCipherSuite = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslCipherSuite ApplicationGatewayCookieBasedAffinity = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayCookieBasedAffinity ApplicationGatewayBackendHealthServerHealth = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthServerHealth ApplicationGatewaySkuName = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySkuName - ApplicationGatewayTier = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayTier - ApplicationGatewaySslProtocol = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslProtocol - ApplicationGatewaySslPolicyType = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicyType - ApplicationGatewaySslPolicyName = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicyName - ApplicationGatewaySslCipherSuite = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslCipherSuite ApplicationGatewayCustomErrorStatusCode = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayCustomErrorStatusCode + IPVersion = Azure::Network::Mgmt::V2018_10_01::Models::IPVersion + AzureFirewallApplicationRuleProtocolType = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleProtocolType + ApplicationGatewaySslPolicyName = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicyName + AzureFirewallNetworkRuleProtocol = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRuleProtocol ApplicationGatewayRequestRoutingRuleType = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRequestRoutingRuleType ApplicationGatewayRedirectType = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRedirectType ApplicationGatewayOperationalState = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayOperationalState ApplicationGatewayFirewallMode = Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallMode - ResourceIdentityType = Azure::Network::Mgmt::V2018_10_01::Models::ResourceIdentityType ProvisioningState = Azure::Network::Mgmt::V2018_10_01::Models::ProvisioningState - AzureFirewallRCActionType = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallRCActionType - AzureFirewallApplicationRuleProtocolType = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleProtocolType - AzureFirewallNatRCActionType = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRCActionType - AzureFirewallNetworkRuleProtocol = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRuleProtocol - AuthorizationUseStatus = Azure::Network::Mgmt::V2018_10_01::Models::AuthorizationUseStatus ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState Access = Azure::Network::Mgmt::V2018_10_01::Models::Access - ExpressRoutePeeringType = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePeeringType - ExpressRoutePeeringState = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePeeringState - CircuitConnectionStatus = Azure::Network::Mgmt::V2018_10_01::Models::CircuitConnectionStatus + NetworkOperationStatus = Azure::Network::Mgmt::V2018_10_01::Models::NetworkOperationStatus ExpressRouteCircuitPeeringState = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringState ExpressRouteCircuitSkuTier = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitSkuTier ExpressRouteCircuitSkuFamily = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitSkuFamily ServiceProviderProvisioningState = Azure::Network::Mgmt::V2018_10_01::Models::ServiceProviderProvisioningState - ExpressRouteLinkConnectorType = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkConnectorType - ExpressRouteLinkAdminState = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkAdminState - ExpressRoutePortsEncapsulation = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsEncapsulation LoadBalancerSkuName = Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerSkuName - LoadDistribution = Azure::Network::Mgmt::V2018_10_01::Models::LoadDistribution + AuthorizationUseStatus = Azure::Network::Mgmt::V2018_10_01::Models::AuthorizationUseStatus ProbeProtocol = Azure::Network::Mgmt::V2018_10_01::Models::ProbeProtocol - NetworkOperationStatus = Azure::Network::Mgmt::V2018_10_01::Models::NetworkOperationStatus + PcProtocol = Azure::Network::Mgmt::V2018_10_01::Models::PcProtocol EffectiveSecurityRuleProtocol = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveSecurityRuleProtocol EffectiveRouteSource = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRouteSource - EffectiveRouteState = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRouteState - AssociationType = Azure::Network::Mgmt::V2018_10_01::Models::AssociationType + AzureFirewallRCActionType = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallRCActionType + IssueType = Azure::Network::Mgmt::V2018_10_01::Models::IssueType + AzureFirewallNatRCActionType = Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRCActionType Direction = Azure::Network::Mgmt::V2018_10_01::Models::Direction + ExpressRoutePeeringType = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePeeringType + ExpressRoutePeeringState = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePeeringState + CircuitConnectionStatus = Azure::Network::Mgmt::V2018_10_01::Models::CircuitConnectionStatus + ExpressRouteLinkConnectorType = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkConnectorType + ExpressRouteLinkAdminState = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkAdminState + ExpressRoutePortsEncapsulation = Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsEncapsulation IpFlowProtocol = Azure::Network::Mgmt::V2018_10_01::Models::IpFlowProtocol + AssociationType = Azure::Network::Mgmt::V2018_10_01::Models::AssociationType + HTTPMethod = Azure::Network::Mgmt::V2018_10_01::Models::HTTPMethod NextHopType = Azure::Network::Mgmt::V2018_10_01::Models::NextHopType - PcProtocol = Azure::Network::Mgmt::V2018_10_01::Models::PcProtocol + LoadDistribution = Azure::Network::Mgmt::V2018_10_01::Models::LoadDistribution PcStatus = Azure::Network::Mgmt::V2018_10_01::Models::PcStatus PcError = Azure::Network::Mgmt::V2018_10_01::Models::PcError - FlowLogFormatType = Azure::Network::Mgmt::V2018_10_01::Models::FlowLogFormatType - Protocol = Azure::Network::Mgmt::V2018_10_01::Models::Protocol - HTTPMethod = Azure::Network::Mgmt::V2018_10_01::Models::HTTPMethod Origin = Azure::Network::Mgmt::V2018_10_01::Models::Origin - Severity = Azure::Network::Mgmt::V2018_10_01::Models::Severity - IssueType = Azure::Network::Mgmt::V2018_10_01::Models::IssueType - ConnectionStatus = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionStatus - ConnectionMonitorSourceStatus = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorSourceStatus + VpnClientProtocol = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientProtocol + EffectiveRouteState = Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRouteState ConnectionState = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionState EvaluationState = Azure::Network::Mgmt::V2018_10_01::Models::EvaluationState - VerbosityLevel = Azure::Network::Mgmt::V2018_10_01::Models::VerbosityLevel - PublicIPPrefixSkuName = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixSkuName VirtualNetworkPeeringState = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkPeeringState VirtualNetworkGatewayType = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayType VpnType = Azure::Network::Mgmt::V2018_10_01::Models::VpnType VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewaySkuName VirtualNetworkGatewaySkuTier = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewaySkuTier - VpnClientProtocol = Azure::Network::Mgmt::V2018_10_01::Models::VpnClientProtocol - IpsecEncryption = Azure::Network::Mgmt::V2018_10_01::Models::IpsecEncryption - IpsecIntegrity = Azure::Network::Mgmt::V2018_10_01::Models::IpsecIntegrity - IkeEncryption = Azure::Network::Mgmt::V2018_10_01::Models::IkeEncryption IkeIntegrity = Azure::Network::Mgmt::V2018_10_01::Models::IkeIntegrity DhGroup = Azure::Network::Mgmt::V2018_10_01::Models::DhGroup - PfsGroup = Azure::Network::Mgmt::V2018_10_01::Models::PfsGroup - BgpPeerState = Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerState - ProcessorArchitecture = Azure::Network::Mgmt::V2018_10_01::Models::ProcessorArchitecture - AuthenticationMethod = Azure::Network::Mgmt::V2018_10_01::Models::AuthenticationMethod + ConnectionStatus = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionStatus + Protocol = Azure::Network::Mgmt::V2018_10_01::Models::Protocol VirtualNetworkGatewayConnectionStatus = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionStatus VirtualNetworkGatewayConnectionType = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionType - VirtualNetworkGatewayConnectionProtocol = Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionProtocol - OfficeTrafficCategory = Azure::Network::Mgmt::V2018_10_01::Models::OfficeTrafficCategory + IpsecEncryption = Azure::Network::Mgmt::V2018_10_01::Models::IpsecEncryption + FlowLogFormatType = Azure::Network::Mgmt::V2018_10_01::Models::FlowLogFormatType + IkeEncryption = Azure::Network::Mgmt::V2018_10_01::Models::IkeEncryption + ConnectionMonitorSourceStatus = Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorSourceStatus + VerbosityLevel = Azure::Network::Mgmt::V2018_10_01::Models::VerbosityLevel + PublicIPPrefixSkuName = Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixSkuName + ProcessorArchitecture = Azure::Network::Mgmt::V2018_10_01::Models::ProcessorArchitecture + AuthenticationMethod = Azure::Network::Mgmt::V2018_10_01::Models::AuthenticationMethod VpnGatewayTunnelingProtocol = Azure::Network::Mgmt::V2018_10_01::Models::VpnGatewayTunnelingProtocol VpnConnectionStatus = Azure::Network::Mgmt::V2018_10_01::Models::VpnConnectionStatus VirtualWanSecurityProviderType = Azure::Network::Mgmt::V2018_10_01::Models::VirtualWanSecurityProviderType - TunnelConnectionStatus = Azure::Network::Mgmt::V2018_10_01::Models::TunnelConnectionStatus + IpsecIntegrity = Azure::Network::Mgmt::V2018_10_01::Models::IpsecIntegrity HubVirtualNetworkConnectionStatus = Azure::Network::Mgmt::V2018_10_01::Models::HubVirtualNetworkConnectionStatus end class NetworkManagementClass - attr_reader :application_gateways, :application_security_groups, :available_delegations, :available_resource_group_delegations, :azure_firewalls, :azure_firewall_fqdn_tags, :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, :express_route_gateways, :express_route_connections, :express_route_ports_locations, :express_route_ports, :express_route_links, :interface_endpoints, :load_balancers, :load_balancer_backend_address_pools, :load_balancer_frontend_ipconfigurations, :inbound_nat_rules, :load_balancer_load_balancing_rules, :load_balancer_outbound_rules, :load_balancer_network_interfaces, :load_balancer_probes, :network_interfaces, :network_interface_ipconfigurations, :network_interface_load_balancers, :network_interface_tap_configurations, :network_profiles, :network_security_groups, :security_rules, :default_security_rules, :network_watchers, :packet_captures, :connection_monitors, :operations, :public_ipaddresses, :public_ipprefixes, :route_filters, :route_filter_rules, :route_tables, :routes, :bgp_service_communities, :service_endpoint_policies, :service_endpoint_policy_definitions, :usages, :virtual_networks, :subnets, :virtual_network_peerings, :virtual_network_gateways, :virtual_network_gateway_connections, :local_network_gateways, :virtual_network_taps, :virtual_wans, :vpn_sites, :vpn_sites_configuration, :virtual_hubs, :hub_virtual_network_connections, :vpn_gateways, :vpn_connections, :p2s_vpn_server_configurations, :p2s_vpn_gateways, :configurable, :base_url, :options, :model_classes + attr_reader :application_gateways, :application_security_groups, :available_endpoint_services, :express_route_circuit_authorizations, :express_route_circuit_peerings, :express_route_circuits, :express_route_service_providers, :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_interface_ipconfigurations, :network_interface_load_balancers, :network_security_groups, :available_delegations, :available_resource_group_delegations, :azure_firewalls, :azure_firewall_fqdn_tags, :ddos_protection_plans, :express_route_circuit_connections, :express_route_cross_connections, :express_route_cross_connection_peerings, :express_route_gateways, :express_route_connections, :express_route_ports_locations, :express_route_ports, :express_route_links, :interface_endpoints, :load_balancer_outbound_rules, :network_interfaces, :network_interface_tap_configurations, :network_profiles, :packet_captures, :connection_monitors, :public_ipprefixes, :security_rules, :default_security_rules, :network_watchers, :bgp_service_communities, :service_endpoint_policy_definitions, :public_ipaddresses, :route_filter_rules, :route_tables, :routes, :virtual_network_gateway_connections, :usages, :virtual_networks, :route_filters, :operations, :virtual_network_gateways, :virtual_wans, :local_network_gateways, :vpn_sites_configuration, :service_endpoint_policies, :subnets, :virtual_network_peerings, :vpn_connections, :vpn_sites, :p2s_vpn_gateways, :virtual_hubs, :hub_virtual_network_connections, :vpn_gateways, :virtual_network_taps, :p2s_vpn_server_configurations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -521,582 +521,768 @@ def initialize(configurable, base_url=nil, options=nil) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end - add_telemetry(@client_0) - - @client_1 = Azure::Network::Mgmt::V2018_10_01::NetworkManagementClient.new(configurable.credentials, base_url, options) - if(@client_1.respond_to?(:subscription_id)) - @client_1.subscription_id = configurable.subscription_id + add_telemetry(@client_0) + + @client_1 = Azure::Network::Mgmt::V2018_10_01::NetworkManagementClient.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) + @application_gateways = @client_1.application_gateways + @application_security_groups = @client_1.application_security_groups + @available_endpoint_services = @client_1.available_endpoint_services + @express_route_circuit_authorizations = @client_1.express_route_circuit_authorizations + @express_route_circuit_peerings = @client_1.express_route_circuit_peerings + @express_route_circuits = @client_1.express_route_circuits + @express_route_service_providers = @client_1.express_route_service_providers + @load_balancers = @client_1.load_balancers + @load_balancer_backend_address_pools = @client_1.load_balancer_backend_address_pools + @load_balancer_frontend_ipconfigurations = @client_1.load_balancer_frontend_ipconfigurations + @inbound_nat_rules = @client_1.inbound_nat_rules + @load_balancer_load_balancing_rules = @client_1.load_balancer_load_balancing_rules + @load_balancer_network_interfaces = @client_1.load_balancer_network_interfaces + @load_balancer_probes = @client_1.load_balancer_probes + @network_interface_ipconfigurations = @client_1.network_interface_ipconfigurations + @network_interface_load_balancers = @client_1.network_interface_load_balancers + @network_security_groups = @client_1.network_security_groups + @available_delegations = @client_1.available_delegations + @available_resource_group_delegations = @client_1.available_resource_group_delegations + @azure_firewalls = @client_1.azure_firewalls + @azure_firewall_fqdn_tags = @client_1.azure_firewall_fqdn_tags + @ddos_protection_plans = @client_1.ddos_protection_plans + @express_route_circuit_connections = @client_1.express_route_circuit_connections + @express_route_cross_connections = @client_1.express_route_cross_connections + @express_route_cross_connection_peerings = @client_1.express_route_cross_connection_peerings + @express_route_gateways = @client_1.express_route_gateways + @express_route_connections = @client_1.express_route_connections + @express_route_ports_locations = @client_1.express_route_ports_locations + @express_route_ports = @client_1.express_route_ports + @express_route_links = @client_1.express_route_links + @interface_endpoints = @client_1.interface_endpoints + @load_balancer_outbound_rules = @client_1.load_balancer_outbound_rules + @network_interfaces = @client_1.network_interfaces + @network_interface_tap_configurations = @client_1.network_interface_tap_configurations + @network_profiles = @client_1.network_profiles + @packet_captures = @client_1.packet_captures + @connection_monitors = @client_1.connection_monitors + @public_ipprefixes = @client_1.public_ipprefixes + @security_rules = @client_1.security_rules + @default_security_rules = @client_1.default_security_rules + @network_watchers = @client_1.network_watchers + @bgp_service_communities = @client_1.bgp_service_communities + @service_endpoint_policy_definitions = @client_1.service_endpoint_policy_definitions + @public_ipaddresses = @client_1.public_ipaddresses + @route_filter_rules = @client_1.route_filter_rules + @route_tables = @client_1.route_tables + @routes = @client_1.routes + @virtual_network_gateway_connections = @client_1.virtual_network_gateway_connections + @usages = @client_1.usages + @virtual_networks = @client_1.virtual_networks + @route_filters = @client_1.route_filters + @operations = @client_1.operations + @virtual_network_gateways = @client_1.virtual_network_gateways + @virtual_wans = @client_1.virtual_wans + @local_network_gateways = @client_1.local_network_gateways + @vpn_sites_configuration = @client_1.vpn_sites_configuration + @service_endpoint_policies = @client_1.service_endpoint_policies + @subnets = @client_1.subnets + @virtual_network_peerings = @client_1.virtual_network_peerings + @vpn_connections = @client_1.vpn_connections + @vpn_sites = @client_1.vpn_sites + @p2s_vpn_gateways = @client_1.p2s_vpn_gateways + @virtual_hubs = @client_1.virtual_hubs + @hub_virtual_network_connections = @client_1.hub_virtual_network_connections + @vpn_gateways = @client_1.vpn_gateways + @virtual_network_taps = @client_1.virtual_network_taps + @p2s_vpn_server_configurations = @client_1.p2s_vpn_server_configurations + + @model_classes = ModelClasses.new + end + + def add_telemetry(client) + profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Network/Mgmt" + client.add_user_agent_information(profile_information) + end + + def method_missing(method, *args) + if @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + + class ModelClasses + def container + Azure::Network::Mgmt::V2018_10_01::Models::Container + end + def pfs_group + Azure::Network::Mgmt::V2018_10_01::Models::PfsGroup + end + def bgp_peer_state + Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerState + end + def virtual_network_gateway_connection_protocol + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionProtocol + end + def office_traffic_category + Azure::Network::Mgmt::V2018_10_01::Models::OfficeTrafficCategory + end + def tunnel_connection_status + Azure::Network::Mgmt::V2018_10_01::Models::TunnelConnectionStatus + end + def log_specification + Azure::Network::Mgmt::V2018_10_01::Models::LogSpecification + end + def httpheader + Azure::Network::Mgmt::V2018_10_01::Models::HTTPHeader + end + def severity + Azure::Network::Mgmt::V2018_10_01::Models::Severity + end + def managed_service_identity + Azure::Network::Mgmt::V2018_10_01::Models::ManagedServiceIdentity + end + def error_response + Azure::Network::Mgmt::V2018_10_01::Models::ErrorResponse + end + def application_gateway_backend_address + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendAddress + end + def public_ipaddress_sku + Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressSku + end + def ip_tag + Azure::Network::Mgmt::V2018_10_01::Models::IpTag + end + def public_ipaddress_list_result + Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressListResult + end + def endpoint_service + Azure::Network::Mgmt::V2018_10_01::Models::EndpointService + end + def public_ipaddress_dns_settings + Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressDnsSettings + end + def network_interface_list_result + Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceListResult + end + def network_interface_dns_settings + Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceDnsSettings + end + def network_interface_ipconfiguration_list_result + Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceIPConfigurationListResult + end + def service_endpoint_properties_format + Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPropertiesFormat + end + def application_security_group + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationSecurityGroup + end + def delegation + Azure::Network::Mgmt::V2018_10_01::Models::Delegation + end + def container_network_interface_ip_configuration + Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterfaceIpConfiguration + end + def express_route_circuit_reference + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitReference + end + def express_route_cross_connection_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionListResult + end + def express_route_cross_connection_peering_list + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionPeeringList + end + def vpn_client_connection_health + Azure::Network::Mgmt::V2018_10_01::Models::VpnClientConnectionHealth + end + def virtual_hub_id + Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubId + end + def operation + Azure::Network::Mgmt::V2018_10_01::Models::Operation + end + def virtual_wan_security_providers + Azure::Network::Mgmt::V2018_10_01::Models::VirtualWanSecurityProviders + end + def operation_list_result + Azure::Network::Mgmt::V2018_10_01::Models::OperationListResult + end + def virtual_wan_security_provider + Azure::Network::Mgmt::V2018_10_01::Models::VirtualWanSecurityProvider + end + def express_route_circuit_peering_id + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringId + end + def express_route_gateway_properties_auto_scale_configuration + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayPropertiesAutoScaleConfiguration + end + def express_route_gateway_properties_auto_scale_configuration_bounds + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds + end + def list_virtual_hubs_result + Azure::Network::Mgmt::V2018_10_01::Models::ListVirtualHubsResult + end + def list_vpn_connections_result + Azure::Network::Mgmt::V2018_10_01::Models::ListVpnConnectionsResult + end + def express_route_connection_list + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnectionList + end + def express_route_gateway_list + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayList + end + def list_vpn_sites_result + Azure::Network::Mgmt::V2018_10_01::Models::ListVpnSitesResult + end + def list_virtual_wans_result + Azure::Network::Mgmt::V2018_10_01::Models::ListVirtualWANsResult + end + def public_ipprefix_list_result + Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixListResult + end + def virtual_hub_route + Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubRoute + end + def express_route_ports_location_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocationListResult + end + def express_route_link_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkListResult + end + def express_route_ports_location_bandwidths + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocationBandwidths + end + def express_route_port_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortListResult + end + def interface_endpoint_list_result + Azure::Network::Mgmt::V2018_10_01::Models::InterfaceEndpointListResult + end + def public_ipprefix_sku + Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixSku + end + def application_gateway_rewrite_rule_action_set + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRuleActionSet + end + def application_gateway_firewall_exclusion + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallExclusion + end + def application_gateway_autoscale_configuration + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAutoscaleConfiguration + end + def load_balancer_outbound_rule_list_result + Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerOutboundRuleListResult + end + def network_interface_tap_configuration_list_result + Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceTapConfigurationListResult + end + def available_delegations_result + Azure::Network::Mgmt::V2018_10_01::Models::AvailableDelegationsResult + end + def azure_firewall_rcaction + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallRCAction + end + def azure_firewall_application_rule + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRule + end + def azure_firewall_nat_rcaction + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRCAction + end + def referenced_public_ip_address + Azure::Network::Mgmt::V2018_10_01::Models::ReferencedPublicIpAddress + end + def azure_firewall_list_result + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallListResult + end + def ddos_protection_plan + Azure::Network::Mgmt::V2018_10_01::Models::DdosProtectionPlan + end + def network_configuration_diagnostic_response + Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticResponse + end + def azure_firewall_fqdn_tag_list_result + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallFqdnTagListResult + end + def vpn_client_ipsec_parameters + Azure::Network::Mgmt::V2018_10_01::Models::VpnClientIPsecParameters + end + def service_endpoint_policy_definition_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicyDefinitionListResult + end + def network_configuration_diagnostic_result + Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticResult + end + def p2_svpn_profile_parameters + Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnProfileParameters + end + def list_p2_svpn_server_configurations_result + Azure::Network::Mgmt::V2018_10_01::Models::ListP2SVpnServerConfigurationsResult + end + def network_profile_list_result + Azure::Network::Mgmt::V2018_10_01::Models::NetworkProfileListResult + end + def list_hub_virtual_network_connections_result + Azure::Network::Mgmt::V2018_10_01::Models::ListHubVirtualNetworkConnectionsResult + end + def virtual_hub_route_table + Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubRouteTable + end + def operation_display + Azure::Network::Mgmt::V2018_10_01::Models::OperationDisplay + end + def device_properties + Azure::Network::Mgmt::V2018_10_01::Models::DeviceProperties + end + def application_gateway_rewrite_rule + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRule + end + def vpn_site_id + Azure::Network::Mgmt::V2018_10_01::Models::VpnSiteId + end + def express_route_cross_connection_routes_table_summary + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionRoutesTableSummary + end + def azure_firewall_network_rule + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRule + end + def managed_service_identity_user_assigned_identities_value + Azure::Network::Mgmt::V2018_10_01::Models::ManagedServiceIdentityUserAssignedIdentitiesValue + end + def flow_log_format_parameters + Azure::Network::Mgmt::V2018_10_01::Models::FlowLogFormatParameters + end + def ddos_protection_plan_list_result + Azure::Network::Mgmt::V2018_10_01::Models::DdosProtectionPlanListResult + end + def traffic_analytics_properties + Azure::Network::Mgmt::V2018_10_01::Models::TrafficAnalyticsProperties + end + def express_route_connection_id + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnectionId + end + def application_gateway_custom_error + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayCustomError + end + def httpconfiguration + Azure::Network::Mgmt::V2018_10_01::Models::HTTPConfiguration + end + def express_route_cross_connections_routes_table_summary_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionsRoutesTableSummaryListResult + end + def traffic_analytics_configuration_properties + Azure::Network::Mgmt::V2018_10_01::Models::TrafficAnalyticsConfigurationProperties end - add_telemetry(@client_1) - @application_gateways = @client_1.application_gateways - @application_security_groups = @client_1.application_security_groups - @available_delegations = @client_1.available_delegations - @available_resource_group_delegations = @client_1.available_resource_group_delegations - @azure_firewalls = @client_1.azure_firewalls - @azure_firewall_fqdn_tags = @client_1.azure_firewall_fqdn_tags - @ddos_protection_plans = @client_1.ddos_protection_plans - @available_endpoint_services = @client_1.available_endpoint_services - @express_route_circuit_authorizations = @client_1.express_route_circuit_authorizations - @express_route_circuit_peerings = @client_1.express_route_circuit_peerings - @express_route_circuit_connections = @client_1.express_route_circuit_connections - @express_route_circuits = @client_1.express_route_circuits - @express_route_service_providers = @client_1.express_route_service_providers - @express_route_cross_connections = @client_1.express_route_cross_connections - @express_route_cross_connection_peerings = @client_1.express_route_cross_connection_peerings - @express_route_gateways = @client_1.express_route_gateways - @express_route_connections = @client_1.express_route_connections - @express_route_ports_locations = @client_1.express_route_ports_locations - @express_route_ports = @client_1.express_route_ports - @express_route_links = @client_1.express_route_links - @interface_endpoints = @client_1.interface_endpoints - @load_balancers = @client_1.load_balancers - @load_balancer_backend_address_pools = @client_1.load_balancer_backend_address_pools - @load_balancer_frontend_ipconfigurations = @client_1.load_balancer_frontend_ipconfigurations - @inbound_nat_rules = @client_1.inbound_nat_rules - @load_balancer_load_balancing_rules = @client_1.load_balancer_load_balancing_rules - @load_balancer_outbound_rules = @client_1.load_balancer_outbound_rules - @load_balancer_network_interfaces = @client_1.load_balancer_network_interfaces - @load_balancer_probes = @client_1.load_balancer_probes - @network_interfaces = @client_1.network_interfaces - @network_interface_ipconfigurations = @client_1.network_interface_ipconfigurations - @network_interface_load_balancers = @client_1.network_interface_load_balancers - @network_interface_tap_configurations = @client_1.network_interface_tap_configurations - @network_profiles = @client_1.network_profiles - @network_security_groups = @client_1.network_security_groups - @security_rules = @client_1.security_rules - @default_security_rules = @client_1.default_security_rules - @network_watchers = @client_1.network_watchers - @packet_captures = @client_1.packet_captures - @connection_monitors = @client_1.connection_monitors - @operations = @client_1.operations - @public_ipaddresses = @client_1.public_ipaddresses - @public_ipprefixes = @client_1.public_ipprefixes - @route_filters = @client_1.route_filters - @route_filter_rules = @client_1.route_filter_rules - @route_tables = @client_1.route_tables - @routes = @client_1.routes - @bgp_service_communities = @client_1.bgp_service_communities - @service_endpoint_policies = @client_1.service_endpoint_policies - @service_endpoint_policy_definitions = @client_1.service_endpoint_policy_definitions - @usages = @client_1.usages - @virtual_networks = @client_1.virtual_networks - @subnets = @client_1.subnets - @virtual_network_peerings = @client_1.virtual_network_peerings - @virtual_network_gateways = @client_1.virtual_network_gateways - @virtual_network_gateway_connections = @client_1.virtual_network_gateway_connections - @local_network_gateways = @client_1.local_network_gateways - @virtual_network_taps = @client_1.virtual_network_taps - @virtual_wans = @client_1.virtual_wans - @vpn_sites = @client_1.vpn_sites - @vpn_sites_configuration = @client_1.vpn_sites_configuration - @virtual_hubs = @client_1.virtual_hubs - @hub_virtual_network_connections = @client_1.hub_virtual_network_connections - @vpn_gateways = @client_1.vpn_gateways - @vpn_connections = @client_1.vpn_connections - @p2s_vpn_server_configurations = @client_1.p2s_vpn_server_configurations - @p2s_vpn_gateways = @client_1.p2s_vpn_gateways - - @model_classes = ModelClasses.new - end - - def add_telemetry(client) - profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Network/Mgmt" - client.add_user_agent_information(profile_information) - end - - def method_missing(method, *args) - if @client_1.respond_to?method - @client_1.send(method, *args) - elsif @client_0.respond_to?method - @client_0.send(method, *args) - else - super + def get_vpn_sites_configuration_request + Azure::Network::Mgmt::V2018_10_01::Models::GetVpnSitesConfigurationRequest end - end - - class ModelClasses - def container_network_interface_ip_configuration - Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterfaceIpConfiguration + def protocol_configuration + Azure::Network::Mgmt::V2018_10_01::Models::ProtocolConfiguration end - def express_route_circuit_reference - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitReference + def list_p2_svpn_gateways_result + Azure::Network::Mgmt::V2018_10_01::Models::ListP2SVpnGatewaysResult end - def route_list_result - Azure::Network::Mgmt::V2018_10_01::Models::RouteListResult + def azure_firewall_application_rule_protocol + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleProtocol end - def route_table_list_result - Azure::Network::Mgmt::V2018_10_01::Models::RouteTableListResult + def service_endpoint_policy_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicyListResult end - def endpoint_service - Azure::Network::Mgmt::V2018_10_01::Models::EndpointService + def vpn_profile_response + Azure::Network::Mgmt::V2018_10_01::Models::VpnProfileResponse end - def express_route_cross_connection_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionListResult + def available_delegation + Azure::Network::Mgmt::V2018_10_01::Models::AvailableDelegation end - def network_interface_dns_settings - Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceDnsSettings + def list_vpn_gateways_result + Azure::Network::Mgmt::V2018_10_01::Models::ListVpnGatewaysResult end - def express_route_cross_connection_peering_list - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionPeeringList + def virtual_network_tap_list_result + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkTapListResult end - def vpn_client_connection_health - Azure::Network::Mgmt::V2018_10_01::Models::VpnClientConnectionHealth + def network_configuration_diagnostic_parameters + Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticParameters end - def virtual_hub_id - Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubId + def network_security_rules_evaluation_result + Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityRulesEvaluationResult end - def virtual_wan_security_providers - Azure::Network::Mgmt::V2018_10_01::Models::VirtualWanSecurityProviders + def network_configuration_diagnostic_profile + Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticProfile end - def express_route_circuit_peering_id - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringId + def azure_firewall_nat_rule + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRule end - def virtual_wan_security_provider - Azure::Network::Mgmt::V2018_10_01::Models::VirtualWanSecurityProvider + def network_security_group_result + Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityGroupResult end - def express_route_gateway_properties_auto_scale_configuration_bounds - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds + def matched_rule + Azure::Network::Mgmt::V2018_10_01::Models::MatchedRule end - def public_ipaddress_sku - Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressSku + def evaluated_network_security_group + Azure::Network::Mgmt::V2018_10_01::Models::EvaluatedNetworkSecurityGroup end - def express_route_gateway_properties_auto_scale_configuration - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayPropertiesAutoScaleConfiguration + def network_security_group + Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityGroup end - def ip_tag - Azure::Network::Mgmt::V2018_10_01::Models::IpTag + def application_gateway_header_configuration + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayHeaderConfiguration end - def route_filter_rule_list_result - Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterRuleListResult + def network_interface_tap_configuration + Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceTapConfiguration end - def list_vpn_connections_result - Azure::Network::Mgmt::V2018_10_01::Models::ListVpnConnectionsResult + def service_endpoint_policy_definition + Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicyDefinition end - def route_filter_list_result - Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterListResult + def service_endpoint_policy + Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicy end - def list_virtual_hubs_result - Azure::Network::Mgmt::V2018_10_01::Models::ListVirtualHubsResult + def ipconfiguration_profile + Azure::Network::Mgmt::V2018_10_01::Models::IPConfigurationProfile end - def express_route_gateway_list - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGatewayList + def subnet + Azure::Network::Mgmt::V2018_10_01::Models::Subnet end - def virtual_hub_route - Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubRoute + def application_gateway_backend_address_pool + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendAddressPool end - def express_route_connection_list - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnectionList + def error + Azure::Network::Mgmt::V2018_10_01::Models::Error end - def list_vpn_sites_result - Azure::Network::Mgmt::V2018_10_01::Models::ListVpnSitesResult + def inbound_nat_rule + Azure::Network::Mgmt::V2018_10_01::Models::InboundNatRule end - def express_route_ports_location_bandwidths - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocationBandwidths + def network_interface_ipconfiguration + Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceIPConfiguration end - def list_virtual_wans_result - Azure::Network::Mgmt::V2018_10_01::Models::ListVirtualWANsResult + def network_interface + Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterface end - def public_ipprefix_list_result - Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixListResult + def azure_firewall_nat_rule_collection + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRuleCollection end - def vpn_device_script_parameters - Azure::Network::Mgmt::V2018_10_01::Models::VpnDeviceScriptParameters + def security_rule + Azure::Network::Mgmt::V2018_10_01::Models::SecurityRule end - def express_route_ports_location_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocationListResult + def interface_endpoint + Azure::Network::Mgmt::V2018_10_01::Models::InterfaceEndpoint end - def virtual_network_gateway_list_connections_result - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayListConnectionsResult + def azure_firewall_ipconfiguration + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallIPConfiguration end - def referenced_public_ip_address - Azure::Network::Mgmt::V2018_10_01::Models::ReferencedPublicIpAddress + def ipconfiguration + Azure::Network::Mgmt::V2018_10_01::Models::IPConfiguration end - def virtual_network_connection_gateway_reference - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkConnectionGatewayReference + def public_ipaddress + Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddress end - def express_route_link_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkListResult + def frontend_ipconfiguration + Azure::Network::Mgmt::V2018_10_01::Models::FrontendIPConfiguration end - def application_gateway_backend_health_http_settings - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthHttpSettings + def virtual_network_tap + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkTap end - def public_ipprefix_sku - Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixSku + def application_gateway_rewrite_rule_set + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRuleSet end - def application_gateway_backend_health - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealth + def backend_address_pool + Azure::Network::Mgmt::V2018_10_01::Models::BackendAddressPool end - def express_route_port_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortListResult + def azure_firewall_application_rule_collection + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleCollection + end + def express_route_cross_connection + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnection + end + def azure_firewall_network_rule_collection + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRuleCollection + end + def service_association_link + Azure::Network::Mgmt::V2018_10_01::Models::ServiceAssociationLink end - def application_gateway_ssl_policy - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicy + def route + Azure::Network::Mgmt::V2018_10_01::Models::Route end - def interface_endpoint_list_result - Azure::Network::Mgmt::V2018_10_01::Models::InterfaceEndpointListResult + def route_table + Azure::Network::Mgmt::V2018_10_01::Models::RouteTable end - def vpn_client_ipsec_parameters - Azure::Network::Mgmt::V2018_10_01::Models::VpnClientIPsecParameters + def express_route_cross_connection_peering + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionPeering end - def load_balancer_sku - Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerSku + def outbound_rule + Azure::Network::Mgmt::V2018_10_01::Models::OutboundRule end - def virtual_network_gateway_connection_list_result - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionListResult + def express_route_connection + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnection end - def public_ipaddress_list_result - Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressListResult + def express_route_gateway + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGateway end - def gateway_route_list_result - Azure::Network::Mgmt::V2018_10_01::Models::GatewayRouteListResult + def azure_firewall + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewall end - def operation_list_result - Azure::Network::Mgmt::V2018_10_01::Models::OperationListResult + def azure_firewall_fqdn_tag + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallFqdnTag end - def bgp_peer_status_list_result - Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerStatusListResult + def application_gateway_trusted_root_certificate + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayTrustedRootCertificate end - def operation - Azure::Network::Mgmt::V2018_10_01::Models::Operation + def topology_association + Azure::Network::Mgmt::V2018_10_01::Models::TopologyAssociation end - def application_gateway_probe_health_response_match - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayProbeHealthResponseMatch + def topology_resource + Azure::Network::Mgmt::V2018_10_01::Models::TopologyResource end def operation_properties_format_service_specification Azure::Network::Mgmt::V2018_10_01::Models::OperationPropertiesFormatServiceSpecification end - def gateway_route - Azure::Network::Mgmt::V2018_10_01::Models::GatewayRoute - end - def log_specification - Azure::Network::Mgmt::V2018_10_01::Models::LogSpecification - end - def application_gateway_rewrite_rule_action_set - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRuleActionSet + def virtual_network_connection_gateway_reference + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkConnectionGatewayReference end def load_balancer_list_result Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerListResult end - def bgp_peer_status - Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerStatus + def express_route_link + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLink end def inbound_nat_rule_list_result Azure::Network::Mgmt::V2018_10_01::Models::InboundNatRuleListResult end - def vpn_client_configuration - Azure::Network::Mgmt::V2018_10_01::Models::VpnClientConfiguration - end def load_balancer_backend_address_pool_list_result Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerBackendAddressPoolListResult end - def application_gateway_firewall_exclusion - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallExclusion + def connection_reset_shared_key + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionResetSharedKey end def load_balancer_frontend_ipconfiguration_list_result Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerFrontendIPConfigurationListResult end - def application_gateway_autoscale_configuration - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAutoscaleConfiguration + def ipsec_policy + Azure::Network::Mgmt::V2018_10_01::Models::IpsecPolicy end def load_balancer_load_balancing_rule_list_result Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerLoadBalancingRuleListResult end - def managed_service_identity - Azure::Network::Mgmt::V2018_10_01::Models::ManagedServiceIdentity - end - def load_balancer_outbound_rule_list_result - Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerOutboundRuleListResult - end - def application_gateway_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayListResult + def gateway_route_list_result + Azure::Network::Mgmt::V2018_10_01::Models::GatewayRouteListResult end def load_balancer_probe_list_result Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerProbeListResult end - def application_gateway_firewall_rule_group - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRuleGroup - end - def network_interface_list_result - Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceListResult + def bgp_peer_status_list_result + Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerStatusListResult end - def application_gateway_available_waf_rule_sets_result - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult + def virtual_network_gateway_list_result + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayListResult end def error_details Azure::Network::Mgmt::V2018_10_01::Models::ErrorDetails end - def virtual_network_usage - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkUsage - end - def error - Azure::Network::Mgmt::V2018_10_01::Models::Error + def application_gateway_backend_health_http_settings + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthHttpSettings end - def resource - Azure::Network::Mgmt::V2018_10_01::Models::Resource + def application_gateway_backend_health + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealth end def azure_async_operation_result Azure::Network::Mgmt::V2018_10_01::Models::AzureAsyncOperationResult end - def application_security_group_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationSecurityGroupListResult - end - def network_interface_tap_configuration_list_result - Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceTapConfigurationListResult - end - def available_delegations_result - Azure::Network::Mgmt::V2018_10_01::Models::AvailableDelegationsResult - end - def network_interface_ipconfiguration_list_result - Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceIPConfigurationListResult + def application_gateway_ssl_policy + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicy end - def azure_firewall_rcaction - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallRCAction + def gateway_route + Azure::Network::Mgmt::V2018_10_01::Models::GatewayRoute end def network_interface_load_balancer_list_result Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceLoadBalancerListResult end - def azure_firewall_application_rule - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRule + def sub_resource + Azure::Network::Mgmt::V2018_10_01::Models::SubResource end def effective_network_security_group_association Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityGroupAssociation end - def azure_firewall_nat_rcaction - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRCAction + def virtual_network_gateway_sku + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewaySku end def effective_network_security_rule Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityRule end - def virtual_network_list_result - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkListResult + def application_gateway_probe_health_response_match + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayProbeHealthResponseMatch end def effective_network_security_group Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityGroup end - def dhcp_options - Azure::Network::Mgmt::V2018_10_01::Models::DhcpOptions + def virtual_network_usage_name + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkUsageName end def effective_network_security_group_list_result Azure::Network::Mgmt::V2018_10_01::Models::EffectiveNetworkSecurityGroupListResult end - def azure_firewall_list_result - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallListResult + def virtual_network_list_result + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkListResult end def effective_route Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRoute end - def azure_firewall_fqdn_tag_list_result - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallFqdnTagListResult + def bgp_settings + Azure::Network::Mgmt::V2018_10_01::Models::BgpSettings end def effective_route_list_result Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRouteListResult end - def ddos_protection_plan - Azure::Network::Mgmt::V2018_10_01::Models::DdosProtectionPlan - end - def metric_specification - Azure::Network::Mgmt::V2018_10_01::Models::MetricSpecification - end - def address_space - Azure::Network::Mgmt::V2018_10_01::Models::AddressSpace - end - def dimension - Azure::Network::Mgmt::V2018_10_01::Models::Dimension - end - def usages_list_result - Azure::Network::Mgmt::V2018_10_01::Models::UsagesListResult - end - def availability - Azure::Network::Mgmt::V2018_10_01::Models::Availability - end - def express_route_circuit_peering_config - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringConfig - end - def operation_display - Azure::Network::Mgmt::V2018_10_01::Models::OperationDisplay - end - def express_route_circuit_stats - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitStats - end - def network_configuration_diagnostic_response - Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticResponse - end - def usage_name - Azure::Network::Mgmt::V2018_10_01::Models::UsageName - end - def network_profile_list_result - Azure::Network::Mgmt::V2018_10_01::Models::NetworkProfileListResult - end - def service_endpoint_policy_definition_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicyDefinitionListResult + def application_gateway_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayListResult end def security_rule_list_result Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleListResult end - def express_route_circuit_peering_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringListResult + def application_gateway_firewall_rule_group + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRuleGroup end def network_security_group_list_result Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityGroupListResult end - def express_route_circuit_service_provider_properties - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitServiceProviderProperties - end - def error_response - Azure::Network::Mgmt::V2018_10_01::Models::ErrorResponse - end - def express_route_circuit_arp_table - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitArpTable - end - def network_configuration_diagnostic_result - Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticResult + def application_gateway_available_waf_rule_sets_result + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult end - def express_route_circuit_routes_table - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitRoutesTable + def address_space + Azure::Network::Mgmt::V2018_10_01::Models::AddressSpace end def network_watcher_list_result Azure::Network::Mgmt::V2018_10_01::Models::NetworkWatcherListResult end - def express_route_circuit_routes_table_summary - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitRoutesTableSummary - end def topology_parameters Azure::Network::Mgmt::V2018_10_01::Models::TopologyParameters end - def express_route_circuit_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitListResult + def application_security_group_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationSecurityGroupListResult end - def topology_association - Azure::Network::Mgmt::V2018_10_01::Models::TopologyAssociation + def dns_name_availability_result + Azure::Network::Mgmt::V2018_10_01::Models::DnsNameAvailabilityResult end - def bgpcommunity - Azure::Network::Mgmt::V2018_10_01::Models::BGPCommunity + def dimension + Azure::Network::Mgmt::V2018_10_01::Models::Dimension end - def topology_resource - Azure::Network::Mgmt::V2018_10_01::Models::TopologyResource + def endpoint_services_list_result + Azure::Network::Mgmt::V2018_10_01::Models::EndpointServicesListResult end - def express_route_cross_connection_routes_table_summary - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionRoutesTableSummary + def metric_specification + Azure::Network::Mgmt::V2018_10_01::Models::MetricSpecification + end + def authorization_list_result + Azure::Network::Mgmt::V2018_10_01::Models::AuthorizationListResult end def topology Azure::Network::Mgmt::V2018_10_01::Models::Topology end - def sub_resource - Azure::Network::Mgmt::V2018_10_01::Models::SubResource - end def verification_ipflow_parameters Azure::Network::Mgmt::V2018_10_01::Models::VerificationIPFlowParameters end - def p2_svpn_profile_parameters - Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnProfileParameters + def bgp_service_community_list_result + Azure::Network::Mgmt::V2018_10_01::Models::BgpServiceCommunityListResult end def verification_ipflow_result Azure::Network::Mgmt::V2018_10_01::Models::VerificationIPFlowResult end - def list_p2_svpn_server_configurations_result - Azure::Network::Mgmt::V2018_10_01::Models::ListP2SVpnServerConfigurationsResult + def ipv6_express_route_circuit_peering_config + Azure::Network::Mgmt::V2018_10_01::Models::Ipv6ExpressRouteCircuitPeeringConfig end def next_hop_parameters Azure::Network::Mgmt::V2018_10_01::Models::NextHopParameters end - def vpn_site_id - Azure::Network::Mgmt::V2018_10_01::Models::VpnSiteId + def express_route_circuit_sku + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitSku end def next_hop_result Azure::Network::Mgmt::V2018_10_01::Models::NextHopResult end - def list_hub_virtual_network_connections_result - Azure::Network::Mgmt::V2018_10_01::Models::ListHubVirtualNetworkConnectionsResult + def route_list_result + Azure::Network::Mgmt::V2018_10_01::Models::RouteListResult end def security_group_view_parameters Azure::Network::Mgmt::V2018_10_01::Models::SecurityGroupViewParameters end - def virtual_hub_route_table - Azure::Network::Mgmt::V2018_10_01::Models::VirtualHubRouteTable + def express_route_circuits_arp_table_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsArpTableListResult end def network_interface_association Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceAssociation end - def device_properties - Azure::Network::Mgmt::V2018_10_01::Models::DeviceProperties + def express_route_circuits_routes_table_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsRoutesTableListResult end def subnet_association Azure::Network::Mgmt::V2018_10_01::Models::SubnetAssociation end - def application_gateway_backend_address - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendAddress + def express_route_circuits_routes_table_summary_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsRoutesTableSummaryListResult end def security_rule_associations Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleAssociations end - def application_gateway_backend_health_server - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthServer + def express_route_service_provider_bandwidths_offered + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProviderBandwidthsOffered end def security_group_network_interface Azure::Network::Mgmt::V2018_10_01::Models::SecurityGroupNetworkInterface end - def application_gateway_sku - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySku + def express_route_service_provider_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProviderListResult end def security_group_view_result Azure::Network::Mgmt::V2018_10_01::Models::SecurityGroupViewResult end - def connection_reset_shared_key - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionResetSharedKey + def route_filter_rule_list_result + Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterRuleListResult end def packet_capture_storage_location Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureStorageLocation end - def application_gateway_custom_error - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayCustomError - end def packet_capture_filter Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureFilter end - def vpn_client_parameters - Azure::Network::Mgmt::V2018_10_01::Models::VpnClientParameters + def virtual_network_gateway_list_connections_result + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayListConnectionsResult end def packet_capture_parameters Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureParameters end - def application_gateway_rewrite_rule - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRule - end def packet_capture Azure::Network::Mgmt::V2018_10_01::Models::PacketCapture end - def application_gateway_firewall_disabled_rule_group - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallDisabledRuleGroup + def virtual_network_gateway_connection_list_result + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionListResult end def packet_capture_result Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureResult end - def managed_service_identity_user_assigned_identities_value - Azure::Network::Mgmt::V2018_10_01::Models::ManagedServiceIdentityUserAssignedIdentitiesValue - end def packet_capture_list_result Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureListResult end - def application_gateway_firewall_rule - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRule + def application_gateway_backend_health_server + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthServer end def packet_capture_query_status_result Azure::Network::Mgmt::V2018_10_01::Models::PacketCaptureQueryStatusResult end - def virtual_network_list_usage_result - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkListUsageResult + def application_gateway_sku + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySku end def troubleshooting_parameters Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingParameters end - def tags_object - Azure::Network::Mgmt::V2018_10_01::Models::TagsObject + def bgp_peer_status + Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerStatus end def query_troubleshooting_parameters Azure::Network::Mgmt::V2018_10_01::Models::QueryTroubleshootingParameters end - def virtual_network_usage_name - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkUsageName + def virtual_network_list_usage_result + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkListUsageResult end def troubleshooting_recommended_actions Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingRecommendedActions @@ -1107,356 +1293,221 @@ def ipaddress_availability_result def troubleshooting_details Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingDetails end - def azure_firewall_network_rule - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRule + def dhcp_options + Azure::Network::Mgmt::V2018_10_01::Models::DhcpOptions end def troubleshooting_result Azure::Network::Mgmt::V2018_10_01::Models::TroubleshootingResult end - def subnet_list_result - Azure::Network::Mgmt::V2018_10_01::Models::SubnetListResult + def virtual_network_peering_list_result + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkPeeringListResult end def retention_policy_parameters Azure::Network::Mgmt::V2018_10_01::Models::RetentionPolicyParameters end - def ddos_protection_plan_list_result - Azure::Network::Mgmt::V2018_10_01::Models::DdosProtectionPlanListResult - end - def flow_log_format_parameters - Azure::Network::Mgmt::V2018_10_01::Models::FlowLogFormatParameters - end - def authorization_list_result - Azure::Network::Mgmt::V2018_10_01::Models::AuthorizationListResult + def application_gateway_available_ssl_predefined_policies + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies end def flow_log_status_parameters Azure::Network::Mgmt::V2018_10_01::Models::FlowLogStatusParameters end - def express_route_connection_id - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnectionId - end - def traffic_analytics_configuration_properties - Azure::Network::Mgmt::V2018_10_01::Models::TrafficAnalyticsConfigurationProperties - end - def ipv6_express_route_circuit_peering_config - Azure::Network::Mgmt::V2018_10_01::Models::Ipv6ExpressRouteCircuitPeeringConfig - end - def traffic_analytics_properties - Azure::Network::Mgmt::V2018_10_01::Models::TrafficAnalyticsProperties - end - def bgp_service_community_list_result - Azure::Network::Mgmt::V2018_10_01::Models::BgpServiceCommunityListResult + def usages_list_result + Azure::Network::Mgmt::V2018_10_01::Models::UsagesListResult end def flow_log_information Azure::Network::Mgmt::V2018_10_01::Models::FlowLogInformation end - def express_route_circuits_routes_table_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsRoutesTableListResult + def express_route_circuit_peering_config + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringConfig end def connectivity_source Azure::Network::Mgmt::V2018_10_01::Models::ConnectivitySource end - def express_route_service_provider_bandwidths_offered - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProviderBandwidthsOffered + def bgpcommunity + Azure::Network::Mgmt::V2018_10_01::Models::BGPCommunity end def connectivity_destination Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityDestination end - def express_route_cross_connections_routes_table_summary_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionsRoutesTableSummaryListResult - end - def httpheader - Azure::Network::Mgmt::V2018_10_01::Models::HTTPHeader - end - def list_p2_svpn_gateways_result - Azure::Network::Mgmt::V2018_10_01::Models::ListP2SVpnGatewaysResult - end - def httpconfiguration - Azure::Network::Mgmt::V2018_10_01::Models::HTTPConfiguration - end - def public_ipaddress_dns_settings - Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressDnsSettings - end - def protocol_configuration - Azure::Network::Mgmt::V2018_10_01::Models::ProtocolConfiguration - end - def get_vpn_sites_configuration_request - Azure::Network::Mgmt::V2018_10_01::Models::GetVpnSitesConfigurationRequest + def express_route_circuit_service_provider_properties + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitServiceProviderProperties end def connectivity_parameters Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityParameters end - def application_gateway_connection_draining - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayConnectionDraining + def express_route_circuit_routes_table + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitRoutesTable end def connectivity_issue Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityIssue end - def local_network_gateway_list_result - Azure::Network::Mgmt::V2018_10_01::Models::LocalNetworkGatewayListResult + def express_route_circuit_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitListResult end def connectivity_hop Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityHop end - def virtual_network_gateway_list_result - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayListResult + def load_balancer_sku + Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerSku end def connectivity_information Azure::Network::Mgmt::V2018_10_01::Models::ConnectivityInformation end - def bgp_settings - Azure::Network::Mgmt::V2018_10_01::Models::BgpSettings + def vpn_device_script_parameters + Azure::Network::Mgmt::V2018_10_01::Models::VpnDeviceScriptParameters end def azure_reachability_report_location Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportLocation end - def ipsec_policy - Azure::Network::Mgmt::V2018_10_01::Models::IpsecPolicy - end def azure_reachability_report_parameters Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportParameters end - def application_gateway_available_ssl_predefined_policies - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies + def application_gateway_connection_draining + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayConnectionDraining end - def azure_reachability_report_latency_info - Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportLatencyInfo + def usage_name + Azure::Network::Mgmt::V2018_10_01::Models::UsageName end - def azure_firewall_application_rule_protocol - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleProtocol + def vpn_client_parameters + Azure::Network::Mgmt::V2018_10_01::Models::VpnClientParameters end def azure_reachability_report_item Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportItem end - def virtual_network_peering_list_result - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkPeeringListResult + def virtual_network_usage + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkUsage end def azure_reachability_report Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReport end - def endpoint_services_list_result - Azure::Network::Mgmt::V2018_10_01::Models::EndpointServicesListResult - end - def available_providers_list_parameters - Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListParameters - end - def service_endpoint_policy_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicyListResult - end - def available_providers_list_city - Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListCity - end - def express_route_circuits_arp_table_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsArpTableListResult - end - def available_providers_list_state - Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListState - end - def express_route_service_provider_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProviderListResult - end - def available_providers_list_country - Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListCountry - end - def service_endpoint_properties_format - Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPropertiesFormat - end - def available_providers_list - Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersList - end - def virtual_network_tap_list_result - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkTapListResult - end - def connection_monitor_source - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorSource - end - def tunnel_connection_health - Azure::Network::Mgmt::V2018_10_01::Models::TunnelConnectionHealth - end - def connection_monitor_destination - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorDestination - end - def application_gateway_web_application_firewall_configuration - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration - end - def connection_monitor_parameters - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorParameters - end - def available_delegation - Azure::Network::Mgmt::V2018_10_01::Models::AvailableDelegation - end - def connection_monitor - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitor - end - def dns_name_availability_result - Azure::Network::Mgmt::V2018_10_01::Models::DnsNameAvailabilityResult - end - def connection_monitor_result - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorResult - end - def express_route_circuit_sku - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitSku - end - def connection_monitor_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorListResult - end - def vpn_profile_response - Azure::Network::Mgmt::V2018_10_01::Models::VpnProfileResponse - end - def connection_state_snapshot - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionStateSnapshot - end - def application_gateway_backend_health_pool - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthPool - end - def connection_monitor_query_result - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorQueryResult - end - def virtual_network_gateway_sku - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewaySku - end - def network_configuration_diagnostic_profile - Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticProfile - end - def usage - Azure::Network::Mgmt::V2018_10_01::Models::Usage - end - def network_configuration_diagnostic_parameters - Azure::Network::Mgmt::V2018_10_01::Models::NetworkConfigurationDiagnosticParameters - end - def list_vpn_gateways_result - Azure::Network::Mgmt::V2018_10_01::Models::ListVpnGatewaysResult - end - def matched_rule - Azure::Network::Mgmt::V2018_10_01::Models::MatchedRule - end - def azure_firewall_nat_rule - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRule - end - def network_security_rules_evaluation_result - Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityRulesEvaluationResult + def application_gateway_firewall_rule + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRule end - def application_gateway_header_configuration - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayHeaderConfiguration + def azure_reachability_report_latency_info + Azure::Network::Mgmt::V2018_10_01::Models::AzureReachabilityReportLatencyInfo end - def evaluated_network_security_group - Azure::Network::Mgmt::V2018_10_01::Models::EvaluatedNetworkSecurityGroup + def tags_object + Azure::Network::Mgmt::V2018_10_01::Models::TagsObject end - def express_route_circuits_routes_table_summary_list_result - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitsRoutesTableSummaryListResult + def available_providers_list_city + Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListCity end - def network_security_group_result - Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityGroupResult + def express_route_circuit_stats + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitStats end - def network_interface_tap_configuration - Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceTapConfiguration + def available_providers_list_state + Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListState end - def application_security_group - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationSecurityGroup + def express_route_circuit_arp_table + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitArpTable end - def security_rule - Azure::Network::Mgmt::V2018_10_01::Models::SecurityRule + def available_providers_list_parameters + Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListParameters end - def interface_endpoint - Azure::Network::Mgmt::V2018_10_01::Models::InterfaceEndpoint + def route_table_list_result + Azure::Network::Mgmt::V2018_10_01::Models::RouteTableListResult end - def network_interface - Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterface + def available_providers_list + Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersList end - def network_security_group - Azure::Network::Mgmt::V2018_10_01::Models::NetworkSecurityGroup + def local_network_gateway_list_result + Azure::Network::Mgmt::V2018_10_01::Models::LocalNetworkGatewayListResult end - def route - Azure::Network::Mgmt::V2018_10_01::Models::Route + def connection_monitor_source + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorSource end - def route_table - Azure::Network::Mgmt::V2018_10_01::Models::RouteTable + def application_gateway_backend_health_pool + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHealthPool end - def service_endpoint_policy_definition - Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicyDefinition + def available_providers_list_country + Azure::Network::Mgmt::V2018_10_01::Models::AvailableProvidersListCountry end - def service_endpoint_policy - Azure::Network::Mgmt::V2018_10_01::Models::ServiceEndpointPolicy + def application_gateway_firewall_disabled_rule_group + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallDisabledRuleGroup end - def public_ipaddress - Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddress + def connection_monitor_parameters + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorParameters end - def ipconfiguration - Azure::Network::Mgmt::V2018_10_01::Models::IPConfiguration + def connection_monitor_destination + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorDestination end - def ipconfiguration_profile - Azure::Network::Mgmt::V2018_10_01::Models::IPConfigurationProfile + def express_route_circuit_routes_table_summary + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitRoutesTableSummary end - def resource_navigation_link - Azure::Network::Mgmt::V2018_10_01::Models::ResourceNavigationLink + def connection_monitor_result + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorResult end - def service_association_link - Azure::Network::Mgmt::V2018_10_01::Models::ServiceAssociationLink + def tunnel_connection_health + Azure::Network::Mgmt::V2018_10_01::Models::TunnelConnectionHealth end - def delegation - Azure::Network::Mgmt::V2018_10_01::Models::Delegation + def resource + Azure::Network::Mgmt::V2018_10_01::Models::Resource end - def subnet - Azure::Network::Mgmt::V2018_10_01::Models::Subnet + def subnet_list_result + Azure::Network::Mgmt::V2018_10_01::Models::SubnetListResult end - def frontend_ipconfiguration - Azure::Network::Mgmt::V2018_10_01::Models::FrontendIPConfiguration + def connection_monitor + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitor end - def virtual_network_tap - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkTap + def route_filter_list_result + Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterListResult end - def backend_address_pool - Azure::Network::Mgmt::V2018_10_01::Models::BackendAddressPool + def connection_monitor_query_result + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorQueryResult end - def inbound_nat_rule - Azure::Network::Mgmt::V2018_10_01::Models::InboundNatRule + def express_route_circuit_peering_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringListResult end - def network_interface_ipconfiguration - Azure::Network::Mgmt::V2018_10_01::Models::NetworkInterfaceIPConfiguration + def vpn_client_configuration + Azure::Network::Mgmt::V2018_10_01::Models::VpnClientConfiguration end - def application_gateway_backend_address_pool - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendAddressPool + def availability + Azure::Network::Mgmt::V2018_10_01::Models::Availability + end + def connection_state_snapshot + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionStateSnapshot end def application_gateway_backend_http_settings Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayBackendHttpSettings end - def application_gateway_ipconfiguration - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayIPConfiguration + def connection_monitor_list_result + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorListResult end def application_gateway_authentication_certificate Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAuthenticationCertificate end - def application_gateway_trusted_root_certificate - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayTrustedRootCertificate - end - def application_gateway_ssl_certificate - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslCertificate + def application_gateway_ipconfiguration + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayIPConfiguration end def application_gateway_frontend_ipconfiguration Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFrontendIPConfiguration end - def application_gateway_frontend_port - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFrontendPort + def application_gateway_ssl_certificate + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslCertificate end def application_gateway_http_listener Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayHttpListener end - def application_gateway_path_rule - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayPathRule + def application_gateway_web_application_firewall_configuration + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration end def application_gateway_probe Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayProbe end + def application_gateway_path_rule + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayPathRule + end + def application_gateway_frontend_port + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFrontendPort + end def application_gateway_request_routing_rule Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRequestRoutingRule end - def application_gateway_rewrite_rule_set - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRewriteRuleSet - end def application_gateway_redirect_configuration Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRedirectConfiguration end - def application_gateway_url_path_map - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayUrlPathMap + def usage + Azure::Network::Mgmt::V2018_10_01::Models::Usage end def application_gateway Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGateway @@ -1464,32 +1515,23 @@ def application_gateway def application_gateway_firewall_rule_set Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallRuleSet end - def application_gateway_available_ssl_options - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableSslOptions + def resource_navigation_link + Azure::Network::Mgmt::V2018_10_01::Models::ResourceNavigationLink end def application_gateway_ssl_predefined_policy Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPredefinedPolicy end - def azure_firewall_ipconfiguration - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallIPConfiguration - end - def azure_firewall_application_rule_collection - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleCollection - end - def azure_firewall_nat_rule_collection - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRuleCollection - end - def azure_firewall_network_rule_collection - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRuleCollection + def endpoint_service_result + Azure::Network::Mgmt::V2018_10_01::Models::EndpointServiceResult end - def azure_firewall - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewall + def application_gateway_available_ssl_options + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayAvailableSslOptions end - def azure_firewall_fqdn_tag - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallFqdnTag + def application_gateway_url_path_map + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayUrlPathMap end - def endpoint_service_result - Azure::Network::Mgmt::V2018_10_01::Models::EndpointServiceResult + def express_route_circuit_peering + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeering end def express_route_circuit_authorization Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitAuthorization @@ -1497,11 +1539,8 @@ def express_route_circuit_authorization def route_filter_rule Azure::Network::Mgmt::V2018_10_01::Models::RouteFilterRule end - def express_route_circuit_connection - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitConnection - end - def express_route_circuit_peering - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeering + def express_route_service_provider + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProvider end def route_filter Azure::Network::Mgmt::V2018_10_01::Models::RouteFilter @@ -1509,29 +1548,8 @@ def route_filter def express_route_circuit Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuit end - def express_route_service_provider - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteServiceProvider - end - def express_route_cross_connection_peering - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnectionPeering - end - def express_route_cross_connection - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCrossConnection - end - def express_route_connection - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteConnection - end - def express_route_gateway - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteGateway - end - def express_route_ports_location - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocation - end - def express_route_link - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLink - end - def express_route_port - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePort + def inbound_nat_pool + Azure::Network::Mgmt::V2018_10_01::Models::InboundNatPool end def load_balancing_rule Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancingRule @@ -1539,38 +1557,14 @@ def load_balancing_rule def probe Azure::Network::Mgmt::V2018_10_01::Models::Probe end - def inbound_nat_pool - Azure::Network::Mgmt::V2018_10_01::Models::InboundNatPool - end - def outbound_rule - Azure::Network::Mgmt::V2018_10_01::Models::OutboundRule - end - def load_balancer - Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancer - end - def container_network_interface_configuration - Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterfaceConfiguration - end - def container - Azure::Network::Mgmt::V2018_10_01::Models::Container - end - def container_network_interface - Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterface - end - def network_profile - Azure::Network::Mgmt::V2018_10_01::Models::NetworkProfile - end def network_watcher Azure::Network::Mgmt::V2018_10_01::Models::NetworkWatcher end - def public_ipprefix - Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefix - end def patch_route_filter_rule Azure::Network::Mgmt::V2018_10_01::Models::PatchRouteFilterRule end - def patch_route_filter - Azure::Network::Mgmt::V2018_10_01::Models::PatchRouteFilter + def load_balancer + Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancer end def bgp_service_community Azure::Network::Mgmt::V2018_10_01::Models::BgpServiceCommunity @@ -1578,47 +1572,56 @@ def bgp_service_community def virtual_network_peering Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkPeering end - def virtual_network - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetwork + def express_route_circuit_connection + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitConnection end - def virtual_network_gateway_ipconfiguration - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayIPConfiguration + def vpn_client_revoked_certificate + Azure::Network::Mgmt::V2018_10_01::Models::VpnClientRevokedCertificate end def vpn_client_root_certificate Azure::Network::Mgmt::V2018_10_01::Models::VpnClientRootCertificate end - def vpn_client_revoked_certificate - Azure::Network::Mgmt::V2018_10_01::Models::VpnClientRevokedCertificate + def virtual_network + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetwork end - def virtual_network_gateway - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGateway + def network_profile + Azure::Network::Mgmt::V2018_10_01::Models::NetworkProfile end - def local_network_gateway - Azure::Network::Mgmt::V2018_10_01::Models::LocalNetworkGateway + def express_route_ports_location + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsLocation end def virtual_network_gateway_connection Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnection end - def connection_shared_key - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionSharedKey + def express_route_port + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePort + end + def local_network_gateway + Azure::Network::Mgmt::V2018_10_01::Models::LocalNetworkGateway + end + def container_network_interface_configuration + Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterfaceConfiguration + end + def container_network_interface + Azure::Network::Mgmt::V2018_10_01::Models::ContainerNetworkInterface end - def virtual_network_gateway_connection_list_entity - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionListEntity + def public_ipprefix + Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefix end def p2_svpn_server_config_vpn_client_root_certificate Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigVpnClientRootCertificate end - def p2_svpn_server_config_vpn_client_revoked_certificate - Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigVpnClientRevokedCertificate + def virtual_network_gateway_ipconfiguration + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayIPConfiguration end - def p2_svpn_server_config_radius_server_root_certificate - Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigRadiusServerRootCertificate + def connection_shared_key + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionSharedKey end - def p2_svpn_server_config_radius_client_root_certificate - Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigRadiusClientRootCertificate + def patch_route_filter + Azure::Network::Mgmt::V2018_10_01::Models::PatchRouteFilter end - def p2_svpn_server_configuration - Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfiguration + def virtual_network_gateway + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGateway end def virtual_wan Azure::Network::Mgmt::V2018_10_01::Models::VirtualWAN @@ -1626,8 +1629,8 @@ def virtual_wan def vpn_site Azure::Network::Mgmt::V2018_10_01::Models::VpnSite end - def hub_virtual_network_connection - Azure::Network::Mgmt::V2018_10_01::Models::HubVirtualNetworkConnection + def virtual_network_gateway_connection_list_entity + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionListEntity end def virtual_hub Azure::Network::Mgmt::V2018_10_01::Models::VirtualHub @@ -1641,8 +1644,8 @@ def vpn_gateway def p2_svpn_gateway Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnGateway end - def ipallocation_method - Azure::Network::Mgmt::V2018_10_01::Models::IPAllocationMethod + def application_gateway_tier + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayTier end def security_rule_protocol Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleProtocol @@ -1653,21 +1656,48 @@ def security_rule_access def security_rule_direction Azure::Network::Mgmt::V2018_10_01::Models::SecurityRuleDirection end - def route_next_hop_type - Azure::Network::Mgmt::V2018_10_01::Models::RouteNextHopType + def ipallocation_method + Azure::Network::Mgmt::V2018_10_01::Models::IPAllocationMethod end def public_ipaddress_sku_name Azure::Network::Mgmt::V2018_10_01::Models::PublicIPAddressSkuName end - def ipversion - Azure::Network::Mgmt::V2018_10_01::Models::IPVersion - end def transport_protocol Azure::Network::Mgmt::V2018_10_01::Models::TransportProtocol end + def route_next_hop_type + Azure::Network::Mgmt::V2018_10_01::Models::RouteNextHopType + end + def application_gateway_ssl_policy_type + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicyType + end def application_gateway_protocol Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayProtocol end + def p2_svpn_server_config_vpn_client_revoked_certificate + Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigVpnClientRevokedCertificate + end + def p2_svpn_server_config_radius_server_root_certificate + Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigRadiusServerRootCertificate + end + def p2_svpn_server_config_radius_client_root_certificate + Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfigRadiusClientRootCertificate + end + def p2_svpn_server_configuration + Azure::Network::Mgmt::V2018_10_01::Models::P2SVpnServerConfiguration + end + def application_gateway_ssl_protocol + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslProtocol + end + def resource_identity_type + Azure::Network::Mgmt::V2018_10_01::Models::ResourceIdentityType + end + def hub_virtual_network_connection + Azure::Network::Mgmt::V2018_10_01::Models::HubVirtualNetworkConnection + end + def application_gateway_ssl_cipher_suite + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslCipherSuite + end def application_gateway_cookie_based_affinity Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayCookieBasedAffinity end @@ -1677,23 +1707,20 @@ def application_gateway_backend_health_server_health def application_gateway_sku_name Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySkuName end - def application_gateway_tier - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayTier + def application_gateway_custom_error_status_code + Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayCustomErrorStatusCode end - def application_gateway_ssl_protocol - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslProtocol + def ipversion + Azure::Network::Mgmt::V2018_10_01::Models::IPVersion end - def application_gateway_ssl_policy_type - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicyType + def azure_firewall_application_rule_protocol_type + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleProtocolType end def application_gateway_ssl_policy_name Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslPolicyName end - def application_gateway_ssl_cipher_suite - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewaySslCipherSuite - end - def application_gateway_custom_error_status_code - Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayCustomErrorStatusCode + def azure_firewall_network_rule_protocol + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRuleProtocol end def application_gateway_request_routing_rule_type Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayRequestRoutingRuleType @@ -1707,41 +1734,17 @@ def application_gateway_operational_state def application_gateway_firewall_mode Azure::Network::Mgmt::V2018_10_01::Models::ApplicationGatewayFirewallMode end - def resource_identity_type - Azure::Network::Mgmt::V2018_10_01::Models::ResourceIdentityType - end def provisioning_state Azure::Network::Mgmt::V2018_10_01::Models::ProvisioningState end - def azure_firewall_rcaction_type - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallRCActionType - end - def azure_firewall_application_rule_protocol_type - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallApplicationRuleProtocolType - end - def azure_firewall_nat_rcaction_type - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRCActionType - end - def azure_firewall_network_rule_protocol - Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNetworkRuleProtocol - end - def authorization_use_status - Azure::Network::Mgmt::V2018_10_01::Models::AuthorizationUseStatus - end def express_route_circuit_peering_advertised_public_prefix_state Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState end def access Azure::Network::Mgmt::V2018_10_01::Models::Access end - def express_route_peering_type - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePeeringType - end - def express_route_peering_state - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePeeringState - end - def circuit_connection_status - Azure::Network::Mgmt::V2018_10_01::Models::CircuitConnectionStatus + def network_operation_status + Azure::Network::Mgmt::V2018_10_01::Models::NetworkOperationStatus end def express_route_circuit_peering_state Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteCircuitPeeringState @@ -1755,26 +1758,17 @@ def express_route_circuit_sku_family def service_provider_provisioning_state Azure::Network::Mgmt::V2018_10_01::Models::ServiceProviderProvisioningState end - def express_route_link_connector_type - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkConnectorType - end - def express_route_link_admin_state - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkAdminState - end - def express_route_ports_encapsulation - Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsEncapsulation - end def load_balancer_sku_name Azure::Network::Mgmt::V2018_10_01::Models::LoadBalancerSkuName end - def load_distribution - Azure::Network::Mgmt::V2018_10_01::Models::LoadDistribution + def authorization_use_status + Azure::Network::Mgmt::V2018_10_01::Models::AuthorizationUseStatus end def probe_protocol Azure::Network::Mgmt::V2018_10_01::Models::ProbeProtocol end - def network_operation_status - Azure::Network::Mgmt::V2018_10_01::Models::NetworkOperationStatus + def pc_protocol + Azure::Network::Mgmt::V2018_10_01::Models::PcProtocol end def effective_security_rule_protocol Azure::Network::Mgmt::V2018_10_01::Models::EffectiveSecurityRuleProtocol @@ -1782,23 +1776,50 @@ def effective_security_rule_protocol def effective_route_source Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRouteSource end - def effective_route_state - Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRouteState + def azure_firewall_rcaction_type + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallRCActionType end - def association_type - Azure::Network::Mgmt::V2018_10_01::Models::AssociationType + def issue_type + Azure::Network::Mgmt::V2018_10_01::Models::IssueType + end + def azure_firewall_nat_rcaction_type + Azure::Network::Mgmt::V2018_10_01::Models::AzureFirewallNatRCActionType end def direction Azure::Network::Mgmt::V2018_10_01::Models::Direction end + def express_route_peering_type + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePeeringType + end + def express_route_peering_state + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePeeringState + end + def circuit_connection_status + Azure::Network::Mgmt::V2018_10_01::Models::CircuitConnectionStatus + end + def express_route_link_connector_type + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkConnectorType + end + def express_route_link_admin_state + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRouteLinkAdminState + end + def express_route_ports_encapsulation + Azure::Network::Mgmt::V2018_10_01::Models::ExpressRoutePortsEncapsulation + end def ip_flow_protocol Azure::Network::Mgmt::V2018_10_01::Models::IpFlowProtocol end + def association_type + Azure::Network::Mgmt::V2018_10_01::Models::AssociationType + end + def httpmethod + Azure::Network::Mgmt::V2018_10_01::Models::HTTPMethod + end def next_hop_type Azure::Network::Mgmt::V2018_10_01::Models::NextHopType end - def pc_protocol - Azure::Network::Mgmt::V2018_10_01::Models::PcProtocol + def load_distribution + Azure::Network::Mgmt::V2018_10_01::Models::LoadDistribution end def pc_status Azure::Network::Mgmt::V2018_10_01::Models::PcStatus @@ -1806,29 +1827,14 @@ def pc_status def pc_error Azure::Network::Mgmt::V2018_10_01::Models::PcError end - def flow_log_format_type - Azure::Network::Mgmt::V2018_10_01::Models::FlowLogFormatType - end - def protocol - Azure::Network::Mgmt::V2018_10_01::Models::Protocol - end - def httpmethod - Azure::Network::Mgmt::V2018_10_01::Models::HTTPMethod - end def origin Azure::Network::Mgmt::V2018_10_01::Models::Origin end - def severity - Azure::Network::Mgmt::V2018_10_01::Models::Severity - end - def issue_type - Azure::Network::Mgmt::V2018_10_01::Models::IssueType - end - def connection_status - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionStatus + def vpn_client_protocol + Azure::Network::Mgmt::V2018_10_01::Models::VpnClientProtocol end - def connection_monitor_source_status - Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorSourceStatus + def effective_route_state + Azure::Network::Mgmt::V2018_10_01::Models::EffectiveRouteState end def connection_state Azure::Network::Mgmt::V2018_10_01::Models::ConnectionState @@ -1836,12 +1842,6 @@ def connection_state def evaluation_state Azure::Network::Mgmt::V2018_10_01::Models::EvaluationState end - def verbosity_level - Azure::Network::Mgmt::V2018_10_01::Models::VerbosityLevel - end - def public_ipprefix_sku_name - Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixSkuName - end def virtual_network_peering_state Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkPeeringState end @@ -1857,29 +1857,41 @@ def virtual_network_gateway_sku_name def virtual_network_gateway_sku_tier Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewaySkuTier end - def vpn_client_protocol - Azure::Network::Mgmt::V2018_10_01::Models::VpnClientProtocol + def ike_integrity + Azure::Network::Mgmt::V2018_10_01::Models::IkeIntegrity + end + def dh_group + Azure::Network::Mgmt::V2018_10_01::Models::DhGroup + end + def connection_status + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionStatus + end + def protocol + Azure::Network::Mgmt::V2018_10_01::Models::Protocol + end + def virtual_network_gateway_connection_status + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionStatus + end + def virtual_network_gateway_connection_type + Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionType end def ipsec_encryption Azure::Network::Mgmt::V2018_10_01::Models::IpsecEncryption end - def ipsec_integrity - Azure::Network::Mgmt::V2018_10_01::Models::IpsecIntegrity + def flow_log_format_type + Azure::Network::Mgmt::V2018_10_01::Models::FlowLogFormatType end def ike_encryption Azure::Network::Mgmt::V2018_10_01::Models::IkeEncryption end - def ike_integrity - Azure::Network::Mgmt::V2018_10_01::Models::IkeIntegrity - end - def dh_group - Azure::Network::Mgmt::V2018_10_01::Models::DhGroup + def connection_monitor_source_status + Azure::Network::Mgmt::V2018_10_01::Models::ConnectionMonitorSourceStatus end - def pfs_group - Azure::Network::Mgmt::V2018_10_01::Models::PfsGroup + def verbosity_level + Azure::Network::Mgmt::V2018_10_01::Models::VerbosityLevel end - def bgp_peer_state - Azure::Network::Mgmt::V2018_10_01::Models::BgpPeerState + def public_ipprefix_sku_name + Azure::Network::Mgmt::V2018_10_01::Models::PublicIPPrefixSkuName end def processor_architecture Azure::Network::Mgmt::V2018_10_01::Models::ProcessorArchitecture @@ -1887,18 +1899,6 @@ def processor_architecture def authentication_method Azure::Network::Mgmt::V2018_10_01::Models::AuthenticationMethod end - def virtual_network_gateway_connection_status - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionStatus - end - def virtual_network_gateway_connection_type - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionType - end - def virtual_network_gateway_connection_protocol - Azure::Network::Mgmt::V2018_10_01::Models::VirtualNetworkGatewayConnectionProtocol - end - def office_traffic_category - Azure::Network::Mgmt::V2018_10_01::Models::OfficeTrafficCategory - end def vpn_gateway_tunneling_protocol Azure::Network::Mgmt::V2018_10_01::Models::VpnGatewayTunnelingProtocol end @@ -1908,8 +1908,8 @@ def vpn_connection_status def virtual_wan_security_provider_type Azure::Network::Mgmt::V2018_10_01::Models::VirtualWanSecurityProviderType end - def tunnel_connection_status - Azure::Network::Mgmt::V2018_10_01::Models::TunnelConnectionStatus + def ipsec_integrity + Azure::Network::Mgmt::V2018_10_01::Models::IpsecIntegrity end def hub_virtual_network_connection_status Azure::Network::Mgmt::V2018_10_01::Models::HubVirtualNetworkConnectionStatus diff --git a/azure_sdk/lib/latest/modules/newssearch_profile_module.rb b/azure_sdk/lib/latest/modules/newssearch_profile_module.rb index 591ecd2161..f3addab594 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 + SafeSearch = Azure::CognitiveServices::NewsSearch::V1_0::Models::SafeSearch + VideoObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject 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 - NewsTopic = Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsTopic - Article = Azure::CognitiveServices::NewsSearch::V1_0::Models::Article - Identifiable = Azure::CognitiveServices::NewsSearch::V1_0::Models::Identifiable + MediaObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::MediaObject + ErrorSubCode = Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorSubCode + ErrorResponse = Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorResponse + Freshness = Azure::CognitiveServices::NewsSearch::V1_0::Models::Freshness Response = Azure::CognitiveServices::NewsSearch::V1_0::Models::Response + TextFormat = Azure::CognitiveServices::NewsSearch::V1_0::Models::TextFormat + Organization = Azure::CognitiveServices::NewsSearch::V1_0::Models::Organization + ResponseBase = Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase Answer = Azure::CognitiveServices::NewsSearch::V1_0::Models::Answer + SearchResultsAnswer = Azure::CognitiveServices::NewsSearch::V1_0::Models::SearchResultsAnswer 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 + NewsArticle = Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsArticle + News = Azure::CognitiveServices::NewsSearch::V1_0::Models::News + NewsTopic = Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsTopic + Article = Azure::CognitiveServices::NewsSearch::V1_0::Models::Article 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 + Error = Azure::CognitiveServices::NewsSearch::V1_0::Models::Error + TrendingTopics = Azure::CognitiveServices::NewsSearch::V1_0::Models::TrendingTopics + Identifiable = Azure::CognitiveServices::NewsSearch::V1_0::Models::Identifiable end class NewsSearchDataClass @@ -65,77 +65,77 @@ def method_missing(method, *args) end class ModelClasses - def response_base - Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase + def safe_search + Azure::CognitiveServices::NewsSearch::V1_0::Models::SafeSearch end - def error - Azure::CognitiveServices::NewsSearch::V1_0::Models::Error + def video_object + Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject 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 end - def news_topic - Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsTopic + def media_object + Azure::CognitiveServices::NewsSearch::V1_0::Models::MediaObject end - def article - Azure::CognitiveServices::NewsSearch::V1_0::Models::Article + def error_sub_code + Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorSubCode end - def identifiable - Azure::CognitiveServices::NewsSearch::V1_0::Models::Identifiable + def error_response + Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorResponse + end + def freshness + Azure::CognitiveServices::NewsSearch::V1_0::Models::Freshness end def response Azure::CognitiveServices::NewsSearch::V1_0::Models::Response end + def text_format + Azure::CognitiveServices::NewsSearch::V1_0::Models::TextFormat + end + def organization + Azure::CognitiveServices::NewsSearch::V1_0::Models::Organization + end + def response_base + Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase + end def answer Azure::CognitiveServices::NewsSearch::V1_0::Models::Answer end + def search_results_answer + Azure::CognitiveServices::NewsSearch::V1_0::Models::SearchResultsAnswer + 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 + def news_article + Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsArticle end - def error_response - Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorResponse + def news + Azure::CognitiveServices::NewsSearch::V1_0::Models::News + end + def news_topic + Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsTopic + end + def article + Azure::CognitiveServices::NewsSearch::V1_0::Models::Article 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 + def error + Azure::CognitiveServices::NewsSearch::V1_0::Models::Error end - def safe_search - Azure::CognitiveServices::NewsSearch::V1_0::Models::SafeSearch + def trending_topics + Azure::CognitiveServices::NewsSearch::V1_0::Models::TrendingTopics end - def text_format - Azure::CognitiveServices::NewsSearch::V1_0::Models::TextFormat + def identifiable + Azure::CognitiveServices::NewsSearch::V1_0::Models::Identifiable 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..1a80b79d75 100644 --- a/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb +++ b/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb @@ -12,40 +12,40 @@ module Mgmt NotificationHubs = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubs module Models + CheckAvailabilityResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult + NamespaceCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters + NamespaceResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource + SharedAccessAuthorizationRuleResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource + 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 + DebugSendResponse = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::DebugSendResponse + Sku = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku + PnsCredentialsResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource + NamespaceType = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType + SkuName = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName + AccessRights = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights + ErrorResponse = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ErrorResponse + Resource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource + OperationDisplay = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationDisplay + Operation = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Operation + OperationListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationListResult + SubResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource 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 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 - NamespaceCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters - NamespaceResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource - SharedAccessAuthorizationRuleResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource - 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 - 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 - AccessRights = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights end class NotificationHubsManagementClass @@ -80,21 +80,72 @@ def method_missing(method, *args) end class ModelClasses + def check_availability_result + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult + end + def namespace_create_or_update_parameters + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters + 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 + end + def notification_hub_create_or_update_parameters + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters + end + 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 + end + def debug_send_response + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::DebugSendResponse + end + def sku + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku + end + def pns_credentials_resource + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource + end + def namespace_type + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType + end + def sku_name + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName + end + def access_rights + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights + end + def error_response + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ErrorResponse + end + def resource + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource + end + def operation_display + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationDisplay + end + def operation + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Operation + end + def operation_list_result + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationListResult + end + def sub_resource + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource + 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 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 @@ -104,30 +155,15 @@ def check_availability_parameters 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 @@ -146,42 +182,6 @@ def namespace_list_result def baidu_credential Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential end - def check_availability_result - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult - end - def namespace_create_or_update_parameters - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters - 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 - end - def notification_hub_create_or_update_parameters - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters - end - 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 - end - def debug_send_response - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::DebugSendResponse - end - def pns_credentials_resource - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource - end - def sku_name - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName - end - def namespace_type - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType - end - def access_rights - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights - end 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..efa8e3d724 100644 --- a/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb @@ -7,21 +7,31 @@ module Azure::Profiles::Latest module OperationalInsights module Mgmt - StorageInsights = Azure::OperationalInsights::Mgmt::V2015_03_20::StorageInsights SavedSearches = Azure::OperationalInsights::Mgmt::V2015_03_20::SavedSearches + StorageInsights = Azure::OperationalInsights::Mgmt::V2015_03_20::StorageInsights + 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 + WorkspacePurgeBodyFilters = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBodyFilters + WorkspacePurgeBody = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBody + 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 + StorageAccount = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageAccount + PurgeState = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::PurgeState + Tag = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::Tag 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 @@ -30,43 +40,33 @@ module Models 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 - 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 - PurgeState = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::PurgeState + LinkedService = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedService + Workspace = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace + DataSourceKind = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceKind + EntityStatus = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::EntityStatus + Sku = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Sku + ProxyResource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ProxyResource + Resource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Resource + DataSource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSource 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 + Operation = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Operation OperationListResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationListResult + SkuNameEnum = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::SkuNameEnum + 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 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 WorkspaceListResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListResult - LinkedService = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedService - DataSource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSource - Workspace = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace - DataSourceKind = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceKind - SkuNameEnum = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::SkuNameEnum - EntityStatus = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::EntityStatus end class OperationalInsightsManagementClass - attr_reader :storage_insights, :saved_searches, :linked_services, :data_sources, :workspaces, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :saved_searches, :storage_insights, :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 @@ -76,18 +76,18 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @storage_insights = @client_0.storage_insights @saved_searches = @client_0.saved_searches + @storage_insights = @client_0.storage_insights @client_1 = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::OperationalInsightsManagementClient.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) + @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,6 +108,39 @@ def method_missing(method, *args) end class ModelClasses + def workspace_purge_body_filters + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBodyFilters + end + def workspace_purge_body + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBody + end + def workspace_purge_response + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeResponse + end + def search_metadata + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchMetadata + end + def workspace_purge_status_response + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeStatusResponse + end + 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 storage_account + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageAccount + end + def purge_state + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::PurgeState + end + def tag + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::Tag + end def search_schema_value Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSchemaValue end @@ -126,9 +159,6 @@ def search_parameters 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 @@ -153,35 +183,29 @@ def search_sort 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 + def linked_service + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedService end - def workspace_purge_response - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeResponse + def workspace + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace end - def search_metadata - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchMetadata + def data_source_kind + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceKind end - def workspace_purge_status_response - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeStatusResponse + def entity_status + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::EntityStatus end - def storage_insight - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsight + def sku + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Sku end - def search_sort_enum - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSortEnum + def proxy_resource + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ProxyResource end - def storage_insight_state - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightState + def resource + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Resource end - def purge_state - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::PurgeState + def data_source + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSource end def metric_name Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::MetricName @@ -189,12 +213,18 @@ def metric_name def operation_display Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationDisplay end - def usage_metric - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::UsageMetric + def operation + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Operation end def operation_list_result Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationListResult end + def sku_name_enum + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::SkuNameEnum + 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 @@ -213,45 +243,15 @@ 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 - end def workspace_list_result Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListResult end - def linked_service - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedService - 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 data_source_kind - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceKind - 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 - end 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..047e9b809b 100644 --- a/azure_sdk/lib/latest/modules/policy_profile_module.rb +++ b/azure_sdk/lib/latest/modules/policy_profile_module.rb @@ -8,25 +8,25 @@ module Azure::Profiles::Latest module Policy module Mgmt PolicyAssignments = Azure::Policy::Mgmt::V2018_03_01::PolicyAssignments - PolicyDefinitions = Azure::Policy::Mgmt::V2018_03_01::PolicyDefinitions PolicySetDefinitions = Azure::Policy::Mgmt::V2018_03_01::PolicySetDefinitions + PolicyDefinitions = Azure::Policy::Mgmt::V2018_03_01::PolicyDefinitions module Models + 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 - 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 + PolicyType = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyType + PolicyMode = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyMode + PolicyDefinitionReference = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionReference 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 end class PolicyManagementClass - attr_reader :policy_assignments, :policy_definitions, :policy_set_definitions, :configurable, :base_url, :options, :model_classes + attr_reader :policy_assignments, :policy_set_definitions, :policy_definitions, :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) end add_telemetry(@client_0) @policy_assignments = @client_0.policy_assignments - @policy_definitions = @client_0.policy_definitions @policy_set_definitions = @client_0.policy_set_definitions + @policy_definitions = @client_0.policy_definitions @model_classes = ModelClasses.new end @@ -57,39 +57,39 @@ def method_missing(method, *args) end class ModelClasses + 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_assignment - Azure::Policy::Mgmt::V2018_03_01::Models::PolicyAssignment + def error_response + Azure::Policy::Mgmt::V2018_03_01::Models::ErrorResponse + end + def policy_type + Azure::Policy::Mgmt::V2018_03_01::Models::PolicyType + end + def policy_mode + Azure::Policy::Mgmt::V2018_03_01::Models::PolicyMode 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_type - Azure::Policy::Mgmt::V2018_03_01::Models::PolicyType - end - def policy_mode - Azure::Policy::Mgmt::V2018_03_01::Models::PolicyMode - end 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..07170a0ced 100644 --- a/azure_sdk/lib/latest/modules/policyinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/policyinsights_profile_module.rb @@ -7,9 +7,9 @@ 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 PolicyDefinitionSummary = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyDefinitionSummary @@ -19,19 +19,19 @@ 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 + OperationDisplay = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay 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 + Operation = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Operation SummaryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummaryResults + QueryFailureError = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailureError 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 @@ -83,33 +83,33 @@ 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 + def operation_display + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay + end def operations_list_results Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationsListResults end - def query_failure_error - Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailureError - end - def query_options - Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions + def operation + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Operation end def summary_results Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummaryResults end + def query_failure_error + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailureError + 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..dbef2b37f6 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 + CreateWorkspaceCollectionRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CreateWorkspaceCollectionRequest + Workspace = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Workspace + WorkspaceList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceList + CheckNameRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest + WorkspaceCollectionList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionList + CheckNameResponse = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameResponse + ErrorDetail = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::ErrorDetail + MigrateWorkspaceCollectionRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::MigrateWorkspaceCollectionRequest + CheckNameReason = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameReason + AccessKeyName = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AccessKeyName + AzureSku = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AzureSku 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 + Error = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error 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 - CheckNameRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest - WorkspaceList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceList - 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 end class PowerBiEmbeddedManagementClass @@ -63,15 +63,45 @@ def method_missing(method, *args) end class ModelClasses + def create_workspace_collection_request + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CreateWorkspaceCollectionRequest + end + def workspace + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Workspace + end + def workspace_list + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceList + end + def check_name_request + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest + end + def workspace_collection_list + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionList + end + def check_name_response + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameResponse + end + def error_detail + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::ErrorDetail + end + def migrate_workspace_collection_request + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::MigrateWorkspaceCollectionRequest + end + def check_name_reason + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameReason + end + def access_key_name + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AccessKeyName + end + def azure_sku + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AzureSku + end 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 @@ -81,11 +111,8 @@ def workspace_collection 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 + def error + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error end def display Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Display @@ -93,33 +120,6 @@ def display def update_workspace_collection_request Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::UpdateWorkspaceCollectionRequest end - def azure_sku - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AzureSku - 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 check_name_response - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameResponse - end - def workspace_collection_list - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionList - end - def migrate_workspace_collection_request - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::MigrateWorkspaceCollectionRequest - end - def error_detail - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::ErrorDetail - end - def access_key_name - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AccessKeyName - end - def check_name_reason - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameReason - end end end end diff --git a/azure_sdk/lib/latest/modules/qnamaker_profile_module.rb b/azure_sdk/lib/latest/modules/qnamaker_profile_module.rb index e64d51551f..00776c09ae 100644 --- a/azure_sdk/lib/latest/modules/qnamaker_profile_module.rb +++ b/azure_sdk/lib/latest/modules/qnamaker_profile_module.rb @@ -6,10 +6,10 @@ module Azure::Profiles::Latest module Qnamaker - EndpointKeys = Azure::CognitiveServices::Qnamaker::V4_0::EndpointKeys - Alterations = Azure::CognitiveServices::Qnamaker::V4_0::Alterations Knowledgebase = Azure::CognitiveServices::Qnamaker::V4_0::Knowledgebase Operations = Azure::CognitiveServices::Qnamaker::V4_0::Operations + EndpointKeys = Azure::CognitiveServices::Qnamaker::V4_0::EndpointKeys + Alterations = Azure::CognitiveServices::Qnamaker::V4_0::Alterations module Models CreateKbInputDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::CreateKbInputDTO @@ -28,26 +28,26 @@ module Models UpdateKbOperationDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTO KnowledgebaseDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::KnowledgebaseDTO UpdateKbContentsDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbContentsDTO - ErrorResponse = Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponse InnerErrorModel = Azure::CognitiveServices::Qnamaker::V4_0::Models::InnerErrorModel + ErrorResponse = Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponse MetadataDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::MetadataDTO - Error = Azure::CognitiveServices::Qnamaker::V4_0::Models::Error AlterationsDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::AlterationsDTO - Operation = Azure::CognitiveServices::Qnamaker::V4_0::Models::Operation UpdateKbOperationDTOAdd = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTOAdd UpdateKbOperationDTODelete = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTODelete UpdateKbOperationDTOUpdate = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTOUpdate UpdateQnaDTOQuestions = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQnaDTOQuestions UpdateQnaDTOMetadata = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQnaDTOMetadata - ErrorResponseError = Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponseError KnowledgebaseEnvironmentType = Azure::CognitiveServices::Qnamaker::V4_0::Models::KnowledgebaseEnvironmentType ErrorCodeType = Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorCodeType OperationStateType = Azure::CognitiveServices::Qnamaker::V4_0::Models::OperationStateType EnvironmentType = Azure::CognitiveServices::Qnamaker::V4_0::Models::EnvironmentType + Operation = Azure::CognitiveServices::Qnamaker::V4_0::Models::Operation + ErrorResponseError = Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponseError + Error = Azure::CognitiveServices::Qnamaker::V4_0::Models::Error end class QnamakerDataClass - attr_reader :endpoint_keys, :alterations, :knowledgebase, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :knowledgebase, :operations, :endpoint_keys, :alterations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -57,10 +57,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @endpoint_keys = @client_0.endpoint_keys - @alterations = @client_0.alterations @knowledgebase = @client_0.knowledgebase @operations = @client_0.operations + @endpoint_keys = @client_0.endpoint_keys + @alterations = @client_0.alterations @model_classes = ModelClasses.new end @@ -127,24 +127,18 @@ def knowledgebase_dto def update_kb_contents_dto Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbContentsDTO end - def error_response - Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponse - end def inner_error_model Azure::CognitiveServices::Qnamaker::V4_0::Models::InnerErrorModel end + def error_response + Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponse + end def metadata_dto Azure::CognitiveServices::Qnamaker::V4_0::Models::MetadataDTO end - def error - Azure::CognitiveServices::Qnamaker::V4_0::Models::Error - end def alterations_dto Azure::CognitiveServices::Qnamaker::V4_0::Models::AlterationsDTO end - def operation - Azure::CognitiveServices::Qnamaker::V4_0::Models::Operation - end def update_kb_operation_dtoadd Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTOAdd end @@ -160,9 +154,6 @@ def update_qna_dtoquestions def update_qna_dtometadata Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQnaDTOMetadata end - def error_response_error - Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponseError - end def knowledgebase_environment_type Azure::CognitiveServices::Qnamaker::V4_0::Models::KnowledgebaseEnvironmentType end @@ -175,6 +166,15 @@ def operation_state_type def environment_type Azure::CognitiveServices::Qnamaker::V4_0::Models::EnvironmentType end + def operation + Azure::CognitiveServices::Qnamaker::V4_0::Models::Operation + end + def error_response_error + Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponseError + end + def error + Azure::CognitiveServices::Qnamaker::V4_0::Models::Error + 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..8eff01bb83 100644 --- a/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb @@ -7,53 +7,53 @@ module Azure::Profiles::Latest module RecoveryServices module Mgmt + Usages = Azure::RecoveryServices::Mgmt::V2016_06_01::Usages 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 + Vaults = Azure::RecoveryServices::Mgmt::V2016_06_01::Vaults VaultExtendedInfoOperations = Azure::RecoveryServices::Mgmt::V2016_06_01::VaultExtendedInfoOperations - Usages = Azure::RecoveryServices::Mgmt::V2016_06_01::Usages module Models + Sku = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Sku + TrackedResource = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TrackedResource 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 + Resource = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Resource VaultCertificateResponse = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultCertificateResponse JobsSummary = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::JobsSummary VaultList = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultList ReplicationUsage = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ReplicationUsage ClientDiscoveryDisplay = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryDisplay - Sku = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Sku ClientDiscoveryForServiceSpecification = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForServiceSpecification - VaultUsageList = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsageList MonitoringSummary = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::MonitoringSummary VaultUsage = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsage + VaultUsageList = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsageList 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 + UpgradeDetails = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UpgradeDetails + VaultProperties = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultProperties 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 + NameInfo = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::NameInfo 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 - AuthType = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::AuthType - SkuName = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::SkuName + PatchVault = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::PatchVault VaultUpgradeState = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUpgradeState - TriggerType = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TriggerType + AuthType = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::AuthType UsagesUnit = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UsagesUnit + TriggerType = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TriggerType + Vault = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault + SkuName = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::SkuName 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, :vault_certificates, :registered_identities, :replication_usages, :operations, :vaults, :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 @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 + @vaults = @client_0.vaults @vault_extended_info_operations = @client_0.vault_extended_info_operations - @usages = @client_0.usages @model_classes = ModelClasses.new end @@ -88,6 +88,12 @@ def method_missing(method, *args) end class ModelClasses + def sku + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Sku + end + def tracked_resource + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TrackedResource + end def client_discovery_value_for_single_api Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryValueForSingleApi end @@ -97,15 +103,15 @@ 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 def raw_certificate_data Azure::RecoveryServices::Mgmt::V2016_06_01::Models::RawCertificateData end + def resource + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Resource + end def vault_certificate_response Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultCertificateResponse end @@ -121,74 +127,68 @@ def replication_usage def client_discovery_display Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryDisplay end - def sku - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Sku - end def client_discovery_for_service_specification Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForServiceSpecification end - def vault_usage_list - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsageList - end def monitoring_summary Azure::RecoveryServices::Mgmt::V2016_06_01::Models::MonitoringSummary end def vault_usage Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsage end + def vault_usage_list + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsageList + end def client_discovery_for_log_specification Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForLogSpecification end - def upgrade_details - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UpgradeDetails - end 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 - def name_info - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::NameInfo + def upgrade_details + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UpgradeDetails + end + def vault_properties + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultProperties end 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 name_info + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::NameInfo end def patch_tracked_resource Azure::RecoveryServices::Mgmt::V2016_06_01::Models::PatchTrackedResource end - def vault - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault + 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 patch_vault Azure::RecoveryServices::Mgmt::V2016_06_01::Models::PatchVault end - def vault_extended_info_resource - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultExtendedInfoResource + def vault_upgrade_state + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUpgradeState end def auth_type Azure::RecoveryServices::Mgmt::V2016_06_01::Models::AuthType 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 + def usages_unit + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UsagesUnit end def trigger_type Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TriggerType end - def usages_unit - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UsagesUnit + def vault + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault + end + def sku_name + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::SkuName end end end diff --git a/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb b/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb index 3a8c4a9510..9da1a4655e 100644 --- a/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb @@ -38,20 +38,20 @@ module Mgmt FeatureSupport = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::FeatureSupport BackupJobs = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::BackupJobs JobDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::JobDetails + Operation = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Operation 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 BackupUsageSummaries = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::BackupUsageSummaries - Operation = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Operation + Jobs = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Jobs 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 - ClientDiscoveryForServiceSpecification = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForServiceSpecification ClientDiscoveryResponse = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryResponse ClientDiscoveryForLogSpecification = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForLogSpecification + 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 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 @@ -69,7 +69,6 @@ module Models OperationStatusExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusExtendedInfo BackupResourceConfig = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupResourceConfig ILRRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ILRRequest - BackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupRequest SQLDataDirectory = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::SQLDataDirectory ContainerIdentityInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ContainerIdentityInfo OperationStatusError = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusError @@ -98,11 +97,11 @@ module Models 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 - AzureFileShareBackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareBackupRequest AzureFileShareProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareProtectableItem + AzureFileShareBackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareBackupRequest AzureFileShareRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareRecoveryPoint - AzureIaaSClassicComputeVMContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSClassicComputeVMContainer AzureIaaSClassicComputeVMProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSClassicComputeVMProtectableItem + AzureIaaSClassicComputeVMContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSClassicComputeVMContainer AzureIaaSComputeVMContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSComputeVMContainer AzureIaaSComputeVMProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSComputeVMProtectableItem AzureSqlContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureSqlContainer @@ -138,33 +137,32 @@ module Models DpmContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::DpmContainer 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 - IaasVMILRRegistrationRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMILRRegistrationRequest + IaasVMBackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMBackupRequest IaaSVMProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMProtectableItem + IaasVMILRRegistrationRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMILRRegistrationRequest IaasVMRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMRecoveryPoint 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 - ProtectableContainerResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResource + OperationStatusJobsExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusJobsExtendedInfo ProtectableContainerResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResourceList + ProtectableContainerResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResource ProtectionContainerResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource ProtectionContainerResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResourceList - RecoveryPointResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResource RecoveryPointResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResourceList + RecoveryPointResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResource RestoreRequestResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestoreRequestResource WorkloadItemResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadItemResource - 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 + WorkloadItemResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadItemResourceList AzureFileShareType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareType + WorkloadProtectableItemResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadProtectableItemResourceList 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 - StorageType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::StorageType StorageTypeState = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::StorageTypeState + BackupType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupType 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 @@ -172,160 +170,162 @@ module Models 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 - 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 - DpmErrorInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmErrorInfo - 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 - 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 - 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 - 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 - 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 - 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 + BackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupRequest + StorageType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::StorageType 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 BackupStatusResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusResponse - ProtectionPolicyQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject + AzureVmWorkloadProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItemExtendedInfo 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 + ProtectionPolicyQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject 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 + PreValidateEnableBackupResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupResponse + DpmJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobTaskDetails 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 + AzureSqlProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItemExtendedInfo AzureBackupGoalFeatureSupportRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureBackupGoalFeatureSupportRequest + DPMProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItemExtendedInfo + AzureStorageJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobExtendedInfo + AzureResourceProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureResourceProtectionIntent + ValidateOperationResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationResponse + AzureVMResourceFeatureSupportRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportRequest + ProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItem + TargetAFSRestoreInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetAFSRestoreInfo + TargetRestoreInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetRestoreInfo + 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 + DailyRetentionFormat = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionFormat + AzureWorkloadAutoProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadAutoProtectionIntent + WeeklyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionSchedule + SQLDataDirectoryMapping = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryMapping + AzureStorageJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJob + MabFileFolderProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabFileFolderProtectedItemExtendedInfo + AzureWorkloadJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobExtendedInfo + AzureIaaSVMJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJob + AzureRecoveryServiceVaultProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureRecoveryServiceVaultProtectionIntent + DpmJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJob + DpmJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobExtendedInfo AzureFileshareProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItem AzureFileShareProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareProtectionPolicy AzureFileShareRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareRestoreRequest + AzureWorkloadJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobTaskDetails + OperationResultInfoBaseResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBaseResource + AzureIaaSVMProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItem AzureIaaSClassicComputeVMProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSClassicComputeVMProtectedItem + JobResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResourceList + MabJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJob 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 + ProtectedItemResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemResourceList 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 + ValidateRestoreOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateRestoreOperationRequest + ValidateIaasVMRestoreOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateIaasVMRestoreOperationRequest + OperationResultInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfo + AzureWorkloadJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJob + AzureWorkloadSQLAutoProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLAutoProtectionIntent AzureVmWorkloadProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItem AzureVmWorkloadProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectionPolicy + AzureStorageJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobTaskDetails AzureVmWorkloadSAPHanaDatabaseProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadSAPHanaDatabaseProtectedItem + AzureVMResourceFeatureSupportResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportResponse + SupportStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SupportStatus + FabricName = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FabricName + Type = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Type + ProtectionIntentResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntentResource 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 + ExportJobsOperationResultInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ExportJobsOperationResultInfo + JobResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResource + JobSupportedAction = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobSupportedAction + Job = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Job + HttpStatusCode = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HttpStatusCode + JobOperationType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobOperationType + MabServerType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabServerType AzureWorkloadRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadRestoreRequest + 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 + HealthState = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HealthState + ProtectionPolicyResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyResourceList DPMProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItem - ExportJobsOperationResultInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ExportJobsOperationResultInfo + Resource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Resource GenericProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::GenericProtectedItem GenericProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::GenericProtectionPolicy + DataSourceType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DataSourceType 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 + ValidationStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidationStatus 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 + CreateMode = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::CreateMode ProtectionState = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionState + ErrorDetail = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ErrorDetail 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 + DayOfWeek = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DayOfWeek ScheduleRunType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ScheduleRunType + Settings = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Settings + RetentionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionPolicy + NameInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::NameInfo + UsagesUnit = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::UsagesUnit + RestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreRequest + SubProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SubProtectionPolicy + AzureFileshareProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItemExtendedInfo + SchedulePolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SchedulePolicy + 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 + OperationWorkerResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationWorkerResponse + OperationResultInfoBase = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBase + 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 + AzureIaaSVMProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItemExtendedInfo + AzureIaaSVMJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobTaskDetails + ValidateOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationRequest + RetentionDuration = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration + MabErrorInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabErrorInfo + ProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntent + MabJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobTaskDetails + DailyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionSchedule + ProtectedItemQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemQueryObject 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, :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, :operation, :export_jobs_operation_results, :backup_policies, :backup_protected_items, :backup_usage_summaries, :jobs, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -378,12 +378,12 @@ def initialize(configurable, base_url=nil, options=nil) @feature_support = @client_2.feature_support @backup_jobs = @client_2.backup_jobs @job_details = @client_2.job_details + @operation = @client_2.operation @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 @backup_usage_summaries = @client_2.backup_usage_summaries - @operation = @client_2.operation + @jobs = @client_2.jobs @model_classes = ModelClasses.new end @@ -406,23 +406,23 @@ def method_missing(method, *args) end class ModelClasses - def client_discovery_for_properties - Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForProperties + def client_discovery_response + Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryResponse end - def client_discovery_display - Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryDisplay + def client_discovery_for_log_specification + Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForLogSpecification end 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_for_service_specification Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForServiceSpecification 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 + def client_discovery_for_properties + Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForProperties end def azure_workload_container_extended_info Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadContainerExtendedInfo @@ -475,9 +475,6 @@ def backup_resource_config def ilrrequest Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ILRRequest end - def backup_request - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupRequest - end def sqldata_directory Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::SQLDataDirectory end @@ -562,21 +559,21 @@ def azure_backup_server_container def azure_backup_server_engine Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureBackupServerEngine end - def azure_file_share_backup_request - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareBackupRequest - end def azure_file_share_protectable_item Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareProtectableItem end + def azure_file_share_backup_request + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareBackupRequest + end def azure_file_share_recovery_point Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareRecoveryPoint end - def azure_iaa_sclassic_compute_vmcontainer - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSClassicComputeVMContainer - end def azure_iaa_sclassic_compute_vmprotectable_item Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSClassicComputeVMProtectableItem end + def azure_iaa_sclassic_compute_vmcontainer + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSClassicComputeVMContainer + end def azure_iaa_scompute_vmcontainer Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSComputeVMContainer end @@ -682,18 +679,18 @@ def generic_container 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 end - def iaas_vmilrregistration_request - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMILRRegistrationRequest + def iaas_vmbackup_request + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMBackupRequest end def iaa_svmprotectable_item Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMProtectableItem end + def iaas_vmilrregistration_request + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMILRRegistrationRequest + end def iaas_vmrecovery_point Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMRecoveryPoint end @@ -706,63 +703,60 @@ def mab_container 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 end - def protectable_container_resource - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResource + def operation_status_jobs_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusJobsExtendedInfo end def protectable_container_resource_list Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResourceList end + def protectable_container_resource + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResource + 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 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 recovery_point_resource + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResource + 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 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 + def workload_item_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadItemResourceList end def azure_file_share_type Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareType end + def workload_protectable_item_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadProtectableItemResourceList + end def inquiry_status Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::InquiryStatus end - def backup_type - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupType - end def restore_point_type Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestorePointType end - def storage_type - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::StorageType - end def storage_type_state Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::StorageTypeState end + def backup_type + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupType + end def enhanced_security_state Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::EnhancedSecurityState end @@ -784,290 +778,275 @@ def backup_item_type def operation_status_values Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusValues end - def daily_retention_format - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionFormat + def backup_request + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupRequest end - def retention_duration - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration + def storage_type + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::StorageType end - def azure_fileshare_protected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItemExtendedInfo + def pre_validate_enable_backup_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupRequest end - def daily_retention_schedule - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionSchedule + def backup_management_usage + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsage end - def schedule_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SchedulePolicy + def backup_management_usage_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList end - def dpm_error_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmErrorInfo + def backup_status_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusRequest end - def operation_worker_response - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationWorkerResponse + def backup_status_response + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusResponse end - def operation_result_info_base - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBase + def azure_vm_workload_protected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItemExtendedInfo end - def target_afsrestore_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetAFSRestoreInfo + def bmsbackup_summaries_query_object + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BMSBackupSummariesQueryObject end - def mab_job_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobExtendedInfo + def azure_storage_error_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageErrorInfo end - def validate_operations_response - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationsResponse + def protection_policy_query_object + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject end - def azure_workload_error_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadErrorInfo + def feature_support_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FeatureSupportRequest end - def azure_iaa_svmerror_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMErrorInfo + def azure_iaa_svmjob_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobExtendedInfo end - def azure_workload_job_task_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobTaskDetails + def pre_validate_enable_backup_response + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupResponse end - def azure_iaa_svmjob_task_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobTaskDetails + def dpm_job_task_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobTaskDetails end - def azure_workload_job_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobExtendedInfo + def protection_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicy end - def validate_operation_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationRequest + def job_query_object + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobQueryObject end - def mab_job_task_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobTaskDetails + def azure_sql_protected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItemExtendedInfo end - def restore_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreRequest + def azure_backup_goal_feature_support_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureBackupGoalFeatureSupportRequest end - def mab_file_folder_protected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabFileFolderProtectedItemExtendedInfo + def dpmprotected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItemExtendedInfo end - def resource - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Resource + def azure_storage_job_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobExtendedInfo end - def mab_error_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabErrorInfo + def azure_resource_protection_intent + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureResourceProtectionIntent end - def azure_sql_protected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItemExtendedInfo + def validate_operation_response + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationResponse + end + def azure_vmresource_feature_support_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportRequest + end + 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 target_restore_info Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetRestoreInfo end - def protection_intent - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntent + def azure_iaa_svmhealth_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMHealthDetails 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 + def day + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Day end def monthly_retention_schedule Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthlyRetentionSchedule 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 + def encryption_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::EncryptionDetails end - def sqldata_directory_mapping - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryMapping + def daily_retention_format + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionFormat end - def azure_vm_workload_protected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItemExtendedInfo + def azure_workload_auto_protection_intent + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadAutoProtectionIntent end def weekly_retention_schedule Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionSchedule end - def settings - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Settings + def sqldata_directory_mapping + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryMapping end - def name_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::NameInfo + def azure_storage_job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJob end - def pre_validate_enable_backup_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupRequest + def mab_file_folder_protected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabFileFolderProtectedItemExtendedInfo end - def backup_management_usage - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsage + def azure_workload_job_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobExtendedInfo end - def backup_management_usage_list - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList + def azure_iaa_svmjob + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJob end - def azure_iaa_svmhealth_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMHealthDetails + def azure_recovery_service_vault_protection_intent + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureRecoveryServiceVaultProtectionIntent end - def backup_status_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusRequest + def dpm_job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJob end - def azure_iaa_svmprotected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItemExtendedInfo + def dpm_job_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobExtendedInfo end - def backup_status_response - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusResponse + def azure_fileshare_protected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItem end - def protection_policy_query_object - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject + def azure_file_share_protection_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareProtectionPolicy end - def bmsbackup_summaries_query_object - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BMSBackupSummariesQueryObject + def azure_file_share_restore_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareRestoreRequest end - def azure_storage_error_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageErrorInfo + def azure_workload_job_task_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobTaskDetails end - def day - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Day + def operation_result_info_base_resource + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBaseResource end - def protected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItem + def azure_iaa_svmprotected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItem end - def error_detail - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ErrorDetail + def azure_iaa_sclassic_compute_vmprotected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSClassicComputeVMProtectedItem end - def pre_validate_enable_backup_response - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupResponse + def job_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResourceList end - def encryption_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::EncryptionDetails + def mab_job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJob end - def restore_file_specs - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreFileSpecs + def azure_iaa_scompute_vmprotected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSComputeVMProtectedItem end - def feature_support_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FeatureSupportRequest + def azure_iaa_svmprotection_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectionPolicy end - def azure_iaa_svmjob_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobExtendedInfo + def protected_item_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemResourceList end - def retention_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionPolicy + def azure_sql_protected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItem end - def protection_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicy - end - def job_query_object - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobQueryObject - end - def sub_protection_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SubProtectionPolicy - end - def dpm_job_task_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobTaskDetails - end - def resource_list - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ResourceList - end - def dpm_job_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobExtendedInfo - end - def validate_operation_response - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationResponse - end - def job - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Job - end - def azure_storage_job_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobExtendedInfo + def azure_sql_protection_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectionPolicy end - def dpmprotected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItemExtendedInfo + def validate_restore_operation_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateRestoreOperationRequest end - def azure_backup_goal_feature_support_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureBackupGoalFeatureSupportRequest + def validate_iaas_vmrestore_operation_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateIaasVMRestoreOperationRequest end - def azure_fileshare_protected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItem + def operation_result_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfo end - def azure_file_share_protection_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareProtectionPolicy + def azure_workload_job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJob end - def azure_file_share_restore_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareRestoreRequest + def azure_workload_sqlauto_protection_intent + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLAutoProtectionIntent end - def azure_iaa_sclassic_compute_vmprotected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSClassicComputeVMProtectedItem + def azure_vm_workload_protected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItem end - def azure_iaa_scompute_vmprotected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSComputeVMProtectedItem + def azure_vm_workload_protection_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectionPolicy end - def azure_iaa_svmjob - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJob + def azure_storage_job_task_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobTaskDetails end - def azure_iaa_svmprotected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItem + def azure_vm_workload_saphana_database_protected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadSAPHanaDatabaseProtectedItem end - def azure_iaa_svmprotection_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectionPolicy + def azure_vmresource_feature_support_response + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportResponse end - def azure_recovery_service_vault_protection_intent - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureRecoveryServiceVaultProtectionIntent + def support_status + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SupportStatus end - def azure_resource_protection_intent - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureResourceProtectionIntent + def fabric_name + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FabricName end - def azure_sql_protected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItem + def type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Type end - def azure_sql_protection_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectionPolicy + def protection_intent_resource + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntentResource end - def azure_storage_job - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJob + def azure_vm_workload_sqldatabase_protected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadSQLDatabaseProtectedItem end - def azure_vmresource_feature_support_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportRequest + def export_jobs_operation_result_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ExportJobsOperationResultInfo end - def azure_vm_workload_protected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItem + def job_resource + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResource end - def azure_vm_workload_protection_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectionPolicy + def job_supported_action + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobSupportedAction end - def azure_vm_workload_saphana_database_protected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadSAPHanaDatabaseProtectedItem + def job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Job end - def azure_vm_workload_sqldatabase_protected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadSQLDatabaseProtectedItem + def http_status_code + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HttpStatusCode end - def azure_workload_auto_protection_intent - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadAutoProtectionIntent + def job_operation_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobOperationType end - def azure_workload_job - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJob + def mab_server_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabServerType end def azure_workload_restore_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadRestoreRequest 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 health_state + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HealthState end - def dpm_job - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJob + def protection_policy_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyResourceList 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 + def resource + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Resource end def generic_protected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::GenericProtectedItem @@ -1075,15 +1054,12 @@ def generic_protected_item def generic_protection_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::GenericProtectionPolicy end + def data_source_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DataSourceType + 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,32 +1072,17 @@ 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 + def validation_status + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidationStatus end def simple_retention_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SimpleRetentionPolicy @@ -1129,15 +1090,15 @@ def simple_retention_policy 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 create_mode + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::CreateMode end def protection_state Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionState end + def error_detail + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ErrorDetail + end def health_status Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HealthStatus end @@ -1150,89 +1111,128 @@ 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 sqldata_directory_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryType + end + def workload_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WorkloadType + end def overwrite_options Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OverwriteOptions end + def backup_management_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementType + 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 + def protection_status + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionStatus + end + def retention_duration_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDurationType + 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 day_of_week + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DayOfWeek + end + def schedule_run_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ScheduleRunType + end + def settings + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Settings + end + def retention_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionPolicy + 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 data_source_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DataSourceType + def restore_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreRequest end - def protection_status - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionStatus + def sub_protection_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SubProtectionPolicy end - def fabric_name - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FabricName + def azure_fileshare_protected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItemExtendedInfo end - def type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Type + def schedule_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SchedulePolicy end - def retention_duration_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDurationType + def restore_file_specs + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreFileSpecs end - def backup_management_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementType + def resource_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ResourceList end - def job_status - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobStatus + def dpm_error_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmErrorInfo end - def job_operation_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobOperationType + def operation_worker_response + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationWorkerResponse end - def day_of_week - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DayOfWeek + def operation_result_info_base + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBase end - def retention_schedule_format - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionScheduleFormat + def mab_job_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobExtendedInfo end - def week_of_month - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeekOfMonth + def validate_operations_response + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationsResponse end - def month_of_year - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthOfYear + def azure_workload_error_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadErrorInfo end - def mab_server_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabServerType + def azure_iaa_svmerror_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMErrorInfo end - def workload_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WorkloadType + def azure_iaa_svmprotected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItemExtendedInfo end - def http_status_code - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HttpStatusCode + def azure_iaa_svmjob_task_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobTaskDetails end - def validation_status - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidationStatus + def validate_operation_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationRequest end - def create_mode - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::CreateMode + def retention_duration + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration end - def health_state - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HealthState + def mab_error_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabErrorInfo end - def schedule_run_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ScheduleRunType + def protection_intent + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntent + end + def mab_job_task_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobTaskDetails + end + def daily_retention_schedule + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionSchedule + end + def protected_item_query_object + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemQueryObject 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..6a9ec964f2 100644 --- a/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb @@ -7,7 +7,6 @@ module Azure::Profiles::Latest module RecoveryServicesSiteRecovery module Mgmt - Operations = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Operations ReplicationAlertSettings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationAlertSettings ReplicationEvents = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationEvents ReplicationFabrics = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationFabrics @@ -17,7 +16,6 @@ module Mgmt 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 ReplicationRecoveryServicesProviders = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationRecoveryServicesProviders @@ -25,11 +23,25 @@ module Mgmt ReplicationStorageClassificationMappings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationStorageClassificationMappings ReplicationvCenters = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationvCenters ReplicationJobs = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationJobs + RecoveryPoints = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::RecoveryPoints ReplicationPolicies = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationPolicies - ReplicationRecoveryPlans = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationRecoveryPlans ReplicationVaultHealth = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationVaultHealth + ReplicationRecoveryPlans = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationRecoveryPlans + Operations = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Operations module Models + Display = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Display + Event = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event + JobCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobCollection + ProtectionContainer = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer + RecoveryPoint = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPoint + Severity = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Severity + EncryptionDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EncryptionDetails + RoleAssignment = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RoleAssignment + Policy = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Policy + Network = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Network + JobDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobDetails + Job = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Job 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 @@ -63,13 +75,14 @@ module Models StorageMappingInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageMappingInputProperties ApplyRecoveryPointInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ApplyRecoveryPointInputProperties StorageClassificationMappingCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageClassificationMappingCollection + Subnet = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Subnet UpdatePolicyInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdatePolicyInputProperties StorageClassificationMappingProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageClassificationMappingProperties GroupTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::GroupTaskDetails StorageClassificationCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageClassificationCollection - ProviderError = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProviderError InitialReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InitialReplicationDetails ASRTask = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ASRTask + ProviderError = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProviderError OSDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::OSDetails UpdateNetworkMappingInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateNetworkMappingInputProperties StorageClassificationProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageClassificationProperties @@ -88,7 +101,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 @@ -135,59 +147,55 @@ module Models UpdateReplicationProtectedItemInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateReplicationProtectedItemInput InMageDiskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDiskDetails UpdateReplicationProtectedItemProviderInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateReplicationProtectedItemProviderInput - InMageVolumeExclusionOptions = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageVolumeExclusionOptions AzureToAzureVmSyncedConfigDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureVmSyncedConfigDetails InMageDiskSignatureExclusionOptions = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDiskSignatureExclusionOptions + InMageVolumeExclusionOptions = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageVolumeExclusionOptions UpdateProtectionContainerMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateProtectionContainerMappingInput - InMageDiskExclusionInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDiskExclusionInput AddVCenterRequest = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AddVCenterRequest RecoveryPlanTestFailoverCleanupInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanTestFailoverCleanupInputProperties + InMageDiskExclusionInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDiskExclusionInput ApplyRecoveryPointProviderSpecificInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ApplyRecoveryPointProviderSpecificInput - RecoveryPlanPlannedFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanPlannedFailoverInput TaskTypeDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::TaskTypeDetails RecoveryPlanPlannedFailoverInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanPlannedFailoverInputProperties + RecoveryPlanPlannedFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanPlannedFailoverInput JobErrorDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobErrorDetails - RecoveryPlanProviderSpecificFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanProviderSpecificFailoverInput UpdateMobilityServiceRequest = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateMobilityServiceRequest InMageProtectedDiskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageProtectedDiskDetails + RecoveryPlanProviderSpecificFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanProviderSpecificFailoverInput AzureVmDiskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureVmDiskDetails - RecoveryPlanCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanCollection ConfigureAlertRequest = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ConfigureAlertRequest RecoveryPlanProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanProperties + RecoveryPlanCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanCollection 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 + ProviderSpecificRecoveryPointDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProviderSpecificRecoveryPointDetails 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 + RecoveryPlanActionDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanActionDetails 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 ProtectionContainerMappingProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMappingProperties + JobQueryParameter = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobQueryParameter EnableProtectionInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EnableProtectionInputProperties - ProtectionContainerMappingProviderSpecificDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMappingProviderSpecificDetails EventSpecificDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EventSpecificDetails LogicalNetworkProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LogicalNetworkProperties + ProtectionContainerMappingProviderSpecificDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMappingProviderSpecificDetails TestFailoverInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::TestFailoverInputProperties - ProtectionContainerCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerCollection FabricSpecificDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricSpecificDetails LogicalNetworkCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LogicalNetworkCollection + ProtectionContainerCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerCollection FabricSpecificCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricSpecificCreationInput 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 +204,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 +225,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 @@ -228,112 +233,108 @@ module Models ProtectableItemCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectableItemCollection A2AApplyRecoveryPointInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AApplyRecoveryPointInput A2AContainerCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AContainerCreationInput - A2AContainerMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AContainerMappingInput A2AEnableProtectionInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AEnableProtectionInput A2AEventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AEventDetails - A2AFailoverProviderInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AFailoverProviderInput + PolicyCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PolicyCollection A2APolicyCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2APolicyCreationInput A2APolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2APolicyDetails - A2AProtectionContainerMappingDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AProtectionContainerMappingDetails + A2AContainerMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AContainerMappingInput A2ARecoveryPointDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2ARecoveryPointDetails A2AReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AReplicationDetails - A2AReprotectInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AReprotectInput + A2AFailoverProviderInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AFailoverProviderInput A2ASwitchProtectionInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2ASwitchProtectionInput A2AUpdateContainerMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AUpdateContainerMappingInput - A2AUpdateReplicationProtectedItemInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AUpdateReplicationProtectedItemInput + A2AProtectionContainerMappingDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AProtectionContainerMappingDetails Alert = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Alert AsrJobDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AsrJobDetails - AutomationRunbookTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AutomationRunbookTaskDetails + A2AReprotectInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AReprotectInput AzureFabricCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureFabricCreationInput AzureFabricSpecificDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureFabricSpecificDetails - AzureToAzureCreateNetworkMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureCreateNetworkMappingInput + A2AUpdateReplicationProtectedItemInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AUpdateReplicationProtectedItemInput 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 + AutomationRunbookTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AutomationRunbookTaskDetails 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 + AzureToAzureCreateNetworkMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureCreateNetworkMappingInput FailoverJobDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FailoverJobDetails HyperVReplica2012EventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplica2012EventDetails - HyperVReplica2012R2EventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplica2012R2EventDetails + ConsistencyCheckTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ConsistencyCheckTaskDetails HyperVReplicaAzureApplyRecoveryPointInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureApplyRecoveryPointInput HyperVReplicaAzureEnableProtectionInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureEnableProtectionInput + FabricReplicationGroupTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricReplicationGroupTaskDetails HyperVReplicaAzureEventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureEventDetails HyperVReplicaAzureFailbackProviderInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureFailbackProviderInput - HyperVReplicaAzureFailoverProviderInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureFailoverProviderInput + HyperVReplica2012R2EventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplica2012R2EventDetails HyperVReplicaAzurePolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzurePolicyDetails - HyperVReplicaAzurePolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzurePolicyInput + HyperVReplicaAzureFailoverProviderInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureFailoverProviderInput HyperVReplicaAzureReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReplicationDetails - HyperVReplicaAzureReprotectInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReprotectInput + HyperVReplicaAzurePolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzurePolicyInput HyperVReplicaAzureUpdateReplicationProtectedItemInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureUpdateReplicationProtectedItemInput - HyperVReplicaBaseEventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBaseEventDetails + HyperVReplicaAzureReprotectInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReprotectInput HyperVReplicaBasePolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBasePolicyDetails - HyperVReplicaBaseReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBaseReplicationDetails + HyperVReplicaBaseEventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBaseEventDetails HyperVReplicaBluePolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBluePolicyDetails - HyperVReplicaBluePolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBluePolicyInput + HyperVReplicaBaseReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBaseReplicationDetails HyperVReplicaBlueReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBlueReplicationDetails - HyperVReplicaPolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaPolicyDetails + HyperVReplicaBluePolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBluePolicyInput HyperVReplicaPolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaPolicyInput - HyperVReplicaReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaReplicationDetails + HyperVReplicaPolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaPolicyDetails HyperVSiteDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVSiteDetails - HyperVVirtualMachineDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVVirtualMachineDetails + HyperVReplicaReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaReplicationDetails InlineWorkflowTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InlineWorkflowTaskDetails - InMageAzureV2ApplyRecoveryPointInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ApplyRecoveryPointInput + HyperVVirtualMachineDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVVirtualMachineDetails InMageAzureV2EnableProtectionInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2EnableProtectionInput - InMageAzureV2EventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2EventDetails + InMageAzureV2ApplyRecoveryPointInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ApplyRecoveryPointInput InMageAzureV2FailoverProviderInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2FailoverProviderInput - InMageAzureV2PolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2PolicyDetails + InMageAzureV2EventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2EventDetails InMageAzureV2PolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2PolicyInput - InMageAzureV2RecoveryPointDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2RecoveryPointDetails - InMageAzureV2ReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ReplicationDetails + InMageAzureV2PolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2PolicyDetails InMageAzureV2ReprotectInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ReprotectInput + InMageAzureV2RecoveryPointDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2RecoveryPointDetails InMageAzureV2UpdateReplicationProtectedItemInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2UpdateReplicationProtectedItemInput InMageBasePolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageBasePolicyDetails - InMageDisableProtectionProviderSpecificInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDisableProtectionProviderSpecificInput InMageEnableProtectionInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageEnableProtectionInput + InMageAzureV2ReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ReplicationDetails InMageFailoverProviderInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageFailoverProviderInput InMagePolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMagePolicyDetails - InMagePolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMagePolicyInput InMageReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageReplicationDetails + InMageDisableProtectionProviderSpecificInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDisableProtectionProviderSpecificInput 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 + Resource = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Resource RcmAzureMigrationPolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RcmAzureMigrationPolicyDetails RecoveryPlan = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlan - RecoveryPlanA2AFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanA2AFailoverInput RecoveryPlanAutomationRunbookActionDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanAutomationRunbookActionDetails - RecoveryPlanGroupTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanGroupTaskDetails + JobTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobTaskDetails + InMagePolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMagePolicyInput RecoveryPlanHyperVReplicaAzureFailbackInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanHyperVReplicaAzureFailbackInput - RecoveryPlanHyperVReplicaAzureFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanHyperVReplicaAzureFailoverInput - RecoveryPlanInMageAzureV2FailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanInMageAzureV2FailoverInput + RecoveryPlanGroupTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanGroupTaskDetails RecoveryPlanInMageFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanInMageFailoverInput 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 + RecoveryPlanHyperVReplicaAzureFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanHyperVReplicaAzureFailoverInput ReplicationGroupDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationGroupDetails ReplicationProtectedItem = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProtectedItem SanEnableProtectionInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SanEnableProtectionInput ScriptActionTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ScriptActionTaskDetails + RecoveryPlanA2AFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanA2AFailoverInput StorageClassification = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageClassification StorageClassificationMapping = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageClassificationMapping SwitchProtectionJobDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SwitchProtectionJobDetails TestFailoverJobDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::TestFailoverJobDetails - VaultHealthDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VaultHealthDetails + RecoveryPlanInMageAzureV2FailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanInMageAzureV2FailoverInput VCenter = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VCenter - VirtualMachineTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VirtualMachineTaskDetails + VaultHealthDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VaultHealthDetails VmmDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmDetails + VirtualMachineTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VirtualMachineTaskDetails + RecoveryServicesProvider = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryServicesProvider VmmToAzureCreateNetworkMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmToAzureCreateNetworkMappingInput VmmToAzureNetworkMappingSettings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmToAzureNetworkMappingSettings VmmToAzureUpdateNetworkMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmToAzureUpdateNetworkMappingInput @@ -358,26 +359,25 @@ 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 + DataSyncStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DataSyncStatus + AlternateLocationRecoveryOption = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AlternateLocationRecoveryOption SourceSiteOperations = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SourceSiteOperations LicenseType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LicenseType + IdentityProviderType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::IdentityProviderType 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_alert_settings, :replication_events, :replication_fabrics, :replication_logical_networks, :replication_networks, :replication_network_mappings, :replication_protection_containers, :replication_protectable_items, :replication_protected_items, :target_compute_sizes, :replication_protection_container_mappings, :replication_recovery_services_providers, :replication_storage_classifications, :replication_storage_classification_mappings, :replicationv_centers, :replication_jobs, :recovery_points, :replication_policies, :replication_vault_health, :replication_recovery_plans, :operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -387,7 +387,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 @replication_alert_settings = @client_0.replication_alert_settings @replication_events = @client_0.replication_events @replication_fabrics = @client_0.replication_fabrics @@ -397,7 +396,6 @@ def initialize(configurable, base_url=nil, options=nil) @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 @replication_recovery_services_providers = @client_0.replication_recovery_services_providers @@ -405,9 +403,11 @@ def initialize(configurable, base_url=nil, options=nil) @replication_storage_classification_mappings = @client_0.replication_storage_classification_mappings @replicationv_centers = @client_0.replicationv_centers @replication_jobs = @client_0.replication_jobs + @recovery_points = @client_0.recovery_points @replication_policies = @client_0.replication_policies - @replication_recovery_plans = @client_0.replication_recovery_plans @replication_vault_health = @client_0.replication_vault_health + @replication_recovery_plans = @client_0.replication_recovery_plans + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -426,6 +426,42 @@ def method_missing(method, *args) end class ModelClasses + def display + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Display + end + def event + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event + end + def job_collection + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobCollection + 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 severity + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Severity + end + def encryption_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EncryptionDetails + end + def role_assignment + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RoleAssignment + 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_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobDetails + end + def job + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Job + end def osdisk_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::OSDiskDetails end @@ -525,6 +561,9 @@ def apply_recovery_point_input_properties def storage_classification_mapping_collection Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageClassificationMappingCollection end + def subnet + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Subnet + end def update_policy_input_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdatePolicyInputProperties end @@ -537,15 +576,15 @@ def group_task_details def storage_classification_collection Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageClassificationCollection end - def provider_error - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProviderError - end def initial_replication_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InitialReplicationDetails end def asrtask Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ASRTask end + def provider_error + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProviderError + end def osdetails Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::OSDetails end @@ -600,9 +639,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 @@ -741,129 +777,123 @@ def in_mage_disk_details def update_replication_protected_item_provider_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateReplicationProtectedItemProviderInput end - def in_mage_volume_exclusion_options - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageVolumeExclusionOptions - end def azure_to_azure_vm_synced_config_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureVmSyncedConfigDetails end def in_mage_disk_signature_exclusion_options Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDiskSignatureExclusionOptions end + def in_mage_volume_exclusion_options + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageVolumeExclusionOptions + end def update_protection_container_mapping_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateProtectionContainerMappingInput end - def in_mage_disk_exclusion_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDiskExclusionInput - end def add_vcenter_request Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AddVCenterRequest end def recovery_plan_test_failover_cleanup_input_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanTestFailoverCleanupInputProperties end + def in_mage_disk_exclusion_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDiskExclusionInput + end def apply_recovery_point_provider_specific_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ApplyRecoveryPointProviderSpecificInput end - def recovery_plan_planned_failover_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanPlannedFailoverInput - end def task_type_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::TaskTypeDetails end def recovery_plan_planned_failover_input_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanPlannedFailoverInputProperties end + def recovery_plan_planned_failover_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanPlannedFailoverInput + end def job_error_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobErrorDetails end - def recovery_plan_provider_specific_failover_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanProviderSpecificFailoverInput - end def update_mobility_service_request Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateMobilityServiceRequest end def in_mage_protected_disk_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageProtectedDiskDetails end + def recovery_plan_provider_specific_failover_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanProviderSpecificFailoverInput + end def azure_vm_disk_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureVmDiskDetails end - def recovery_plan_collection - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanCollection - end def configure_alert_request Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ConfigureAlertRequest end def recovery_plan_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanProperties end + def recovery_plan_collection + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanCollection + end def create_network_mapping_input_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreateNetworkMappingInputProperties end - def provider_specific_recovery_point_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProviderSpecificRecoveryPointDetails - end 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 + def provider_specific_recovery_point_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProviderSpecificRecoveryPointDetails + end def job_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobProperties end - def recovery_plan_action_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanActionDetails - end def protection_container_mapping_collection Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMappingCollection end 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 + def recovery_plan_action_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanActionDetails end def disable_protection_input_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DisableProtectionInputProperties end - def job_query_parameter - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobQueryParameter - end def disk_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DiskDetails end def protection_container_mapping_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMappingProperties end + def job_query_parameter + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobQueryParameter + end def enable_protection_input_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EnableProtectionInputProperties end - def protection_container_mapping_provider_specific_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMappingProviderSpecificDetails - end def event_specific_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EventSpecificDetails end def logical_network_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LogicalNetworkProperties end + def protection_container_mapping_provider_specific_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMappingProviderSpecificDetails + end def test_failover_input_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::TestFailoverInputProperties end - def protection_container_collection - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerCollection - end def fabric_specific_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricSpecificDetails end def logical_network_collection Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LogicalNetworkCollection end + def protection_container_collection + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerCollection + end def fabric_specific_creation_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricSpecificCreationInput end @@ -876,9 +906,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 +924,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 +948,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 +1011,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 @@ -1020,17 +1035,14 @@ def a2_aapply_recovery_point_input def a2_acontainer_creation_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AContainerCreationInput end - def a2_acontainer_mapping_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AContainerMappingInput - end def a2_aenable_protection_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AEnableProtectionInput end def a2_aevent_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AEventDetails end - def a2_afailover_provider_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AFailoverProviderInput + def policy_collection + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PolicyCollection end def a2_apolicy_creation_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2APolicyCreationInput @@ -1038,8 +1050,8 @@ def a2_apolicy_creation_input def a2_apolicy_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2APolicyDetails end - def a2_aprotection_container_mapping_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AProtectionContainerMappingDetails + def a2_acontainer_mapping_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AContainerMappingInput end def a2_arecovery_point_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2ARecoveryPointDetails @@ -1047,8 +1059,8 @@ def a2_arecovery_point_details def a2_areplication_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AReplicationDetails end - def a2_areprotect_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AReprotectInput + def a2_afailover_provider_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AFailoverProviderInput end def a2_aswitch_protection_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2ASwitchProtectionInput @@ -1056,8 +1068,8 @@ def a2_aswitch_protection_input def a2_aupdate_container_mapping_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AUpdateContainerMappingInput end - def a2_aupdate_replication_protected_item_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AUpdateReplicationProtectedItemInput + def a2_aprotection_container_mapping_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AProtectionContainerMappingDetails end def alert Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Alert @@ -1065,8 +1077,8 @@ def alert def asr_job_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AsrJobDetails end - def automation_runbook_task_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AutomationRunbookTaskDetails + def a2_areprotect_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AReprotectInput end def azure_fabric_creation_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureFabricCreationInput @@ -1074,8 +1086,8 @@ def azure_fabric_creation_input def azure_fabric_specific_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureFabricSpecificDetails end - def azure_to_azure_create_network_mapping_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureCreateNetworkMappingInput + def a2_aupdate_replication_protected_item_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AUpdateReplicationProtectedItemInput end def azure_to_azure_network_mapping_settings Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureNetworkMappingSettings @@ -1083,11 +1095,8 @@ def azure_to_azure_network_mapping_settings def azure_to_azure_update_network_mapping_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureUpdateNetworkMappingInput end - def consistency_check_task_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ConsistencyCheckTaskDetails - end - def event - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event + def automation_runbook_task_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AutomationRunbookTaskDetails end def export_job_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ExportJobDetails @@ -1095,8 +1104,8 @@ def export_job_details def fabric Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric end - def fabric_replication_group_task_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricReplicationGroupTaskDetails + def azure_to_azure_create_network_mapping_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureCreateNetworkMappingInput end def failover_job_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FailoverJobDetails @@ -1104,8 +1113,8 @@ def failover_job_details def hyper_vreplica2012_event_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplica2012EventDetails end - def hyper_vreplica2012_r2_event_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplica2012R2EventDetails + def consistency_check_task_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ConsistencyCheckTaskDetails end def hyper_vreplica_azure_apply_recovery_point_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureApplyRecoveryPointInput @@ -1113,176 +1122,164 @@ def hyper_vreplica_azure_apply_recovery_point_input def hyper_vreplica_azure_enable_protection_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureEnableProtectionInput end + def fabric_replication_group_task_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricReplicationGroupTaskDetails + end def hyper_vreplica_azure_event_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureEventDetails end def hyper_vreplica_azure_failback_provider_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureFailbackProviderInput end - def hyper_vreplica_azure_failover_provider_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureFailoverProviderInput + def hyper_vreplica2012_r2_event_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplica2012R2EventDetails end def hyper_vreplica_azure_policy_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzurePolicyDetails end - def hyper_vreplica_azure_policy_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzurePolicyInput + def hyper_vreplica_azure_failover_provider_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureFailoverProviderInput end def hyper_vreplica_azure_replication_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReplicationDetails end - def hyper_vreplica_azure_reprotect_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReprotectInput + def hyper_vreplica_azure_policy_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzurePolicyInput end def hyper_vreplica_azure_update_replication_protected_item_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureUpdateReplicationProtectedItemInput end - def hyper_vreplica_base_event_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBaseEventDetails + def hyper_vreplica_azure_reprotect_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReprotectInput end def hyper_vreplica_base_policy_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBasePolicyDetails end - def hyper_vreplica_base_replication_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBaseReplicationDetails + def hyper_vreplica_base_event_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBaseEventDetails end def hyper_vreplica_blue_policy_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBluePolicyDetails end - def hyper_vreplica_blue_policy_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBluePolicyInput + def hyper_vreplica_base_replication_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBaseReplicationDetails end def hyper_vreplica_blue_replication_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBlueReplicationDetails end - def hyper_vreplica_policy_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaPolicyDetails + def hyper_vreplica_blue_policy_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBluePolicyInput end def hyper_vreplica_policy_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaPolicyInput end - def hyper_vreplica_replication_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaReplicationDetails + def hyper_vreplica_policy_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaPolicyDetails end def hyper_vsite_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVSiteDetails end - def hyper_vvirtual_machine_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVVirtualMachineDetails + def hyper_vreplica_replication_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaReplicationDetails end def inline_workflow_task_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InlineWorkflowTaskDetails end - def in_mage_azure_v2_apply_recovery_point_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ApplyRecoveryPointInput + def hyper_vvirtual_machine_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVVirtualMachineDetails end def in_mage_azure_v2_enable_protection_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2EnableProtectionInput end - def in_mage_azure_v2_event_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2EventDetails + def in_mage_azure_v2_apply_recovery_point_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ApplyRecoveryPointInput end def in_mage_azure_v2_failover_provider_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2FailoverProviderInput end - def in_mage_azure_v2_policy_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2PolicyDetails + def in_mage_azure_v2_event_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2EventDetails end def in_mage_azure_v2_policy_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2PolicyInput end - def in_mage_azure_v2_recovery_point_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2RecoveryPointDetails - end - def in_mage_azure_v2_replication_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ReplicationDetails + def in_mage_azure_v2_policy_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2PolicyDetails end def in_mage_azure_v2_reprotect_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ReprotectInput end + def in_mage_azure_v2_recovery_point_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2RecoveryPointDetails + end def in_mage_azure_v2_update_replication_protected_item_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2UpdateReplicationProtectedItemInput end def in_mage_base_policy_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageBasePolicyDetails end - def in_mage_disable_protection_provider_specific_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDisableProtectionProviderSpecificInput - end def in_mage_enable_protection_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageEnableProtectionInput end + def in_mage_azure_v2_replication_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageAzureV2ReplicationDetails + end def in_mage_failover_provider_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageFailoverProviderInput end def in_mage_policy_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMagePolicyDetails end - def in_mage_policy_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMagePolicyInput - end def in_mage_replication_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageReplicationDetails end + def in_mage_disable_protection_provider_specific_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageDisableProtectionProviderSpecificInput + end 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 - def job_task_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobTaskDetails - end def logical_network Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LogicalNetwork end 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 + def resource + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Resource + end def rcm_azure_migration_policy_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RcmAzureMigrationPolicyDetails end def recovery_plan Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlan end - def recovery_plan_a2_afailover_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanA2AFailoverInput - end def recovery_plan_automation_runbook_action_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanAutomationRunbookActionDetails end - def recovery_plan_group_task_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanGroupTaskDetails + def job_task_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobTaskDetails + end + def in_mage_policy_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMagePolicyInput end def recovery_plan_hyper_vreplica_azure_failback_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanHyperVReplicaAzureFailbackInput end - def recovery_plan_hyper_vreplica_azure_failover_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanHyperVReplicaAzureFailoverInput - end - def recovery_plan_in_mage_azure_v2_failover_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanInMageAzureV2FailoverInput + def recovery_plan_group_task_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanGroupTaskDetails end def recovery_plan_in_mage_failover_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanInMageFailoverInput @@ -1296,11 +1293,8 @@ 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 + def recovery_plan_hyper_vreplica_azure_failover_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanHyperVReplicaAzureFailoverInput end def replication_group_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationGroupDetails @@ -1314,6 +1308,9 @@ def san_enable_protection_input def script_action_task_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ScriptActionTaskDetails end + def recovery_plan_a2_afailover_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanA2AFailoverInput + end def storage_classification Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::StorageClassification end @@ -1326,18 +1323,24 @@ def switch_protection_job_details def test_failover_job_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::TestFailoverJobDetails end - def vault_health_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VaultHealthDetails + def recovery_plan_in_mage_azure_v2_failover_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanInMageAzureV2FailoverInput end def vcenter Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VCenter end - def virtual_machine_task_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VirtualMachineTaskDetails + def vault_health_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VaultHealthDetails end def vmm_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmDetails end + def virtual_machine_task_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VirtualMachineTaskDetails + end + def recovery_services_provider + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryServicesProvider + end def vmm_to_azure_create_network_mapping_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmToAzureCreateNetworkMappingInput end @@ -1410,15 +1413,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 @@ -1437,12 +1434,6 @@ def multi_vm_sync_point_option 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 @@ -1452,12 +1443,21 @@ def in_mage_v2_rp_recovery_point_type def rp_in_mage_recovery_point_type Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RpInMageRecoveryPointType 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 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 identity_provider_type + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::IdentityProviderType + 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..b2e7a13c53 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 - 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 + Operations = Azure::Redis::Mgmt::V2018_03_01::Operations + FirewallRules = Azure::Redis::Mgmt::V2018_03_01::FirewallRules module Models - RedisRebootParameters = Azure::Redis::Mgmt::V2018_03_01::Models::RedisRebootParameters + RedisResource = Azure::Redis::Mgmt::V2018_03_01::Models::RedisResource + RedisPatchSchedule = Azure::Redis::Mgmt::V2018_03_01::Models::RedisPatchSchedule + RedisLinkedServerWithProperties = Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServerWithProperties + SkuFamily = Azure::Redis::Mgmt::V2018_03_01::Models::SkuFamily + TlsVersion = Azure::Redis::Mgmt::V2018_03_01::Models::TlsVersion + RedisKeyType = Azure::Redis::Mgmt::V2018_03_01::Models::RedisKeyType + SkuName = Azure::Redis::Mgmt::V2018_03_01::Models::SkuName + ReplicationRole = Azure::Redis::Mgmt::V2018_03_01::Models::ReplicationRole Sku = Azure::Redis::Mgmt::V2018_03_01::Models::Sku + RebootType = Azure::Redis::Mgmt::V2018_03_01::Models::RebootType + ProvisioningState = Azure::Redis::Mgmt::V2018_03_01::Models::ProvisioningState + TrackedResource = Azure::Redis::Mgmt::V2018_03_01::Models::TrackedResource + ProxyResource = Azure::Redis::Mgmt::V2018_03_01::Models::ProxyResource + DayOfWeek = Azure::Redis::Mgmt::V2018_03_01::Models::DayOfWeek + Resource = Azure::Redis::Mgmt::V2018_03_01::Models::Resource + OperationDisplay = Azure::Redis::Mgmt::V2018_03_01::Models::OperationDisplay + 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 + OperationListResult = Azure::Redis::Mgmt::V2018_03_01::Models::OperationListResult 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 + NotificationListResponse = Azure::Redis::Mgmt::V2018_03_01::Models::NotificationListResponse 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 - 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 + RedisPatchScheduleListResult = Azure::Redis::Mgmt::V2018_03_01::Models::RedisPatchScheduleListResult RedisLinkedServer = Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServer - OperationDisplay = Azure::Redis::Mgmt::V2018_03_01::Models::OperationDisplay + RedisForceRebootResponse = Azure::Redis::Mgmt::V2018_03_01::Models::RedisForceRebootResponse + Operation = Azure::Redis::Mgmt::V2018_03_01::Models::Operation 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 RedisFirewallRule = Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRule - RedisResource = Azure::Redis::Mgmt::V2018_03_01::Models::RedisResource - 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 - 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 - 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 - ReplicationRole = Azure::Redis::Mgmt::V2018_03_01::Models::ReplicationRole end class RedisManagementClass - attr_reader :operations, :redis, :firewall_rules, :patch_schedules, :linked_server, :configurable, :base_url, :options, :model_classes + attr_reader :redis, :patch_schedules, :linked_server, :operations, :firewall_rules, :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) - @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 + @operations = @client_0.operations + @firewall_rules = @client_0.firewall_rules @model_classes = ModelClasses.new end @@ -88,39 +88,81 @@ def method_missing(method, *args) end class ModelClasses - def redis_reboot_parameters - Azure::Redis::Mgmt::V2018_03_01::Models::RedisRebootParameters + def redis_resource + Azure::Redis::Mgmt::V2018_03_01::Models::RedisResource + 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_family + Azure::Redis::Mgmt::V2018_03_01::Models::SkuFamily + end + def tls_version + Azure::Redis::Mgmt::V2018_03_01::Models::TlsVersion + end + def redis_key_type + Azure::Redis::Mgmt::V2018_03_01::Models::RedisKeyType + end + def sku_name + Azure::Redis::Mgmt::V2018_03_01::Models::SkuName + end + def replication_role + Azure::Redis::Mgmt::V2018_03_01::Models::ReplicationRole end def sku Azure::Redis::Mgmt::V2018_03_01::Models::Sku end + def reboot_type + Azure::Redis::Mgmt::V2018_03_01::Models::RebootType + end + def provisioning_state + Azure::Redis::Mgmt::V2018_03_01::Models::ProvisioningState + 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 day_of_week + Azure::Redis::Mgmt::V2018_03_01::Models::DayOfWeek + end + def resource + Azure::Redis::Mgmt::V2018_03_01::Models::Resource + end + def operation_display + Azure::Redis::Mgmt::V2018_03_01::Models::OperationDisplay + 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 def redis_list_result Azure::Redis::Mgmt::V2018_03_01::Models::RedisListResult end + def operation_list_result + Azure::Redis::Mgmt::V2018_03_01::Models::OperationListResult + end def redis_access_keys Azure::Redis::Mgmt::V2018_03_01::Models::RedisAccessKeys end def redis_regenerate_key_parameters Azure::Redis::Mgmt::V2018_03_01::Models::RedisRegenerateKeyParameters end - 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 notification_list_response + Azure::Redis::Mgmt::V2018_03_01::Models::NotificationListResponse + end def redis_firewall_rule_create_parameters Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRuleCreateParameters end @@ -130,23 +172,20 @@ def schedule_entry 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 upgrade_notification + Azure::Redis::Mgmt::V2018_03_01::Models::UpgradeNotification end def redis_patch_schedule_list_result Azure::Redis::Mgmt::V2018_03_01::Models::RedisPatchScheduleListResult end - def upgrade_notification - Azure::Redis::Mgmt::V2018_03_01::Models::UpgradeNotification + def redis_linked_server + Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServer end def redis_force_reboot_response Azure::Redis::Mgmt::V2018_03_01::Models::RedisForceRebootResponse end - def redis_linked_server - Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServer - end - def operation_display - Azure::Redis::Mgmt::V2018_03_01::Models::OperationDisplay + def operation + Azure::Redis::Mgmt::V2018_03_01::Models::Operation end def redis_firewall_rule_list_result Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRuleListResult @@ -160,48 +199,9 @@ 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 - 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 - 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 - end - def sku_family - Azure::Redis::Mgmt::V2018_03_01::Models::SkuFamily - end - def tls_version - Azure::Redis::Mgmt::V2018_03_01::Models::TlsVersion - end - def provisioning_state - Azure::Redis::Mgmt::V2018_03_01::Models::ProvisioningState - end - def redis_key_type - Azure::Redis::Mgmt::V2018_03_01::Models::RedisKeyType - 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 - end - def replication_role - Azure::Redis::Mgmt::V2018_03_01::Models::ReplicationRole - end 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..1fe583ac8a 100644 --- a/azure_sdk/lib/latest/modules/relay_profile_module.rb +++ b/azure_sdk/lib/latest/modules/relay_profile_module.rb @@ -13,33 +13,33 @@ module Mgmt WCFRelays = Azure::Relay::Mgmt::V2017_04_01::WCFRelays module Models + Sku = Azure::Relay::Mgmt::V2017_04_01::Models::Sku + SkuTier = Azure::Relay::Mgmt::V2017_04_01::Models::SkuTier + HybridConnection = Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnection + AccessRights = Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights + ErrorResponse = Azure::Relay::Mgmt::V2017_04_01::Models::ErrorResponse + TrackedResource = Azure::Relay::Mgmt::V2017_04_01::Models::TrackedResource + Resource = Azure::Relay::Mgmt::V2017_04_01::Models::Resource 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 + CheckNameAvailability = Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailability 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 + AuthorizationRuleListResult = Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult 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 + Operation = Azure::Relay::Mgmt::V2017_04_01::Models::Operation 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 + WcfRelay = Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay + CheckNameAvailabilityResult = Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult Relaytype = Azure::Relay::Mgmt::V2017_04_01::Models::Relaytype - SkuTier = Azure::Relay::Mgmt::V2017_04_01::Models::SkuTier + AuthorizationRule = Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRule + UnavailableReason = Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason + RegenerateAccessKeyParameters = Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters ProvisioningStateEnum = Azure::Relay::Mgmt::V2017_04_01::Models::ProvisioningStateEnum - AccessRights = Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights + RelayUpdateParameters = Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters KeyType = Azure::Relay::Mgmt::V2017_04_01::Models::KeyType - UnavailableReason = Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason end class RelayManagementClass @@ -75,87 +75,87 @@ def method_missing(method, *args) end class ModelClasses - def relay_namespace_list_result - Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult + def sku + Azure::Relay::Mgmt::V2017_04_01::Models::Sku end - def operation_display - Azure::Relay::Mgmt::V2017_04_01::Models::OperationDisplay + def sku_tier + Azure::Relay::Mgmt::V2017_04_01::Models::SkuTier + end + def hybrid_connection + Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnection + end + def access_rights + Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights + end + def error_response + Azure::Relay::Mgmt::V2017_04_01::Models::ErrorResponse + end + def tracked_resource + Azure::Relay::Mgmt::V2017_04_01::Models::TrackedResource end def resource Azure::Relay::Mgmt::V2017_04_01::Models::Resource end - def check_name_availability - Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailability + def relay_namespace_list_result + Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult + end + def operation_display + Azure::Relay::Mgmt::V2017_04_01::Models::OperationDisplay end 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 + def check_name_availability + Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailability 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 authorization_rule_list_result + Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult 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 operation + Azure::Relay::Mgmt::V2017_04_01::Models::Operation + end + def relay_namespace + Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespace end def wcf_relay Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay end - def relay_namespace - Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespace + def check_name_availability_result + Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult end - def relay_update_parameters - Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters + def relaytype + Azure::Relay::Mgmt::V2017_04_01::Models::Relaytype end def authorization_rule Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRule end - def relaytype - Azure::Relay::Mgmt::V2017_04_01::Models::Relaytype + def unavailable_reason + Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason end - def sku_tier - Azure::Relay::Mgmt::V2017_04_01::Models::SkuTier + def regenerate_access_key_parameters + Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters 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 relay_update_parameters + Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters end def key_type Azure::Relay::Mgmt::V2017_04_01::Models::KeyType end - def unavailable_reason - Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason - end 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 8e3293c5fb..218d14b8fe 100644 --- a/azure_sdk/lib/latest/modules/resources_profile_module.rb +++ b/azure_sdk/lib/latest/modules/resources_profile_module.rb @@ -7,73 +7,73 @@ module Azure::Profiles::Latest module Resources module Mgmt + Resources = Azure::Resources::Mgmt::V2018_05_01::Resources Operations = Azure::Resources::Mgmt::V2018_05_01::Operations 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 module Models - IdentityUserAssignedIdentitiesValue = Azure::Resources::Mgmt::V2018_05_01::Models::IdentityUserAssignedIdentitiesValue - Identity = Azure::Resources::Mgmt::V2018_05_01::Models::Identity + Plan = Azure::Resources::Mgmt::V2018_05_01::Models::Plan + ResourceIdentityType = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceIdentityType + Sku = Azure::Resources::Mgmt::V2018_05_01::Models::Sku + Dependency = Azure::Resources::Mgmt::V2018_05_01::Models::Dependency GenericResourceFilter = Azure::Resources::Mgmt::V2018_05_01::Models::GenericResourceFilter - ResourceGroupFilter = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter + Identity = Azure::Resources::Mgmt::V2018_05_01::Models::Identity + TemplateLink = Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink ParametersLink = Azure::Resources::Mgmt::V2018_05_01::Models::ParametersLink - ResourceListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceListResult OnErrorDeployment = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeployment - ResourceGroupProperties = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupProperties Deployment = Azure::Resources::Mgmt::V2018_05_01::Models::Deployment - ResourceGroup = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroup + ResourceGroupProperties = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupProperties ResourceManagementErrorWithDetails = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceManagementErrorWithDetails + IdentityUserAssignedIdentitiesValue = Azure::Resources::Mgmt::V2018_05_01::Models::IdentityUserAssignedIdentitiesValue + ResourceGroup = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroup ResourceGroupPatchable = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupPatchable + Provider = Azure::Resources::Mgmt::V2018_05_01::Models::Provider AliasType = Azure::Resources::Mgmt::V2018_05_01::Models::AliasType ResourceGroupListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupListResult - Provider = Azure::Resources::Mgmt::V2018_05_01::Models::Provider ResourcesMoveInfo = Azure::Resources::Mgmt::V2018_05_01::Models::ResourcesMoveInfo - Dependency = Azure::Resources::Mgmt::V2018_05_01::Models::Dependency ExportTemplateRequest = Azure::Resources::Mgmt::V2018_05_01::Models::ExportTemplateRequest - DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended - TagCount = Azure::Resources::Mgmt::V2018_05_01::Models::TagCount DeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended - TagValue = Azure::Resources::Mgmt::V2018_05_01::Models::TagValue + TagCount = Azure::Resources::Mgmt::V2018_05_01::Models::TagCount ProviderListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult + TagValue = Azure::Resources::Mgmt::V2018_05_01::Models::TagValue + ResourceGroupFilter = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter TagDetails = Azure::Resources::Mgmt::V2018_05_01::Models::TagDetails - Sku = Azure::Resources::Mgmt::V2018_05_01::Models::Sku + DeploymentProperties = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties TagsListResult = Azure::Resources::Mgmt::V2018_05_01::Models::TagsListResult - TemplateLink = Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink + DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended TargetResource = Azure::Resources::Mgmt::V2018_05_01::Models::TargetResource - DeploymentProperties = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties + BasicDependency = Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency HttpMessage = Azure::Resources::Mgmt::V2018_05_01::Models::HttpMessage - AliasPathType = Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType + DeploymentValidateResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult DeploymentOperationProperties = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationProperties - BasicDependency = Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency + AliasPathType = Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType DeploymentOperation = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperation - DeploymentValidateResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult + DeploymentExportResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult DeploymentOperationsListResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationsListResult - Plan = Azure::Resources::Mgmt::V2018_05_01::Models::Plan + Resource = Azure::Resources::Mgmt::V2018_05_01::Models::Resource ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceProviderOperationDisplayProperties DebugSetting = Azure::Resources::Mgmt::V2018_05_01::Models::DebugSetting - Resource = Azure::Resources::Mgmt::V2018_05_01::Models::Resource - ProviderResourceType = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderResourceType - SubResource = Azure::Resources::Mgmt::V2018_05_01::Models::SubResource DeploymentListResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentListResult + ProviderResourceType = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderResourceType ResourceGroupExportResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupExportResult - DeploymentExportResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult - OperationDisplay = Azure::Resources::Mgmt::V2018_05_01::Models::OperationDisplay DeploymentExtendedFilter = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtendedFilter + GenericResource = Azure::Resources::Mgmt::V2018_05_01::Models::GenericResource + OperationDisplay = Azure::Resources::Mgmt::V2018_05_01::Models::OperationDisplay + OnErrorDeploymentType = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentType Operation = Azure::Resources::Mgmt::V2018_05_01::Models::Operation - OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended OperationListResult = Azure::Resources::Mgmt::V2018_05_01::Models::OperationListResult - GenericResource = Azure::Resources::Mgmt::V2018_05_01::Models::GenericResource + SubResource = Azure::Resources::Mgmt::V2018_05_01::Models::SubResource + ResourceListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceListResult DeploymentMode = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentMode - OnErrorDeploymentType = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentType - ResourceIdentityType = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceIdentityType + OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended end class ResourcesManagementClass - attr_reader :operations, :deployments, :providers, :resources, :resource_groups, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes + attr_reader :resources, :operations, :deployments, :providers, :resource_groups, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -83,10 +83,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @resources = @client_0.resources @operations = @client_0.operations @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 @@ -108,116 +108,122 @@ def method_missing(method, *args) end class ModelClasses - def identity_user_assigned_identities_value - Azure::Resources::Mgmt::V2018_05_01::Models::IdentityUserAssignedIdentitiesValue + def plan + Azure::Resources::Mgmt::V2018_05_01::Models::Plan end - def identity - Azure::Resources::Mgmt::V2018_05_01::Models::Identity + def resource_identity_type + Azure::Resources::Mgmt::V2018_05_01::Models::ResourceIdentityType + end + def sku + Azure::Resources::Mgmt::V2018_05_01::Models::Sku + end + def dependency + Azure::Resources::Mgmt::V2018_05_01::Models::Dependency end def generic_resource_filter Azure::Resources::Mgmt::V2018_05_01::Models::GenericResourceFilter end - def resource_group_filter - Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter + def identity + Azure::Resources::Mgmt::V2018_05_01::Models::Identity + end + def template_link + Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink end def parameters_link Azure::Resources::Mgmt::V2018_05_01::Models::ParametersLink end - def resource_list_result - Azure::Resources::Mgmt::V2018_05_01::Models::ResourceListResult - end def on_error_deployment Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeployment end - def resource_group_properties - Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupProperties - end def deployment Azure::Resources::Mgmt::V2018_05_01::Models::Deployment end - def resource_group - Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroup + def resource_group_properties + Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupProperties end def resource_management_error_with_details Azure::Resources::Mgmt::V2018_05_01::Models::ResourceManagementErrorWithDetails end + def identity_user_assigned_identities_value + Azure::Resources::Mgmt::V2018_05_01::Models::IdentityUserAssignedIdentitiesValue + end + def resource_group + Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroup + end def resource_group_patchable Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupPatchable end + def provider + Azure::Resources::Mgmt::V2018_05_01::Models::Provider + end 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 provider - Azure::Resources::Mgmt::V2018_05_01::Models::Provider - end def resources_move_info Azure::Resources::Mgmt::V2018_05_01::Models::ResourcesMoveInfo end - def dependency - Azure::Resources::Mgmt::V2018_05_01::Models::Dependency - end def export_template_request Azure::Resources::Mgmt::V2018_05_01::Models::ExportTemplateRequest end - def deployment_properties_extended - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended + def deployment_extended + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended end def tag_count Azure::Resources::Mgmt::V2018_05_01::Models::TagCount end - def deployment_extended - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended + def provider_list_result + Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult end def tag_value Azure::Resources::Mgmt::V2018_05_01::Models::TagValue end - def provider_list_result - Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult + def resource_group_filter + Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter end def tag_details Azure::Resources::Mgmt::V2018_05_01::Models::TagDetails end - def sku - Azure::Resources::Mgmt::V2018_05_01::Models::Sku + def deployment_properties + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties end def tags_list_result Azure::Resources::Mgmt::V2018_05_01::Models::TagsListResult end - def template_link - Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink + def deployment_properties_extended + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended end def target_resource Azure::Resources::Mgmt::V2018_05_01::Models::TargetResource end - def deployment_properties - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties + def basic_dependency + Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency end def http_message Azure::Resources::Mgmt::V2018_05_01::Models::HttpMessage end - def alias_path_type - Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType + def deployment_validate_result + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult end def deployment_operation_properties Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationProperties end - def basic_dependency - Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency + def alias_path_type + Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType end def deployment_operation Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperation end - def deployment_validate_result - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult + def deployment_export_result + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult end def deployment_operations_list_result Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationsListResult end - def plan - Azure::Resources::Mgmt::V2018_05_01::Models::Plan + def resource + Azure::Resources::Mgmt::V2018_05_01::Models::Resource end def resource_provider_operation_display_properties Azure::Resources::Mgmt::V2018_05_01::Models::ResourceProviderOperationDisplayProperties @@ -225,50 +231,44 @@ def resource_provider_operation_display_properties def debug_setting Azure::Resources::Mgmt::V2018_05_01::Models::DebugSetting end - def resource - Azure::Resources::Mgmt::V2018_05_01::Models::Resource + def deployment_list_result + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentListResult end def provider_resource_type Azure::Resources::Mgmt::V2018_05_01::Models::ProviderResourceType end - def sub_resource - Azure::Resources::Mgmt::V2018_05_01::Models::SubResource - end - def deployment_list_result - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentListResult - end def resource_group_export_result Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupExportResult end - def deployment_export_result - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult + def deployment_extended_filter + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtendedFilter + end + def generic_resource + Azure::Resources::Mgmt::V2018_05_01::Models::GenericResource end def operation_display Azure::Resources::Mgmt::V2018_05_01::Models::OperationDisplay end - def deployment_extended_filter - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtendedFilter + def on_error_deployment_type + Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentType end def operation Azure::Resources::Mgmt::V2018_05_01::Models::Operation end - def on_error_deployment_extended - Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended - end def operation_list_result Azure::Resources::Mgmt::V2018_05_01::Models::OperationListResult end - def generic_resource - Azure::Resources::Mgmt::V2018_05_01::Models::GenericResource + def sub_resource + Azure::Resources::Mgmt::V2018_05_01::Models::SubResource + end + def resource_list_result + Azure::Resources::Mgmt::V2018_05_01::Models::ResourceListResult end 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 - end - def resource_identity_type - Azure::Resources::Mgmt::V2018_05_01::Models::ResourceIdentityType + def on_error_deployment_extended + Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended 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..7ff3aed296 100644 --- a/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb +++ b/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb @@ -13,33 +13,33 @@ module Mgmt Entities = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Entities module Models - ManagementGroup = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroup + ManagementGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupInfo + Status = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Status + Reason = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Reason + ErrorResponse = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorResponse ErrorDetails = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorDetails + Type = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Type + Operation = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Operation 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 + OperationDisplayProperties = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationDisplayProperties 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 ManagementGroupListResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupListResult EntityHierarchyItem = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityHierarchyItem + EntityParentGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityParentGroupInfo 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 + ManagementGroup = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroup CreateManagementGroupRequest = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupRequest ManagementGroupChildInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupChildInfo + CreateManagementGroupChildInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupChildInfo + CreateManagementGroupDetails = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupDetails + CheckNameAvailabilityResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult 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 end class ResourcesManagementManagementClass @@ -75,24 +75,36 @@ def method_missing(method, *args) end class ModelClasses - def management_group - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroup + def management_group_info + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupInfo + end + def status + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Status + end + def reason + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Reason + end + def error_response + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorResponse end def error_details Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorDetails end - def operation_results - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationResults + def type + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Type end - def operation_display_properties - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationDisplayProperties + def operation + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Operation end - def entity_parent_group_info - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityParentGroupInfo + def operation_results + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationResults end def operation_list_result Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationListResult end + def operation_display_properties + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationDisplayProperties + end def entity_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityInfo end @@ -108,32 +120,23 @@ def management_group_list_result def entity_hierarchy_item Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityHierarchyItem end + def entity_parent_group_info + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityParentGroupInfo + end def management_group_details Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupDetails end 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 def parent_group_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ParentGroupInfo end - 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 + def management_group + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroup end def create_management_group_request Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupRequest @@ -141,20 +144,17 @@ def create_management_group_request def management_group_child_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupChildInfo 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 + def create_management_group_child_info + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupChildInfo end - def reason - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Reason + def create_management_group_details + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupDetails end - def status - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Status + def check_name_availability_result + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult end - def type - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Type + def check_name_availability_request + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityRequest 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..ef8affec71 100644 --- a/azure_sdk/lib/latest/modules/scheduler_profile_module.rb +++ b/azure_sdk/lib/latest/modules/scheduler_profile_module.rb @@ -7,23 +7,19 @@ 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 - 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 + JobRecurrence = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrence 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 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 @@ -34,31 +30,35 @@ module Models JobHistoryFilter = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryFilter JobMaxRecurrence = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobMaxRecurrence JobStateFilter = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStateFilter + RetryPolicy = Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryPolicy 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 + JobListResult = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult 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 + RecurrenceFrequency = Azure::Scheduler::Mgmt::V2016_03_01::Models::RecurrenceFrequency + JobExecutionStatus = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobExecutionStatus + DayOfWeek = Azure::Scheduler::Mgmt::V2016_03_01::Models::DayOfWeek + JobHistoryActionName = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryActionName + JobActionType = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobActionType ServiceBusTransportType = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusTransportType + JobProperties = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobProperties + BasicAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication + JobStatus = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStatus 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 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 + def job_recurrence + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrence 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,9 +106,6 @@ 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 @@ -124,9 +115,6 @@ def job_history_definition_properties 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 @@ -157,69 +145,81 @@ def job_max_recurrence def job_state_filter Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStateFilter end + def retry_policy + Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryPolicy + 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_list_result + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult + 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 + def service_bus_authentication_type + Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusAuthenticationType + end + def recurrence_frequency + Azure::Scheduler::Mgmt::V2016_03_01::Models::RecurrenceFrequency end def job_execution_status Azure::Scheduler::Mgmt::V2016_03_01::Models::JobExecutionStatus end - def service_bus_authentication_type - Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusAuthenticationType + def day_of_week + Azure::Scheduler::Mgmt::V2016_03_01::Models::DayOfWeek + end + def job_history_action_name + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryActionName + end + def job_action_type + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobActionType end 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 basic_authentication + Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication + end + def job_status + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStatus + 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..67ee2ddb38 100644 --- a/azure_sdk/lib/latest/modules/search_profile_module.rb +++ b/azure_sdk/lib/latest/modules/search_profile_module.rb @@ -14,23 +14,23 @@ module Mgmt module Models 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 + SearchManagementRequestOptions = Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions Operation = Azure::Search::Mgmt::V2015_08_19::Models::Operation - AdminKeyResult = Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult + OperationDisplay = Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay 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 + AdminKeyResult = Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult + CheckNameAvailabilityInput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput + CheckNameAvailabilityOutput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput 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 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 + ProvisioningState = Azure::Search::Mgmt::V2015_08_19::Models::ProvisioningState + SkuName = Azure::Search::Mgmt::V2015_08_19::Models::SkuName end class SearchManagementClass @@ -69,9 +69,6 @@ class ModelClasses 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 @@ -81,44 +78,47 @@ def query_key def sku Azure::Search::Mgmt::V2015_08_19::Models::Sku end - def check_name_availability_input - Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput - end - def operation_display - Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay + def search_management_request_options + Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions 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 operation_display + Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay end def operation_list_result Azure::Search::Mgmt::V2015_08_19::Models::OperationListResult 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 admin_key_result + Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult + end + def check_name_availability_input + Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput + end + def check_name_availability_output + Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput + end def unavailable_name_reason Azure::Search::Mgmt::V2015_08_19::Models::UnavailableNameReason 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 admin_key_kind + Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyKind + 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 + def sku_name + Azure::Search::Mgmt::V2015_08_19::Models::SkuName 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..228a0d80fa 100644 --- a/azure_sdk/lib/latest/modules/security_profile_module.rb +++ b/azure_sdk/lib/latest/modules/security_profile_module.rb @@ -14,12 +14,12 @@ module Mgmt Compliances = Azure::Security::Mgmt::V2017_08_01_preview::Compliances module Models + Resource = Azure::Security::Mgmt::V2017_08_01_preview::Models::Resource AutoProvisioningSettingList = Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvisioningSettingList PricingList = Azure::Security::Mgmt::V2017_08_01_preview::Models::PricingList 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 @@ -66,6 +66,9 @@ def method_missing(method, *args) end class ModelClasses + def resource + Azure::Security::Mgmt::V2017_08_01_preview::Models::Resource + end def auto_provisioning_setting_list Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvisioningSettingList end @@ -81,9 +84,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 diff --git a/azure_sdk/lib/latest/modules/servicebus_profile_module.rb b/azure_sdk/lib/latest/modules/servicebus_profile_module.rb index f879eb0bf0..72030a8e4e 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 + Subscriptions = Azure::ServiceBus::Mgmt::V2017_04_01::Subscriptions Operations = Azure::ServiceBus::Mgmt::V2017_04_01::Operations + Topics = Azure::ServiceBus::Mgmt::V2017_04_01::Topics Namespaces = Azure::ServiceBus::Mgmt::V2017_04_01::Namespaces 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 + Regions = Azure::ServiceBus::Mgmt::V2017_04_01::Regions module Models - OperationDisplay = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay + EntityStatus = Azure::ServiceBus::Mgmt::V2017_04_01::Models::EntityStatus + AccessRights = Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessRights + ErrorResponse = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ErrorResponse + TrackedResource = Azure::ServiceBus::Mgmt::V2017_04_01::Models::TrackedResource 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 + CheckNameAvailability = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailability 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 + AccessKeys = Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys 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 + CorrelationFilter = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CorrelationFilter SBSubscription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscription - Rule = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Rule + RegenerateAccessKeyParameters = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters SqlRuleAction = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlRuleAction PremiumMessagingRegions = Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegions Eventhub = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub ArmDisasterRecovery = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecovery MigrationConfigProperties = Azure::ServiceBus::Mgmt::V2017_04_01::Models::MigrationConfigProperties - 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 - 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 + SBAuthorizationRule = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule FilterType = Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType - EncodingCaptureDescription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::EncodingCaptureDescription + SBTopic = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic + SBNamespace = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace + Rule = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Rule ProvisioningStateDR = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR + UnavailableReason = Azure::ServiceBus::Mgmt::V2017_04_01::Models::UnavailableReason + EncodingCaptureDescription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::EncodingCaptureDescription + KeyType = Azure::ServiceBus::Mgmt::V2017_04_01::Models::KeyType RoleDisasterRecovery = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RoleDisasterRecovery + SkuTier = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuTier + Resource = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Resource + OperationDisplay = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay + Operation = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation + OperationListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationListResult + Action = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action + CheckNameAvailabilityResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult + SkuName = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuName 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 :subscriptions, :operations, :topics, :namespaces, :disaster_recovery_configs, :migration_configs, :queues, :rules, :premium_messaging_regions_operations, :event_hubs, :regions, :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) + @subscriptions = @client_0.subscriptions @operations = @client_0.operations + @topics = @client_0.topics @namespaces = @client_0.namespaces @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 + @regions = @client_0.regions @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 entity_status + Azure::ServiceBus::Mgmt::V2017_04_01::Models::EntityStatus + end + def access_rights + Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessRights + end + def error_response + Azure::ServiceBus::Mgmt::V2017_04_01::Models::ErrorResponse + end + def tracked_resource + Azure::ServiceBus::Mgmt::V2017_04_01::Models::TrackedResource end def sbqueue_list_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueueListResult @@ -141,44 +150,23 @@ 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 + def check_name_availability + Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailability end def event_hub_list_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::EventHubListResult @@ -189,41 +177,29 @@ def sql_filter def sbsku Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSku end - 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 + def access_keys + Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys 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 def sbnamespace_update_parameters Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceUpdateParameters end - def sbauthorization_rule - Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule - end def sbqueue Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueue end - def sbtopic - Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic + def correlation_filter + Azure::ServiceBus::Mgmt::V2017_04_01::Models::CorrelationFilter end def sbsubscription Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscription end - def rule - Azure::ServiceBus::Mgmt::V2017_04_01::Models::Rule + def regenerate_access_key_parameters + Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters end def sql_rule_action Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlRuleAction @@ -240,36 +216,60 @@ def arm_disaster_recovery 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 sbauthorization_rule + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule end - def sku_tier - Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuTier + def filter_type + Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType end - def access_rights - Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessRights + def sbtopic + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic end - def key_type - Azure::ServiceBus::Mgmt::V2017_04_01::Models::KeyType + def sbnamespace + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace end - def entity_status - Azure::ServiceBus::Mgmt::V2017_04_01::Models::EntityStatus + def rule + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Rule + end + def provisioning_state_dr + Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR end def unavailable_reason Azure::ServiceBus::Mgmt::V2017_04_01::Models::UnavailableReason end - def filter_type - Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType - end def encoding_capture_description Azure::ServiceBus::Mgmt::V2017_04_01::Models::EncodingCaptureDescription end - def provisioning_state_dr - Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR + def key_type + Azure::ServiceBus::Mgmt::V2017_04_01::Models::KeyType end def role_disaster_recovery Azure::ServiceBus::Mgmt::V2017_04_01::Models::RoleDisasterRecovery end + def sku_tier + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuTier + end + def resource + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Resource + end + def operation_display + Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay + end + def operation + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation + end + def operation_list_result + Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationListResult + end + def action + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action + end + def check_name_availability_result + Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult + end + def sku_name + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuName + end 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 fbb7368c35..068b167a95 100644 --- a/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb +++ b/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb @@ -18,6 +18,146 @@ module ServiceFabric MeshGateway = Azure::ServiceFabric::V6_4_0_36::MeshGateway module Models + ClusterUpgradeRollbackStartedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeRollbackStartedEvent + ClusterUpgradeStartedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeStartedEvent + ChaosStoppedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosStoppedEvent + ImageRegistryCredential = Azure::ServiceFabric::V6_4_0_36::Models::ImageRegistryCredential + ResourceLimits = Azure::ServiceFabric::V6_4_0_36::Models::ResourceLimits + ChaosReplicaRemovalScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosReplicaRemovalScheduledEvent + ChaosStartedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosStartedEvent + ChaosCodePackageRestartScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosCodePackageRestartScheduledEvent + EnvironmentVariable = Azure::ServiceFabric::V6_4_0_36::Models::EnvironmentVariable + ChaosPartitionSecondaryMoveScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosPartitionSecondaryMoveScheduledEvent + ChaosPartitionPrimaryMoveScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosPartitionPrimaryMoveScheduledEvent + ChaosReplicaRestartScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosReplicaRestartScheduledEvent + ChaosNodeRestartScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosNodeRestartScheduledEvent + SecretResourceProperties = Azure::ServiceFabric::V6_4_0_36::Models::SecretResourceProperties + InlinedValueSecretResourceProperties = Azure::ServiceFabric::V6_4_0_36::Models::InlinedValueSecretResourceProperties + ApplicationScopedVolume = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolume + ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk + NetworkResourceProperties = Azure::ServiceFabric::V6_4_0_36::Models::NetworkResourceProperties + LocalNetworkResourceProperties = Azure::ServiceFabric::V6_4_0_36::Models::LocalNetworkResourceProperties + AzureInternalMonitoringPipelineSinkDescription = Azure::ServiceFabric::V6_4_0_36::Models::AzureInternalMonitoringPipelineSinkDescription + AddRemoveReplicaScalingMechanism = Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveReplicaScalingMechanism + AutoScalingResourceMetric = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingResourceMetric + ServiceReplicaDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServiceReplicaDescription + AverageLoadScalingTrigger = Azure::ServiceFabric::V6_4_0_36::Models::AverageLoadScalingTrigger + FabricErrorCodes = Azure::ServiceFabric::V6_4_0_36::Models::FabricErrorCodes + ApplicationDefinitionKind = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationDefinitionKind + ApplicationStatus = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationStatus + ApplicationPackageCleanupPolicy = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationPackageCleanupPolicy + ApplicationTypeDefinitionKind = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeDefinitionKind + ApplicationTypeStatus = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeStatus + UpgradeKind = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeKind + FailureAction = Azure::ServiceFabric::V6_4_0_36::Models::FailureAction + UpgradeDomainState = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainState + NodeUpgradePhase = Azure::ServiceFabric::V6_4_0_36::Models::NodeUpgradePhase + UpgradeMode = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeMode + DeactivationIntent = Azure::ServiceFabric::V6_4_0_36::Models::DeactivationIntent + DeployedApplicationStatus = Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationStatus + ReplicaStatus = Azure::ServiceFabric::V6_4_0_36::Models::ReplicaStatus + FailureReason = Azure::ServiceFabric::V6_4_0_36::Models::FailureReason + ReconfigurationPhase = Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationPhase + ReconfigurationType = Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationType + EntityKind = Azure::ServiceFabric::V6_4_0_36::Models::EntityKind + UpgradeState = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeState + HealthEvaluationKind = Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluationKind + NodeDeactivationIntent = Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationIntent + NodeDeactivationStatus = Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationStatus + FabricEventKind = Azure::ServiceFabric::V6_4_0_36::Models::FabricEventKind + ReplicaRole = Azure::ServiceFabric::V6_4_0_36::Models::ReplicaRole + ServicePartitionStatus = Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionStatus + ServiceStatus = Azure::ServiceFabric::V6_4_0_36::Models::ServiceStatus + NodeDeactivationTaskType = Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationTaskType + NodeStatus = Azure::ServiceFabric::V6_4_0_36::Models::NodeStatus + SafetyCheckKind = Azure::ServiceFabric::V6_4_0_36::Models::SafetyCheckKind + CreateFabricDump = Azure::ServiceFabric::V6_4_0_36::Models::CreateFabricDump + ProvisionApplicationTypeKind = Azure::ServiceFabric::V6_4_0_36::Models::ProvisionApplicationTypeKind + UpgradeType = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeType + ServicePartitionKind = Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionKind + ServicePlacementPolicyType = Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPolicyType + ServicePackageActivationMode = Azure::ServiceFabric::V6_4_0_36::Models::ServicePackageActivationMode + ServiceKind = Azure::ServiceFabric::V6_4_0_36::Models::ServiceKind + HostType = Azure::ServiceFabric::V6_4_0_36::Models::HostType + EntryPointStatus = Azure::ServiceFabric::V6_4_0_36::Models::EntryPointStatus + ServiceLoadMetricWeight = Azure::ServiceFabric::V6_4_0_36::Models::ServiceLoadMetricWeight + HostIsolationMode = Azure::ServiceFabric::V6_4_0_36::Models::HostIsolationMode + DeploymentStatus = Azure::ServiceFabric::V6_4_0_36::Models::DeploymentStatus + ComposeDeploymentStatus = Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentStatus + ChaosStatus = Azure::ServiceFabric::V6_4_0_36::Models::ChaosStatus + ChaosScheduleStatus = Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleStatus + ChaosEventKind = Azure::ServiceFabric::V6_4_0_36::Models::ChaosEventKind + PartitionScheme = Azure::ServiceFabric::V6_4_0_36::Models::PartitionScheme + ComposeDeploymentUpgradeState = Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentUpgradeState + ServiceCorrelationScheme = Azure::ServiceFabric::V6_4_0_36::Models::ServiceCorrelationScheme + MoveCost = Azure::ServiceFabric::V6_4_0_36::Models::MoveCost + FabricReplicaStatus = Azure::ServiceFabric::V6_4_0_36::Models::FabricReplicaStatus + ServiceOperationName = Azure::ServiceFabric::V6_4_0_36::Models::ServiceOperationName + ReplicatorOperationName = Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorOperationName + PartitionAccessStatus = Azure::ServiceFabric::V6_4_0_36::Models::PartitionAccessStatus + OperationState = Azure::ServiceFabric::V6_4_0_36::Models::OperationState + ReplicaKind = Azure::ServiceFabric::V6_4_0_36::Models::ReplicaKind + ServiceTypeRegistrationStatus = Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeRegistrationStatus + ServiceEndpointRole = Azure::ServiceFabric::V6_4_0_36::Models::ServiceEndpointRole + PropertyBatchOperationKind = Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchOperationKind + OperationType = Azure::ServiceFabric::V6_4_0_36::Models::OperationType + PackageSharingPolicyScope = Azure::ServiceFabric::V6_4_0_36::Models::PackageSharingPolicyScope + PropertyValueKind = Azure::ServiceFabric::V6_4_0_36::Models::PropertyValueKind + BackupScheduleKind = Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleKind + PropertyBatchInfoKind = Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchInfoKind + RetentionPolicyType = Azure::ServiceFabric::V6_4_0_36::Models::RetentionPolicyType + BackupStorageKind = Azure::ServiceFabric::V6_4_0_36::Models::BackupStorageKind + BackupScheduleFrequencyType = Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleFrequencyType + BackupPolicyScope = Azure::ServiceFabric::V6_4_0_36::Models::BackupPolicyScope + BackupSuspensionScope = Azure::ServiceFabric::V6_4_0_36::Models::BackupSuspensionScope + RestoreState = Azure::ServiceFabric::V6_4_0_36::Models::RestoreState + DayOfWeek = Azure::ServiceFabric::V6_4_0_36::Models::DayOfWeek + BackupState = Azure::ServiceFabric::V6_4_0_36::Models::BackupState + BackupEntityKind = Azure::ServiceFabric::V6_4_0_36::Models::BackupEntityKind + ImpactLevel = Azure::ServiceFabric::V6_4_0_36::Models::ImpactLevel + RepairImpactKind = Azure::ServiceFabric::V6_4_0_36::Models::RepairImpactKind + RepairTargetKind = Azure::ServiceFabric::V6_4_0_36::Models::RepairTargetKind + ResultStatus = Azure::ServiceFabric::V6_4_0_36::Models::ResultStatus + RepairTaskHealthCheckState = Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskHealthCheckState + ScalingTriggerKind = Azure::ServiceFabric::V6_4_0_36::Models::ScalingTriggerKind + ScalingMechanismKind = Azure::ServiceFabric::V6_4_0_36::Models::ScalingMechanismKind + ResourceStatus = Azure::ServiceFabric::V6_4_0_36::Models::ResourceStatus + SecretKind = Azure::ServiceFabric::V6_4_0_36::Models::SecretKind + VolumeProvider = Azure::ServiceFabric::V6_4_0_36::Models::VolumeProvider + SizeTypes = Azure::ServiceFabric::V6_4_0_36::Models::SizeTypes + ApplicationScopedVolumeKind = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeKind + BackupType = Azure::ServiceFabric::V6_4_0_36::Models::BackupType + HeaderMatchType = Azure::ServiceFabric::V6_4_0_36::Models::HeaderMatchType + OperatingSystemType = Azure::ServiceFabric::V6_4_0_36::Models::OperatingSystemType + DiagnosticsSinkKind = Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsSinkKind + AutoScalingMechanismKind = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMechanismKind + NetworkKind = Azure::ServiceFabric::V6_4_0_36::Models::NetworkKind + AutoScalingResourceMetricName = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingResourceMetricName + AutoScalingTriggerKind = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingTriggerKind + NodeStatusFilter = Azure::ServiceFabric::V6_4_0_36::Models::NodeStatusFilter + ReplicaHealthReportServiceKind = Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthReportServiceKind + AutoScalingMetricKind = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMetricKind + NodeTransitionType = Azure::ServiceFabric::V6_4_0_36::Models::NodeTransitionType + QuorumLossMode = Azure::ServiceFabric::V6_4_0_36::Models::QuorumLossMode + RestartPartitionMode = Azure::ServiceFabric::V6_4_0_36::Models::RestartPartitionMode + DataLossMode = Azure::ServiceFabric::V6_4_0_36::Models::DataLossMode + OperationStatus = Azure::ServiceFabric::V6_4_0_36::Models::OperationStatus + State = Azure::ServiceFabric::V6_4_0_36::Models::State + ServiceTypeHealthPolicyMapItem = Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeHealthPolicyMapItem + ApplicationMetricDescription = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationMetricDescription + ServiceCorrelationDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServiceCorrelationDescription + ServicePlacementPolicyDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPolicyDescription + ApplicationHealthPolicy = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicy + ApplicationParameter = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationParameter + ServiceLoadMetricDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServiceLoadMetricDescription + PartitionSchemeDescription = Azure::ServiceFabric::V6_4_0_36::Models::PartitionSchemeDescription + ClusterHealthPolicy = Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthPolicy + ServiceTypeHealthPolicy = Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeHealthPolicy + NamedPartitionSchemeDescription = Azure::ServiceFabric::V6_4_0_36::Models::NamedPartitionSchemeDescription + SingletonPartitionSchemeDescription = Azure::ServiceFabric::V6_4_0_36::Models::SingletonPartitionSchemeDescription + UniformInt64RangePartitionSchemeDescription = Azure::ServiceFabric::V6_4_0_36::Models::UniformInt64RangePartitionSchemeDescription + ServiceProperties = Azure::ServiceFabric::V6_4_0_36::Models::ServiceProperties + HealthState = Azure::ServiceFabric::V6_4_0_36::Models::HealthState ScalingMechanismDescription = Azure::ServiceFabric::V6_4_0_36::Models::ScalingMechanismDescription ScalingPolicyDescription = Azure::ServiceFabric::V6_4_0_36::Models::ScalingPolicyDescription FabricError = Azure::ServiceFabric::V6_4_0_36::Models::FabricError @@ -26,14 +166,12 @@ module Models LoadMetricReport = Azure::ServiceFabric::V6_4_0_36::Models::LoadMetricReport AnalysisEventMetadata = Azure::ServiceFabric::V6_4_0_36::Models::AnalysisEventMetadata PartitionLoadInformation = Azure::ServiceFabric::V6_4_0_36::Models::PartitionLoadInformation - ImageRegistryCredential = Azure::ServiceFabric::V6_4_0_36::Models::ImageRegistryCredential SecretResourceDescription = Azure::ServiceFabric::V6_4_0_36::Models::SecretResourceDescription PagedBackupInfoList = Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupInfoList HealthEvaluation = Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluation BackupInfo = Azure::ServiceFabric::V6_4_0_36::Models::BackupInfo SecretResourcePropertiesBase = Azure::ServiceFabric::V6_4_0_36::Models::SecretResourcePropertiesBase BackupPartitionDescription = Azure::ServiceFabric::V6_4_0_36::Models::BackupPartitionDescription - ServiceTypeHealthPolicyMapItem = Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeHealthPolicyMapItem RestoreProgressInfo = Azure::ServiceFabric::V6_4_0_36::Models::RestoreProgressInfo ApplicationHealthPolicyMapItem = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicyMapItem RestorePartitionDescription = Azure::ServiceFabric::V6_4_0_36::Models::RestorePartitionDescription @@ -46,7 +184,6 @@ module Models ServiceHealthStateChunkList = Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthStateChunkList RestartNodeDescription = Azure::ServiceFabric::V6_4_0_36::Models::RestartNodeDescription DeployedServicePackageHealthStateChunkList = Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthStateChunkList - EnvironmentVariable = Azure::ServiceFabric::V6_4_0_36::Models::EnvironmentVariable DeployedApplicationHealthStateChunkList = Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthStateChunkList ServiceFromTemplateDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServiceFromTemplateDescription VolumeResourceDescription = Azure::ServiceFabric::V6_4_0_36::Models::VolumeResourceDescription @@ -60,7 +197,6 @@ module Models ApplicationInfo = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationInfo PagedBackupPolicyDescriptionList = Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupPolicyDescriptionList ApplicationLoadInfo = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationLoadInfo - ServicePlacementPolicyDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPolicyDescription PagedVolumeResourceDescriptionList = Azure::ServiceFabric::V6_4_0_36::Models::PagedVolumeResourceDescriptionList BackupPolicyDescription = Azure::ServiceFabric::V6_4_0_36::Models::BackupPolicyDescription ApplicationTypeHealthPolicyMapItem = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeHealthPolicyMapItem @@ -70,7 +206,6 @@ module Models MonitoringPolicyDescription = Azure::ServiceFabric::V6_4_0_36::Models::MonitoringPolicyDescription BackupScheduleDescription = Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleDescription UpgradeDomainInfo = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainInfo - ServiceLoadMetricDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServiceLoadMetricDescription SafetyCheckWrapper = Azure::ServiceFabric::V6_4_0_36::Models::SafetyCheckWrapper ServiceTypeExtensionDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeExtensionDescription CurrentUpgradeDomainProgressInfo = Azure::ServiceFabric::V6_4_0_36::Models::CurrentUpgradeDomainProgressInfo @@ -82,19 +217,14 @@ module Models NetworkResourceDescription = Azure::ServiceFabric::V6_4_0_36::Models::NetworkResourceDescription EndpointProperties = Azure::ServiceFabric::V6_4_0_36::Models::EndpointProperties PagedNetworkResourceDescriptionList = Azure::ServiceFabric::V6_4_0_36::Models::PagedNetworkResourceDescriptionList - ResourceRequests = Azure::ServiceFabric::V6_4_0_36::Models::ResourceRequests ClusterHealthChunk = Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthChunk PropertyBatchInfo = Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchInfo - ClusterHealthPolicy = Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthPolicy - ResourceLimits = Azure::ServiceFabric::V6_4_0_36::Models::ResourceLimits ClusterHealthPolicies = Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthPolicies - ResourceRequirements = Azure::ServiceFabric::V6_4_0_36::Models::ResourceRequirements ClusterVersion = Azure::ServiceFabric::V6_4_0_36::Models::ClusterVersion DiagnosticsRef = Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsRef ContainerApiResult = Azure::ServiceFabric::V6_4_0_36::Models::ContainerApiResult ReliableCollectionsRef = Azure::ServiceFabric::V6_4_0_36::Models::ReliableCollectionsRef UploadSession = Azure::ServiceFabric::V6_4_0_36::Models::UploadSession - ContainerState = Azure::ServiceFabric::V6_4_0_36::Models::ContainerState UploadSessionInfo = Azure::ServiceFabric::V6_4_0_36::Models::UploadSessionInfo ContainerEvent = Azure::ServiceFabric::V6_4_0_36::Models::ContainerEvent RepairTaskUpdateInfo = Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskUpdateInfo @@ -164,7 +294,6 @@ module Models ChaosEventsSegment = Azure::ServiceFabric::V6_4_0_36::Models::ChaosEventsSegment HealthEvaluationWrapper = Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluationWrapper ChaosScheduleJobActiveDaysOfWeek = Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleJobActiveDaysOfWeek - ApplicationHealthPolicy = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicy TimeOfDay = Azure::ServiceFabric::V6_4_0_36::Models::TimeOfDay SecretValueProperties = Azure::ServiceFabric::V6_4_0_36::Models::SecretValueProperties TimeRange = Azure::ServiceFabric::V6_4_0_36::Models::TimeRange @@ -176,7 +305,6 @@ module Models ChaosScheduleDescription = Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleDescription DeployedApplicationHealthStateFilter = Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthStateFilter PagedSubNameInfoList = Azure::ServiceFabric::V6_4_0_36::Models::PagedSubNameInfoList - ApplicationMetricDescription = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationMetricDescription NameDescription = Azure::ServiceFabric::V6_4_0_36::Models::NameDescription EndpointRef = Azure::ServiceFabric::V6_4_0_36::Models::EndpointRef ApplicationUpgradeUpdateDescription = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeUpdateDescription @@ -205,9 +333,7 @@ module Models EntityKindHealthStateCount = Azure::ServiceFabric::V6_4_0_36::Models::EntityKindHealthStateCount DeployedServicePackageInfo = Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageInfo EntityHealthStateChunk = Azure::ServiceFabric::V6_4_0_36::Models::EntityHealthStateChunk - ServiceCorrelationDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServiceCorrelationDescription FabricCodeVersionInfo = Azure::ServiceFabric::V6_4_0_36::Models::FabricCodeVersionInfo - PartitionSchemeDescription = Azure::ServiceFabric::V6_4_0_36::Models::PartitionSchemeDescription HttpRouteMatchPath = Azure::ServiceFabric::V6_4_0_36::Models::HttpRouteMatchPath PartitionRestartProgress = Azure::ServiceFabric::V6_4_0_36::Models::PartitionRestartProgress NodeDeactivationInfo = Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationInfo @@ -227,13 +353,11 @@ module Models PagedApplicationResourceDescriptionList = Azure::ServiceFabric::V6_4_0_36::Models::PagedApplicationResourceDescriptionList RollingUpgradeUpdateDescription = Azure::ServiceFabric::V6_4_0_36::Models::RollingUpgradeUpdateDescription ReplicatorQueueStatus = Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorQueueStatus - ServiceTypeHealthPolicy = Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeHealthPolicy ReplicatorStatus = Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorStatus SecretValueResourceDescription = Azure::ServiceFabric::V6_4_0_36::Models::SecretValueResourceDescription RemoteReplicatorAcknowledgementDetail = Azure::ServiceFabric::V6_4_0_36::Models::RemoteReplicatorAcknowledgementDetail ApplicationScopedVolumeCreationParameters = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeCreationParameters RemoteReplicatorAcknowledgementStatus = Azure::ServiceFabric::V6_4_0_36::Models::RemoteReplicatorAcknowledgementStatus - ApplicationParameter = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationParameter RemoteReplicatorStatus = Azure::ServiceFabric::V6_4_0_36::Models::RemoteReplicatorStatus ApplicationTypeInfo = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeInfo ApplicationResourceDescription = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationResourceDescription @@ -248,7 +372,6 @@ module Models DeployedServiceReplicaInfo = Azure::ServiceFabric::V6_4_0_36::Models::DeployedServiceReplicaInfo DeployedServiceReplicaDetailInfo = Azure::ServiceFabric::V6_4_0_36::Models::DeployedServiceReplicaDetailInfo EntityHealth = Azure::ServiceFabric::V6_4_0_36::Models::EntityHealth - ServiceProperties = Azure::ServiceFabric::V6_4_0_36::Models::ServiceProperties ClusterConfigurationUpgradeStatusInfo = Azure::ServiceFabric::V6_4_0_36::Models::ClusterConfigurationUpgradeStatusInfo AutoScalingMetric = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMetric PagedBackupEntityList = Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupEntityList @@ -292,7 +415,6 @@ module Models RepairTaskDeleteDescription = Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskDeleteDescription NodeTransitionProgress = Azure::ServiceFabric::V6_4_0_36::Models::NodeTransitionProgress ApplicationHealthPolicies = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicies - OperationStatus = Azure::ServiceFabric::V6_4_0_36::Models::OperationStatus ApplicationEvent = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationEvent ServiceHealthState = Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthState DeployedApplicationHealthState = Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthState @@ -384,9 +506,6 @@ module Models TestErrorChaosEvent = Azure::ServiceFabric::V6_4_0_36::Models::TestErrorChaosEvent ValidationFailedChaosEvent = Azure::ServiceFabric::V6_4_0_36::Models::ValidationFailedChaosEvent WaitingChaosEvent = Azure::ServiceFabric::V6_4_0_36::Models::WaitingChaosEvent - NamedPartitionSchemeDescription = Azure::ServiceFabric::V6_4_0_36::Models::NamedPartitionSchemeDescription - SingletonPartitionSchemeDescription = Azure::ServiceFabric::V6_4_0_36::Models::SingletonPartitionSchemeDescription - UniformInt64RangePartitionSchemeDescription = Azure::ServiceFabric::V6_4_0_36::Models::UniformInt64RangePartitionSchemeDescription StatefulServiceDescription = Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceDescription StatelessServiceDescription = Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceDescription PrimaryReplicatorStatus = Azure::ServiceFabric::V6_4_0_36::Models::PrimaryReplicatorStatus @@ -465,135 +584,16 @@ module Models DeployedServicePackageHealthReportExpiredEvent = Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthReportExpiredEvent StatefulReplicaNewHealthReportEvent = Azure::ServiceFabric::V6_4_0_36::Models::StatefulReplicaNewHealthReportEvent StatefulReplicaHealthReportExpiredEvent = Azure::ServiceFabric::V6_4_0_36::Models::StatefulReplicaHealthReportExpiredEvent + ContainerState = Azure::ServiceFabric::V6_4_0_36::Models::ContainerState StatelessReplicaNewHealthReportEvent = Azure::ServiceFabric::V6_4_0_36::Models::StatelessReplicaNewHealthReportEvent StatelessReplicaHealthReportExpiredEvent = Azure::ServiceFabric::V6_4_0_36::Models::StatelessReplicaHealthReportExpiredEvent - ClusterNewHealthReportEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterNewHealthReportEvent + ResourceRequests = Azure::ServiceFabric::V6_4_0_36::Models::ResourceRequests ClusterHealthReportExpiredEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthReportExpiredEvent - ClusterUpgradeCompletedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeCompletedEvent + ResourceRequirements = Azure::ServiceFabric::V6_4_0_36::Models::ResourceRequirements ClusterUpgradeDomainCompletedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeDomainCompletedEvent + ClusterUpgradeCompletedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeCompletedEvent + ClusterNewHealthReportEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterNewHealthReportEvent ClusterUpgradeRollbackCompletedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeRollbackCompletedEvent - ClusterUpgradeRollbackStartedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeRollbackStartedEvent - ClusterUpgradeStartedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeStartedEvent - ChaosStoppedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosStoppedEvent - ChaosStartedEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosStartedEvent - ChaosCodePackageRestartScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosCodePackageRestartScheduledEvent - ChaosReplicaRemovalScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosReplicaRemovalScheduledEvent - ChaosPartitionSecondaryMoveScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosPartitionSecondaryMoveScheduledEvent - ChaosPartitionPrimaryMoveScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosPartitionPrimaryMoveScheduledEvent - ChaosReplicaRestartScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosReplicaRestartScheduledEvent - ChaosNodeRestartScheduledEvent = Azure::ServiceFabric::V6_4_0_36::Models::ChaosNodeRestartScheduledEvent - SecretResourceProperties = Azure::ServiceFabric::V6_4_0_36::Models::SecretResourceProperties - InlinedValueSecretResourceProperties = Azure::ServiceFabric::V6_4_0_36::Models::InlinedValueSecretResourceProperties - ApplicationScopedVolume = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolume - ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk - NetworkResourceProperties = Azure::ServiceFabric::V6_4_0_36::Models::NetworkResourceProperties - LocalNetworkResourceProperties = Azure::ServiceFabric::V6_4_0_36::Models::LocalNetworkResourceProperties - AzureInternalMonitoringPipelineSinkDescription = Azure::ServiceFabric::V6_4_0_36::Models::AzureInternalMonitoringPipelineSinkDescription - AddRemoveReplicaScalingMechanism = Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveReplicaScalingMechanism - AutoScalingResourceMetric = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingResourceMetric - ServiceReplicaDescription = Azure::ServiceFabric::V6_4_0_36::Models::ServiceReplicaDescription - AverageLoadScalingTrigger = Azure::ServiceFabric::V6_4_0_36::Models::AverageLoadScalingTrigger - HealthState = Azure::ServiceFabric::V6_4_0_36::Models::HealthState - FabricErrorCodes = Azure::ServiceFabric::V6_4_0_36::Models::FabricErrorCodes - ApplicationDefinitionKind = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationDefinitionKind - ApplicationStatus = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationStatus - ApplicationPackageCleanupPolicy = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationPackageCleanupPolicy - ApplicationTypeDefinitionKind = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeDefinitionKind - ApplicationTypeStatus = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeStatus - UpgradeKind = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeKind - UpgradeMode = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeMode - FailureAction = Azure::ServiceFabric::V6_4_0_36::Models::FailureAction - UpgradeDomainState = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainState - UpgradeState = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeState - NodeUpgradePhase = Azure::ServiceFabric::V6_4_0_36::Models::NodeUpgradePhase - FailureReason = Azure::ServiceFabric::V6_4_0_36::Models::FailureReason - DeactivationIntent = Azure::ServiceFabric::V6_4_0_36::Models::DeactivationIntent - DeployedApplicationStatus = Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationStatus - ReplicaStatus = Azure::ServiceFabric::V6_4_0_36::Models::ReplicaStatus - ReplicaRole = Azure::ServiceFabric::V6_4_0_36::Models::ReplicaRole - ReconfigurationPhase = Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationPhase - ReconfigurationType = Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationType - EntityKind = Azure::ServiceFabric::V6_4_0_36::Models::EntityKind - FabricEventKind = Azure::ServiceFabric::V6_4_0_36::Models::FabricEventKind - HealthEvaluationKind = Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluationKind - NodeDeactivationIntent = Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationIntent - NodeDeactivationStatus = Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationStatus - NodeDeactivationTaskType = Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationTaskType - NodeStatus = Azure::ServiceFabric::V6_4_0_36::Models::NodeStatus - ServicePartitionStatus = Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionStatus - ServiceStatus = Azure::ServiceFabric::V6_4_0_36::Models::ServiceStatus - ProvisionApplicationTypeKind = Azure::ServiceFabric::V6_4_0_36::Models::ProvisionApplicationTypeKind - UpgradeType = Azure::ServiceFabric::V6_4_0_36::Models::UpgradeType - SafetyCheckKind = Azure::ServiceFabric::V6_4_0_36::Models::SafetyCheckKind - CreateFabricDump = Azure::ServiceFabric::V6_4_0_36::Models::CreateFabricDump - ServicePackageActivationMode = Azure::ServiceFabric::V6_4_0_36::Models::ServicePackageActivationMode - ServiceKind = Azure::ServiceFabric::V6_4_0_36::Models::ServiceKind - ServicePartitionKind = Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionKind - ServicePlacementPolicyType = Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPolicyType - ServiceLoadMetricWeight = Azure::ServiceFabric::V6_4_0_36::Models::ServiceLoadMetricWeight - HostType = Azure::ServiceFabric::V6_4_0_36::Models::HostType - HostIsolationMode = Azure::ServiceFabric::V6_4_0_36::Models::HostIsolationMode - DeploymentStatus = Azure::ServiceFabric::V6_4_0_36::Models::DeploymentStatus - EntryPointStatus = Azure::ServiceFabric::V6_4_0_36::Models::EntryPointStatus - ChaosStatus = Azure::ServiceFabric::V6_4_0_36::Models::ChaosStatus - ChaosScheduleStatus = Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleStatus - ChaosEventKind = Azure::ServiceFabric::V6_4_0_36::Models::ChaosEventKind - ComposeDeploymentStatus = Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentStatus - ComposeDeploymentUpgradeState = Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentUpgradeState - ServiceCorrelationScheme = Azure::ServiceFabric::V6_4_0_36::Models::ServiceCorrelationScheme - MoveCost = Azure::ServiceFabric::V6_4_0_36::Models::MoveCost - PartitionScheme = Azure::ServiceFabric::V6_4_0_36::Models::PartitionScheme - ServiceOperationName = Azure::ServiceFabric::V6_4_0_36::Models::ServiceOperationName - ReplicatorOperationName = Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorOperationName - PartitionAccessStatus = Azure::ServiceFabric::V6_4_0_36::Models::PartitionAccessStatus - FabricReplicaStatus = Azure::ServiceFabric::V6_4_0_36::Models::FabricReplicaStatus - ReplicaKind = Azure::ServiceFabric::V6_4_0_36::Models::ReplicaKind - ServiceTypeRegistrationStatus = Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeRegistrationStatus - ServiceEndpointRole = Azure::ServiceFabric::V6_4_0_36::Models::ServiceEndpointRole - OperationState = Azure::ServiceFabric::V6_4_0_36::Models::OperationState - OperationType = Azure::ServiceFabric::V6_4_0_36::Models::OperationType - PackageSharingPolicyScope = Azure::ServiceFabric::V6_4_0_36::Models::PackageSharingPolicyScope - PropertyValueKind = Azure::ServiceFabric::V6_4_0_36::Models::PropertyValueKind - PropertyBatchOperationKind = Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchOperationKind - PropertyBatchInfoKind = Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchInfoKind - RetentionPolicyType = Azure::ServiceFabric::V6_4_0_36::Models::RetentionPolicyType - BackupStorageKind = Azure::ServiceFabric::V6_4_0_36::Models::BackupStorageKind - BackupScheduleKind = Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleKind - BackupPolicyScope = Azure::ServiceFabric::V6_4_0_36::Models::BackupPolicyScope - BackupSuspensionScope = Azure::ServiceFabric::V6_4_0_36::Models::BackupSuspensionScope - RestoreState = Azure::ServiceFabric::V6_4_0_36::Models::RestoreState - BackupType = Azure::ServiceFabric::V6_4_0_36::Models::BackupType - BackupScheduleFrequencyType = Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleFrequencyType - DayOfWeek = Azure::ServiceFabric::V6_4_0_36::Models::DayOfWeek - BackupState = Azure::ServiceFabric::V6_4_0_36::Models::BackupState - BackupEntityKind = Azure::ServiceFabric::V6_4_0_36::Models::BackupEntityKind - ImpactLevel = Azure::ServiceFabric::V6_4_0_36::Models::ImpactLevel - RepairImpactKind = Azure::ServiceFabric::V6_4_0_36::Models::RepairImpactKind - RepairTargetKind = Azure::ServiceFabric::V6_4_0_36::Models::RepairTargetKind - State = Azure::ServiceFabric::V6_4_0_36::Models::State - ResultStatus = Azure::ServiceFabric::V6_4_0_36::Models::ResultStatus - RepairTaskHealthCheckState = Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskHealthCheckState - ScalingTriggerKind = Azure::ServiceFabric::V6_4_0_36::Models::ScalingTriggerKind - ScalingMechanismKind = Azure::ServiceFabric::V6_4_0_36::Models::ScalingMechanismKind - ResourceStatus = Azure::ServiceFabric::V6_4_0_36::Models::ResourceStatus - SecretKind = Azure::ServiceFabric::V6_4_0_36::Models::SecretKind - VolumeProvider = Azure::ServiceFabric::V6_4_0_36::Models::VolumeProvider - SizeTypes = Azure::ServiceFabric::V6_4_0_36::Models::SizeTypes - ApplicationScopedVolumeKind = Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeKind - NetworkKind = Azure::ServiceFabric::V6_4_0_36::Models::NetworkKind - HeaderMatchType = Azure::ServiceFabric::V6_4_0_36::Models::HeaderMatchType - OperatingSystemType = Azure::ServiceFabric::V6_4_0_36::Models::OperatingSystemType - DiagnosticsSinkKind = Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsSinkKind - AutoScalingMechanismKind = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMechanismKind - AutoScalingMetricKind = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMetricKind - AutoScalingResourceMetricName = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingResourceMetricName - AutoScalingTriggerKind = Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingTriggerKind - NodeStatusFilter = Azure::ServiceFabric::V6_4_0_36::Models::NodeStatusFilter - ReplicaHealthReportServiceKind = Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthReportServiceKind - DataLossMode = Azure::ServiceFabric::V6_4_0_36::Models::DataLossMode - NodeTransitionType = Azure::ServiceFabric::V6_4_0_36::Models::NodeTransitionType - QuorumLossMode = Azure::ServiceFabric::V6_4_0_36::Models::QuorumLossMode - RestartPartitionMode = Azure::ServiceFabric::V6_4_0_36::Models::RestartPartitionMode end class ServiceFabricDataClass @@ -634,1755 +634,1749 @@ def method_missing(method, *args) end class ModelClasses - def scaling_mechanism_description - Azure::ServiceFabric::V6_4_0_36::Models::ScalingMechanismDescription + def cluster_upgrade_rollback_started_event + Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeRollbackStartedEvent end - def scaling_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::ScalingPolicyDescription + def cluster_upgrade_started_event + Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeStartedEvent end - def fabric_error - Azure::ServiceFabric::V6_4_0_36::Models::FabricError + def chaos_stopped_event + Azure::ServiceFabric::V6_4_0_36::Models::ChaosStoppedEvent end - def service_description - Azure::ServiceFabric::V6_4_0_36::Models::ServiceDescription + def image_registry_credential + Azure::ServiceFabric::V6_4_0_36::Models::ImageRegistryCredential end - def aad_metadata - Azure::ServiceFabric::V6_4_0_36::Models::AadMetadata + def resource_limits + Azure::ServiceFabric::V6_4_0_36::Models::ResourceLimits end - def load_metric_report - Azure::ServiceFabric::V6_4_0_36::Models::LoadMetricReport + def chaos_replica_removal_scheduled_event + Azure::ServiceFabric::V6_4_0_36::Models::ChaosReplicaRemovalScheduledEvent end - def analysis_event_metadata - Azure::ServiceFabric::V6_4_0_36::Models::AnalysisEventMetadata + def chaos_started_event + Azure::ServiceFabric::V6_4_0_36::Models::ChaosStartedEvent end - def partition_load_information - Azure::ServiceFabric::V6_4_0_36::Models::PartitionLoadInformation + def chaos_code_package_restart_scheduled_event + Azure::ServiceFabric::V6_4_0_36::Models::ChaosCodePackageRestartScheduledEvent end - def image_registry_credential - Azure::ServiceFabric::V6_4_0_36::Models::ImageRegistryCredential + def environment_variable + Azure::ServiceFabric::V6_4_0_36::Models::EnvironmentVariable end - def secret_resource_description - Azure::ServiceFabric::V6_4_0_36::Models::SecretResourceDescription + def chaos_partition_secondary_move_scheduled_event + Azure::ServiceFabric::V6_4_0_36::Models::ChaosPartitionSecondaryMoveScheduledEvent end - def paged_backup_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupInfoList + def chaos_partition_primary_move_scheduled_event + Azure::ServiceFabric::V6_4_0_36::Models::ChaosPartitionPrimaryMoveScheduledEvent end - def health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluation + def chaos_replica_restart_scheduled_event + Azure::ServiceFabric::V6_4_0_36::Models::ChaosReplicaRestartScheduledEvent end - def backup_info - Azure::ServiceFabric::V6_4_0_36::Models::BackupInfo + def chaos_node_restart_scheduled_event + Azure::ServiceFabric::V6_4_0_36::Models::ChaosNodeRestartScheduledEvent end - def secret_resource_properties_base - Azure::ServiceFabric::V6_4_0_36::Models::SecretResourcePropertiesBase + def secret_resource_properties + Azure::ServiceFabric::V6_4_0_36::Models::SecretResourceProperties end - def backup_partition_description - Azure::ServiceFabric::V6_4_0_36::Models::BackupPartitionDescription + def inlined_value_secret_resource_properties + Azure::ServiceFabric::V6_4_0_36::Models::InlinedValueSecretResourceProperties end - def service_type_health_policy_map_item - Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeHealthPolicyMapItem + def application_scoped_volume + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolume end - def restore_progress_info - Azure::ServiceFabric::V6_4_0_36::Models::RestoreProgressInfo + def application_scoped_volume_creation_parameters_service_fabric_volume_disk + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk end - def application_health_policy_map_item - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicyMapItem + def network_resource_properties + Azure::ServiceFabric::V6_4_0_36::Models::NetworkResourceProperties end - def restore_partition_description - Azure::ServiceFabric::V6_4_0_36::Models::RestorePartitionDescription + def local_network_resource_properties + Azure::ServiceFabric::V6_4_0_36::Models::LocalNetworkResourceProperties end - def secret_value - Azure::ServiceFabric::V6_4_0_36::Models::SecretValue + def azure_internal_monitoring_pipeline_sink_description + Azure::ServiceFabric::V6_4_0_36::Models::AzureInternalMonitoringPipelineSinkDescription end - def paged_backup_configuration_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupConfigurationInfoList + def add_remove_replica_scaling_mechanism + Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveReplicaScalingMechanism end - def replica_health_state_chunk_list - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthStateChunkList + def auto_scaling_resource_metric + Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingResourceMetric end - def backup_configuration_info - Azure::ServiceFabric::V6_4_0_36::Models::BackupConfigurationInfo + def service_replica_description + Azure::ServiceFabric::V6_4_0_36::Models::ServiceReplicaDescription end - def partition_health_state_chunk_list - Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthStateChunkList + def average_load_scaling_trigger + Azure::ServiceFabric::V6_4_0_36::Models::AverageLoadScalingTrigger end - def backup_suspension_info - Azure::ServiceFabric::V6_4_0_36::Models::BackupSuspensionInfo + def fabric_error_codes + Azure::ServiceFabric::V6_4_0_36::Models::FabricErrorCodes end - def service_health_state_chunk_list - Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthStateChunkList + def application_definition_kind + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationDefinitionKind end - def restart_node_description - Azure::ServiceFabric::V6_4_0_36::Models::RestartNodeDescription + def application_status + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationStatus end - def deployed_service_package_health_state_chunk_list - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthStateChunkList + def application_package_cleanup_policy + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationPackageCleanupPolicy end - def environment_variable - Azure::ServiceFabric::V6_4_0_36::Models::EnvironmentVariable + def application_type_definition_kind + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeDefinitionKind end - def deployed_application_health_state_chunk_list - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthStateChunkList + def application_type_status + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeStatus end - def service_from_template_description - Azure::ServiceFabric::V6_4_0_36::Models::ServiceFromTemplateDescription + def upgrade_kind + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeKind end - def volume_resource_description - Azure::ServiceFabric::V6_4_0_36::Models::VolumeResourceDescription + def failure_action + Azure::ServiceFabric::V6_4_0_36::Models::FailureAction end - def setting - Azure::ServiceFabric::V6_4_0_36::Models::Setting + def upgrade_domain_state + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainState end - def partition_health_state_filter - Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthStateFilter + def node_upgrade_phase + Azure::ServiceFabric::V6_4_0_36::Models::NodeUpgradePhase end - def disable_backup_description - Azure::ServiceFabric::V6_4_0_36::Models::DisableBackupDescription + def upgrade_mode + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeMode end - def deployed_service_package_health_state_filter - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthStateFilter + def deactivation_intent + Azure::ServiceFabric::V6_4_0_36::Models::DeactivationIntent end - def service_name_info - Azure::ServiceFabric::V6_4_0_36::Models::ServiceNameInfo + def deployed_application_status + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationStatus end - def application_health_state_filter - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthStateFilter + def replica_status + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaStatus end - def container_label - Azure::ServiceFabric::V6_4_0_36::Models::ContainerLabel + def failure_reason + Azure::ServiceFabric::V6_4_0_36::Models::FailureReason end - def application_info - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationInfo + def reconfiguration_phase + Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationPhase end - def paged_backup_policy_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupPolicyDescriptionList + def reconfiguration_type + Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationType end - def application_load_info - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationLoadInfo + def entity_kind + Azure::ServiceFabric::V6_4_0_36::Models::EntityKind end - def service_placement_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPolicyDescription + def upgrade_state + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeState end - def paged_volume_resource_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedVolumeResourceDescriptionList + def health_evaluation_kind + Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluationKind end - def backup_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::BackupPolicyDescription + def node_deactivation_intent + Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationIntent end - def application_type_health_policy_map_item - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeHealthPolicyMapItem + def node_deactivation_status + Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationStatus end - def retention_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::RetentionPolicyDescription + def fabric_event_kind + Azure::ServiceFabric::V6_4_0_36::Models::FabricEventKind end - def paged_application_type_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedApplicationTypeInfoList + def replica_role + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaRole end - def backup_storage_description - Azure::ServiceFabric::V6_4_0_36::Models::BackupStorageDescription + def service_partition_status + Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionStatus end - def monitoring_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::MonitoringPolicyDescription + def service_status + Azure::ServiceFabric::V6_4_0_36::Models::ServiceStatus end - def backup_schedule_description - Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleDescription + def node_deactivation_task_type + Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationTaskType end - def upgrade_domain_info - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainInfo + def node_status + Azure::ServiceFabric::V6_4_0_36::Models::NodeStatus end - def service_load_metric_description - Azure::ServiceFabric::V6_4_0_36::Models::ServiceLoadMetricDescription + def safety_check_kind + Azure::ServiceFabric::V6_4_0_36::Models::SafetyCheckKind end - def safety_check_wrapper - Azure::ServiceFabric::V6_4_0_36::Models::SafetyCheckWrapper + def create_fabric_dump + Azure::ServiceFabric::V6_4_0_36::Models::CreateFabricDump end - def service_type_extension_description - Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeExtensionDescription + def provision_application_type_kind + Azure::ServiceFabric::V6_4_0_36::Models::ProvisionApplicationTypeKind end - def current_upgrade_domain_progress_info - Azure::ServiceFabric::V6_4_0_36::Models::CurrentUpgradeDomainProgressInfo + def upgrade_type + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeType end - def service_type_description - Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeDescription + def service_partition_kind + Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionKind end - def application_upgrade_progress_info - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeProgressInfo + def service_placement_policy_type + Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPolicyType end - def service_type_info - Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeInfo + def service_package_activation_mode + Azure::ServiceFabric::V6_4_0_36::Models::ServicePackageActivationMode end - def network_ref - Azure::ServiceFabric::V6_4_0_36::Models::NetworkRef + def service_kind + Azure::ServiceFabric::V6_4_0_36::Models::ServiceKind end - def service_type_manifest - Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeManifest + def host_type + Azure::ServiceFabric::V6_4_0_36::Models::HostType end - def network_resource_description - Azure::ServiceFabric::V6_4_0_36::Models::NetworkResourceDescription + def entry_point_status + Azure::ServiceFabric::V6_4_0_36::Models::EntryPointStatus end - def endpoint_properties - Azure::ServiceFabric::V6_4_0_36::Models::EndpointProperties + def service_load_metric_weight + Azure::ServiceFabric::V6_4_0_36::Models::ServiceLoadMetricWeight end - def paged_network_resource_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedNetworkResourceDescriptionList + def host_isolation_mode + Azure::ServiceFabric::V6_4_0_36::Models::HostIsolationMode end - def resource_requests - Azure::ServiceFabric::V6_4_0_36::Models::ResourceRequests + def deployment_status + Azure::ServiceFabric::V6_4_0_36::Models::DeploymentStatus end - def cluster_health_chunk - Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthChunk + def compose_deployment_status + Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentStatus end - def property_batch_info - Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchInfo + def chaos_status + Azure::ServiceFabric::V6_4_0_36::Models::ChaosStatus end - def cluster_health_policy - Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthPolicy + def chaos_schedule_status + Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleStatus end - def resource_limits - Azure::ServiceFabric::V6_4_0_36::Models::ResourceLimits + def chaos_event_kind + Azure::ServiceFabric::V6_4_0_36::Models::ChaosEventKind end - def cluster_health_policies - Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthPolicies + def partition_scheme + Azure::ServiceFabric::V6_4_0_36::Models::PartitionScheme end - def resource_requirements - Azure::ServiceFabric::V6_4_0_36::Models::ResourceRequirements + def compose_deployment_upgrade_state + Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentUpgradeState end - def cluster_version - Azure::ServiceFabric::V6_4_0_36::Models::ClusterVersion + def service_correlation_scheme + Azure::ServiceFabric::V6_4_0_36::Models::ServiceCorrelationScheme end - def diagnostics_ref - Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsRef + def move_cost + Azure::ServiceFabric::V6_4_0_36::Models::MoveCost end - def container_api_result - Azure::ServiceFabric::V6_4_0_36::Models::ContainerApiResult + def fabric_replica_status + Azure::ServiceFabric::V6_4_0_36::Models::FabricReplicaStatus end - def reliable_collections_ref - Azure::ServiceFabric::V6_4_0_36::Models::ReliableCollectionsRef + def service_operation_name + Azure::ServiceFabric::V6_4_0_36::Models::ServiceOperationName end - def upload_session - Azure::ServiceFabric::V6_4_0_36::Models::UploadSession + def replicator_operation_name + Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorOperationName end - def container_state - Azure::ServiceFabric::V6_4_0_36::Models::ContainerState + def partition_access_status + Azure::ServiceFabric::V6_4_0_36::Models::PartitionAccessStatus end - def upload_session_info - Azure::ServiceFabric::V6_4_0_36::Models::UploadSessionInfo + def operation_state + Azure::ServiceFabric::V6_4_0_36::Models::OperationState end - def container_event - Azure::ServiceFabric::V6_4_0_36::Models::ContainerEvent + def replica_kind + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaKind end - def repair_task_update_info - Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskUpdateInfo + def service_type_registration_status + Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeRegistrationStatus end - def property_batch_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchDescriptionList + def service_endpoint_role + Azure::ServiceFabric::V6_4_0_36::Models::ServiceEndpointRole end - def deployed_application_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationInfo + def property_batch_operation_kind + Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchOperationKind end - def property_batch_operation - Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchOperation + def operation_type + Azure::ServiceFabric::V6_4_0_36::Models::OperationType end - def repair_task_cancel_description - Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskCancelDescription + def package_sharing_policy_scope + Azure::ServiceFabric::V6_4_0_36::Models::PackageSharingPolicyScope end - def property_description - Azure::ServiceFabric::V6_4_0_36::Models::PropertyDescription + def property_value_kind + Azure::ServiceFabric::V6_4_0_36::Models::PropertyValueKind end - def repair_task - Azure::ServiceFabric::V6_4_0_36::Models::RepairTask + def backup_schedule_kind + Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleKind end - def paged_property_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedPropertyInfoList + def property_batch_info_kind + Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchInfoKind end - def reconfiguration_information - Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationInformation + def retention_policy_type + Azure::ServiceFabric::V6_4_0_36::Models::RetentionPolicyType end - def property_info - Azure::ServiceFabric::V6_4_0_36::Models::PropertyInfo + def backup_storage_kind + Azure::ServiceFabric::V6_4_0_36::Models::BackupStorageKind end - def repair_target_description_base - Azure::ServiceFabric::V6_4_0_36::Models::RepairTargetDescriptionBase + def backup_schedule_frequency_type + Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleFrequencyType end - def property_metadata - Azure::ServiceFabric::V6_4_0_36::Models::PropertyMetadata + def backup_policy_scope + Azure::ServiceFabric::V6_4_0_36::Models::BackupPolicyScope end - def health_state_count - Azure::ServiceFabric::V6_4_0_36::Models::HealthStateCount + def backup_suspension_scope + Azure::ServiceFabric::V6_4_0_36::Models::BackupSuspensionScope end - def container_instance_view - Azure::ServiceFabric::V6_4_0_36::Models::ContainerInstanceView + def restore_state + Azure::ServiceFabric::V6_4_0_36::Models::RestoreState end - def health_statistics - Azure::ServiceFabric::V6_4_0_36::Models::HealthStatistics + def day_of_week + Azure::ServiceFabric::V6_4_0_36::Models::DayOfWeek end - def container_code_package_properties - Azure::ServiceFabric::V6_4_0_36::Models::ContainerCodePackageProperties + def backup_state + Azure::ServiceFabric::V6_4_0_36::Models::BackupState end - def entity_health_state - Azure::ServiceFabric::V6_4_0_36::Models::EntityHealthState + def backup_entity_kind + Azure::ServiceFabric::V6_4_0_36::Models::BackupEntityKind end - def auto_scaling_trigger - Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingTrigger + def impact_level + Azure::ServiceFabric::V6_4_0_36::Models::ImpactLevel end - def entity_health_state_chunk_list - Azure::ServiceFabric::V6_4_0_36::Models::EntityHealthStateChunkList + def repair_impact_kind + Azure::ServiceFabric::V6_4_0_36::Models::RepairImpactKind end - def epoch - Azure::ServiceFabric::V6_4_0_36::Models::Epoch + def repair_target_kind + Azure::ServiceFabric::V6_4_0_36::Models::RepairTargetKind end - def partition_data_loss_progress - Azure::ServiceFabric::V6_4_0_36::Models::PartitionDataLossProgress + def result_status + Azure::ServiceFabric::V6_4_0_36::Models::ResultStatus end - def fabric_event - Azure::ServiceFabric::V6_4_0_36::Models::FabricEvent + def repair_task_health_check_state + Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskHealthCheckState end - def auto_scaling_mechanism - Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMechanism + def scaling_trigger_kind + Azure::ServiceFabric::V6_4_0_36::Models::ScalingTriggerKind end - def fabric_config_version_info - Azure::ServiceFabric::V6_4_0_36::Models::FabricConfigVersionInfo + def scaling_mechanism_kind + Azure::ServiceFabric::V6_4_0_36::Models::ScalingMechanismKind end - def auto_scaling_policy - Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingPolicy + def resource_status + Azure::ServiceFabric::V6_4_0_36::Models::ResourceStatus end - def health_information - Azure::ServiceFabric::V6_4_0_36::Models::HealthInformation + def secret_kind + Azure::ServiceFabric::V6_4_0_36::Models::SecretKind end - def property_value - Azure::ServiceFabric::V6_4_0_36::Models::PropertyValue + def volume_provider + Azure::ServiceFabric::V6_4_0_36::Models::VolumeProvider end - def node_impact - Azure::ServiceFabric::V6_4_0_36::Models::NodeImpact + def size_types + Azure::ServiceFabric::V6_4_0_36::Models::SizeTypes end - def cluster_upgrade_description_object - Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeDescriptionObject + def application_scoped_volume_kind + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeKind end - def node_deactivation_task - Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationTask + def backup_type + Azure::ServiceFabric::V6_4_0_36::Models::BackupType end - def failed_upgrade_domain_progress_object - Azure::ServiceFabric::V6_4_0_36::Models::FailedUpgradeDomainProgressObject + def header_match_type + Azure::ServiceFabric::V6_4_0_36::Models::HeaderMatchType end - def get_backup_by_storage_query_description - Azure::ServiceFabric::V6_4_0_36::Models::GetBackupByStorageQueryDescription + def operating_system_type + Azure::ServiceFabric::V6_4_0_36::Models::OperatingSystemType end - def cluster_upgrade_progress_object - Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeProgressObject + def diagnostics_sink_kind + Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsSinkKind end - def enable_backup_description - Azure::ServiceFabric::V6_4_0_36::Models::EnableBackupDescription + def auto_scaling_mechanism_kind + Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMechanismKind end - def cluster_configuration_upgrade_description - Azure::ServiceFabric::V6_4_0_36::Models::ClusterConfigurationUpgradeDescription + def network_kind + Azure::ServiceFabric::V6_4_0_36::Models::NetworkKind end - def node_load_metric_information - Azure::ServiceFabric::V6_4_0_36::Models::NodeLoadMetricInformation + def auto_scaling_resource_metric_name + Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingResourceMetricName end - def upgrade_orchestration_service_state - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeOrchestrationServiceState + def auto_scaling_trigger_kind + Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingTriggerKind end - def http_route_match_header - Azure::ServiceFabric::V6_4_0_36::Models::HttpRouteMatchHeader + def node_status_filter + Azure::ServiceFabric::V6_4_0_36::Models::NodeStatusFilter end - def upgrade_orchestration_service_state_summary - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeOrchestrationServiceStateSummary + def replica_health_report_service_kind + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthReportServiceKind end - def paged_deployed_application_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedDeployedApplicationInfoList + def auto_scaling_metric_kind + Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMetricKind end - def application_type_image_store_path - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeImageStorePath + def node_transition_type + Azure::ServiceFabric::V6_4_0_36::Models::NodeTransitionType end - def partition_information - Azure::ServiceFabric::V6_4_0_36::Models::PartitionInformation + def quorum_loss_mode + Azure::ServiceFabric::V6_4_0_36::Models::QuorumLossMode end - def unprovision_application_type_description_info - Azure::ServiceFabric::V6_4_0_36::Models::UnprovisionApplicationTypeDescriptionInfo + def restart_partition_mode + Azure::ServiceFabric::V6_4_0_36::Models::RestartPartitionMode end - def paged_service_partition_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedServicePartitionInfoList + def data_loss_mode + Azure::ServiceFabric::V6_4_0_36::Models::DataLossMode end - def code_package_entry_point_statistics - Azure::ServiceFabric::V6_4_0_36::Models::CodePackageEntryPointStatistics + def operation_status + Azure::ServiceFabric::V6_4_0_36::Models::OperationStatus end - def paged_replica_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedReplicaInfoList + def state + Azure::ServiceFabric::V6_4_0_36::Models::State end - def code_package_entry_point - Azure::ServiceFabric::V6_4_0_36::Models::CodePackageEntryPoint + def service_type_health_policy_map_item + Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeHealthPolicyMapItem end - def paged_service_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedServiceInfoList + def application_metric_description + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationMetricDescription end - def deployed_code_package_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedCodePackageInfo + def service_correlation_description + Azure::ServiceFabric::V6_4_0_36::Models::ServiceCorrelationDescription end - def http_route_config - Azure::ServiceFabric::V6_4_0_36::Models::HttpRouteConfig + def service_placement_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPolicyDescription end - def chaos_context - Azure::ServiceFabric::V6_4_0_36::Models::ChaosContext + def application_health_policy + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicy end - def http_host_config - Azure::ServiceFabric::V6_4_0_36::Models::HttpHostConfig + def application_parameter + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationParameter end - def chaos_target_filter - Azure::ServiceFabric::V6_4_0_36::Models::ChaosTargetFilter + def service_load_metric_description + Azure::ServiceFabric::V6_4_0_36::Models::ServiceLoadMetricDescription end - def http_config - Azure::ServiceFabric::V6_4_0_36::Models::HttpConfig + def partition_scheme_description + Azure::ServiceFabric::V6_4_0_36::Models::PartitionSchemeDescription end - def chaos_parameters - Azure::ServiceFabric::V6_4_0_36::Models::ChaosParameters + def cluster_health_policy + Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthPolicy end - def provision_application_type_description_base - Azure::ServiceFabric::V6_4_0_36::Models::ProvisionApplicationTypeDescriptionBase + def service_type_health_policy + Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeHealthPolicy end - def chaos - Azure::ServiceFabric::V6_4_0_36::Models::Chaos + def named_partition_scheme_description + Azure::ServiceFabric::V6_4_0_36::Models::NamedPartitionSchemeDescription end - def paged_gateway_resource_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedGatewayResourceDescriptionList + def singleton_partition_scheme_description + Azure::ServiceFabric::V6_4_0_36::Models::SingletonPartitionSchemeDescription end - def chaos_parameters_dictionary_item - Azure::ServiceFabric::V6_4_0_36::Models::ChaosParametersDictionaryItem + def uniform_int64_range_partition_scheme_description + Azure::ServiceFabric::V6_4_0_36::Models::UniformInt64RangePartitionSchemeDescription end - def resume_cluster_upgrade_description - Azure::ServiceFabric::V6_4_0_36::Models::ResumeClusterUpgradeDescription + def service_properties + Azure::ServiceFabric::V6_4_0_36::Models::ServiceProperties end - def chaos_event - Azure::ServiceFabric::V6_4_0_36::Models::ChaosEvent + def health_state + Azure::ServiceFabric::V6_4_0_36::Models::HealthState end - def start_cluster_upgrade_description - Azure::ServiceFabric::V6_4_0_36::Models::StartClusterUpgradeDescription + def scaling_mechanism_description + Azure::ServiceFabric::V6_4_0_36::Models::ScalingMechanismDescription end - def chaos_event_wrapper - Azure::ServiceFabric::V6_4_0_36::Models::ChaosEventWrapper + def scaling_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::ScalingPolicyDescription end - def update_cluster_upgrade_description - Azure::ServiceFabric::V6_4_0_36::Models::UpdateClusterUpgradeDescription + def fabric_error + Azure::ServiceFabric::V6_4_0_36::Models::FabricError end - def chaos_events_segment - Azure::ServiceFabric::V6_4_0_36::Models::ChaosEventsSegment + def service_description + Azure::ServiceFabric::V6_4_0_36::Models::ServiceDescription end - def health_evaluation_wrapper - Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluationWrapper + def aad_metadata + Azure::ServiceFabric::V6_4_0_36::Models::AadMetadata end - def chaos_schedule_job_active_days_of_week - Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleJobActiveDaysOfWeek + def load_metric_report + Azure::ServiceFabric::V6_4_0_36::Models::LoadMetricReport end - def application_health_policy - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicy + def analysis_event_metadata + Azure::ServiceFabric::V6_4_0_36::Models::AnalysisEventMetadata end - def time_of_day - Azure::ServiceFabric::V6_4_0_36::Models::TimeOfDay + def partition_load_information + Azure::ServiceFabric::V6_4_0_36::Models::PartitionLoadInformation end - def secret_value_properties - Azure::ServiceFabric::V6_4_0_36::Models::SecretValueProperties + def secret_resource_description + Azure::ServiceFabric::V6_4_0_36::Models::SecretResourceDescription end - def time_range - Azure::ServiceFabric::V6_4_0_36::Models::TimeRange + def paged_backup_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupInfoList end - def paged_secret_value_resource_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedSecretValueResourceDescriptionList + def health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluation end - def chaos_schedule_job - Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleJob + def backup_info + Azure::ServiceFabric::V6_4_0_36::Models::BackupInfo end - def volume_reference - Azure::ServiceFabric::V6_4_0_36::Models::VolumeReference + def secret_resource_properties_base + Azure::ServiceFabric::V6_4_0_36::Models::SecretResourcePropertiesBase end - def chaos_schedule - Azure::ServiceFabric::V6_4_0_36::Models::ChaosSchedule + def backup_partition_description + Azure::ServiceFabric::V6_4_0_36::Models::BackupPartitionDescription end - def replica_health_state_filter - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthStateFilter + def restore_progress_info + Azure::ServiceFabric::V6_4_0_36::Models::RestoreProgressInfo end - def chaos_schedule_description - Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleDescription + def application_health_policy_map_item + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicyMapItem end - def deployed_application_health_state_filter - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthStateFilter + def restore_partition_description + Azure::ServiceFabric::V6_4_0_36::Models::RestorePartitionDescription end - def paged_sub_name_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedSubNameInfoList + def secret_value + Azure::ServiceFabric::V6_4_0_36::Models::SecretValue end - def application_metric_description - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationMetricDescription + def paged_backup_configuration_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupConfigurationInfoList end - def name_description - Azure::ServiceFabric::V6_4_0_36::Models::NameDescription + def replica_health_state_chunk_list + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthStateChunkList end - def endpoint_ref - Azure::ServiceFabric::V6_4_0_36::Models::EndpointRef + def backup_configuration_info + Azure::ServiceFabric::V6_4_0_36::Models::BackupConfigurationInfo end - def application_upgrade_update_description - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeUpdateDescription + def partition_health_state_chunk_list + Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthStateChunkList end - def application_type_manifest - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeManifest + def backup_suspension_info + Azure::ServiceFabric::V6_4_0_36::Models::BackupSuspensionInfo end - def resume_application_upgrade_description - Azure::ServiceFabric::V6_4_0_36::Models::ResumeApplicationUpgradeDescription + def service_health_state_chunk_list + Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthStateChunkList end - def safety_check - Azure::ServiceFabric::V6_4_0_36::Models::SafetyCheck + def restart_node_description + Azure::ServiceFabric::V6_4_0_36::Models::RestartNodeDescription end - def deploy_service_package_to_node_description - Azure::ServiceFabric::V6_4_0_36::Models::DeployServicePackageToNodeDescription + def deployed_service_package_health_state_chunk_list + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthStateChunkList end - def failure_upgrade_domain_progress_info - Azure::ServiceFabric::V6_4_0_36::Models::FailureUpgradeDomainProgressInfo + def deployed_application_health_state_chunk_list + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthStateChunkList end - def package_sharing_policy_info - Azure::ServiceFabric::V6_4_0_36::Models::PackageSharingPolicyInfo + def service_from_template_description + Azure::ServiceFabric::V6_4_0_36::Models::ServiceFromTemplateDescription end - def node_id - Azure::ServiceFabric::V6_4_0_36::Models::NodeId + def volume_resource_description + Azure::ServiceFabric::V6_4_0_36::Models::VolumeResourceDescription end - def application_capacity_description - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationCapacityDescription + def setting + Azure::ServiceFabric::V6_4_0_36::Models::Setting end - def gateway_destination - Azure::ServiceFabric::V6_4_0_36::Models::GatewayDestination + def partition_health_state_filter + Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthStateFilter end - def application_description - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationDescription + def disable_backup_description + Azure::ServiceFabric::V6_4_0_36::Models::DisableBackupDescription end - def cluster_health_chunk_query_description - Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthChunkQueryDescription + def deployed_service_package_health_state_filter + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthStateFilter end - def compose_deployment_status_info - Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentStatusInfo + def service_name_info + Azure::ServiceFabric::V6_4_0_36::Models::ServiceNameInfo end - def container_api_request_body - Azure::ServiceFabric::V6_4_0_36::Models::ContainerApiRequestBody + def application_health_state_filter + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthStateFilter end - def registry_credential - Azure::ServiceFabric::V6_4_0_36::Models::RegistryCredential + def container_label + Azure::ServiceFabric::V6_4_0_36::Models::ContainerLabel end - def deactivation_intent_description - Azure::ServiceFabric::V6_4_0_36::Models::DeactivationIntentDescription + def application_info + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationInfo end - def compose_deployment_upgrade_description - Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentUpgradeDescription + def paged_backup_policy_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupPolicyDescriptionList end - def repair_task_update_health_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskUpdateHealthPolicyDescription + def application_load_info + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationLoadInfo end - def compose_deployment_upgrade_progress_info - Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentUpgradeProgressInfo + def paged_volume_resource_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedVolumeResourceDescriptionList end - def repair_task_approve_description - Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskApproveDescription + def backup_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::BackupPolicyDescription end - def paged_compose_deployment_status_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedComposeDeploymentStatusInfoList + def application_type_health_policy_map_item + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeHealthPolicyMapItem end - def repair_task_history - Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskHistory + def retention_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::RetentionPolicyDescription end - def create_compose_deployment_description - Azure::ServiceFabric::V6_4_0_36::Models::CreateComposeDeploymentDescription + def paged_application_type_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedApplicationTypeInfoList end - def entity_kind_health_state_count - Azure::ServiceFabric::V6_4_0_36::Models::EntityKindHealthStateCount + def backup_storage_description + Azure::ServiceFabric::V6_4_0_36::Models::BackupStorageDescription end - def deployed_service_package_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageInfo + def monitoring_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::MonitoringPolicyDescription end - def entity_health_state_chunk - Azure::ServiceFabric::V6_4_0_36::Models::EntityHealthStateChunk + def backup_schedule_description + Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleDescription end - def service_correlation_description - Azure::ServiceFabric::V6_4_0_36::Models::ServiceCorrelationDescription + def upgrade_domain_info + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainInfo end - def fabric_code_version_info - Azure::ServiceFabric::V6_4_0_36::Models::FabricCodeVersionInfo + def safety_check_wrapper + Azure::ServiceFabric::V6_4_0_36::Models::SafetyCheckWrapper end - def partition_scheme_description - Azure::ServiceFabric::V6_4_0_36::Models::PartitionSchemeDescription + def service_type_extension_description + Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeExtensionDescription end - def http_route_match_path - Azure::ServiceFabric::V6_4_0_36::Models::HttpRouteMatchPath + def current_upgrade_domain_progress_info + Azure::ServiceFabric::V6_4_0_36::Models::CurrentUpgradeDomainProgressInfo end - def partition_restart_progress - Azure::ServiceFabric::V6_4_0_36::Models::PartitionRestartProgress + def service_type_description + Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeDescription end - def node_deactivation_info - Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationInfo + def application_upgrade_progress_info + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeProgressInfo end - def restart_partition_result - Azure::ServiceFabric::V6_4_0_36::Models::RestartPartitionResult + def service_type_info + Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeInfo end - def node_info - Azure::ServiceFabric::V6_4_0_36::Models::NodeInfo + def network_ref + Azure::ServiceFabric::V6_4_0_36::Models::NetworkRef end - def partition_quorum_loss_progress - Azure::ServiceFabric::V6_4_0_36::Models::PartitionQuorumLossProgress + def service_type_manifest + Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeManifest end - def paged_application_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedApplicationInfoList + def network_resource_description + Azure::ServiceFabric::V6_4_0_36::Models::NetworkResourceDescription end - def scaling_trigger_description - Azure::ServiceFabric::V6_4_0_36::Models::ScalingTriggerDescription + def endpoint_properties + Azure::ServiceFabric::V6_4_0_36::Models::EndpointProperties end - def service_partition_info - Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionInfo + def paged_network_resource_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedNetworkResourceDescriptionList end - def fabric_error_error - Azure::ServiceFabric::V6_4_0_36::Models::FabricErrorError + def cluster_health_chunk + Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthChunk end - def service_info - Azure::ServiceFabric::V6_4_0_36::Models::ServiceInfo + def property_batch_info + Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchInfo end - def container_logs - Azure::ServiceFabric::V6_4_0_36::Models::ContainerLogs + def cluster_health_policies + Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthPolicies end - def backup_entity - Azure::ServiceFabric::V6_4_0_36::Models::BackupEntity + def cluster_version + Azure::ServiceFabric::V6_4_0_36::Models::ClusterVersion end - def aad_metadata_object - Azure::ServiceFabric::V6_4_0_36::Models::AadMetadataObject + def diagnostics_ref + Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsRef end - def provision_fabric_description - Azure::ServiceFabric::V6_4_0_36::Models::ProvisionFabricDescription + def container_api_result + Azure::ServiceFabric::V6_4_0_36::Models::ContainerApiResult end - def unprovision_fabric_description - Azure::ServiceFabric::V6_4_0_36::Models::UnprovisionFabricDescription + def reliable_collections_ref + Azure::ServiceFabric::V6_4_0_36::Models::ReliableCollectionsRef end - def paged_application_resource_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedApplicationResourceDescriptionList + def upload_session + Azure::ServiceFabric::V6_4_0_36::Models::UploadSession end - def rolling_upgrade_update_description - Azure::ServiceFabric::V6_4_0_36::Models::RollingUpgradeUpdateDescription + def upload_session_info + Azure::ServiceFabric::V6_4_0_36::Models::UploadSessionInfo end - def replicator_queue_status - Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorQueueStatus + def container_event + Azure::ServiceFabric::V6_4_0_36::Models::ContainerEvent end - def service_type_health_policy - Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeHealthPolicy + def repair_task_update_info + Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskUpdateInfo end - def replicator_status - Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorStatus + def property_batch_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchDescriptionList end - def secret_value_resource_description - Azure::ServiceFabric::V6_4_0_36::Models::SecretValueResourceDescription + def deployed_application_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationInfo end - def remote_replicator_acknowledgement_detail - Azure::ServiceFabric::V6_4_0_36::Models::RemoteReplicatorAcknowledgementDetail + def property_batch_operation + Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchOperation end - def application_scoped_volume_creation_parameters - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeCreationParameters + def repair_task_cancel_description + Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskCancelDescription end - def remote_replicator_acknowledgement_status - Azure::ServiceFabric::V6_4_0_36::Models::RemoteReplicatorAcknowledgementStatus + def property_description + Azure::ServiceFabric::V6_4_0_36::Models::PropertyDescription end - def application_parameter - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationParameter + def repair_task + Azure::ServiceFabric::V6_4_0_36::Models::RepairTask end - def remote_replicator_status - Azure::ServiceFabric::V6_4_0_36::Models::RemoteReplicatorStatus + def paged_property_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedPropertyInfoList end - def application_type_info - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeInfo + def reconfiguration_information + Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationInformation end - def application_resource_description - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationResourceDescription + def property_info + Azure::ServiceFabric::V6_4_0_36::Models::PropertyInfo end - def node_upgrade_progress_info - Azure::ServiceFabric::V6_4_0_36::Models::NodeUpgradeProgressInfo + def repair_target_description_base + Azure::ServiceFabric::V6_4_0_36::Models::RepairTargetDescriptionBase end - def paged_service_replica_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedServiceReplicaDescriptionList + def property_metadata + Azure::ServiceFabric::V6_4_0_36::Models::PropertyMetadata end - def network_resource_properties_base - Azure::ServiceFabric::V6_4_0_36::Models::NetworkResourcePropertiesBase + def health_state_count + Azure::ServiceFabric::V6_4_0_36::Models::HealthStateCount end - def paged_service_resource_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedServiceResourceDescriptionList + def container_instance_view + Azure::ServiceFabric::V6_4_0_36::Models::ContainerInstanceView end - def cluster_manifest - Azure::ServiceFabric::V6_4_0_36::Models::ClusterManifest + def health_statistics + Azure::ServiceFabric::V6_4_0_36::Models::HealthStatistics end - def service_replica_properties - Azure::ServiceFabric::V6_4_0_36::Models::ServiceReplicaProperties + def container_code_package_properties + Azure::ServiceFabric::V6_4_0_36::Models::ContainerCodePackageProperties end - def upload_chunk_range - Azure::ServiceFabric::V6_4_0_36::Models::UploadChunkRange + def entity_health_state + Azure::ServiceFabric::V6_4_0_36::Models::EntityHealthState end - def load_metric_report_info - Azure::ServiceFabric::V6_4_0_36::Models::LoadMetricReportInfo + def auto_scaling_trigger + Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingTrigger end - def deployed_service_replica_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServiceReplicaInfo + def entity_health_state_chunk_list + Azure::ServiceFabric::V6_4_0_36::Models::EntityHealthStateChunkList end - def deployed_service_replica_detail_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServiceReplicaDetailInfo + def epoch + Azure::ServiceFabric::V6_4_0_36::Models::Epoch end - def entity_health - Azure::ServiceFabric::V6_4_0_36::Models::EntityHealth + def partition_data_loss_progress + Azure::ServiceFabric::V6_4_0_36::Models::PartitionDataLossProgress end - def service_properties - Azure::ServiceFabric::V6_4_0_36::Models::ServiceProperties + def fabric_event + Azure::ServiceFabric::V6_4_0_36::Models::FabricEvent end - def cluster_configuration_upgrade_status_info - Azure::ServiceFabric::V6_4_0_36::Models::ClusterConfigurationUpgradeStatusInfo + def auto_scaling_mechanism + Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMechanism end - def auto_scaling_metric - Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMetric + def fabric_config_version_info + Azure::ServiceFabric::V6_4_0_36::Models::FabricConfigVersionInfo end - def paged_backup_entity_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupEntityList + def auto_scaling_policy + Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingPolicy end - def diagnostics_description - Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsDescription + def health_information + Azure::ServiceFabric::V6_4_0_36::Models::HealthInformation end - def paged_node_info_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedNodeInfoList + def property_value + Azure::ServiceFabric::V6_4_0_36::Models::PropertyValue end - def replica_status_base - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaStatusBase + def node_impact + Azure::ServiceFabric::V6_4_0_36::Models::NodeImpact end - def http_route_match_rule - Azure::ServiceFabric::V6_4_0_36::Models::HttpRouteMatchRule + def cluster_upgrade_description_object + Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeDescriptionObject end - def service_update_description - Azure::ServiceFabric::V6_4_0_36::Models::ServiceUpdateDescription + def node_deactivation_task + Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationTask end - def gateway_resource_description - Azure::ServiceFabric::V6_4_0_36::Models::GatewayResourceDescription + def failed_upgrade_domain_progress_object + Azure::ServiceFabric::V6_4_0_36::Models::FailedUpgradeDomainProgressObject end - def diagnostics_sink_properties - Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsSinkProperties + def get_backup_by_storage_query_description + Azure::ServiceFabric::V6_4_0_36::Models::GetBackupByStorageQueryDescription end - def paged_secret_resource_description_list - Azure::ServiceFabric::V6_4_0_36::Models::PagedSecretResourceDescriptionList + def cluster_upgrade_progress_object + Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeProgressObject end - def service_resource_description - Azure::ServiceFabric::V6_4_0_36::Models::ServiceResourceDescription + def enable_backup_description + Azure::ServiceFabric::V6_4_0_36::Models::EnableBackupDescription end - def volume_provider_parameters_azure_file - Azure::ServiceFabric::V6_4_0_36::Models::VolumeProviderParametersAzureFile + def cluster_configuration_upgrade_description + Azure::ServiceFabric::V6_4_0_36::Models::ClusterConfigurationUpgradeDescription end - def file_version - Azure::ServiceFabric::V6_4_0_36::Models::FileVersion + def node_load_metric_information + Azure::ServiceFabric::V6_4_0_36::Models::NodeLoadMetricInformation end - def application_name_info - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationNameInfo + def upgrade_orchestration_service_state + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeOrchestrationServiceState end - def file_info - Azure::ServiceFabric::V6_4_0_36::Models::FileInfo + def http_route_match_header + Azure::ServiceFabric::V6_4_0_36::Models::HttpRouteMatchHeader end - def cluster_configuration - Azure::ServiceFabric::V6_4_0_36::Models::ClusterConfiguration + def upgrade_orchestration_service_state_summary + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeOrchestrationServiceStateSummary end - def folder_info - Azure::ServiceFabric::V6_4_0_36::Models::FolderInfo + def paged_deployed_application_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedDeployedApplicationInfoList end - def container_api_response - Azure::ServiceFabric::V6_4_0_36::Models::ContainerApiResponse + def application_type_image_store_path + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeImageStorePath end - def image_store_content - Azure::ServiceFabric::V6_4_0_36::Models::ImageStoreContent + def partition_information + Azure::ServiceFabric::V6_4_0_36::Models::PartitionInformation end - def repair_impact_description_base - Azure::ServiceFabric::V6_4_0_36::Models::RepairImpactDescriptionBase + def unprovision_application_type_description_info + Azure::ServiceFabric::V6_4_0_36::Models::UnprovisionApplicationTypeDescriptionInfo end - def image_store_copy_description - Azure::ServiceFabric::V6_4_0_36::Models::ImageStoreCopyDescription + def paged_service_partition_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedServicePartitionInfoList end - def node_deactivation_task_id - Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationTaskId + def code_package_entry_point_statistics + Azure::ServiceFabric::V6_4_0_36::Models::CodePackageEntryPointStatistics end - def restart_deployed_code_package_description - Azure::ServiceFabric::V6_4_0_36::Models::RestartDeployedCodePackageDescription + def paged_replica_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedReplicaInfoList end - def replica_info - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaInfo + def code_package_entry_point + Azure::ServiceFabric::V6_4_0_36::Models::CodePackageEntryPoint end - def deployed_service_type_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServiceTypeInfo + def paged_service_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedServiceInfoList end - def cluster_upgrade_health_policy_object - Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeHealthPolicyObject + def deployed_code_package_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedCodePackageInfo end - def resolved_service_endpoint - Azure::ServiceFabric::V6_4_0_36::Models::ResolvedServiceEndpoint + def http_route_config + Azure::ServiceFabric::V6_4_0_36::Models::HttpRouteConfig end - def service_health_state_filter - Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthStateFilter + def chaos_context + Azure::ServiceFabric::V6_4_0_36::Models::ChaosContext end - def resolved_service_partition - Azure::ServiceFabric::V6_4_0_36::Models::ResolvedServicePartition + def http_host_config + Azure::ServiceFabric::V6_4_0_36::Models::HttpHostConfig end - def node_health_state_filter - Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthStateFilter + def chaos_target_filter + Azure::ServiceFabric::V6_4_0_36::Models::ChaosTargetFilter end - def selected_partition - Azure::ServiceFabric::V6_4_0_36::Models::SelectedPartition + def http_config + Azure::ServiceFabric::V6_4_0_36::Models::HttpConfig end - def tcp_config - Azure::ServiceFabric::V6_4_0_36::Models::TcpConfig + def chaos_parameters + Azure::ServiceFabric::V6_4_0_36::Models::ChaosParameters end - def invoke_data_loss_result - Azure::ServiceFabric::V6_4_0_36::Models::InvokeDataLossResult + def provision_application_type_description_base + Azure::ServiceFabric::V6_4_0_36::Models::ProvisionApplicationTypeDescriptionBase end - def backup_progress_info - Azure::ServiceFabric::V6_4_0_36::Models::BackupProgressInfo + def chaos + Azure::ServiceFabric::V6_4_0_36::Models::Chaos end - def invoke_quorum_loss_result - Azure::ServiceFabric::V6_4_0_36::Models::InvokeQuorumLossResult + def paged_gateway_resource_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedGatewayResourceDescriptionList end - def application_upgrade_description - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeDescription + def chaos_parameters_dictionary_item + Azure::ServiceFabric::V6_4_0_36::Models::ChaosParametersDictionaryItem end - def node_result - Azure::ServiceFabric::V6_4_0_36::Models::NodeResult + def resume_cluster_upgrade_description + Azure::ServiceFabric::V6_4_0_36::Models::ResumeClusterUpgradeDescription end - def node_load_info - Azure::ServiceFabric::V6_4_0_36::Models::NodeLoadInfo + def chaos_event + Azure::ServiceFabric::V6_4_0_36::Models::ChaosEvent end - def node_transition_result - Azure::ServiceFabric::V6_4_0_36::Models::NodeTransitionResult + def start_cluster_upgrade_description + Azure::ServiceFabric::V6_4_0_36::Models::StartClusterUpgradeDescription end - def repair_task_delete_description - Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskDeleteDescription + def chaos_event_wrapper + Azure::ServiceFabric::V6_4_0_36::Models::ChaosEventWrapper end - def node_transition_progress - Azure::ServiceFabric::V6_4_0_36::Models::NodeTransitionProgress + def update_cluster_upgrade_description + Azure::ServiceFabric::V6_4_0_36::Models::UpdateClusterUpgradeDescription end - def application_health_policies - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicies + def chaos_events_segment + Azure::ServiceFabric::V6_4_0_36::Models::ChaosEventsSegment end - def operation_status - Azure::ServiceFabric::V6_4_0_36::Models::OperationStatus + def health_evaluation_wrapper + Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluationWrapper end - def application_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationEvent + def chaos_schedule_job_active_days_of_week + Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleJobActiveDaysOfWeek end - def service_health_state - Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthState + def time_of_day + Azure::ServiceFabric::V6_4_0_36::Models::TimeOfDay end - def deployed_application_health_state - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthState + def secret_value_properties + Azure::ServiceFabric::V6_4_0_36::Models::SecretValueProperties end - def application_health - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealth + def time_range + Azure::ServiceFabric::V6_4_0_36::Models::TimeRange end - def application_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthEvaluation + def paged_secret_value_resource_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedSecretValueResourceDescriptionList end - def application_health_state - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthState + def chaos_schedule_job + Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleJob end - def replica_health_state_chunk - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthStateChunk + def volume_reference + Azure::ServiceFabric::V6_4_0_36::Models::VolumeReference end - def partition_health_state_chunk - Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthStateChunk + def chaos_schedule + Azure::ServiceFabric::V6_4_0_36::Models::ChaosSchedule end - def service_health_state_chunk - Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthStateChunk + def replica_health_state_filter + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthStateFilter end - def deployed_service_package_health_state_chunk - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthStateChunk + def chaos_schedule_description + Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleDescription end - def deployed_application_health_state_chunk - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthStateChunk + def deployed_application_health_state_filter + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthStateFilter end - def application_health_state_chunk - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthStateChunk + def paged_sub_name_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedSubNameInfoList end - def application_health_state_chunk_list - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthStateChunkList + def name_description + Azure::ServiceFabric::V6_4_0_36::Models::NameDescription end - def applications_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationsHealthEvaluation + def endpoint_ref + Azure::ServiceFabric::V6_4_0_36::Models::EndpointRef end - def application_type_applications_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeApplicationsHealthEvaluation + def application_upgrade_update_description + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeUpdateDescription end - def cluster_event - Azure::ServiceFabric::V6_4_0_36::Models::ClusterEvent + def application_type_manifest + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeManifest end - def node_health_state - Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthState + def resume_application_upgrade_description + Azure::ServiceFabric::V6_4_0_36::Models::ResumeApplicationUpgradeDescription end - def cluster_health - Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealth + def safety_check + Azure::ServiceFabric::V6_4_0_36::Models::SafetyCheck end - def node_health_state_chunk - Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthStateChunk + def deploy_service_package_to_node_description + Azure::ServiceFabric::V6_4_0_36::Models::DeployServicePackageToNodeDescription end - def node_health_state_chunk_list - Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthStateChunkList + def failure_upgrade_domain_progress_info + Azure::ServiceFabric::V6_4_0_36::Models::FailureUpgradeDomainProgressInfo end - def container_instance_event - Azure::ServiceFabric::V6_4_0_36::Models::ContainerInstanceEvent + def package_sharing_policy_info + Azure::ServiceFabric::V6_4_0_36::Models::PackageSharingPolicyInfo end - def delta_nodes_check_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::DeltaNodesCheckHealthEvaluation + def node_id + Azure::ServiceFabric::V6_4_0_36::Models::NodeId end - def deployed_service_package_health_state - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthState + def application_capacity_description + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationCapacityDescription end - def deployed_application_health - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealth + def gateway_destination + Azure::ServiceFabric::V6_4_0_36::Models::GatewayDestination end - def deployed_application_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthEvaluation + def application_description + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationDescription end - def deployed_applications_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationsHealthEvaluation + def cluster_health_chunk_query_description + Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthChunkQueryDescription end - def deployed_service_package_health - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealth + def compose_deployment_status_info + Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentStatusInfo end - def deployed_service_package_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthEvaluation + def container_api_request_body + Azure::ServiceFabric::V6_4_0_36::Models::ContainerApiRequestBody end - def deployed_service_packages_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackagesHealthEvaluation + def registry_credential + Azure::ServiceFabric::V6_4_0_36::Models::RegistryCredential end - def deployed_stateful_service_replica_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedStatefulServiceReplicaInfo + def deactivation_intent_description + Azure::ServiceFabric::V6_4_0_36::Models::DeactivationIntentDescription end - def deployed_stateless_service_instance_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedStatelessServiceInstanceInfo + def compose_deployment_upgrade_description + Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentUpgradeDescription end - def health_event - Azure::ServiceFabric::V6_4_0_36::Models::HealthEvent + def repair_task_update_health_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskUpdateHealthPolicyDescription end - def event_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::EventHealthEvaluation + def compose_deployment_upgrade_progress_info + Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentUpgradeProgressInfo end - def int64_range_partition_information - Azure::ServiceFabric::V6_4_0_36::Models::Int64RangePartitionInformation + def repair_task_approve_description + Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskApproveDescription end - def named_partition_information - Azure::ServiceFabric::V6_4_0_36::Models::NamedPartitionInformation + def paged_compose_deployment_status_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedComposeDeploymentStatusInfoList end - def node_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeEvent + def repair_task_history + Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskHistory end - def node_health - Azure::ServiceFabric::V6_4_0_36::Models::NodeHealth + def create_compose_deployment_description + Azure::ServiceFabric::V6_4_0_36::Models::CreateComposeDeploymentDescription end - def node_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthEvaluation + def entity_kind_health_state_count + Azure::ServiceFabric::V6_4_0_36::Models::EntityKindHealthStateCount end - def nodes_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::NodesHealthEvaluation + def deployed_service_package_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageInfo end - def partition_event - Azure::ServiceFabric::V6_4_0_36::Models::PartitionEvent + def entity_health_state_chunk + Azure::ServiceFabric::V6_4_0_36::Models::EntityHealthStateChunk end - def partition_analysis_event - Azure::ServiceFabric::V6_4_0_36::Models::PartitionAnalysisEvent + def fabric_code_version_info + Azure::ServiceFabric::V6_4_0_36::Models::FabricCodeVersionInfo end - def replica_health_state - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthState + def http_route_match_path + Azure::ServiceFabric::V6_4_0_36::Models::HttpRouteMatchPath end - def partition_health - Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealth + def partition_restart_progress + Azure::ServiceFabric::V6_4_0_36::Models::PartitionRestartProgress end - def partition_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthEvaluation + def node_deactivation_info + Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationInfo end - def partition_health_state - Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthState + def restart_partition_result + Azure::ServiceFabric::V6_4_0_36::Models::RestartPartitionResult end - def provision_application_type_description - Azure::ServiceFabric::V6_4_0_36::Models::ProvisionApplicationTypeDescription + def node_info + Azure::ServiceFabric::V6_4_0_36::Models::NodeInfo end - def external_store_provision_application_type_description - Azure::ServiceFabric::V6_4_0_36::Models::ExternalStoreProvisionApplicationTypeDescription + def partition_quorum_loss_progress + Azure::ServiceFabric::V6_4_0_36::Models::PartitionQuorumLossProgress end - def partition_safety_check - Azure::ServiceFabric::V6_4_0_36::Models::PartitionSafetyCheck + def paged_application_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedApplicationInfoList end - def ensure_availability_safety_check - Azure::ServiceFabric::V6_4_0_36::Models::EnsureAvailabilitySafetyCheck + def scaling_trigger_description + Azure::ServiceFabric::V6_4_0_36::Models::ScalingTriggerDescription end - def ensure_partition_qurum_safety_check - Azure::ServiceFabric::V6_4_0_36::Models::EnsurePartitionQurumSafetyCheck + def service_partition_info + Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionInfo end - def seed_node_safety_check - Azure::ServiceFabric::V6_4_0_36::Models::SeedNodeSafetyCheck + def fabric_error_error + Azure::ServiceFabric::V6_4_0_36::Models::FabricErrorError end - def partitions_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::PartitionsHealthEvaluation + def service_info + Azure::ServiceFabric::V6_4_0_36::Models::ServiceInfo end - def replica_event - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaEvent + def container_logs + Azure::ServiceFabric::V6_4_0_36::Models::ContainerLogs end - def replica_health - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealth + def backup_entity + Azure::ServiceFabric::V6_4_0_36::Models::BackupEntity end - def replica_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthEvaluation + def aad_metadata_object + Azure::ServiceFabric::V6_4_0_36::Models::AadMetadataObject end - def replicas_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::ReplicasHealthEvaluation + def provision_fabric_description + Azure::ServiceFabric::V6_4_0_36::Models::ProvisionFabricDescription end - def service_event - Azure::ServiceFabric::V6_4_0_36::Models::ServiceEvent + def unprovision_fabric_description + Azure::ServiceFabric::V6_4_0_36::Models::UnprovisionFabricDescription end - def service_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthEvaluation + def paged_application_resource_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedApplicationResourceDescriptionList end - def service_health - Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealth + def rolling_upgrade_update_description + Azure::ServiceFabric::V6_4_0_36::Models::RollingUpgradeUpdateDescription end - def service_placement_invalid_domain_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementInvalidDomainPolicyDescription + def replicator_queue_status + Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorQueueStatus end - def service_placement_non_partially_place_service_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementNonPartiallyPlaceServicePolicyDescription + def replicator_status + Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorStatus end - def service_placement_prefer_primary_domain_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPreferPrimaryDomainPolicyDescription + def secret_value_resource_description + Azure::ServiceFabric::V6_4_0_36::Models::SecretValueResourceDescription end - def service_placement_required_domain_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementRequiredDomainPolicyDescription + def remote_replicator_acknowledgement_detail + Azure::ServiceFabric::V6_4_0_36::Models::RemoteReplicatorAcknowledgementDetail end - def service_placement_require_domain_distribution_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementRequireDomainDistributionPolicyDescription + def application_scoped_volume_creation_parameters + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeCreationParameters end - def services_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::ServicesHealthEvaluation + def remote_replicator_acknowledgement_status + Azure::ServiceFabric::V6_4_0_36::Models::RemoteReplicatorAcknowledgementStatus end - def singleton_partition_information - Azure::ServiceFabric::V6_4_0_36::Models::SingletonPartitionInformation + def remote_replicator_status + Azure::ServiceFabric::V6_4_0_36::Models::RemoteReplicatorStatus end - def stateful_service_info - Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceInfo + def application_type_info + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeInfo end - def stateful_service_partition_info - Azure::ServiceFabric::V6_4_0_36::Models::StatefulServicePartitionInfo + def application_resource_description + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationResourceDescription end - def stateful_service_replica_health - Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceReplicaHealth + def node_upgrade_progress_info + Azure::ServiceFabric::V6_4_0_36::Models::NodeUpgradeProgressInfo end - def stateful_service_replica_health_state - Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceReplicaHealthState + def paged_service_replica_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedServiceReplicaDescriptionList end - def stateful_service_type_description - Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceTypeDescription + def network_resource_properties_base + Azure::ServiceFabric::V6_4_0_36::Models::NetworkResourcePropertiesBase end - def stateless_service_info - Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceInfo + def paged_service_resource_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedServiceResourceDescriptionList end - def stateless_service_instance_health - Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceInstanceHealth + def cluster_manifest + Azure::ServiceFabric::V6_4_0_36::Models::ClusterManifest end - def stateless_service_instance_health_state - Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceInstanceHealthState + def service_replica_properties + Azure::ServiceFabric::V6_4_0_36::Models::ServiceReplicaProperties end - def stateless_service_partition_info - Azure::ServiceFabric::V6_4_0_36::Models::StatelessServicePartitionInfo + def upload_chunk_range + Azure::ServiceFabric::V6_4_0_36::Models::UploadChunkRange end - def stateless_service_type_description - Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceTypeDescription + def load_metric_report_info + Azure::ServiceFabric::V6_4_0_36::Models::LoadMetricReportInfo end - def system_application_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::SystemApplicationHealthEvaluation + def deployed_service_replica_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServiceReplicaInfo end - def upgrade_domain_delta_nodes_check_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainDeltaNodesCheckHealthEvaluation + def deployed_service_replica_detail_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServiceReplicaDetailInfo end - def upgrade_domain_nodes_health_evaluation - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainNodesHealthEvaluation + def entity_health + Azure::ServiceFabric::V6_4_0_36::Models::EntityHealth end - def wait_for_inbuild_replica_safety_check - Azure::ServiceFabric::V6_4_0_36::Models::WaitForInbuildReplicaSafetyCheck + def cluster_configuration_upgrade_status_info + Azure::ServiceFabric::V6_4_0_36::Models::ClusterConfigurationUpgradeStatusInfo end - def wait_for_primary_placement_safety_check - Azure::ServiceFabric::V6_4_0_36::Models::WaitForPrimaryPlacementSafetyCheck + def auto_scaling_metric + Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMetric end - def wait_for_primary_swap_safety_check - Azure::ServiceFabric::V6_4_0_36::Models::WaitForPrimarySwapSafetyCheck + def paged_backup_entity_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedBackupEntityList end - def wait_for_reconfiguration_safety_check - Azure::ServiceFabric::V6_4_0_36::Models::WaitForReconfigurationSafetyCheck + def diagnostics_description + Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsDescription end - def stateful_service_replica_info - Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceReplicaInfo + def paged_node_info_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedNodeInfoList end - def stateless_service_instance_info - Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceInstanceInfo + def replica_status_base + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaStatusBase end - def executing_faults_chaos_event - Azure::ServiceFabric::V6_4_0_36::Models::ExecutingFaultsChaosEvent + def http_route_match_rule + Azure::ServiceFabric::V6_4_0_36::Models::HttpRouteMatchRule end - def started_chaos_event - Azure::ServiceFabric::V6_4_0_36::Models::StartedChaosEvent + def service_update_description + Azure::ServiceFabric::V6_4_0_36::Models::ServiceUpdateDescription end - def stopped_chaos_event - Azure::ServiceFabric::V6_4_0_36::Models::StoppedChaosEvent + def gateway_resource_description + Azure::ServiceFabric::V6_4_0_36::Models::GatewayResourceDescription end - def test_error_chaos_event - Azure::ServiceFabric::V6_4_0_36::Models::TestErrorChaosEvent + def diagnostics_sink_properties + Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsSinkProperties end - def validation_failed_chaos_event - Azure::ServiceFabric::V6_4_0_36::Models::ValidationFailedChaosEvent + def paged_secret_resource_description_list + Azure::ServiceFabric::V6_4_0_36::Models::PagedSecretResourceDescriptionList end - def waiting_chaos_event - Azure::ServiceFabric::V6_4_0_36::Models::WaitingChaosEvent + def service_resource_description + Azure::ServiceFabric::V6_4_0_36::Models::ServiceResourceDescription end - def named_partition_scheme_description - Azure::ServiceFabric::V6_4_0_36::Models::NamedPartitionSchemeDescription + def volume_provider_parameters_azure_file + Azure::ServiceFabric::V6_4_0_36::Models::VolumeProviderParametersAzureFile end - def singleton_partition_scheme_description - Azure::ServiceFabric::V6_4_0_36::Models::SingletonPartitionSchemeDescription + def file_version + Azure::ServiceFabric::V6_4_0_36::Models::FileVersion end - def uniform_int64_range_partition_scheme_description - Azure::ServiceFabric::V6_4_0_36::Models::UniformInt64RangePartitionSchemeDescription + def application_name_info + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationNameInfo end - def stateful_service_description - Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceDescription + def file_info + Azure::ServiceFabric::V6_4_0_36::Models::FileInfo end - def stateless_service_description - Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceDescription + def cluster_configuration + Azure::ServiceFabric::V6_4_0_36::Models::ClusterConfiguration end - def primary_replicator_status - Azure::ServiceFabric::V6_4_0_36::Models::PrimaryReplicatorStatus + def folder_info + Azure::ServiceFabric::V6_4_0_36::Models::FolderInfo end - def secondary_replicator_status - Azure::ServiceFabric::V6_4_0_36::Models::SecondaryReplicatorStatus + def container_api_response + Azure::ServiceFabric::V6_4_0_36::Models::ContainerApiResponse end - def secondary_active_replicator_status - Azure::ServiceFabric::V6_4_0_36::Models::SecondaryActiveReplicatorStatus + def image_store_content + Azure::ServiceFabric::V6_4_0_36::Models::ImageStoreContent end - def secondary_idle_replicator_status - Azure::ServiceFabric::V6_4_0_36::Models::SecondaryIdleReplicatorStatus + def repair_impact_description_base + Azure::ServiceFabric::V6_4_0_36::Models::RepairImpactDescriptionBase end - def key_value_store_replica_status - Azure::ServiceFabric::V6_4_0_36::Models::KeyValueStoreReplicaStatus + def image_store_copy_description + Azure::ServiceFabric::V6_4_0_36::Models::ImageStoreCopyDescription end - def deployed_stateful_service_replica_detail_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedStatefulServiceReplicaDetailInfo + def node_deactivation_task_id + Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationTaskId end - def deployed_stateless_service_instance_detail_info - Azure::ServiceFabric::V6_4_0_36::Models::DeployedStatelessServiceInstanceDetailInfo + def restart_deployed_code_package_description + Azure::ServiceFabric::V6_4_0_36::Models::RestartDeployedCodePackageDescription end - def stateful_service_update_description - Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceUpdateDescription + def replica_info + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaInfo end - def stateless_service_update_description - Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceUpdateDescription + def deployed_service_type_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServiceTypeInfo end - def binary_property_value - Azure::ServiceFabric::V6_4_0_36::Models::BinaryPropertyValue + def cluster_upgrade_health_policy_object + Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeHealthPolicyObject end - def int64_property_value - Azure::ServiceFabric::V6_4_0_36::Models::Int64PropertyValue + def resolved_service_endpoint + Azure::ServiceFabric::V6_4_0_36::Models::ResolvedServiceEndpoint end - def double_property_value - Azure::ServiceFabric::V6_4_0_36::Models::DoublePropertyValue + def service_health_state_filter + Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthStateFilter end - def string_property_value - Azure::ServiceFabric::V6_4_0_36::Models::StringPropertyValue + def resolved_service_partition + Azure::ServiceFabric::V6_4_0_36::Models::ResolvedServicePartition end - def guid_property_value - Azure::ServiceFabric::V6_4_0_36::Models::GuidPropertyValue + def node_health_state_filter + Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthStateFilter end - def check_exists_property_batch_operation - Azure::ServiceFabric::V6_4_0_36::Models::CheckExistsPropertyBatchOperation + def selected_partition + Azure::ServiceFabric::V6_4_0_36::Models::SelectedPartition end - def check_sequence_property_batch_operation - Azure::ServiceFabric::V6_4_0_36::Models::CheckSequencePropertyBatchOperation + def tcp_config + Azure::ServiceFabric::V6_4_0_36::Models::TcpConfig end - def check_value_property_batch_operation - Azure::ServiceFabric::V6_4_0_36::Models::CheckValuePropertyBatchOperation + def invoke_data_loss_result + Azure::ServiceFabric::V6_4_0_36::Models::InvokeDataLossResult end - def delete_property_batch_operation - Azure::ServiceFabric::V6_4_0_36::Models::DeletePropertyBatchOperation + def backup_progress_info + Azure::ServiceFabric::V6_4_0_36::Models::BackupProgressInfo end - def get_property_batch_operation - Azure::ServiceFabric::V6_4_0_36::Models::GetPropertyBatchOperation + def invoke_quorum_loss_result + Azure::ServiceFabric::V6_4_0_36::Models::InvokeQuorumLossResult end - def put_property_batch_operation - Azure::ServiceFabric::V6_4_0_36::Models::PutPropertyBatchOperation + def application_upgrade_description + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeDescription end - def successful_property_batch_info - Azure::ServiceFabric::V6_4_0_36::Models::SuccessfulPropertyBatchInfo + def node_result + Azure::ServiceFabric::V6_4_0_36::Models::NodeResult end - def failed_property_batch_info - Azure::ServiceFabric::V6_4_0_36::Models::FailedPropertyBatchInfo + def node_load_info + Azure::ServiceFabric::V6_4_0_36::Models::NodeLoadInfo end - def basic_retention_policy_description - Azure::ServiceFabric::V6_4_0_36::Models::BasicRetentionPolicyDescription + def node_transition_result + Azure::ServiceFabric::V6_4_0_36::Models::NodeTransitionResult end - def application_backup_configuration_info - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationBackupConfigurationInfo + def repair_task_delete_description + Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskDeleteDescription end - def service_backup_configuration_info - Azure::ServiceFabric::V6_4_0_36::Models::ServiceBackupConfigurationInfo + def node_transition_progress + Azure::ServiceFabric::V6_4_0_36::Models::NodeTransitionProgress end - def azure_blob_backup_storage_description - Azure::ServiceFabric::V6_4_0_36::Models::AzureBlobBackupStorageDescription + def application_health_policies + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthPolicies end - def file_share_backup_storage_description - Azure::ServiceFabric::V6_4_0_36::Models::FileShareBackupStorageDescription + def application_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationEvent end - def frequency_based_backup_schedule_description - Azure::ServiceFabric::V6_4_0_36::Models::FrequencyBasedBackupScheduleDescription + def service_health_state + Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthState end - def time_based_backup_schedule_description - Azure::ServiceFabric::V6_4_0_36::Models::TimeBasedBackupScheduleDescription + def deployed_application_health_state + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthState end - def partition_backup_configuration_info - Azure::ServiceFabric::V6_4_0_36::Models::PartitionBackupConfigurationInfo + def application_health + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealth end - def application_backup_entity - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationBackupEntity + def application_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthEvaluation end - def service_backup_entity - Azure::ServiceFabric::V6_4_0_36::Models::ServiceBackupEntity + def application_health_state + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthState end - def partition_backup_entity - Azure::ServiceFabric::V6_4_0_36::Models::PartitionBackupEntity + def replica_health_state_chunk + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthStateChunk end - def node_repair_impact_description - Azure::ServiceFabric::V6_4_0_36::Models::NodeRepairImpactDescription + def partition_health_state_chunk + Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthStateChunk end - def node_repair_target_description - Azure::ServiceFabric::V6_4_0_36::Models::NodeRepairTargetDescription + def service_health_state_chunk + Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthStateChunk end - def average_partition_load_scaling_trigger - Azure::ServiceFabric::V6_4_0_36::Models::AveragePartitionLoadScalingTrigger + def deployed_service_package_health_state_chunk + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthStateChunk end - def average_service_load_scaling_trigger - Azure::ServiceFabric::V6_4_0_36::Models::AverageServiceLoadScalingTrigger + def deployed_application_health_state_chunk + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthStateChunk end - def partition_instance_count_scale_mechanism - Azure::ServiceFabric::V6_4_0_36::Models::PartitionInstanceCountScaleMechanism + def application_health_state_chunk + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthStateChunk end - def add_remove_incremental_named_partition_scaling_mechanism - Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveIncrementalNamedPartitionScalingMechanism + def application_health_state_chunk_list + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthStateChunkList end - def application_created_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationCreatedEvent + def applications_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationsHealthEvaluation end - def application_deleted_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationDeletedEvent + def application_type_applications_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeApplicationsHealthEvaluation end - def application_new_health_report_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationNewHealthReportEvent + def cluster_event + Azure::ServiceFabric::V6_4_0_36::Models::ClusterEvent end - def application_health_report_expired_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthReportExpiredEvent + def node_health_state + Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthState end - def application_upgrade_completed_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeCompletedEvent + def cluster_health + Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealth end - def application_upgrade_domain_completed_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeDomainCompletedEvent + def node_health_state_chunk + Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthStateChunk end - def application_upgrade_rollback_completed_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeRollbackCompletedEvent + def node_health_state_chunk_list + Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthStateChunkList end - def application_upgrade_rollback_started_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeRollbackStartedEvent + def container_instance_event + Azure::ServiceFabric::V6_4_0_36::Models::ContainerInstanceEvent end - def application_upgrade_started_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeStartedEvent + def delta_nodes_check_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::DeltaNodesCheckHealthEvaluation end - def deployed_application_new_health_report_event - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationNewHealthReportEvent + def deployed_service_package_health_state + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthState end - def deployed_application_health_report_expired_event - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthReportExpiredEvent + def deployed_application_health + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealth end - def application_process_exited_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationProcessExitedEvent + def deployed_application_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthEvaluation end - def application_container_instance_exited_event - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationContainerInstanceExitedEvent + def deployed_applications_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationsHealthEvaluation end - def node_aborted_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeAbortedEvent + def deployed_service_package_health + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealth end - def node_added_to_cluster_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeAddedToClusterEvent + def deployed_service_package_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthEvaluation end - def node_closed_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeClosedEvent + def deployed_service_packages_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackagesHealthEvaluation end - def node_deactivate_completed_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivateCompletedEvent + def deployed_stateful_service_replica_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedStatefulServiceReplicaInfo end - def node_deactivate_started_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivateStartedEvent + def deployed_stateless_service_instance_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedStatelessServiceInstanceInfo end - def node_down_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeDownEvent + def health_event + Azure::ServiceFabric::V6_4_0_36::Models::HealthEvent end - def node_new_health_report_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeNewHealthReportEvent + def event_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::EventHealthEvaluation end - def node_health_report_expired_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthReportExpiredEvent + def int64_range_partition_information + Azure::ServiceFabric::V6_4_0_36::Models::Int64RangePartitionInformation end - def node_open_succeeded_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeOpenSucceededEvent + def named_partition_information + Azure::ServiceFabric::V6_4_0_36::Models::NamedPartitionInformation end - def node_open_failed_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeOpenFailedEvent + def node_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeEvent end - def node_removed_from_cluster_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeRemovedFromClusterEvent + def node_health + Azure::ServiceFabric::V6_4_0_36::Models::NodeHealth end - def node_up_event - Azure::ServiceFabric::V6_4_0_36::Models::NodeUpEvent + def node_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthEvaluation end - def partition_new_health_report_event - Azure::ServiceFabric::V6_4_0_36::Models::PartitionNewHealthReportEvent + def nodes_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::NodesHealthEvaluation end - def partition_health_report_expired_event - Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthReportExpiredEvent + def partition_event + Azure::ServiceFabric::V6_4_0_36::Models::PartitionEvent end - def partition_reconfigured_event - Azure::ServiceFabric::V6_4_0_36::Models::PartitionReconfiguredEvent + def partition_analysis_event + Azure::ServiceFabric::V6_4_0_36::Models::PartitionAnalysisEvent end - def partition_primary_move_analysis_event - Azure::ServiceFabric::V6_4_0_36::Models::PartitionPrimaryMoveAnalysisEvent + def replica_health_state + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthState end - def service_created_event - Azure::ServiceFabric::V6_4_0_36::Models::ServiceCreatedEvent + def partition_health + Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealth end - def service_deleted_event - Azure::ServiceFabric::V6_4_0_36::Models::ServiceDeletedEvent + def partition_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthEvaluation end - def service_new_health_report_event - Azure::ServiceFabric::V6_4_0_36::Models::ServiceNewHealthReportEvent + def partition_health_state + Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthState end - def service_health_report_expired_event - Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthReportExpiredEvent + def provision_application_type_description + Azure::ServiceFabric::V6_4_0_36::Models::ProvisionApplicationTypeDescription end - def deployed_service_package_new_health_report_event - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageNewHealthReportEvent + def external_store_provision_application_type_description + Azure::ServiceFabric::V6_4_0_36::Models::ExternalStoreProvisionApplicationTypeDescription end - def deployed_service_package_health_report_expired_event - Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthReportExpiredEvent + def partition_safety_check + Azure::ServiceFabric::V6_4_0_36::Models::PartitionSafetyCheck end - def stateful_replica_new_health_report_event - Azure::ServiceFabric::V6_4_0_36::Models::StatefulReplicaNewHealthReportEvent + def ensure_availability_safety_check + Azure::ServiceFabric::V6_4_0_36::Models::EnsureAvailabilitySafetyCheck end - def stateful_replica_health_report_expired_event - Azure::ServiceFabric::V6_4_0_36::Models::StatefulReplicaHealthReportExpiredEvent + def ensure_partition_qurum_safety_check + Azure::ServiceFabric::V6_4_0_36::Models::EnsurePartitionQurumSafetyCheck end - def stateless_replica_new_health_report_event - Azure::ServiceFabric::V6_4_0_36::Models::StatelessReplicaNewHealthReportEvent + def seed_node_safety_check + Azure::ServiceFabric::V6_4_0_36::Models::SeedNodeSafetyCheck end - def stateless_replica_health_report_expired_event - Azure::ServiceFabric::V6_4_0_36::Models::StatelessReplicaHealthReportExpiredEvent + def partitions_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::PartitionsHealthEvaluation end - def cluster_new_health_report_event - Azure::ServiceFabric::V6_4_0_36::Models::ClusterNewHealthReportEvent + def replica_event + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaEvent end - def cluster_health_report_expired_event - Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthReportExpiredEvent + def replica_health + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealth end - def cluster_upgrade_completed_event - Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeCompletedEvent + def replica_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthEvaluation end - def cluster_upgrade_domain_completed_event - Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeDomainCompletedEvent + def replicas_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::ReplicasHealthEvaluation end - def cluster_upgrade_rollback_completed_event - Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeRollbackCompletedEvent + def service_event + Azure::ServiceFabric::V6_4_0_36::Models::ServiceEvent end - def cluster_upgrade_rollback_started_event - Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeRollbackStartedEvent + def service_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthEvaluation end - def cluster_upgrade_started_event - Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeStartedEvent + def service_health + Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealth end - def chaos_stopped_event - Azure::ServiceFabric::V6_4_0_36::Models::ChaosStoppedEvent + def service_placement_invalid_domain_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementInvalidDomainPolicyDescription end - def chaos_started_event - Azure::ServiceFabric::V6_4_0_36::Models::ChaosStartedEvent + def service_placement_non_partially_place_service_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementNonPartiallyPlaceServicePolicyDescription end - def chaos_code_package_restart_scheduled_event - Azure::ServiceFabric::V6_4_0_36::Models::ChaosCodePackageRestartScheduledEvent + def service_placement_prefer_primary_domain_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPreferPrimaryDomainPolicyDescription end - def chaos_replica_removal_scheduled_event - Azure::ServiceFabric::V6_4_0_36::Models::ChaosReplicaRemovalScheduledEvent + def service_placement_required_domain_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementRequiredDomainPolicyDescription end - def chaos_partition_secondary_move_scheduled_event - Azure::ServiceFabric::V6_4_0_36::Models::ChaosPartitionSecondaryMoveScheduledEvent + def service_placement_require_domain_distribution_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementRequireDomainDistributionPolicyDescription end - def chaos_partition_primary_move_scheduled_event - Azure::ServiceFabric::V6_4_0_36::Models::ChaosPartitionPrimaryMoveScheduledEvent + def services_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::ServicesHealthEvaluation end - def chaos_replica_restart_scheduled_event - Azure::ServiceFabric::V6_4_0_36::Models::ChaosReplicaRestartScheduledEvent + def singleton_partition_information + Azure::ServiceFabric::V6_4_0_36::Models::SingletonPartitionInformation end - def chaos_node_restart_scheduled_event - Azure::ServiceFabric::V6_4_0_36::Models::ChaosNodeRestartScheduledEvent + def stateful_service_info + Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceInfo end - def secret_resource_properties - Azure::ServiceFabric::V6_4_0_36::Models::SecretResourceProperties + def stateful_service_partition_info + Azure::ServiceFabric::V6_4_0_36::Models::StatefulServicePartitionInfo end - def inlined_value_secret_resource_properties - Azure::ServiceFabric::V6_4_0_36::Models::InlinedValueSecretResourceProperties + def stateful_service_replica_health + Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceReplicaHealth end - def application_scoped_volume - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolume + def stateful_service_replica_health_state + Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceReplicaHealthState end - def application_scoped_volume_creation_parameters_service_fabric_volume_disk - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk + def stateful_service_type_description + Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceTypeDescription end - def network_resource_properties - Azure::ServiceFabric::V6_4_0_36::Models::NetworkResourceProperties + def stateless_service_info + Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceInfo end - def local_network_resource_properties - Azure::ServiceFabric::V6_4_0_36::Models::LocalNetworkResourceProperties + def stateless_service_instance_health + Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceInstanceHealth end - def azure_internal_monitoring_pipeline_sink_description - Azure::ServiceFabric::V6_4_0_36::Models::AzureInternalMonitoringPipelineSinkDescription + def stateless_service_instance_health_state + Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceInstanceHealthState end - def add_remove_replica_scaling_mechanism - Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveReplicaScalingMechanism + def stateless_service_partition_info + Azure::ServiceFabric::V6_4_0_36::Models::StatelessServicePartitionInfo end - def auto_scaling_resource_metric - Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingResourceMetric + def stateless_service_type_description + Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceTypeDescription end - def service_replica_description - Azure::ServiceFabric::V6_4_0_36::Models::ServiceReplicaDescription + def system_application_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::SystemApplicationHealthEvaluation end - def average_load_scaling_trigger - Azure::ServiceFabric::V6_4_0_36::Models::AverageLoadScalingTrigger + def upgrade_domain_delta_nodes_check_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainDeltaNodesCheckHealthEvaluation end - def health_state - Azure::ServiceFabric::V6_4_0_36::Models::HealthState + def upgrade_domain_nodes_health_evaluation + Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainNodesHealthEvaluation end - def fabric_error_codes - Azure::ServiceFabric::V6_4_0_36::Models::FabricErrorCodes + def wait_for_inbuild_replica_safety_check + Azure::ServiceFabric::V6_4_0_36::Models::WaitForInbuildReplicaSafetyCheck end - def application_definition_kind - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationDefinitionKind + def wait_for_primary_placement_safety_check + Azure::ServiceFabric::V6_4_0_36::Models::WaitForPrimaryPlacementSafetyCheck end - def application_status - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationStatus + def wait_for_primary_swap_safety_check + Azure::ServiceFabric::V6_4_0_36::Models::WaitForPrimarySwapSafetyCheck end - def application_package_cleanup_policy - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationPackageCleanupPolicy + def wait_for_reconfiguration_safety_check + Azure::ServiceFabric::V6_4_0_36::Models::WaitForReconfigurationSafetyCheck end - def application_type_definition_kind - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeDefinitionKind + def stateful_service_replica_info + Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceReplicaInfo end - def application_type_status - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationTypeStatus + def stateless_service_instance_info + Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceInstanceInfo end - def upgrade_kind - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeKind + def executing_faults_chaos_event + Azure::ServiceFabric::V6_4_0_36::Models::ExecutingFaultsChaosEvent end - def upgrade_mode - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeMode + def started_chaos_event + Azure::ServiceFabric::V6_4_0_36::Models::StartedChaosEvent end - def failure_action - Azure::ServiceFabric::V6_4_0_36::Models::FailureAction + def stopped_chaos_event + Azure::ServiceFabric::V6_4_0_36::Models::StoppedChaosEvent end - def upgrade_domain_state - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeDomainState + def test_error_chaos_event + Azure::ServiceFabric::V6_4_0_36::Models::TestErrorChaosEvent end - def upgrade_state - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeState + def validation_failed_chaos_event + Azure::ServiceFabric::V6_4_0_36::Models::ValidationFailedChaosEvent end - def node_upgrade_phase - Azure::ServiceFabric::V6_4_0_36::Models::NodeUpgradePhase + def waiting_chaos_event + Azure::ServiceFabric::V6_4_0_36::Models::WaitingChaosEvent end - def failure_reason - Azure::ServiceFabric::V6_4_0_36::Models::FailureReason + def stateful_service_description + Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceDescription end - def deactivation_intent - Azure::ServiceFabric::V6_4_0_36::Models::DeactivationIntent + def stateless_service_description + Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceDescription end - def deployed_application_status - Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationStatus + def primary_replicator_status + Azure::ServiceFabric::V6_4_0_36::Models::PrimaryReplicatorStatus end - def replica_status - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaStatus + def secondary_replicator_status + Azure::ServiceFabric::V6_4_0_36::Models::SecondaryReplicatorStatus end - def replica_role - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaRole + def secondary_active_replicator_status + Azure::ServiceFabric::V6_4_0_36::Models::SecondaryActiveReplicatorStatus end - def reconfiguration_phase - Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationPhase + def secondary_idle_replicator_status + Azure::ServiceFabric::V6_4_0_36::Models::SecondaryIdleReplicatorStatus end - def reconfiguration_type - Azure::ServiceFabric::V6_4_0_36::Models::ReconfigurationType + def key_value_store_replica_status + Azure::ServiceFabric::V6_4_0_36::Models::KeyValueStoreReplicaStatus end - def entity_kind - Azure::ServiceFabric::V6_4_0_36::Models::EntityKind + def deployed_stateful_service_replica_detail_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedStatefulServiceReplicaDetailInfo end - def fabric_event_kind - Azure::ServiceFabric::V6_4_0_36::Models::FabricEventKind + def deployed_stateless_service_instance_detail_info + Azure::ServiceFabric::V6_4_0_36::Models::DeployedStatelessServiceInstanceDetailInfo end - def health_evaluation_kind - Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluationKind + def stateful_service_update_description + Azure::ServiceFabric::V6_4_0_36::Models::StatefulServiceUpdateDescription end - def node_deactivation_intent - Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationIntent + def stateless_service_update_description + Azure::ServiceFabric::V6_4_0_36::Models::StatelessServiceUpdateDescription end - def node_deactivation_status - Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationStatus + def binary_property_value + Azure::ServiceFabric::V6_4_0_36::Models::BinaryPropertyValue end - def node_deactivation_task_type - Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivationTaskType + def int64_property_value + Azure::ServiceFabric::V6_4_0_36::Models::Int64PropertyValue end - def node_status - Azure::ServiceFabric::V6_4_0_36::Models::NodeStatus + def double_property_value + Azure::ServiceFabric::V6_4_0_36::Models::DoublePropertyValue end - def service_partition_status - Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionStatus + def string_property_value + Azure::ServiceFabric::V6_4_0_36::Models::StringPropertyValue end - def service_status - Azure::ServiceFabric::V6_4_0_36::Models::ServiceStatus + def guid_property_value + Azure::ServiceFabric::V6_4_0_36::Models::GuidPropertyValue end - def provision_application_type_kind - Azure::ServiceFabric::V6_4_0_36::Models::ProvisionApplicationTypeKind + def check_exists_property_batch_operation + Azure::ServiceFabric::V6_4_0_36::Models::CheckExistsPropertyBatchOperation end - def upgrade_type - Azure::ServiceFabric::V6_4_0_36::Models::UpgradeType + def check_sequence_property_batch_operation + Azure::ServiceFabric::V6_4_0_36::Models::CheckSequencePropertyBatchOperation end - def safety_check_kind - Azure::ServiceFabric::V6_4_0_36::Models::SafetyCheckKind + def check_value_property_batch_operation + Azure::ServiceFabric::V6_4_0_36::Models::CheckValuePropertyBatchOperation end - def create_fabric_dump - Azure::ServiceFabric::V6_4_0_36::Models::CreateFabricDump + def delete_property_batch_operation + Azure::ServiceFabric::V6_4_0_36::Models::DeletePropertyBatchOperation end - def service_package_activation_mode - Azure::ServiceFabric::V6_4_0_36::Models::ServicePackageActivationMode + def get_property_batch_operation + Azure::ServiceFabric::V6_4_0_36::Models::GetPropertyBatchOperation end - def service_kind - Azure::ServiceFabric::V6_4_0_36::Models::ServiceKind + def put_property_batch_operation + Azure::ServiceFabric::V6_4_0_36::Models::PutPropertyBatchOperation end - def service_partition_kind - Azure::ServiceFabric::V6_4_0_36::Models::ServicePartitionKind + def successful_property_batch_info + Azure::ServiceFabric::V6_4_0_36::Models::SuccessfulPropertyBatchInfo end - def service_placement_policy_type - Azure::ServiceFabric::V6_4_0_36::Models::ServicePlacementPolicyType + def failed_property_batch_info + Azure::ServiceFabric::V6_4_0_36::Models::FailedPropertyBatchInfo end - def service_load_metric_weight - Azure::ServiceFabric::V6_4_0_36::Models::ServiceLoadMetricWeight + def basic_retention_policy_description + Azure::ServiceFabric::V6_4_0_36::Models::BasicRetentionPolicyDescription end - def host_type - Azure::ServiceFabric::V6_4_0_36::Models::HostType + def application_backup_configuration_info + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationBackupConfigurationInfo end - def host_isolation_mode - Azure::ServiceFabric::V6_4_0_36::Models::HostIsolationMode + def service_backup_configuration_info + Azure::ServiceFabric::V6_4_0_36::Models::ServiceBackupConfigurationInfo end - def deployment_status - Azure::ServiceFabric::V6_4_0_36::Models::DeploymentStatus + def azure_blob_backup_storage_description + Azure::ServiceFabric::V6_4_0_36::Models::AzureBlobBackupStorageDescription end - def entry_point_status - Azure::ServiceFabric::V6_4_0_36::Models::EntryPointStatus + def file_share_backup_storage_description + Azure::ServiceFabric::V6_4_0_36::Models::FileShareBackupStorageDescription end - def chaos_status - Azure::ServiceFabric::V6_4_0_36::Models::ChaosStatus + def frequency_based_backup_schedule_description + Azure::ServiceFabric::V6_4_0_36::Models::FrequencyBasedBackupScheduleDescription end - def chaos_schedule_status - Azure::ServiceFabric::V6_4_0_36::Models::ChaosScheduleStatus + def time_based_backup_schedule_description + Azure::ServiceFabric::V6_4_0_36::Models::TimeBasedBackupScheduleDescription end - def chaos_event_kind - Azure::ServiceFabric::V6_4_0_36::Models::ChaosEventKind + def partition_backup_configuration_info + Azure::ServiceFabric::V6_4_0_36::Models::PartitionBackupConfigurationInfo end - def compose_deployment_status - Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentStatus + def application_backup_entity + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationBackupEntity end - def compose_deployment_upgrade_state - Azure::ServiceFabric::V6_4_0_36::Models::ComposeDeploymentUpgradeState + def service_backup_entity + Azure::ServiceFabric::V6_4_0_36::Models::ServiceBackupEntity end - def service_correlation_scheme - Azure::ServiceFabric::V6_4_0_36::Models::ServiceCorrelationScheme + def partition_backup_entity + Azure::ServiceFabric::V6_4_0_36::Models::PartitionBackupEntity end - def move_cost - Azure::ServiceFabric::V6_4_0_36::Models::MoveCost + def node_repair_impact_description + Azure::ServiceFabric::V6_4_0_36::Models::NodeRepairImpactDescription end - def partition_scheme - Azure::ServiceFabric::V6_4_0_36::Models::PartitionScheme + def node_repair_target_description + Azure::ServiceFabric::V6_4_0_36::Models::NodeRepairTargetDescription end - def service_operation_name - Azure::ServiceFabric::V6_4_0_36::Models::ServiceOperationName + def average_partition_load_scaling_trigger + Azure::ServiceFabric::V6_4_0_36::Models::AveragePartitionLoadScalingTrigger end - def replicator_operation_name - Azure::ServiceFabric::V6_4_0_36::Models::ReplicatorOperationName + def average_service_load_scaling_trigger + Azure::ServiceFabric::V6_4_0_36::Models::AverageServiceLoadScalingTrigger end - def partition_access_status - Azure::ServiceFabric::V6_4_0_36::Models::PartitionAccessStatus + def partition_instance_count_scale_mechanism + Azure::ServiceFabric::V6_4_0_36::Models::PartitionInstanceCountScaleMechanism end - def fabric_replica_status - Azure::ServiceFabric::V6_4_0_36::Models::FabricReplicaStatus + def add_remove_incremental_named_partition_scaling_mechanism + Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveIncrementalNamedPartitionScalingMechanism end - def replica_kind - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaKind + def application_created_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationCreatedEvent end - def service_type_registration_status - Azure::ServiceFabric::V6_4_0_36::Models::ServiceTypeRegistrationStatus + def application_deleted_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationDeletedEvent end - def service_endpoint_role - Azure::ServiceFabric::V6_4_0_36::Models::ServiceEndpointRole + def application_new_health_report_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationNewHealthReportEvent end - def operation_state - Azure::ServiceFabric::V6_4_0_36::Models::OperationState + def application_health_report_expired_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationHealthReportExpiredEvent end - def operation_type - Azure::ServiceFabric::V6_4_0_36::Models::OperationType + def application_upgrade_completed_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeCompletedEvent end - def package_sharing_policy_scope - Azure::ServiceFabric::V6_4_0_36::Models::PackageSharingPolicyScope + def application_upgrade_domain_completed_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeDomainCompletedEvent end - def property_value_kind - Azure::ServiceFabric::V6_4_0_36::Models::PropertyValueKind + def application_upgrade_rollback_completed_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeRollbackCompletedEvent end - def property_batch_operation_kind - Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchOperationKind + def application_upgrade_rollback_started_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeRollbackStartedEvent end - def property_batch_info_kind - Azure::ServiceFabric::V6_4_0_36::Models::PropertyBatchInfoKind + def application_upgrade_started_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationUpgradeStartedEvent end - def retention_policy_type - Azure::ServiceFabric::V6_4_0_36::Models::RetentionPolicyType + def deployed_application_new_health_report_event + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationNewHealthReportEvent end - def backup_storage_kind - Azure::ServiceFabric::V6_4_0_36::Models::BackupStorageKind + def deployed_application_health_report_expired_event + Azure::ServiceFabric::V6_4_0_36::Models::DeployedApplicationHealthReportExpiredEvent end - def backup_schedule_kind - Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleKind + def application_process_exited_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationProcessExitedEvent end - def backup_policy_scope - Azure::ServiceFabric::V6_4_0_36::Models::BackupPolicyScope + def application_container_instance_exited_event + Azure::ServiceFabric::V6_4_0_36::Models::ApplicationContainerInstanceExitedEvent end - def backup_suspension_scope - Azure::ServiceFabric::V6_4_0_36::Models::BackupSuspensionScope + def node_aborted_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeAbortedEvent end - def restore_state - Azure::ServiceFabric::V6_4_0_36::Models::RestoreState + def node_added_to_cluster_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeAddedToClusterEvent end - def backup_type - Azure::ServiceFabric::V6_4_0_36::Models::BackupType + def node_closed_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeClosedEvent end - def backup_schedule_frequency_type - Azure::ServiceFabric::V6_4_0_36::Models::BackupScheduleFrequencyType + def node_deactivate_completed_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivateCompletedEvent end - def day_of_week - Azure::ServiceFabric::V6_4_0_36::Models::DayOfWeek + def node_deactivate_started_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeDeactivateStartedEvent end - def backup_state - Azure::ServiceFabric::V6_4_0_36::Models::BackupState + def node_down_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeDownEvent end - def backup_entity_kind - Azure::ServiceFabric::V6_4_0_36::Models::BackupEntityKind + def node_new_health_report_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeNewHealthReportEvent end - def impact_level - Azure::ServiceFabric::V6_4_0_36::Models::ImpactLevel + def node_health_report_expired_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeHealthReportExpiredEvent end - def repair_impact_kind - Azure::ServiceFabric::V6_4_0_36::Models::RepairImpactKind + def node_open_succeeded_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeOpenSucceededEvent end - def repair_target_kind - Azure::ServiceFabric::V6_4_0_36::Models::RepairTargetKind + def node_open_failed_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeOpenFailedEvent end - def state - Azure::ServiceFabric::V6_4_0_36::Models::State + def node_removed_from_cluster_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeRemovedFromClusterEvent end - def result_status - Azure::ServiceFabric::V6_4_0_36::Models::ResultStatus + def node_up_event + Azure::ServiceFabric::V6_4_0_36::Models::NodeUpEvent end - def repair_task_health_check_state - Azure::ServiceFabric::V6_4_0_36::Models::RepairTaskHealthCheckState + def partition_new_health_report_event + Azure::ServiceFabric::V6_4_0_36::Models::PartitionNewHealthReportEvent end - def scaling_trigger_kind - Azure::ServiceFabric::V6_4_0_36::Models::ScalingTriggerKind + def partition_health_report_expired_event + Azure::ServiceFabric::V6_4_0_36::Models::PartitionHealthReportExpiredEvent end - def scaling_mechanism_kind - Azure::ServiceFabric::V6_4_0_36::Models::ScalingMechanismKind + def partition_reconfigured_event + Azure::ServiceFabric::V6_4_0_36::Models::PartitionReconfiguredEvent end - def resource_status - Azure::ServiceFabric::V6_4_0_36::Models::ResourceStatus + def partition_primary_move_analysis_event + Azure::ServiceFabric::V6_4_0_36::Models::PartitionPrimaryMoveAnalysisEvent end - def secret_kind - Azure::ServiceFabric::V6_4_0_36::Models::SecretKind + def service_created_event + Azure::ServiceFabric::V6_4_0_36::Models::ServiceCreatedEvent end - def volume_provider - Azure::ServiceFabric::V6_4_0_36::Models::VolumeProvider + def service_deleted_event + Azure::ServiceFabric::V6_4_0_36::Models::ServiceDeletedEvent end - def size_types - Azure::ServiceFabric::V6_4_0_36::Models::SizeTypes + def service_new_health_report_event + Azure::ServiceFabric::V6_4_0_36::Models::ServiceNewHealthReportEvent end - def application_scoped_volume_kind - Azure::ServiceFabric::V6_4_0_36::Models::ApplicationScopedVolumeKind + def service_health_report_expired_event + Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthReportExpiredEvent end - def network_kind - Azure::ServiceFabric::V6_4_0_36::Models::NetworkKind + def deployed_service_package_new_health_report_event + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageNewHealthReportEvent end - def header_match_type - Azure::ServiceFabric::V6_4_0_36::Models::HeaderMatchType + def deployed_service_package_health_report_expired_event + Azure::ServiceFabric::V6_4_0_36::Models::DeployedServicePackageHealthReportExpiredEvent end - def operating_system_type - Azure::ServiceFabric::V6_4_0_36::Models::OperatingSystemType + def stateful_replica_new_health_report_event + Azure::ServiceFabric::V6_4_0_36::Models::StatefulReplicaNewHealthReportEvent end - def diagnostics_sink_kind - Azure::ServiceFabric::V6_4_0_36::Models::DiagnosticsSinkKind + def stateful_replica_health_report_expired_event + Azure::ServiceFabric::V6_4_0_36::Models::StatefulReplicaHealthReportExpiredEvent end - def auto_scaling_mechanism_kind - Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMechanismKind + def container_state + Azure::ServiceFabric::V6_4_0_36::Models::ContainerState end - def auto_scaling_metric_kind - Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingMetricKind + def stateless_replica_new_health_report_event + Azure::ServiceFabric::V6_4_0_36::Models::StatelessReplicaNewHealthReportEvent end - def auto_scaling_resource_metric_name - Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingResourceMetricName + def stateless_replica_health_report_expired_event + Azure::ServiceFabric::V6_4_0_36::Models::StatelessReplicaHealthReportExpiredEvent end - def auto_scaling_trigger_kind - Azure::ServiceFabric::V6_4_0_36::Models::AutoScalingTriggerKind + def resource_requests + Azure::ServiceFabric::V6_4_0_36::Models::ResourceRequests end - def node_status_filter - Azure::ServiceFabric::V6_4_0_36::Models::NodeStatusFilter + def cluster_health_report_expired_event + Azure::ServiceFabric::V6_4_0_36::Models::ClusterHealthReportExpiredEvent end - def replica_health_report_service_kind - Azure::ServiceFabric::V6_4_0_36::Models::ReplicaHealthReportServiceKind + def resource_requirements + Azure::ServiceFabric::V6_4_0_36::Models::ResourceRequirements end - def data_loss_mode - Azure::ServiceFabric::V6_4_0_36::Models::DataLossMode + def cluster_upgrade_domain_completed_event + Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeDomainCompletedEvent end - def node_transition_type - Azure::ServiceFabric::V6_4_0_36::Models::NodeTransitionType + def cluster_upgrade_completed_event + Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeCompletedEvent end - def quorum_loss_mode - Azure::ServiceFabric::V6_4_0_36::Models::QuorumLossMode + def cluster_new_health_report_event + Azure::ServiceFabric::V6_4_0_36::Models::ClusterNewHealthReportEvent end - def restart_partition_mode - Azure::ServiceFabric::V6_4_0_36::Models::RestartPartitionMode + def cluster_upgrade_rollback_completed_event + Azure::ServiceFabric::V6_4_0_36::Models::ClusterUpgradeRollbackCompletedEvent end end end module Mgmt ApplicationType = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::ApplicationType + Service = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Service 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 + Operations = Azure::ServiceFabric::Mgmt::V2018_02_01::Operations Clusters = Azure::ServiceFabric::Mgmt::V2018_02_01::Clusters ClusterVersions = Azure::ServiceFabric::Mgmt::V2018_02_01::ClusterVersions - Operations = Azure::ServiceFabric::Mgmt::V2018_02_01::Operations 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 @@ -2390,6 +2384,7 @@ module Models VersionResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::VersionResourceList ServiceResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceList NamedPartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::NamedPartitionSchemeDescription + ProxyResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource SingletonPartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SingletonPartitionSchemeDescription UniformInt64RangePartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::UniformInt64RangePartitionSchemeDescription ApplicationTypeResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResource @@ -2397,48 +2392,53 @@ module Models ApplicationResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResource ApplicationResourceUpdate = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceUpdate ServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceProperties - ServiceResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResource ServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceUpdateProperties - ServiceResourceUpdate = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceUpdate + ServiceResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResource StatelessServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceProperties - StatelessServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceUpdateProperties + ServiceResourceUpdate = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceUpdate StatefulServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceProperties + StatelessServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceUpdateProperties StatefulServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties - EndpointRangeDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::EndpointRangeDescription - 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 + 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 + ClusterUpdateParameters = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpdateParameters + ApplicationDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationDeltaHealthPolicy + ClusterCodeVersionsListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsListResult + ErrorModelError = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModelError + ClusterCodeVersionsResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsResult + ApplicationHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy + DiagnosticsStorageAccountConfig = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::DiagnosticsStorageAccountConfig 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 - 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 - 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 + EndpointRangeDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::EndpointRangeDescription + NodeTypeDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::NodeTypeDescription Resource = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Resource - 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 + OperationListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult + ProvisioningState = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState + OperationResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationResult + ClusterListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterListResult + CertificateDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::CertificateDescription ErrorModel = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModel Cluster = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Cluster - ProvisioningState = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState + ServerCertificateCommonNames = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonNames + ServiceTypeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeDeltaHealthPolicy + ServerCertificateCommonName = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonName end class ServiceFabricManagementClass - attr_reader :application_type, :version, :application, :service, :clusters, :cluster_versions, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :application_type, :service, :version, :application, :operations, :clusters, :cluster_versions, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -2449,18 +2449,18 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @application_type = @client_0.application_type + @service = @client_0.service @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) if(@client_1.respond_to?(:subscription_id)) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) + @operations = @client_1.operations @clusters = @client_1.clusters @cluster_versions = @client_1.cluster_versions - @operations = @client_1.operations @model_classes = ModelClasses.new end @@ -2481,21 +2481,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 @@ -2505,9 +2490,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 @@ -2529,6 +2511,9 @@ def service_resource_list def named_partition_scheme_description Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::NamedPartitionSchemeDescription end + def proxy_resource + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource + end def singleton_partition_scheme_description Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SingletonPartitionSchemeDescription end @@ -2550,110 +2535,119 @@ def application_resource_update def service_properties Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceProperties end - def service_resource - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResource - end def service_update_properties Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceUpdateProperties end - def service_resource_update - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceUpdate + def service_resource + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResource end def stateless_service_properties Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceProperties end - def stateless_service_update_properties - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceUpdateProperties + def service_resource_update + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceUpdate end def stateful_service_properties Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceProperties end + def stateless_service_update_properties + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceUpdateProperties + end 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 - end - def service_type_delta_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeDeltaHealthPolicy - end - def node_type_description - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::NodeTypeDescription - end - def service_type_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeHealthPolicy + def service_properties_base + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePropertiesBase end - def cluster_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterHealthPolicy + def service_type_health_policy_map_item + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicyMapItem end - def available_operation_display - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AvailableOperationDisplay + def application_metric_description + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationMetricDescription end - def cluster_upgrade_delta_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradeDeltaHealthPolicy + def service_correlation_description + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceCorrelationDescription end - def certificate_description - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::CertificateDescription + def service_placement_policy_description + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription end - def cluster_upgrade_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradePolicy + def cluster_update_parameters + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpdateParameters end - def client_certificate_thumbprint - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateThumbprint + def application_delta_health_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationDeltaHealthPolicy 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 error_model_error + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModelError 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 cluster_upgrade_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradePolicy end - def cluster_list_result - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterListResult + 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 + def endpoint_range_description + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::EndpointRangeDescription end - def client_certificate_common_name - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateCommonName + def node_type_description + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::NodeTypeDescription 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 operation_list_result + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult end - def error_model_error - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModelError + def provisioning_state + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState end - def diagnostics_storage_account_config - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::DiagnosticsStorageAccountConfig + def operation_result + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationResult + end + def cluster_list_result + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterListResult + end + def certificate_description + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::CertificateDescription end def error_model Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModel @@ -2661,8 +2655,14 @@ def error_model def cluster Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Cluster end - def provisioning_state - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState + def server_certificate_common_names + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonNames + end + def service_type_delta_health_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeDeltaHealthPolicy + end + def server_certificate_common_name + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonName 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 518225669e..12da6a777b 100644 --- a/azure_sdk/lib/latest/modules/signalr_profile_module.rb +++ b/azure_sdk/lib/latest/modules/signalr_profile_module.rb @@ -7,40 +7,40 @@ module Azure::Profiles::Latest module Signalr module Mgmt + Usages = Azure::Signalr::Mgmt::V2018_03_01_preview::Usages Operations = Azure::Signalr::Mgmt::V2018_03_01_preview::Operations SignalR = Azure::Signalr::Mgmt::V2018_03_01_preview::SignalR - Usages = Azure::Signalr::Mgmt::V2018_03_01_preview::Usages module Models - SignalRResourceList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList - OperationDisplay = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay Dimension = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Dimension - ServiceSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification + MetricSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification + SignalRResourceList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList SignalRUsageList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList - Operation = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation - Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource NameAvailabilityParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters SignalRCreateOrUpdateProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties - ResourceSku = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku SignalRKeys = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys + TrackedResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties - RegenerateKeyParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters NameAvailability = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability - SignalRUsage = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage - OperationList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList SignalRUpdateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters - MetricSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification SignalRUsageName = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName - TrackedResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource SignalRResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource SignalRCreateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateParameters + RegenerateKeyParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters + Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource SignalRSkuTier = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRSkuTier + SignalRUsage = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage + OperationDisplay = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay + Operation = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation ProvisioningState = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ProvisioningState KeyType = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::KeyType + ServiceSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification + OperationList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList + ResourceSku = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku end class SignalrManagementClass - attr_reader :operations, :signal_r, :usages, :configurable, :base_url, :options, :model_classes + attr_reader :usages, :operations, :signal_r, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -50,9 +50,9 @@ 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 @signal_r = @client_0.signal_r - @usages = @client_0.usages @model_classes = ModelClasses.new end @@ -71,81 +71,81 @@ def method_missing(method, *args) end class ModelClasses - def signal_rresource_list - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList - end - def operation_display - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay - end def dimension Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Dimension end - def service_specification - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification + def metric_specification + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification + end + def signal_rresource_list + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList end def signal_rusage_list Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageList end - def operation - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation - end - def resource - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource - end def name_availability_parameters Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters end def signal_rcreate_or_update_properties Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties end - def resource_sku - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku - end def signal_rkeys Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys end + def tracked_resource + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource + end def operation_properties Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties end - def regenerate_key_parameters - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters - end def name_availability Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability end - def signal_rusage - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage - end - def operation_list - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList - end def signal_rupdate_parameters Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters end - def metric_specification - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification - end def signal_rusage_name Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName end - def tracked_resource - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource - end def signal_rresource Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource end def signal_rcreate_parameters Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateParameters end + def regenerate_key_parameters + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters + end + def resource + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource + end def signal_rsku_tier Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRSkuTier end + def signal_rusage + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage + end + def operation_display + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay + end + def operation + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation + end def provisioning_state Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ProvisioningState end def key_type Azure::Signalr::Mgmt::V2018_03_01_preview::Models::KeyType end + def service_specification + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification + end + def operation_list + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList + end + def resource_sku + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku + 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 821f103768..8a6f7718aa 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 + ErrorType = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorType + 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 + SpellCheck = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck + ErrorResponse = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse + SpellingTokenSuggestion = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion + SpellingFlaggedToken = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingFlaggedToken + Identifiable = Azure::CognitiveServices::SpellCheck::V1_0::Models::Identifiable Mode = Azure::CognitiveServices::SpellCheck::V1_0::Models::Mode + ErrorCode = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorCode + Error = Azure::CognitiveServices::SpellCheck::V1_0::Models::Error + Response = Azure::CognitiveServices::SpellCheck::V1_0::Models::Response 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 error_type + Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorType + end + 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 + def answer + Azure::CognitiveServices::SpellCheck::V1_0::Models::Answer end - def error - Azure::CognitiveServices::SpellCheck::V1_0::Models::Error + def error_sub_code + Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorSubCode end def spell_check Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck end - def identifiable - Azure::CognitiveServices::SpellCheck::V1_0::Models::Identifiable + def error_response + Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse end - def response - Azure::CognitiveServices::SpellCheck::V1_0::Models::Response + def spelling_token_suggestion + Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion end - def answer - Azure::CognitiveServices::SpellCheck::V1_0::Models::Answer + def spelling_flagged_token + Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingFlaggedToken end - def error_response - Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse + def identifiable + Azure::CognitiveServices::SpellCheck::V1_0::Models::Identifiable end - def error_type - Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorType + def mode + Azure::CognitiveServices::SpellCheck::V1_0::Models::Mode end def error_code Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorCode end - def error_sub_code - Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorSubCode - end - def action_type - Azure::CognitiveServices::SpellCheck::V1_0::Models::ActionType + def error + Azure::CognitiveServices::SpellCheck::V1_0::Models::Error end - def mode - Azure::CognitiveServices::SpellCheck::V1_0::Models::Mode + def response + Azure::CognitiveServices::SpellCheck::V1_0::Models::Response 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..86ae2e2202 100644 --- a/azure_sdk/lib/latest/modules/sql_profile_module.rb +++ b/azure_sdk/lib/latest/modules/sql_profile_module.rb @@ -7,6 +7,16 @@ module Azure::Profiles::Latest module SQL module Mgmt + ElasticPoolActivities = Azure::SQL::Mgmt::V2014_04_01::ElasticPoolActivities + ElasticPoolDatabaseActivities = Azure::SQL::Mgmt::V2014_04_01::ElasticPoolDatabaseActivities + ServiceTierAdvisors = Azure::SQL::Mgmt::V2014_04_01::ServiceTierAdvisors + TransparentDataEncryptions = Azure::SQL::Mgmt::V2014_04_01::TransparentDataEncryptions + TransparentDataEncryptionActivities = Azure::SQL::Mgmt::V2014_04_01::TransparentDataEncryptionActivities + DatabaseTableAuditingPolicies = Azure::SQL::Mgmt::V2014_04_01::DatabaseTableAuditingPolicies + ServerTableAuditingPolicies = Azure::SQL::Mgmt::V2014_04_01::ServerTableAuditingPolicies + ServerUsages = Azure::SQL::Mgmt::V2014_04_01::ServerUsages + DatabaseConnectionPolicies = Azure::SQL::Mgmt::V2014_04_01::DatabaseConnectionPolicies + DatabaseUsages = Azure::SQL::Mgmt::V2014_04_01::DatabaseUsages BackupLongTermRetentionVaults = Azure::SQL::Mgmt::V2014_04_01::BackupLongTermRetentionVaults RecoverableDatabases = Azure::SQL::Mgmt::V2014_04_01::RecoverableDatabases RestorableDroppedDatabases = Azure::SQL::Mgmt::V2014_04_01::RestorableDroppedDatabases @@ -26,27 +36,17 @@ module Mgmt ServerAzureADAdministrators = Azure::SQL::Mgmt::V2014_04_01::ServerAzureADAdministrators ServerCommunicationLinks = Azure::SQL::Mgmt::V2014_04_01::ServerCommunicationLinks ServiceObjectives = Azure::SQL::Mgmt::V2014_04_01::ServiceObjectives - ElasticPoolActivities = Azure::SQL::Mgmt::V2014_04_01::ElasticPoolActivities - ElasticPoolDatabaseActivities = Azure::SQL::Mgmt::V2014_04_01::ElasticPoolDatabaseActivities - ServiceTierAdvisors = Azure::SQL::Mgmt::V2014_04_01::ServiceTierAdvisors - TransparentDataEncryptions = Azure::SQL::Mgmt::V2014_04_01::TransparentDataEncryptions - TransparentDataEncryptionActivities = Azure::SQL::Mgmt::V2014_04_01::TransparentDataEncryptionActivities - ServerTableAuditingPolicies = Azure::SQL::Mgmt::V2014_04_01::ServerTableAuditingPolicies - DatabaseTableAuditingPolicies = Azure::SQL::Mgmt::V2014_04_01::DatabaseTableAuditingPolicies - DatabaseConnectionPolicies = Azure::SQL::Mgmt::V2014_04_01::DatabaseConnectionPolicies - ServerUsages = Azure::SQL::Mgmt::V2014_04_01::ServerUsages - DatabaseUsages = Azure::SQL::Mgmt::V2014_04_01::DatabaseUsages + 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 + Servers = Azure::SQL::Mgmt::V2015_05_01_preview::Servers + FirewallRules = Azure::SQL::Mgmt::V2015_05_01_preview::FirewallRules 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 - 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 @@ -62,33 +62,53 @@ module Mgmt 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 ServerAutomaticTuningOperations = Azure::SQL::Mgmt::V2017_03_01_preview::ServerAutomaticTuningOperations ServerDnsAliases = Azure::SQL::Mgmt::V2017_03_01_preview::ServerDnsAliases ServerSecurityAlertPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::ServerSecurityAlertPolicies + BackupLongTermRetentionPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::BackupLongTermRetentionPolicies + RestorePoints = Azure::SQL::Mgmt::V2017_03_01_preview::RestorePoints + Jobs = Azure::SQL::Mgmt::V2017_03_01_preview::Jobs + Databases = Azure::SQL::Mgmt::V2017_10_01_preview::Databases DatabaseOperations = Azure::SQL::Mgmt::V2017_10_01_preview::DatabaseOperations + ElasticPools = Azure::SQL::Mgmt::V2017_10_01_preview::ElasticPools + Capabilities = Azure::SQL::Mgmt::V2017_10_01_preview::Capabilities 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 TdeCertificates = Azure::SQL::Mgmt::V2017_10_01_preview::TdeCertificates ManagedInstanceTdeCertificates = Azure::SQL::Mgmt::V2017_10_01_preview::ManagedInstanceTdeCertificates module Models - MetricValue = Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue + 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 + ElasticPoolEdition = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolEdition + GeoBackupPolicyState = Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicyState + StorageKeyType = Azure::SQL::Mgmt::V2014_04_01::Models::StorageKeyType + AuthenticationType = Azure::SQL::Mgmt::V2014_04_01::Models::AuthenticationType + UnitDefinitionType = Azure::SQL::Mgmt::V2014_04_01::Models::UnitDefinitionType + 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 + PrimaryAggregationType = Azure::SQL::Mgmt::V2014_04_01::Models::PrimaryAggregationType + 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 + QueryMetricUnit = Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetricUnit + UnitType = Azure::SQL::Mgmt::V2014_04_01::Models::UnitType + 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 @@ -117,94 +137,77 @@ module Models ExportRequest = Azure::SQL::Mgmt::V2014_04_01::Models::ExportRequest 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 + Metric = Azure::SQL::Mgmt::V2014_04_01::Models::Metric ServerTableAuditingPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicyListResult - MetricDefinition = Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinition OperationImpact = Azure::SQL::Mgmt::V2014_04_01::Models::OperationImpact MetricDefinitionListResult = Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinitionListResult + MetricName = Azure::SQL::Mgmt::V2014_04_01::Models::MetricName 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 ServiceTierAdvisorListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisorListResult - QueryInterval = Azure::SQL::Mgmt::V2014_04_01::Models::QueryInterval + QueryMetric = Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetric RecoverableDatabaseListResult = Azure::SQL::Mgmt::V2014_04_01::Models::RecoverableDatabaseListResult - QueryStatistic = Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic + QueryInterval = Azure::SQL::Mgmt::V2014_04_01::Models::QueryInterval DatabaseTableAuditingPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseTableAuditingPolicyListResult - TopQueries = Azure::SQL::Mgmt::V2014_04_01::Models::TopQueries + QueryStatistic = Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic ElasticPoolDtuCapability = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDtuCapability - 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 + MetricDefinition = Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinition QueryStatisticListResult = Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatisticListResult + TopQueriesListResult = Azure::SQL::Mgmt::V2014_04_01::Models::TopQueriesListResult 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 - 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 + ServerConnectionPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::ServerConnectionPolicy 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 + RestorableDroppedDatabase = Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabase + RecommendedIndex = Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndex DisasterRecoveryConfiguration = Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfiguration - GeoBackupPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicy + TransparentDataEncryption = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryption + DataMaskingRule = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRule + DataMaskingPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingPolicy ImportExportResponse = Azure::SQL::Mgmt::V2014_04_01::Models::ImportExportResponse + GeoBackupPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicy ImportRequest = Azure::SQL::Mgmt::V2014_04_01::Models::ImportRequest RecommendedElasticPool = Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedElasticPool 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 + TransparentDataEncryptionActivity = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivity ElasticPoolActivity = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolActivity ElasticPoolDatabaseActivity = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDatabaseActivity - TransparentDataEncryptionActivity = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivity + ServerTableAuditingPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicy 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 BackupLongTermRetentionPolicyState = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyState - MaxSizeUnits = Azure::SQL::Mgmt::V2014_04_01::Models::MaxSizeUnits + MetricAvailability = Azure::SQL::Mgmt::V2014_04_01::Models::MetricAvailability 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 + MaxSizeUnits = Azure::SQL::Mgmt::V2014_04_01::Models::MaxSizeUnits ServiceObjectiveName = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveName TransparentDataEncryptionStatus = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionStatus + ServerConnectionType = Azure::SQL::Mgmt::V2014_04_01::Models::ServerConnectionType + DatabaseEdition = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseEdition + RecommendedIndexType = Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndexType + MetricValue = Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue 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 + ReadScale = Azure::SQL::Mgmt::V2014_04_01::Models::ReadScale + CheckNameAvailabilityRequest = Azure::SQL::Mgmt::V2014_04_01::Models::CheckNameAvailabilityRequest 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 - 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 - ElasticPoolEdition = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolEdition - GeoBackupPolicyState = Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicyState - 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 - 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 + VirtualNetworkRuleListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleListResult + VirtualNetworkRule = Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRule OperationDisplay = Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationDisplay Operation = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Operation - RecommendedActionImplementationInfo = Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionImplementationInfo OperationListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationListResult + ServerListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerListResult + RecommendedActionImplementationInfo = Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionImplementationInfo 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,13 +227,9 @@ 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 @@ -244,43 +243,87 @@ module Models AutomaticTuningOptions = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningOptions SyncDatabaseIdProperties = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncDatabaseIdProperties 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 + Advisor = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Advisor FailoverGroup = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup 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 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 SubscriptionUsage = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SubscriptionUsage - VirtualNetworkRule = Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRule - 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 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 + AutoExecuteStatusInheritedFrom = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatusInheritedFrom IsRetryable = Azure::SQL::Mgmt::V2015_05_01_preview::Models::IsRetryable + ImplementationMethod = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ImplementationMethod 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 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 + Server = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Server + ServerUpdate = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerUpdate SyncAgentState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentState - SyncMemberDbType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberDbType + IdentityType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::IdentityType SyncGroupLogType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupLogType - SyncConflictResolutionPolicy = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncConflictResolutionPolicy + AutomaticTuningDisabledReason = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningDisabledReason SyncGroupState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupState + SyncConflictResolutionPolicy = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncConflictResolutionPolicy + SyncMemberDbType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberDbType + AdvisorStatus = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AdvisorStatus + AutoExecuteStatus = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatus + 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 + 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 + DatabaseVulnerabilityAssessmentRuleBaseline = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaseline + ExtendedServerBlobAuditingPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ExtendedServerBlobAuditingPolicy + DataWarehouseUserActivities = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DataWarehouseUserActivities + JobStepExecutionOptions = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepExecutionOptions + JobCredential = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredential + JobAgent = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgent + JobStep = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStep + JobVersion = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersion + JobTargetGroup = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroup + JobExecution = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecution + LongTermRetentionBackup = Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackup + ManagedDatabase = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabase + SensitivityLabel = Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabel + ServerAutomaticTuning = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerAutomaticTuning + ServerDnsAlias = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAlias + ServerSecurityAlertPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerSecurityAlertPolicy + JobAgentState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentState + JobScheduleType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobScheduleType + RestorePointListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointListResult + JobStepActionType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepActionType + JobExecutionLifecycle = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionLifecycle + JobTargetType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetType + JobTargetGroupMembershipType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupMembershipType + ManagedDatabaseStatus = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseStatus + JobStepActionSource = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepActionSource + JobStepOutputType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutputType + AutomaticTuningServerReason = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerReason + RestorePointType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointType + ManagedDatabaseCreateMode = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseCreateMode + AutomaticTuningServerMode = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerMode + SecurityAlertPolicyState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::SecurityAlertPolicyState + 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 + ProvisioningState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ProvisioningState JobListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult + JobSchedule = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobSchedule + DatabaseBlobAuditingPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseBlobAuditingPolicy + BackupLongTermRetentionPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::BackupLongTermRetentionPolicy + Job = Azure::SQL::Mgmt::V2017_03_01_preview::Models::Job + 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 + RestorePoint = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint 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 @@ -293,133 +336,90 @@ module Models 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 + JobTargetGroupListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupListResult 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 + JobTarget = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTarget ImportExportDatabaseDefinition = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportDatabaseDefinition - JobStepExecutionOptions = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepExecutionOptions + JobStepOutput = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutput 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 - 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 - ServerDnsAlias = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAlias - 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 - JobStepActionSource = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepActionSource - 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 - ManagedDatabaseCreateMode = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseCreateMode - RestorePointType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointType - AutomaticTuningServerMode = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerMode - 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 - 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 - ElasticPoolEditionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolEditionCapability - ServiceObjectiveCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServiceObjectiveCapability - DatabaseOperationListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperationListResult + DatabaseVulnerabilityAssessment = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseVulnerabilityAssessment + CreateMode = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CreateMode + Sku = Azure::SQL::Mgmt::V2017_10_01_preview::Models::Sku + 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 + MaxSizeCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeCapability EditionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::EditionCapability - Resource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::Resource + TrackedResource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::TrackedResource + ProxyResource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ProxyResource + ElasticPoolEditionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolEditionCapability + LocationCapabilities = Azure::SQL::Mgmt::V2017_10_01_preview::Models::LocationCapabilities 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 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 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 + ServerVersionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServerVersionCapability 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 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 + ServiceObjectiveCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServiceObjectiveCapability 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 - ElasticPool = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPool + ElasticPoolOperation = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolOperation InstanceFailoverGroup = Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroup BackupShortTermRetentionPolicy = Azure::SQL::Mgmt::V2017_10_01_preview::Models::BackupShortTermRetentionPolicy 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 + PerformanceLevelCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelCapability VulnerabilityAssessmentScanState = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanState + VulnerabilityAssessmentScanTriggerType = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanTriggerType + ElasticPoolListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolListResult MaxSizeUnit = Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeUnit 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 - 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 - 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 + ElasticPool = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPool + ElasticPoolUpdate = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolUpdate + ReadWriteEndpointFailoverPolicy = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ReadWriteEndpointFailoverPolicy + ReadOnlyEndpointFailoverPolicy = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ReadOnlyEndpointFailoverPolicy + DatabaseListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseListResult + DatabaseUpdate = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseUpdate + Resource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::Resource + CapabilityStatus = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityStatus + PerformanceLevelUnit = Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelUnit + ResourceMoveDefinition = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ResourceMoveDefinition + Database = Azure::SQL::Mgmt::V2017_10_01_preview::Models::Database + DatabaseOperationListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperationListResult + SampleName = Azure::SQL::Mgmt::V2017_10_01_preview::Models::SampleName + VulnerabilityAssessmentRecurringScansProperties = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentRecurringScansProperties + ElasticPoolState = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolState + DatabaseOperation = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperation 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 :elastic_pool_activities, :elastic_pool_database_activities, :service_tier_advisors, :transparent_data_encryptions, :transparent_data_encryption_activities, :database_table_auditing_policies, :server_table_auditing_policies, :server_usages, :database_connection_policies, :database_usages, :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, :server_advisors, :database_advisors, :operations, :servers, :firewall_rules, :database_recommended_actions, :database_automatic_tuning_operations, :encryption_protectors, :failover_groups, :managed_instances, :server_keys, :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, :job_step_executions, :job_steps, :job_target_executions, :job_target_groups, :job_versions, :long_term_retention_backups, :managed_databases, :sensitivity_labels, :server_automatic_tuning_operations, :server_dns_aliases, :server_security_alert_policies, :backup_long_term_retention_policies, :restore_points, :jobs, :databases, :database_operations, :elastic_pools, :capabilities, :elastic_pool_operations, :database_vulnerability_assessment_scans, :instance_failover_groups, :backup_short_term_retention_policies, :tde_certificates, :managed_instance_tde_certificates, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -429,6 +429,16 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @elastic_pool_activities = @client_0.elastic_pool_activities + @elastic_pool_database_activities = @client_0.elastic_pool_database_activities + @service_tier_advisors = @client_0.service_tier_advisors + @transparent_data_encryptions = @client_0.transparent_data_encryptions + @transparent_data_encryption_activities = @client_0.transparent_data_encryption_activities + @database_table_auditing_policies = @client_0.database_table_auditing_policies + @server_table_auditing_policies = @client_0.server_table_auditing_policies + @server_usages = @client_0.server_usages + @database_connection_policies = @client_0.database_connection_policies + @database_usages = @client_0.database_usages @backup_long_term_retention_vaults = @client_0.backup_long_term_retention_vaults @recoverable_databases = @client_0.recoverable_databases @restorable_dropped_databases = @client_0.restorable_dropped_databases @@ -448,33 +458,23 @@ def initialize(configurable, base_url=nil, options=nil) @server_azure_adadministrators = @client_0.server_azure_adadministrators @server_communication_links = @client_0.server_communication_links @service_objectives = @client_0.service_objectives - @elastic_pool_activities = @client_0.elastic_pool_activities - @elastic_pool_database_activities = @client_0.elastic_pool_database_activities - @service_tier_advisors = @client_0.service_tier_advisors - @transparent_data_encryptions = @client_0.transparent_data_encryptions - @transparent_data_encryption_activities = @client_0.transparent_data_encryption_activities - @server_table_auditing_policies = @client_0.server_table_auditing_policies - @database_table_auditing_policies = @client_0.database_table_auditing_policies - @database_connection_policies = @client_0.database_connection_policies - @server_usages = @client_0.server_usages - @database_usages = @client_0.database_usages @client_1 = Azure::SQL::Mgmt::V2015_05_01_preview::SqlManagementClient.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) + @server_advisors = @client_1.server_advisors @database_advisors = @client_1.database_advisors + @operations = @client_1.operations + @servers = @client_1.servers + @firewall_rules = @client_1.firewall_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 - @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 @@ -496,32 +496,32 @@ def initialize(configurable, base_url=nil, options=nil) @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 @server_automatic_tuning_operations = @client_2.server_automatic_tuning_operations @server_dns_aliases = @client_2.server_dns_aliases @server_security_alert_policies = @client_2.server_security_alert_policies + @backup_long_term_retention_policies = @client_2.backup_long_term_retention_policies + @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) + @databases = @client_3.databases @database_operations = @client_3.database_operations + @elastic_pools = @client_3.elastic_pools + @capabilities = @client_3.capabilities @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 @tde_certificates = @client_3.tde_certificates @@ -550,8 +550,68 @@ def method_missing(method, *args) end class ModelClasses - def metric_value - Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue + def data_masking_function + Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingFunction + end + def disaster_recovery_configuration_status + Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationStatus + end + 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 + end + def disaster_recovery_configuration_role + Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationRole + end + def elastic_pool_edition + Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolEdition + end + 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 + end + def authentication_type + Azure::SQL::Mgmt::V2014_04_01::Models::AuthenticationType + end + def unit_definition_type + Azure::SQL::Mgmt::V2014_04_01::Models::UnitDefinitionType + end + def query_aggregation_function + Azure::SQL::Mgmt::V2014_04_01::Models::QueryAggregationFunction + end + def query_execution_type + Azure::SQL::Mgmt::V2014_04_01::Models::QueryExecutionType + end + def query_observed_metric_type + Azure::SQL::Mgmt::V2014_04_01::Models::QueryObservedMetricType + end + def primary_aggregation_type + Azure::SQL::Mgmt::V2014_04_01::Models::PrimaryAggregationType + end + def server_version + Azure::SQL::Mgmt::V2014_04_01::Models::ServerVersion + end + 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 query_metric_unit + Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetricUnit + end + def unit_type + Azure::SQL::Mgmt::V2014_04_01::Models::UnitType + end + def replication_state + Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationState + end + def replication_role + Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationRole end def service_objective_list_result Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveListResult @@ -637,114 +697,108 @@ def query_text_list_result def backup_long_term_retention_vault_list_result Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionVaultListResult end - 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 + def metric + Azure::SQL::Mgmt::V2014_04_01::Models::Metric 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 operation_impact Azure::SQL::Mgmt::V2014_04_01::Models::OperationImpact end def metric_definition_list_result Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinitionListResult end + def metric_name + Azure::SQL::Mgmt::V2014_04_01::Models::MetricName + 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 - end def service_tier_advisor_list_result Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisorListResult end - def query_interval - Azure::SQL::Mgmt::V2014_04_01::Models::QueryInterval + def query_metric + Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetric end def recoverable_database_list_result Azure::SQL::Mgmt::V2014_04_01::Models::RecoverableDatabaseListResult end - def query_statistic - Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic + def query_interval + Azure::SQL::Mgmt::V2014_04_01::Models::QueryInterval 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 query_statistic + Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic end def elastic_pool_dtu_capability Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDtuCapability end - def top_queries_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::TopQueriesListResult + 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 metric_definition + Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinition + end 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 backup_long_term_retention_vault Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionVault end 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 service_tier_advisor + Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisor end def server_connection_policy Azure::SQL::Mgmt::V2014_04_01::Models::ServerConnectionPolicy end - def service_tier_advisor - Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisor + def database_security_alert_policy + Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseSecurityAlertPolicy end - def transparent_data_encryption - Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryption + def restorable_dropped_database + Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabase 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 + 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 + def transparent_data_encryption + Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryption end def data_masking_rule Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRule end - def disaster_recovery_configuration - Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfiguration - end - def geo_backup_policy - Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicy + def data_masking_policy + Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingPolicy end def import_export_response Azure::SQL::Mgmt::V2014_04_01::Models::ImportExportResponse end + def geo_backup_policy + Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicy + end def import_request Azure::SQL::Mgmt::V2014_04_01::Models::ImportRequest end @@ -763,44 +817,53 @@ def server_communication_link def service_objective Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjective end + def transparent_data_encryption_activity + Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivity + 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 - end + def server_table_auditing_policy + Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicy + end def database_connection_policy Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseConnectionPolicy end 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 - 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 metric_availability + Azure::SQL::Mgmt::V2014_04_01::Models::MetricAvailability end def check_name_availability_reason Azure::SQL::Mgmt::V2014_04_01::Models::CheckNameAvailabilityReason end + def max_size_units + Azure::SQL::Mgmt::V2014_04_01::Models::MaxSizeUnits + end + def service_objective_name + Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveName + end + def transparent_data_encryption_status + Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionStatus + end def server_connection_type Azure::SQL::Mgmt::V2014_04_01::Models::ServerConnectionType end 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 recommended_index_type + Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndexType end - def transparent_data_encryption_status - Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionStatus + def metric_value + Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue end def recommended_index_action Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndexAction @@ -808,14 +871,14 @@ def recommended_index_action def recommended_index_state Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndexState end - def recommended_index_type - Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndexType + def security_alert_policy_email_account_admins + Azure::SQL::Mgmt::V2014_04_01::Models::SecurityAlertPolicyEmailAccountAdmins 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 + def check_name_availability_request + Azure::SQL::Mgmt::V2014_04_01::Models::CheckNameAvailabilityRequest end def security_alert_policy_use_server_default Azure::SQL::Mgmt::V2014_04_01::Models::SecurityAlertPolicyUseServerDefault @@ -826,68 +889,11 @@ def data_masking_state def data_masking_rule_state Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRuleState end - def data_masking_function - Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingFunction - end - def disaster_recovery_configuration_status - Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationStatus - end - 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 - end - def disaster_recovery_configuration_role - Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationRole - end - def elastic_pool_edition - Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolEdition - end - 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 - end - def authentication_type - Azure::SQL::Mgmt::V2014_04_01::Models::AuthenticationType - end - def unit_type - Azure::SQL::Mgmt::V2014_04_01::Models::UnitType - 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 - end - def query_aggregation_function - Azure::SQL::Mgmt::V2014_04_01::Models::QueryAggregationFunction - end - def query_execution_type - Azure::SQL::Mgmt::V2014_04_01::Models::QueryExecutionType - end - def query_observed_metric_type - Azure::SQL::Mgmt::V2014_04_01::Models::QueryObservedMetricType - end - def query_metric_unit - Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetricUnit - end - def replication_role - Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationRole - end - def replication_state - Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationState - end - def server_version - Azure::SQL::Mgmt::V2014_04_01::Models::ServerVersion - end - def server_state - Azure::SQL::Mgmt::V2014_04_01::Models::ServerState + def virtual_network_rule_list_result + Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleListResult end - def transparent_data_encryption_activity_status - Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivityStatus + def virtual_network_rule + Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRule end def operation_display Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationDisplay @@ -895,12 +901,15 @@ def operation_display def operation Azure::SQL::Mgmt::V2015_05_01_preview::Models::Operation 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 server_list_result + Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerListResult + end + def recommended_action_implementation_info + Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionImplementationInfo + end def recommended_action_impact_record Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionImpactRecord end @@ -958,27 +967,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 @@ -1018,33 +1015,27 @@ def sync_database_id_properties def recommended_action Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedAction end - def advisor - Azure::SQL::Mgmt::V2015_05_01_preview::Models::Advisor - end def database_automatic_tuning Azure::SQL::Mgmt::V2015_05_01_preview::Models::DatabaseAutomaticTuning end def encryption_protector Azure::SQL::Mgmt::V2015_05_01_preview::Models::EncryptionProtector end + def advisor + Azure::SQL::Mgmt::V2015_05_01_preview::Models::Advisor + end def failover_group Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup 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 - end def sync_agent Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgent end @@ -1060,293 +1051,323 @@ def sync_member 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 - end - def advisor_status - Azure::SQL::Mgmt::V2015_05_01_preview::Models::AdvisorStatus - end - 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 - end def recommended_action_current_state Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionCurrentState end 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 + def auto_execute_status_inherited_from + Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatusInheritedFrom end def is_retryable Azure::SQL::Mgmt::V2015_05_01_preview::Models::IsRetryable end + def implementation_method + Azure::SQL::Mgmt::V2015_05_01_preview::Models::ImplementationMethod + 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 end def failover_group_replication_role Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroupReplicationRole end - def identity_type - Azure::SQL::Mgmt::V2015_05_01_preview::Models::IdentityType + def server + Azure::SQL::Mgmt::V2015_05_01_preview::Models::Server end - def operation_origin - Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationOrigin + def server_update + Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerUpdate 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 identity_type + Azure::SQL::Mgmt::V2015_05_01_preview::Models::IdentityType end def sync_group_log_type Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupLogType end - def sync_conflict_resolution_policy - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncConflictResolutionPolicy + def automatic_tuning_disabled_reason + Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningDisabledReason end def sync_group_state Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupState end + def sync_conflict_resolution_policy + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncConflictResolutionPolicy + end + def sync_member_db_type + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberDbType + end + def advisor_status + Azure::SQL::Mgmt::V2015_05_01_preview::Models::AdvisorStatus + end + def auto_execute_status + Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatus + end + def virtual_network_rule_state + Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleState + end def sync_direction Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncDirection end def sync_member_state Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberState end - def virtual_network_rule_state - Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleState + def firewall_rule_list_result + Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRuleListResult end - def job_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult + def firewall_rule + Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRule end - def job_step_action - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepAction + def operation_origin + Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationOrigin end - def managed_database_update - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseUpdate + def database_vulnerability_assessment_rule_baseline + Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaseline end - def managed_database_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseListResult + def extended_server_blob_auditing_policy + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ExtendedServerBlobAuditingPolicy end - def server_dns_alias_acquisition - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasAcquisition + def data_warehouse_user_activities + Azure::SQL::Mgmt::V2017_03_01_preview::Models::DataWarehouseUserActivities end - def complete_database_restore_definition - Azure::SQL::Mgmt::V2017_03_01_preview::Models::CompleteDatabaseRestoreDefinition + def job_step_execution_options + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepExecutionOptions end - def automatic_tuning_server_options - Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerOptions + def job_credential + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredential end - def job_agent_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentListResult + def job_agent + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgent end - def sensitivity_label_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelListResult + def job_step + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStep end - def job_agent_update - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentUpdate + def job_version + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersion end - def create_database_restore_point_definition - Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition + def job_target_group + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroup end - def long_term_retention_backup_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackupListResult + def job_execution + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecution end - def job_credential_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredentialListResult + def long_term_retention_backup + Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackup end - def restore_point_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointListResult + def managed_database + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabase end - def job_execution_target - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionTarget + def sensitivity_label + Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabel end - def job_version_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersionListResult + def server_automatic_tuning + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerAutomaticTuning 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 server_dns_alias + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAlias end - def job_target_group_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupListResult + def server_security_alert_policy + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerSecurityAlertPolicy end - def database_vulnerability_assessment_rule_baseline_item - Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaselineItem + def job_agent_state + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentState end - def job_step_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepListResult + def job_schedule_type + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobScheduleType end - def job_target - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTarget + def restore_point_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointListResult end - def server_dns_alias_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasListResult + def job_step_action_type + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepActionType end - def job_step_output - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutput + def job_execution_lifecycle + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionLifecycle end - def import_export_database_definition - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportDatabaseDefinition + def job_target_type + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetType end - def job_step_execution_options - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepExecutionOptions + def job_target_group_membership_type + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupMembershipType end - def extended_database_blob_auditing_policy - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ExtendedDatabaseBlobAuditingPolicy + def managed_database_status + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseStatus end - def extended_server_blob_auditing_policy - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ExtendedServerBlobAuditingPolicy + def job_step_action_source + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepActionSource end - def server_blob_auditing_policy - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerBlobAuditingPolicy + def job_step_output_type + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutputType end - def database_blob_auditing_policy - Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseBlobAuditingPolicy + def automatic_tuning_server_reason + Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerReason end - def import_export_operation_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportOperationResult + def restore_point_type + Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointType end - def database_vulnerability_assessment_rule_baseline - Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaseline + def managed_database_create_mode + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseCreateMode end - def data_warehouse_user_activities - Azure::SQL::Mgmt::V2017_03_01_preview::Models::DataWarehouseUserActivities + def automatic_tuning_server_mode + Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerMode end - def job_agent - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgent + def security_alert_policy_state + Azure::SQL::Mgmt::V2017_03_01_preview::Models::SecurityAlertPolicyState end - def job_credential - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredential + def vulnerability_assessment_policy_baseline_name + Azure::SQL::Mgmt::V2017_03_01_preview::Models::VulnerabilityAssessmentPolicyBaselineName end - def job_execution - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecution + def sensitivity_label_source + Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelSource end - def job - Azure::SQL::Mgmt::V2017_03_01_preview::Models::Job + def long_term_retention_database_state + Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionDatabaseState end - def job_step - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStep + def provisioning_state + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ProvisioningState end - def job_target_group - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroup + def job_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult end - def job_version - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersion + def job_schedule + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobSchedule end - def long_term_retention_backup - Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackup + def database_blob_auditing_policy + Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseBlobAuditingPolicy 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 + def job + Azure::SQL::Mgmt::V2017_03_01_preview::Models::Job + 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 + end + def automatic_tuning_option_mode_actual + Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningOptionModeActual 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 + def job_step_action + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepAction end - def server_automatic_tuning - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerAutomaticTuning + def managed_database_update + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseUpdate end - def server_dns_alias - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAlias + def managed_database_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseListResult end - def server_security_alert_policy - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerSecurityAlertPolicy + def server_dns_alias_acquisition + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasAcquisition end - def blob_auditing_policy_state - Azure::SQL::Mgmt::V2017_03_01_preview::Models::BlobAuditingPolicyState + def complete_database_restore_definition + Azure::SQL::Mgmt::V2017_03_01_preview::Models::CompleteDatabaseRestoreDefinition end - def job_agent_state - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentState + def automatic_tuning_server_options + Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerOptions end - def job_execution_lifecycle - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionLifecycle + def job_agent_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentListResult end - def provisioning_state - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ProvisioningState + def sensitivity_label_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelListResult end - def job_target_type - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetType + def job_agent_update + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentUpdate end - def job_schedule_type - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobScheduleType + def create_database_restore_point_definition + Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition end - def job_step_action_type - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepActionType + def long_term_retention_backup_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackupListResult end - def job_step_action_source - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepActionSource + def job_credential_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredentialListResult end - def job_step_output_type - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutputType + def job_execution_target + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionTarget end - def job_target_group_membership_type - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupMembershipType + def job_version_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersionListResult end - def managed_database_status - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseStatus + def job_execution_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionListResult end - def managed_database_create_mode - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseCreateMode + def database_vulnerability_assessment_rule_baseline_item + Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaselineItem end - def restore_point_type - Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointType + def job_target_group_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupListResult end - def automatic_tuning_server_mode - Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerMode + def job_step_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepListResult end - def automatic_tuning_option_mode_desired - Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningOptionModeDesired + def server_dns_alias_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasListResult end - def automatic_tuning_option_mode_actual - Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningOptionModeActual + def job_target + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTarget end - def automatic_tuning_server_reason - Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerReason + def import_export_database_definition + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportDatabaseDefinition end - def security_alert_policy_state - Azure::SQL::Mgmt::V2017_03_01_preview::Models::SecurityAlertPolicyState + def job_step_output + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutput end - def long_term_retention_database_state - Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionDatabaseState + def extended_database_blob_auditing_policy + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ExtendedDatabaseBlobAuditingPolicy end - def vulnerability_assessment_policy_baseline_name - Azure::SQL::Mgmt::V2017_03_01_preview::Models::VulnerabilityAssessmentPolicyBaselineName + def server_blob_auditing_policy + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerBlobAuditingPolicy end - def sensitivity_label_source - Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelSource + def import_export_operation_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportOperationResult end - def elastic_pool_edition_capability - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolEditionCapability + def database_vulnerability_assessment + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseVulnerabilityAssessment end - def service_objective_capability - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServiceObjectiveCapability + def create_mode + Azure::SQL::Mgmt::V2017_10_01_preview::Models::CreateMode end - def database_operation_list_result - Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperationListResult + def sku + Azure::SQL::Mgmt::V2017_10_01_preview::Models::Sku + 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 max_size_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeCapability 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 tracked_resource + Azure::SQL::Mgmt::V2017_10_01_preview::Models::TrackedResource + end + def proxy_resource + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ProxyResource + 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 elastic_pool_per_database_min_performance_level_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseMinPerformanceLevelCapability @@ -1357,9 +1378,6 @@ def backup_short_term_retention_policy_list_result 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,12 +1390,6 @@ 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 - end def managed_instance_vcores_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceVcoresCapability end @@ -1387,9 +1399,6 @@ def max_size_range_capability 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 @@ -1399,9 +1408,6 @@ def managed_instance_version_capability 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,50 +1417,23 @@ 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 + def server_version_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServerVersionCapability 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 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 + def service_objective_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServiceObjectiveCapability end def vulnerability_assessment_scan_record Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanRecord @@ -1462,11 +1441,8 @@ def vulnerability_assessment_scan_record def database_vulnerability_assessment_scans_export Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseVulnerabilityAssessmentScansExport end - def database - Azure::SQL::Mgmt::V2017_10_01_preview::Models::Database - end - def elastic_pool - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPool + def elastic_pool_operation + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolOperation end def instance_failover_group Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroup @@ -1477,14 +1453,17 @@ def backup_short_term_retention_policy 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 + def performance_level_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelCapability + end + def vulnerability_assessment_scan_state + Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanState 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 elastic_pool_list_result + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolListResult end def max_size_unit Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeUnit @@ -1492,47 +1471,68 @@ def max_size_unit 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 - end - def sample_name - Azure::SQL::Mgmt::V2017_10_01_preview::Models::SampleName - 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 database_license_type Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseLicenseType end def database_read_scale Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseReadScale end - def elastic_pool_state - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolState - 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 capability_group + Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityGroup + 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 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 database_list_result + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseListResult end - def capability_group - Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityGroup + def database_update + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseUpdate + end + def resource + Azure::SQL::Mgmt::V2017_10_01_preview::Models::Resource + 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 resource_move_definition + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ResourceMoveDefinition + end + def database + Azure::SQL::Mgmt::V2017_10_01_preview::Models::Database + end + def database_operation_list_result + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperationListResult + end + def sample_name + Azure::SQL::Mgmt::V2017_10_01_preview::Models::SampleName + end + def vulnerability_assessment_recurring_scans_properties + Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentRecurringScansProperties + end + def elastic_pool_state + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolState + end + def database_operation + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperation end end end diff --git a/azure_sdk/lib/latest/modules/sqlvirtualmachine_profile_module.rb b/azure_sdk/lib/latest/modules/sqlvirtualmachine_profile_module.rb index 2d10658888..d99818a4cb 100644 --- a/azure_sdk/lib/latest/modules/sqlvirtualmachine_profile_module.rb +++ b/azure_sdk/lib/latest/modules/sqlvirtualmachine_profile_module.rb @@ -7,57 +7,57 @@ module Azure::Profiles::Latest module Sqlvirtualmachine module Mgmt - AvailabilityGroupListeners = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::AvailabilityGroupListeners Operations = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Operations + AvailabilityGroupListeners = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::AvailabilityGroupListeners SqlVirtualMachineGroups = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::SqlVirtualMachineGroups SqlVirtualMachines = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::SqlVirtualMachines module Models - SqlVirtualMachineGroupListResult = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineGroupListResult + SqlWorkloadType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlWorkloadType + DiskConfigurationType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::DiskConfigurationType + DayOfWeek = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::DayOfWeek + ScaleType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ScaleType + IdentityType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::IdentityType + TrackedResource = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::TrackedResource + ProxyResource = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ProxyResource ResourceIdentity = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ResourceIdentity + SqlVirtualMachineGroupListResult = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineGroupListResult LoadBalancerConfiguration = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::LoadBalancerConfiguration WsfcDomainCredentials = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::WsfcDomainCredentials PrivateIPAddress = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::PrivateIPAddress - Resource = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::Resource - OperationDisplay = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationDisplay ServerConfigurationsManagementSettings = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ServerConfigurationsManagementSettings - OperationListResult = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationListResult + Resource = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::Resource AutoPatchingSettings = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AutoPatchingSettings SqlVirtualMachineListResult = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineListResult AutoBackupSettings = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AutoBackupSettings SqlVirtualMachineGroupUpdate = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineGroupUpdate + OperationDisplay = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationDisplay + SqlConnectivityUpdateSettings = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlConnectivityUpdateSettings KeyVaultCredentialSettings = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::KeyVaultCredentialSettings Operation = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::Operation - SqlConnectivityUpdateSettings = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlConnectivityUpdateSettings - SqlVirtualMachineUpdate = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineUpdate + OperationListResult = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationListResult SqlWorkloadTypeUpdateSettings = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlWorkloadTypeUpdateSettings WsfcDomainProfile = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::WsfcDomainProfile - SqlStorageUpdateSettings = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlStorageUpdateSettings + SqlVirtualMachineUpdate = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineUpdate AvailabilityGroupListenerListResult = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AvailabilityGroupListenerListResult AdditionalFeaturesServerConfigurations = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AdditionalFeaturesServerConfigurations - ProxyResource = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ProxyResource - AvailabilityGroupListener = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AvailabilityGroupListener - TrackedResource = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::TrackedResource + SqlStorageUpdateSettings = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlStorageUpdateSettings SqlVirtualMachineGroup = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineGroup SqlVirtualMachine = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachine + AvailabilityGroupListener = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AvailabilityGroupListener OperationOrigin = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationOrigin + ClusterConfiguration = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ClusterConfiguration SqlVmGroupImageSku = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVmGroupImageSku - ScaleType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ScaleType ClusterManagerType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ClusterManagerType - ClusterConfiguration = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ClusterConfiguration - IdentityType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::IdentityType SqlServerLicenseType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlServerLicenseType SqlImageSku = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlImageSku - DayOfWeek = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::DayOfWeek BackupScheduleType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::BackupScheduleType FullBackupFrequencyType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::FullBackupFrequencyType ConnectivityType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ConnectivityType - SqlWorkloadType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlWorkloadType - DiskConfigurationType = Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::DiskConfigurationType end class SqlvirtualmachineManagementClass - attr_reader :availability_group_listeners, :operations, :sql_virtual_machine_groups, :sql_virtual_machines, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :availability_group_listeners, :sql_virtual_machine_groups, :sql_virtual_machines, :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_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @availability_group_listeners = @client_0.availability_group_listeners @operations = @client_0.operations + @availability_group_listeners = @client_0.availability_group_listeners @sql_virtual_machine_groups = @client_0.sql_virtual_machine_groups @sql_virtual_machines = @client_0.sql_virtual_machines @@ -89,12 +89,33 @@ def method_missing(method, *args) end class ModelClasses - def sql_virtual_machine_group_list_result - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineGroupListResult + def sql_workload_type + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlWorkloadType + end + def disk_configuration_type + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::DiskConfigurationType + end + def day_of_week + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::DayOfWeek + end + def scale_type + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ScaleType + end + def identity_type + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::IdentityType + end + def tracked_resource + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::TrackedResource + end + def proxy_resource + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ProxyResource end def resource_identity Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ResourceIdentity end + def sql_virtual_machine_group_list_result + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineGroupListResult + end def load_balancer_configuration Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::LoadBalancerConfiguration end @@ -104,17 +125,11 @@ def wsfc_domain_credentials def private_ipaddress Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::PrivateIPAddress end - def resource - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::Resource - end - def operation_display - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationDisplay - end def server_configurations_management_settings Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ServerConfigurationsManagementSettings end - def operation_list_result - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationListResult + def resource + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::Resource end def auto_patching_settings Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AutoPatchingSettings @@ -128,17 +143,20 @@ def auto_backup_settings def sql_virtual_machine_group_update Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineGroupUpdate end + def operation_display + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationDisplay + end + def sql_connectivity_update_settings + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlConnectivityUpdateSettings + end def key_vault_credential_settings Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::KeyVaultCredentialSettings end def operation Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::Operation end - def sql_connectivity_update_settings - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlConnectivityUpdateSettings - end - def sql_virtual_machine_update - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineUpdate + def operation_list_result + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationListResult end def sql_workload_type_update_settings Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlWorkloadTypeUpdateSettings @@ -146,8 +164,8 @@ def sql_workload_type_update_settings def wsfc_domain_profile Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::WsfcDomainProfile end - def sql_storage_update_settings - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlStorageUpdateSettings + def sql_virtual_machine_update + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineUpdate end def availability_group_listener_list_result Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AvailabilityGroupListenerListResult @@ -155,14 +173,8 @@ def availability_group_listener_list_result def additional_features_server_configurations Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AdditionalFeaturesServerConfigurations end - def proxy_resource - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ProxyResource - end - def availability_group_listener - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AvailabilityGroupListener - end - def tracked_resource - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::TrackedResource + def sql_storage_update_settings + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlStorageUpdateSettings end def sql_virtual_machine_group Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachineGroup @@ -170,33 +182,27 @@ def sql_virtual_machine_group def sql_virtual_machine Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVirtualMachine end + def availability_group_listener + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::AvailabilityGroupListener + end def operation_origin Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::OperationOrigin end + def cluster_configuration + Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ClusterConfiguration + end def sql_vm_group_image_sku Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlVmGroupImageSku end - def scale_type - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ScaleType - end def cluster_manager_type Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ClusterManagerType end - def cluster_configuration - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ClusterConfiguration - end - def identity_type - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::IdentityType - end def sql_server_license_type Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlServerLicenseType end def sql_image_sku Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlImageSku end - def day_of_week - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::DayOfWeek - end def backup_schedule_type Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::BackupScheduleType end @@ -206,12 +212,6 @@ def full_backup_frequency_type def connectivity_type Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::ConnectivityType end - def sql_workload_type - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::SqlWorkloadType - end - def disk_configuration_type - Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview::Models::DiskConfigurationType - end 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 140073fd0b..97e8dc28d6 100644 --- a/azure_sdk/lib/latest/modules/storage_profile_module.rb +++ b/azure_sdk/lib/latest/modules/storage_profile_module.rb @@ -7,102 +7,102 @@ module Azure::Profiles::Latest module Storage module Mgmt - Operations = Azure::Storage::Mgmt::V2018_07_01::Operations - Skus = Azure::Storage::Mgmt::V2018_07_01::Skus - StorageAccounts = Azure::Storage::Mgmt::V2018_07_01::StorageAccounts Usages = Azure::Storage::Mgmt::V2018_07_01::Usages BlobServices = Azure::Storage::Mgmt::V2018_07_01::BlobServices + Skus = Azure::Storage::Mgmt::V2018_07_01::Skus BlobContainers = Azure::Storage::Mgmt::V2018_07_01::BlobContainers + Operations = Azure::Storage::Mgmt::V2018_07_01::Operations + StorageAccounts = Azure::Storage::Mgmt::V2018_07_01::StorageAccounts module Models ManagementPoliciesRulesSetParameter = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ManagementPoliciesRulesSetParameter StorageAccountManagementPolicies = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountManagementPolicies - StorageAccountListKeysResult = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountListKeysResult - OperationDisplay = Azure::Storage::Mgmt::V2018_07_01::Models::OperationDisplay - StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountRegenerateKeyParameters + ImmutabilityPolicyUpdateType = Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyUpdateType + LeaseState = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseState + SignedResourceTypes = Azure::Storage::Mgmt::V2018_07_01::Models::SignedResourceTypes + Dimension = Azure::Storage::Mgmt::V2018_07_01::Models::Dimension MetricSpecification = Azure::Storage::Mgmt::V2018_07_01::Models::MetricSpecification - StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountUpdateParameters - Operation = Azure::Storage::Mgmt::V2018_07_01::Models::Operation - UsageName = Azure::Storage::Mgmt::V2018_07_01::Models::UsageName + Sku = Azure::Storage::Mgmt::V2018_07_01::Models::Sku + TrackedResource = Azure::Storage::Mgmt::V2018_07_01::Models::TrackedResource + ProxyResource = Azure::Storage::Mgmt::V2018_07_01::Models::ProxyResource + AzureEntityResource = Azure::Storage::Mgmt::V2018_07_01::Models::AzureEntityResource + GeoReplicationStats = Azure::Storage::Mgmt::V2018_07_01::Models::GeoReplicationStats + DeleteRetentionPolicy = Azure::Storage::Mgmt::V2018_07_01::Models::DeleteRetentionPolicy + CorsRules = Azure::Storage::Mgmt::V2018_07_01::Models::CorsRules + CorsRule = Azure::Storage::Mgmt::V2018_07_01::Models::CorsRule + BlobServiceProperties = Azure::Storage::Mgmt::V2018_07_01::Models::BlobServiceProperties + State = Azure::Storage::Mgmt::V2018_07_01::Models::State + GeoReplicationStatus = Azure::Storage::Mgmt::V2018_07_01::Models::GeoReplicationStatus + StorageAccountExpand = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountExpand + Reason = Azure::Storage::Mgmt::V2018_07_01::Models::Reason + ProvisioningState = Azure::Storage::Mgmt::V2018_07_01::Models::ProvisioningState + NetworkRuleSet = Azure::Storage::Mgmt::V2018_07_01::Models::NetworkRuleSet StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountCheckNameAvailabilityParameters - Usage = Azure::Storage::Mgmt::V2018_07_01::Models::Usage - Restriction = Azure::Storage::Mgmt::V2018_07_01::Models::Restriction + StorageAccountKey = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountKey + StorageAccountListResult = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountListResult + EncryptionService = Azure::Storage::Mgmt::V2018_07_01::Models::EncryptionService + StorageAccountListKeysResult = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountListKeysResult + Encryption = Azure::Storage::Mgmt::V2018_07_01::Models::Encryption + StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountRegenerateKeyParameters + Endpoints = Azure::Storage::Mgmt::V2018_07_01::Models::Endpoints + CustomDomain = Azure::Storage::Mgmt::V2018_07_01::Models::CustomDomain + EncryptionServices = Azure::Storage::Mgmt::V2018_07_01::Models::EncryptionServices UsageListResult = Azure::Storage::Mgmt::V2018_07_01::Models::UsageListResult - StorageSkuListResult = Azure::Storage::Mgmt::V2018_07_01::Models::StorageSkuListResult + UsageName = Azure::Storage::Mgmt::V2018_07_01::Models::UsageName + StorageAccount = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccount + Identity = Azure::Storage::Mgmt::V2018_07_01::Models::Identity + Kind = Azure::Storage::Mgmt::V2018_07_01::Models::Kind + VirtualNetworkRule = Azure::Storage::Mgmt::V2018_07_01::Models::VirtualNetworkRule + AccessTier = Azure::Storage::Mgmt::V2018_07_01::Models::AccessTier + KeyPermission = Azure::Storage::Mgmt::V2018_07_01::Models::KeyPermission + SkuTier = Azure::Storage::Mgmt::V2018_07_01::Models::SkuTier + Services = Azure::Storage::Mgmt::V2018_07_01::Models::Services + UsageUnit = Azure::Storage::Mgmt::V2018_07_01::Models::UsageUnit + AccountStatus = Azure::Storage::Mgmt::V2018_07_01::Models::AccountStatus + DefaultAction = Azure::Storage::Mgmt::V2018_07_01::Models::DefaultAction + Permissions = Azure::Storage::Mgmt::V2018_07_01::Models::Permissions + SKUCapability = Azure::Storage::Mgmt::V2018_07_01::Models::SKUCapability AccountSasParameters = Azure::Storage::Mgmt::V2018_07_01::Models::AccountSasParameters - CustomDomain = Azure::Storage::Mgmt::V2018_07_01::Models::CustomDomain ListAccountSasResponse = Azure::Storage::Mgmt::V2018_07_01::Models::ListAccountSasResponse - EncryptionServices = Azure::Storage::Mgmt::V2018_07_01::Models::EncryptionServices + KeyVaultProperties = Azure::Storage::Mgmt::V2018_07_01::Models::KeyVaultProperties ServiceSasParameters = Azure::Storage::Mgmt::V2018_07_01::Models::ServiceSasParameters - Encryption = Azure::Storage::Mgmt::V2018_07_01::Models::Encryption ListServiceSasResponse = Azure::Storage::Mgmt::V2018_07_01::Models::ListServiceSasResponse - IPRule = Azure::Storage::Mgmt::V2018_07_01::Models::IPRule - EncryptionService = Azure::Storage::Mgmt::V2018_07_01::Models::EncryptionService - KeyVaultProperties = Azure::Storage::Mgmt::V2018_07_01::Models::KeyVaultProperties StorageAccountCreateParameters = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountCreateParameters - VirtualNetworkRule = Azure::Storage::Mgmt::V2018_07_01::Models::VirtualNetworkRule - GeoReplicationStats = Azure::Storage::Mgmt::V2018_07_01::Models::GeoReplicationStats - NetworkRuleSet = Azure::Storage::Mgmt::V2018_07_01::Models::NetworkRuleSet - StorageAccountKey = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountKey - Dimension = Azure::Storage::Mgmt::V2018_07_01::Models::Dimension - DeleteRetentionPolicy = Azure::Storage::Mgmt::V2018_07_01::Models::DeleteRetentionPolicy - OperationListResult = Azure::Storage::Mgmt::V2018_07_01::Models::OperationListResult + StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountUpdateParameters + StorageSkuListResult = Azure::Storage::Mgmt::V2018_07_01::Models::StorageSkuListResult Resource = Azure::Storage::Mgmt::V2018_07_01::Models::Resource - Sku = Azure::Storage::Mgmt::V2018_07_01::Models::Sku - CorsRules = Azure::Storage::Mgmt::V2018_07_01::Models::CorsRules - Identity = Azure::Storage::Mgmt::V2018_07_01::Models::Identity - UpdateHistoryProperty = Azure::Storage::Mgmt::V2018_07_01::Models::UpdateHistoryProperty LegalHold = Azure::Storage::Mgmt::V2018_07_01::Models::LegalHold - StorageAccountListResult = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountListResult - ImmutabilityPolicyProperties = Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyProperties - SKUCapability = Azure::Storage::Mgmt::V2018_07_01::Models::SKUCapability + Restriction = Azure::Storage::Mgmt::V2018_07_01::Models::Restriction TagProperty = Azure::Storage::Mgmt::V2018_07_01::Models::TagProperty - Endpoints = Azure::Storage::Mgmt::V2018_07_01::Models::Endpoints + UpdateHistoryProperty = Azure::Storage::Mgmt::V2018_07_01::Models::UpdateHistoryProperty + ImmutabilityPolicyProperties = Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyProperties LegalHoldProperties = Azure::Storage::Mgmt::V2018_07_01::Models::LegalHoldProperties - CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2018_07_01::Models::CheckNameAvailabilityResult - CorsRule = Azure::Storage::Mgmt::V2018_07_01::Models::CorsRule - ServiceSpecification = Azure::Storage::Mgmt::V2018_07_01::Models::ServiceSpecification + OperationDisplay = Azure::Storage::Mgmt::V2018_07_01::Models::OperationDisplay ListContainerItems = Azure::Storage::Mgmt::V2018_07_01::Models::ListContainerItems - StorageAccount = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccount - ProxyResource = Azure::Storage::Mgmt::V2018_07_01::Models::ProxyResource - AzureEntityResource = Azure::Storage::Mgmt::V2018_07_01::Models::AzureEntityResource - TrackedResource = Azure::Storage::Mgmt::V2018_07_01::Models::TrackedResource - BlobContainer = Azure::Storage::Mgmt::V2018_07_01::Models::BlobContainer + Operation = Azure::Storage::Mgmt::V2018_07_01::Models::Operation ImmutabilityPolicy = Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicy + OperationListResult = Azure::Storage::Mgmt::V2018_07_01::Models::OperationListResult + BlobContainer = Azure::Storage::Mgmt::V2018_07_01::Models::BlobContainer + KeySource = Azure::Storage::Mgmt::V2018_07_01::Models::KeySource ListContainerItem = Azure::Storage::Mgmt::V2018_07_01::Models::ListContainerItem - BlobServiceProperties = Azure::Storage::Mgmt::V2018_07_01::Models::BlobServiceProperties ReasonCode = Azure::Storage::Mgmt::V2018_07_01::Models::ReasonCode - SkuName = Azure::Storage::Mgmt::V2018_07_01::Models::SkuName - SkuTier = Azure::Storage::Mgmt::V2018_07_01::Models::SkuTier - Kind = Azure::Storage::Mgmt::V2018_07_01::Models::Kind - Reason = Azure::Storage::Mgmt::V2018_07_01::Models::Reason - KeySource = Azure::Storage::Mgmt::V2018_07_01::Models::KeySource - Action = Azure::Storage::Mgmt::V2018_07_01::Models::Action - State = Azure::Storage::Mgmt::V2018_07_01::Models::State - Bypass = Azure::Storage::Mgmt::V2018_07_01::Models::Bypass - DefaultAction = Azure::Storage::Mgmt::V2018_07_01::Models::DefaultAction - AccessTier = Azure::Storage::Mgmt::V2018_07_01::Models::AccessTier - GeoReplicationStatus = Azure::Storage::Mgmt::V2018_07_01::Models::GeoReplicationStatus - ProvisioningState = Azure::Storage::Mgmt::V2018_07_01::Models::ProvisioningState - AccountStatus = Azure::Storage::Mgmt::V2018_07_01::Models::AccountStatus - KeyPermission = Azure::Storage::Mgmt::V2018_07_01::Models::KeyPermission - UsageUnit = Azure::Storage::Mgmt::V2018_07_01::Models::UsageUnit - Services = Azure::Storage::Mgmt::V2018_07_01::Models::Services - SignedResourceTypes = Azure::Storage::Mgmt::V2018_07_01::Models::SignedResourceTypes - Permissions = Azure::Storage::Mgmt::V2018_07_01::Models::Permissions HttpProtocol = Azure::Storage::Mgmt::V2018_07_01::Models::HttpProtocol + Bypass = Azure::Storage::Mgmt::V2018_07_01::Models::Bypass + CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2018_07_01::Models::CheckNameAvailabilityResult + LeaseStatus = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseStatus SignedResource = Azure::Storage::Mgmt::V2018_07_01::Models::SignedResource PublicAccess = Azure::Storage::Mgmt::V2018_07_01::Models::PublicAccess - LeaseStatus = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseStatus - LeaseState = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseState + ServiceSpecification = Azure::Storage::Mgmt::V2018_07_01::Models::ServiceSpecification + IPRule = Azure::Storage::Mgmt::V2018_07_01::Models::IPRule LeaseDuration = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseDuration ImmutabilityPolicyState = Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyState - ImmutabilityPolicyUpdateType = Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyUpdateType - StorageAccountExpand = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountExpand + SkuName = Azure::Storage::Mgmt::V2018_07_01::Models::SkuName + Action = Azure::Storage::Mgmt::V2018_07_01::Models::Action + Usage = Azure::Storage::Mgmt::V2018_07_01::Models::Usage end class StorageManagementClass - attr_reader :operations, :skus, :storage_accounts, :usages, :blob_services, :blob_containers, :configurable, :base_url, :options, :model_classes + attr_reader :usages, :blob_services, :skus, :blob_containers, :operations, :storage_accounts, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -118,12 +118,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) - @operations = @client_1.operations - @skus = @client_1.skus - @storage_accounts = @client_1.storage_accounts @usages = @client_1.usages @blob_services = @client_1.blob_services + @skus = @client_1.skus @blob_containers = @client_1.blob_containers + @operations = @client_1.operations + @storage_accounts = @client_1.storage_accounts @model_classes = ModelClasses.new end @@ -150,227 +150,224 @@ def management_policies_rules_set_parameter def storage_account_management_policies Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountManagementPolicies end - def storage_account_list_keys_result - Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountListKeysResult + def immutability_policy_update_type + Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyUpdateType end - def operation_display - Azure::Storage::Mgmt::V2018_07_01::Models::OperationDisplay + def lease_state + Azure::Storage::Mgmt::V2018_07_01::Models::LeaseState end - def storage_account_regenerate_key_parameters - Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountRegenerateKeyParameters + def signed_resource_types + Azure::Storage::Mgmt::V2018_07_01::Models::SignedResourceTypes + end + def dimension + Azure::Storage::Mgmt::V2018_07_01::Models::Dimension end def metric_specification Azure::Storage::Mgmt::V2018_07_01::Models::MetricSpecification end - def storage_account_update_parameters - Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountUpdateParameters - end - def operation - Azure::Storage::Mgmt::V2018_07_01::Models::Operation + def sku + Azure::Storage::Mgmt::V2018_07_01::Models::Sku end - def usage_name - Azure::Storage::Mgmt::V2018_07_01::Models::UsageName + def tracked_resource + Azure::Storage::Mgmt::V2018_07_01::Models::TrackedResource end - def storage_account_check_name_availability_parameters - Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountCheckNameAvailabilityParameters + def proxy_resource + Azure::Storage::Mgmt::V2018_07_01::Models::ProxyResource end - def usage - Azure::Storage::Mgmt::V2018_07_01::Models::Usage + def azure_entity_resource + Azure::Storage::Mgmt::V2018_07_01::Models::AzureEntityResource end - def restriction - Azure::Storage::Mgmt::V2018_07_01::Models::Restriction + def geo_replication_stats + Azure::Storage::Mgmt::V2018_07_01::Models::GeoReplicationStats end - def usage_list_result - Azure::Storage::Mgmt::V2018_07_01::Models::UsageListResult + def delete_retention_policy + Azure::Storage::Mgmt::V2018_07_01::Models::DeleteRetentionPolicy end - def storage_sku_list_result - Azure::Storage::Mgmt::V2018_07_01::Models::StorageSkuListResult + def cors_rules + Azure::Storage::Mgmt::V2018_07_01::Models::CorsRules end - def account_sas_parameters - Azure::Storage::Mgmt::V2018_07_01::Models::AccountSasParameters + def cors_rule + Azure::Storage::Mgmt::V2018_07_01::Models::CorsRule end - def custom_domain - Azure::Storage::Mgmt::V2018_07_01::Models::CustomDomain + def blob_service_properties + Azure::Storage::Mgmt::V2018_07_01::Models::BlobServiceProperties end - def list_account_sas_response - Azure::Storage::Mgmt::V2018_07_01::Models::ListAccountSasResponse + def state + Azure::Storage::Mgmt::V2018_07_01::Models::State end - def encryption_services - Azure::Storage::Mgmt::V2018_07_01::Models::EncryptionServices + def geo_replication_status + Azure::Storage::Mgmt::V2018_07_01::Models::GeoReplicationStatus end - def service_sas_parameters - Azure::Storage::Mgmt::V2018_07_01::Models::ServiceSasParameters + def storage_account_expand + Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountExpand end - def encryption - Azure::Storage::Mgmt::V2018_07_01::Models::Encryption + def reason + Azure::Storage::Mgmt::V2018_07_01::Models::Reason end - def list_service_sas_response - Azure::Storage::Mgmt::V2018_07_01::Models::ListServiceSasResponse + def provisioning_state + Azure::Storage::Mgmt::V2018_07_01::Models::ProvisioningState end - def iprule - Azure::Storage::Mgmt::V2018_07_01::Models::IPRule + def network_rule_set + Azure::Storage::Mgmt::V2018_07_01::Models::NetworkRuleSet end - def encryption_service - Azure::Storage::Mgmt::V2018_07_01::Models::EncryptionService + def storage_account_check_name_availability_parameters + Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountCheckNameAvailabilityParameters end - def key_vault_properties - Azure::Storage::Mgmt::V2018_07_01::Models::KeyVaultProperties + def storage_account_key + Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountKey end - def storage_account_create_parameters - Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountCreateParameters + def storage_account_list_result + Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountListResult end - def virtual_network_rule - Azure::Storage::Mgmt::V2018_07_01::Models::VirtualNetworkRule + def encryption_service + Azure::Storage::Mgmt::V2018_07_01::Models::EncryptionService end - def geo_replication_stats - Azure::Storage::Mgmt::V2018_07_01::Models::GeoReplicationStats + def storage_account_list_keys_result + Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountListKeysResult end - def network_rule_set - Azure::Storage::Mgmt::V2018_07_01::Models::NetworkRuleSet + def encryption + Azure::Storage::Mgmt::V2018_07_01::Models::Encryption end - def storage_account_key - Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountKey + def storage_account_regenerate_key_parameters + Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountRegenerateKeyParameters end - def dimension - Azure::Storage::Mgmt::V2018_07_01::Models::Dimension + def endpoints + Azure::Storage::Mgmt::V2018_07_01::Models::Endpoints end - def delete_retention_policy - Azure::Storage::Mgmt::V2018_07_01::Models::DeleteRetentionPolicy + def custom_domain + Azure::Storage::Mgmt::V2018_07_01::Models::CustomDomain end - def operation_list_result - Azure::Storage::Mgmt::V2018_07_01::Models::OperationListResult + def encryption_services + Azure::Storage::Mgmt::V2018_07_01::Models::EncryptionServices end - def resource - Azure::Storage::Mgmt::V2018_07_01::Models::Resource + def usage_list_result + Azure::Storage::Mgmt::V2018_07_01::Models::UsageListResult end - def sku - Azure::Storage::Mgmt::V2018_07_01::Models::Sku + def usage_name + Azure::Storage::Mgmt::V2018_07_01::Models::UsageName end - def cors_rules - Azure::Storage::Mgmt::V2018_07_01::Models::CorsRules + def storage_account + Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccount end def identity Azure::Storage::Mgmt::V2018_07_01::Models::Identity end - def update_history_property - Azure::Storage::Mgmt::V2018_07_01::Models::UpdateHistoryProperty - end - def legal_hold - Azure::Storage::Mgmt::V2018_07_01::Models::LegalHold + def kind + Azure::Storage::Mgmt::V2018_07_01::Models::Kind end - def storage_account_list_result - Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountListResult + def virtual_network_rule + Azure::Storage::Mgmt::V2018_07_01::Models::VirtualNetworkRule end - def immutability_policy_properties - Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyProperties + def access_tier + Azure::Storage::Mgmt::V2018_07_01::Models::AccessTier end - def skucapability - Azure::Storage::Mgmt::V2018_07_01::Models::SKUCapability + def key_permission + Azure::Storage::Mgmt::V2018_07_01::Models::KeyPermission end - def tag_property - Azure::Storage::Mgmt::V2018_07_01::Models::TagProperty + def sku_tier + Azure::Storage::Mgmt::V2018_07_01::Models::SkuTier end - def endpoints - Azure::Storage::Mgmt::V2018_07_01::Models::Endpoints + def services + Azure::Storage::Mgmt::V2018_07_01::Models::Services end - def legal_hold_properties - Azure::Storage::Mgmt::V2018_07_01::Models::LegalHoldProperties + def usage_unit + Azure::Storage::Mgmt::V2018_07_01::Models::UsageUnit end - def check_name_availability_result - Azure::Storage::Mgmt::V2018_07_01::Models::CheckNameAvailabilityResult + def account_status + Azure::Storage::Mgmt::V2018_07_01::Models::AccountStatus end - def cors_rule - Azure::Storage::Mgmt::V2018_07_01::Models::CorsRule + def default_action + Azure::Storage::Mgmt::V2018_07_01::Models::DefaultAction end - def service_specification - Azure::Storage::Mgmt::V2018_07_01::Models::ServiceSpecification + def permissions + Azure::Storage::Mgmt::V2018_07_01::Models::Permissions end - def list_container_items - Azure::Storage::Mgmt::V2018_07_01::Models::ListContainerItems + def skucapability + Azure::Storage::Mgmt::V2018_07_01::Models::SKUCapability end - def storage_account - Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccount + def account_sas_parameters + Azure::Storage::Mgmt::V2018_07_01::Models::AccountSasParameters end - def proxy_resource - Azure::Storage::Mgmt::V2018_07_01::Models::ProxyResource + def list_account_sas_response + Azure::Storage::Mgmt::V2018_07_01::Models::ListAccountSasResponse end - def azure_entity_resource - Azure::Storage::Mgmt::V2018_07_01::Models::AzureEntityResource + def key_vault_properties + Azure::Storage::Mgmt::V2018_07_01::Models::KeyVaultProperties end - def tracked_resource - Azure::Storage::Mgmt::V2018_07_01::Models::TrackedResource + def service_sas_parameters + Azure::Storage::Mgmt::V2018_07_01::Models::ServiceSasParameters end - def blob_container - Azure::Storage::Mgmt::V2018_07_01::Models::BlobContainer + def list_service_sas_response + Azure::Storage::Mgmt::V2018_07_01::Models::ListServiceSasResponse end - def immutability_policy - Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicy + def storage_account_create_parameters + Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountCreateParameters end - def list_container_item - Azure::Storage::Mgmt::V2018_07_01::Models::ListContainerItem + def storage_account_update_parameters + Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountUpdateParameters end - def blob_service_properties - Azure::Storage::Mgmt::V2018_07_01::Models::BlobServiceProperties + def storage_sku_list_result + Azure::Storage::Mgmt::V2018_07_01::Models::StorageSkuListResult end - def reason_code - Azure::Storage::Mgmt::V2018_07_01::Models::ReasonCode + def resource + Azure::Storage::Mgmt::V2018_07_01::Models::Resource end - def sku_name - Azure::Storage::Mgmt::V2018_07_01::Models::SkuName + def legal_hold + Azure::Storage::Mgmt::V2018_07_01::Models::LegalHold end - def sku_tier - Azure::Storage::Mgmt::V2018_07_01::Models::SkuTier + def restriction + Azure::Storage::Mgmt::V2018_07_01::Models::Restriction end - def kind - Azure::Storage::Mgmt::V2018_07_01::Models::Kind + def tag_property + Azure::Storage::Mgmt::V2018_07_01::Models::TagProperty end - def reason - Azure::Storage::Mgmt::V2018_07_01::Models::Reason + def update_history_property + Azure::Storage::Mgmt::V2018_07_01::Models::UpdateHistoryProperty end - def key_source - Azure::Storage::Mgmt::V2018_07_01::Models::KeySource + def immutability_policy_properties + Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyProperties end - def action - Azure::Storage::Mgmt::V2018_07_01::Models::Action + def legal_hold_properties + Azure::Storage::Mgmt::V2018_07_01::Models::LegalHoldProperties end - def state - Azure::Storage::Mgmt::V2018_07_01::Models::State + def operation_display + Azure::Storage::Mgmt::V2018_07_01::Models::OperationDisplay end - def bypass - Azure::Storage::Mgmt::V2018_07_01::Models::Bypass + def list_container_items + Azure::Storage::Mgmt::V2018_07_01::Models::ListContainerItems end - def default_action - Azure::Storage::Mgmt::V2018_07_01::Models::DefaultAction + def operation + Azure::Storage::Mgmt::V2018_07_01::Models::Operation end - def access_tier - Azure::Storage::Mgmt::V2018_07_01::Models::AccessTier + def immutability_policy + Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicy end - def geo_replication_status - Azure::Storage::Mgmt::V2018_07_01::Models::GeoReplicationStatus + def operation_list_result + Azure::Storage::Mgmt::V2018_07_01::Models::OperationListResult end - def provisioning_state - Azure::Storage::Mgmt::V2018_07_01::Models::ProvisioningState + def blob_container + Azure::Storage::Mgmt::V2018_07_01::Models::BlobContainer end - def account_status - Azure::Storage::Mgmt::V2018_07_01::Models::AccountStatus + def key_source + Azure::Storage::Mgmt::V2018_07_01::Models::KeySource end - def key_permission - Azure::Storage::Mgmt::V2018_07_01::Models::KeyPermission + def list_container_item + Azure::Storage::Mgmt::V2018_07_01::Models::ListContainerItem end - def usage_unit - Azure::Storage::Mgmt::V2018_07_01::Models::UsageUnit + def reason_code + Azure::Storage::Mgmt::V2018_07_01::Models::ReasonCode end - def services - Azure::Storage::Mgmt::V2018_07_01::Models::Services + def http_protocol + Azure::Storage::Mgmt::V2018_07_01::Models::HttpProtocol end - def signed_resource_types - Azure::Storage::Mgmt::V2018_07_01::Models::SignedResourceTypes + def bypass + Azure::Storage::Mgmt::V2018_07_01::Models::Bypass end - def permissions - Azure::Storage::Mgmt::V2018_07_01::Models::Permissions + def check_name_availability_result + Azure::Storage::Mgmt::V2018_07_01::Models::CheckNameAvailabilityResult end - def http_protocol - Azure::Storage::Mgmt::V2018_07_01::Models::HttpProtocol + def lease_status + Azure::Storage::Mgmt::V2018_07_01::Models::LeaseStatus end def signed_resource Azure::Storage::Mgmt::V2018_07_01::Models::SignedResource @@ -378,11 +375,11 @@ def signed_resource def public_access Azure::Storage::Mgmt::V2018_07_01::Models::PublicAccess end - def lease_status - Azure::Storage::Mgmt::V2018_07_01::Models::LeaseStatus + def service_specification + Azure::Storage::Mgmt::V2018_07_01::Models::ServiceSpecification end - def lease_state - Azure::Storage::Mgmt::V2018_07_01::Models::LeaseState + def iprule + Azure::Storage::Mgmt::V2018_07_01::Models::IPRule end def lease_duration Azure::Storage::Mgmt::V2018_07_01::Models::LeaseDuration @@ -390,11 +387,14 @@ def lease_duration def immutability_policy_state Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyState end - def immutability_policy_update_type - Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyUpdateType + def sku_name + Azure::Storage::Mgmt::V2018_07_01::Models::SkuName end - def storage_account_expand - Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountExpand + def action + Azure::Storage::Mgmt::V2018_07_01::Models::Action + end + def usage + Azure::Storage::Mgmt::V2018_07_01::Models::Usage 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..692eea2d0e 100644 --- a/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb +++ b/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb @@ -8,6 +8,7 @@ module Azure::Profiles::Latest module StorSimple8000Series module Mgmt Operations = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Operations + BackupPolicies = Azure::StorSimple8000Series::Mgmt::V2017_06_01::BackupPolicies 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,16 +16,72 @@ 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 + Backups = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Backups Volumes = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Volumes StorageAccountCredentials = Azure::StorSimple8000Series::Mgmt::V2017_06_01::StorageAccountCredentials + Jobs = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Jobs module Models + Updates = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Updates + SecuritySettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecuritySettings + StorageAccountCredential = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::StorageAccountCredential + AlertSourceType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSourceType + AlertStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertStatus + VolumeContainer = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainer + Volume = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Volume + VolumeType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeType + ScheduledBackupStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduledBackupStatus + AlertEmailNotificationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertEmailNotificationStatus + BackupJobCreationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupJobCreationType + AlertScope = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertScope + ControllerPowerStateAction = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerPowerStateAction + BackupType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupType + RecurrenceType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RecurrenceType + EncryptionAlgorithm = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionAlgorithm + DeviceStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceStatus + ControllerId = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerId + BackupPolicyCreationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyCreationType + DeviceConfigurationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceConfigurationStatus + ScheduleStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduleStatus + DeviceType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceType + VirtualMachineApiType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VirtualMachineApiType + DayOfWeek = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DayOfWeek + AuthorizationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationStatus + Kind = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Kind + EncryptionStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionStatus + KeyRolloverStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::KeyRolloverStatus + AuthorizationEligibility = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationEligibility + ControllerStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerStatus + InEligibilityCategory = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::InEligibilityCategory + HardwareComponentStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::HardwareComponentStatus + ManagerType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerType + TargetEligibilityStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityStatus + TargetEligibilityResultCode = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResultCode + Alert = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Alert + NetworkMode = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkMode + MetricUnit = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricUnit + JobType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobType + NetInterfaceStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceStatus + ISCSIAndCloudStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ISCSIAndCloudStatus + FeatureSupportStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FeatureSupportStatus + 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 + JobStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobStatus + OwnerShipStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OwnerShipStatus + VolumeStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeStatus + MonitoringStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MonitoringStatus + MetricAggregationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricAggregationType + OperationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OperationStatus + AlertSeverity = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSeverity + AuthenticationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthenticationType + BackupStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupStatus + Job = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Job + Resource = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Resource + MetricDimension = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDimension 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 @@ -48,7 +105,6 @@ module Models 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 +120,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,16 +130,18 @@ 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 + JobErrorDetails = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobErrorDetails + Time = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Time BackupScheduleList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupScheduleList - ManagerIntrinsicSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerIntrinsicSettings + ListFailoverTargetsRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ListFailoverTargetsRequest BandwidthSettingList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSettingList - ManagerSku = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerSku + ManagerIntrinsicSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerIntrinsicSettings CloneRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloneRequest - NetworkAdapterList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkAdapterList + Key = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Key CloudApplianceConfigurationList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloudApplianceConfigurationList + NetworkAdapterList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkAdapterList + ManagerSku = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerSku NetworkAdapters = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkAdapters SecuritySettingsPatch = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecuritySettingsPatch ManagerList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerList @@ -96,98 +152,42 @@ 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 + MetricDefinitionList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinitionList + DeviceList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceList + VmImage = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VmImage 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 - MetricDefinitionList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinitionList + DataStatistics = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DataStatistics VolumeList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeList - MetricNameFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricNameFilter - VmImage = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VmImage + MetricName = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricName + BandwidthSchedule = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSchedule 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 + MetricNameFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricNameFilter MetricList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricList - BandwidthSchedule = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSchedule + AlertSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSettings NicIPv4 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv4 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 + Metrics = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Metrics Backup = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Backup 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 - CloudApplianceConfiguration = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloudApplianceConfiguration + BackupSchedule = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupSchedule ConfigureDeviceRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ConfigureDeviceRequest ControllerPowerStateChangeRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerPowerStateChangeRequest Device = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Device + CloudApplianceConfiguration = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloudApplianceConfiguration 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 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 - StorageAccountCredential = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::StorageAccountCredential + HardwareComponentGroup = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::HardwareComponentGroup + Manager = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Manager 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 - 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 - AlertStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertStatus - 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 - 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 - 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 - DeviceConfigurationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceConfigurationStatus - DeviceStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceStatus - 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 - AuthorizationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationStatus - InEligibilityCategory = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::InEligibilityCategory - 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 - TargetEligibilityResultCode = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResultCode - FeatureSupportStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FeatureSupportStatus - 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 - MetricAggregationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricAggregationType - NetInterfaceId = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceId - 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 - RemoteManagementModeConfiguration = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementModeConfiguration - SslStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SslStatus - 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 - OwnerShipStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OwnerShipStatus 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 :operations, :backup_policies, :managers, :access_control_records, :alerts, :bandwidth_settings, :cloud_appliances, :devices, :device_settings, :backup_schedules, :hardware_component_groups, :volume_containers, :backups, :volumes, :storage_account_credentials, :jobs, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -198,6 +198,7 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @operations = @client_0.operations + @backup_policies = @client_0.backup_policies @managers = @client_0.managers @access_control_records = @client_0.access_control_records @alerts = @client_0.alerts @@ -205,14 +206,13 @@ 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 + @backups = @client_0.backups @volumes = @client_0.volumes @storage_account_credentials = @client_0.storage_account_credentials + @jobs = @client_0.jobs @model_classes = ModelClasses.new end @@ -231,77 +231,245 @@ def method_missing(method, *args) end class ModelClasses - def target_eligibility_result - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResult + def updates + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Updates end - def failover_target - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTarget + def security_settings + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecuritySettings end - def access_control_record_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AccessControlRecordList + def storage_account_credential + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::StorageAccountCredential end - def failover_targets_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTargetsList + def alert_source_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSourceType end - def alert_source - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSource + def alert_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertStatus end - def feature - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Feature + def volume_container + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainer end - def remote_management_settings - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementSettings + def volume + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Volume end - def failover_request - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverRequest + def volume_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeType end - def alert_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertList + def scheduled_backup_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduledBackupStatus end - def volume_failover_metadata - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeFailoverMetadata + def alert_email_notification_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertEmailNotificationStatus end - def asymmetric_encrypted_secret - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AsymmetricEncryptedSecret + def backup_job_creation_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupJobCreationType end - def volume_container_failover_metadata - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainerFailoverMetadata + def alert_scope + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertScope end - def available_provider_operation - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperation + def controller_power_state_action + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerPowerStateAction end - def failover_set_eligibility_result - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSetEligibilityResult + def backup_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupType end - def backup_element - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupElement + def recurrence_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RecurrenceType end - def failover_set - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSet + def encryption_algorithm + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionAlgorithm end - def backup_filter - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupFilter + def device_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceStatus end - def failover_sets_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSetsList + def controller_id + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerId end - def volume_container_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainerList + def backup_policy_creation_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyCreationType end - def target_eligibility_error_message - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityErrorMessage + def device_configuration_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceConfigurationStatus end - def schedule_recurrence - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduleRecurrence + def schedule_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduleStatus end - def symmetric_encrypted_secret - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SymmetricEncryptedSecret + def device_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceType end - def nic_ipv6 - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv6 + def virtual_machine_api_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VirtualMachineApiType end - def time - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Time + def day_of_week + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DayOfWeek + end + def authorization_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationStatus + end + def kind + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Kind + end + def encryption_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionStatus + end + def key_rollover_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::KeyRolloverStatus + end + def authorization_eligibility + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationEligibility + end + def controller_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerStatus + end + 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 manager_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerType + end + def target_eligibility_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityStatus + end + def target_eligibility_result_code + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResultCode + end + def alert + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Alert + end + def network_mode + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkMode + end + def metric_unit + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricUnit + end + def job_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobType + end + def net_interface_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceStatus + end + def iscsiand_cloud_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ISCSIAndCloudStatus + end + def feature_support_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FeatureSupportStatus + 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 + end + def net_interface_id + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceId + end + def job_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobStatus + end + def owner_ship_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OwnerShipStatus + 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 metric_aggregation_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricAggregationType + end + def operation_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OperationStatus + end + def alert_severity + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSeverity + end + def authentication_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthenticationType + end + def backup_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupStatus + end + def job + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Job + end + def resource + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Resource + end + def metric_dimension + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDimension + 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 + def failover_sets_list + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSetsList + end + def volume_container_list + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainerList + end + def target_eligibility_error_message + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityErrorMessage + end + def schedule_recurrence + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduleRecurrence + end + def symmetric_encrypted_secret + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SymmetricEncryptedSecret + end + def nic_ipv6 + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv6 end def acs_configuration Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AcsConfiguration @@ -348,18 +516,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,36 +546,42 @@ 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 + def job_error_details + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobErrorDetails + end + def time + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Time end def backup_schedule_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupScheduleList end - def manager_intrinsic_settings - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerIntrinsicSettings + def list_failover_targets_request + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ListFailoverTargetsRequest end def bandwidth_setting_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSettingList end - def manager_sku - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerSku + def manager_intrinsic_settings + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerIntrinsicSettings end def clone_request Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloneRequest end - def network_adapter_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkAdapterList + def key + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Key end def cloud_appliance_configuration_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloudApplianceConfigurationList end + def network_adapter_list + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkAdapterList + end + def manager_sku + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerSku + end def network_adapters Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkAdapters end @@ -444,14 +612,17 @@ 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 + 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 vm_image + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VmImage end def secondary_dnssettings Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecondaryDNSSettings @@ -459,20 +630,17 @@ def secondary_dnssettings def metric_definition Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinition 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 data_statistics + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DataStatistics end def volume_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeList end - def metric_name_filter - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricNameFilter + def metric_name + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricName end - def vm_image - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VmImage + def bandwidth_schedule + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSchedule end def metric_filter Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricFilter @@ -480,17 +648,14 @@ def metric_filter 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 metric_name_filter + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricNameFilter end def metric_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricList end - def bandwidth_schedule - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSchedule + def alert_settings + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSettings end def nic_ipv4 Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv4 @@ -498,11 +663,8 @@ def nic_ipv4 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 + def metrics + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Metrics end def backup Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Backup @@ -510,14 +672,11 @@ def backup def backup_policy Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicy end - def backup_schedule - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupSchedule - end def bandwidth_setting Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSetting end - def cloud_appliance_configuration - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloudApplianceConfiguration + def backup_schedule + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupSchedule end def configure_device_request Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ConfigureDeviceRequest @@ -528,186 +687,27 @@ def controller_power_state_change_request def device Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Device end + def cloud_appliance_configuration + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloudApplianceConfiguration + 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 - end - def manager - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Manager - end def manager_extended_info Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerExtendedInfo end def network_settings Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkSettings end - def security_settings - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecuritySettings + def hardware_component_group + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::HardwareComponentGroup end - def storage_account_credential - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::StorageAccountCredential + def manager + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Manager 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 - end - def volume_container - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainer - 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 - end - def alert_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertStatus - 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 - 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 - end - def volume_type - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeType - end - 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 - end - def day_of_week - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DayOfWeek - 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 - 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 - end - def device_type - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceType - end - 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 - 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 - end - def encryption_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionStatus - end - 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 - 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 - 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 - 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 - end - def net_interface_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceStatus - end - 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 - 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 - end - def volume_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeStatus - 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 - end - def owner_ship_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OwnerShipStatus - end 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..1cf383202c 100644 --- a/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb @@ -7,25 +7,24 @@ module Azure::Profiles::Latest module StreamAnalytics module Mgmt - Operations = Azure::StreamAnalytics::Mgmt::V2016_03_01::Operations 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 + Operations = Azure::StreamAnalytics::Mgmt::V2016_03_01::Operations module Models + Sku = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Sku + ErrorResponse = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ErrorResponse + Serialization = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Serialization + Encoding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding 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,34 +35,32 @@ 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 + AzureSqlDatabaseDataSourceProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureSqlDatabaseDataSourceProperties InputListResult = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::InputListResult - 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 + AzureMachineLearningWebServiceOutputColumn = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceOutputColumn 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 + FunctionListResult = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionListResult Output = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Output - Function = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Function StreamingJob = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamingJob JavaScriptFunctionBinding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionBinding + Function = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Function AzureMachineLearningWebServiceFunctionBinding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceFunctionBinding ScalarFunctionProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ScalarFunctionProperties AvroSerialization = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AvroSerialization JsonSerialization = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonSerialization CsvSerialization = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::CsvSerialization AzureDataLakeStoreOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureDataLakeStoreOutputDataSource - PowerBIOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::PowerBIOutputDataSource + Diagnostics = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Diagnostics EventHubDataSourceProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubDataSourceProperties + PowerBIOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::PowerBIOutputDataSource + Resource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Resource ServiceBusTopicOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ServiceBusTopicOutputDataSource ServiceBusQueueOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ServiceBusQueueOutputDataSource DocumentDbOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DocumentDbOutputDataSource @@ -71,27 +68,30 @@ module Models EventHubOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubOutputDataSource AzureTableOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureTableOutputDataSource BlobOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobOutputDataSource - BlobReferenceInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobReferenceInputDataSource + OperationDisplay = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationDisplay ReferenceInputProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ReferenceInputProperties - IoTHubStreamInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::IoTHubStreamInputDataSource + Operation = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Operation + BlobReferenceInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobReferenceInputDataSource + OperationListResult = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationListResult + SubResource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubResource EventHubStreamInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubStreamInputDataSource BlobStreamInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobStreamInputDataSource StreamInputProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamInputProperties - AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters + IoTHubStreamInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::IoTHubStreamInputDataSource JavaScriptFunctionRetrieveDefaultDefinitionParameters = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionRetrieveDefaultDefinitionParameters 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 - EventsOutOfOrderPolicy = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventsOutOfOrderPolicy + AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters OutputErrorPolicy = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputErrorPolicy CompatibilityLevel = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::CompatibilityLevel JsonOutputSerializationFormat = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonOutputSerializationFormat - Encoding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding + EventsOutOfOrderPolicy = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventsOutOfOrderPolicy + SkuName = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SkuName UdfType = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::UdfType end class StreamAnalyticsManagementClass - attr_reader :operations, :streaming_jobs, :inputs, :outputs, :transformations, :functions, :subscriptions, :configurable, :base_url, :options, :model_classes + attr_reader :streaming_jobs, :inputs, :outputs, :transformations, :functions, :subscriptions, :operations, :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) - @operations = @client_0.operations @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 + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -126,36 +126,33 @@ def method_missing(method, *args) end class ModelClasses + def sku + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Sku + end + def error_response + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ErrorResponse + end + def serialization + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Serialization + end + def encoding + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding + end 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 - def diagnostics - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Diagnostics - end 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,66 +183,54 @@ 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 def stream_input_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamInputDataSource end def streaming_job_list_result Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamingJobListResult end + def azure_sql_database_data_source_properties + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureSqlDatabaseDataSourceProperties + end def input_list_result Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::InputListResult end - def azure_machine_learning_web_service_output_column - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceOutputColumn - end def oauth_based_data_source_properties Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OAuthBasedDataSourceProperties end def resource_test_status Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ResourceTestStatus end - def error_response - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ErrorResponse + def azure_machine_learning_web_service_output_column + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceOutputColumn 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 def input Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Input end def transformation Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Transformation end + def function_list_result + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionListResult + end def output Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Output end - def function - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Function - end def streaming_job Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamingJob end def java_script_function_binding Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionBinding end + def function + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Function + end def azure_machine_learning_web_service_function_binding Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceFunctionBinding end @@ -264,12 +249,18 @@ def csv_serialization def azure_data_lake_store_output_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureDataLakeStoreOutputDataSource end - def power_bioutput_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::PowerBIOutputDataSource + def diagnostics + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Diagnostics end def event_hub_data_source_properties Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubDataSourceProperties end + def power_bioutput_data_source + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::PowerBIOutputDataSource + end + def resource + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Resource + end def service_bus_topic_output_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ServiceBusTopicOutputDataSource end @@ -291,14 +282,23 @@ def azure_table_output_data_source def blob_output_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobOutputDataSource end - def blob_reference_input_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobReferenceInputDataSource + def operation_display + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationDisplay end def reference_input_properties Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ReferenceInputProperties end - def io_thub_stream_input_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::IoTHubStreamInputDataSource + def operation + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Operation + end + def blob_reference_input_data_source + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobReferenceInputDataSource + end + def operation_list_result + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationListResult + end + def sub_resource + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubResource end def event_hub_stream_input_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubStreamInputDataSource @@ -309,8 +309,8 @@ def blob_stream_input_data_source def stream_input_properties Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamInputProperties end - def azure_machine_learning_web_service_function_retrieve_default_definition_parameters - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters + def io_thub_stream_input_data_source + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::IoTHubStreamInputDataSource end def java_script_function_retrieve_default_definition_parameters Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionRetrieveDefaultDefinitionParameters @@ -318,14 +318,11 @@ def java_script_function_retrieve_default_definition_parameters def subscription_quota Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubscriptionQuota end - def sku_name - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SkuName - 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 azure_machine_learning_web_service_function_retrieve_default_definition_parameters + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters end def output_error_policy Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputErrorPolicy @@ -336,8 +333,11 @@ def compatibility_level def json_output_serialization_format Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonOutputSerializationFormat end - def encoding - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding + def events_out_of_order_policy + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventsOutOfOrderPolicy + end + def sku_name + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SkuName end def udf_type Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::UdfType diff --git a/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb b/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb index 6cbd1506c7..97797e88c6 100644 --- a/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb +++ b/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb @@ -8,26 +8,26 @@ module Azure::Profiles::Latest module Subscriptions module Mgmt Operations = Azure::Subscriptions::Mgmt::V2016_06_01::Operations - Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants + Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions module Models - 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 OperationDisplay = Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationDisplay - SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult Operation = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Operation - Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription + TenantIdDescription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription OperationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationListResult + SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies + TenantListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult LocationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult SubscriptionState = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState + Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription SpendingLimit = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit + SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult end class SubscriptionsManagementClass - attr_reader :operations, :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :tenants, :subscriptions, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -38,8 +38,8 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @operations = @client_0.operations - @subscriptions = @client_0.subscriptions @tenants = @client_0.tenants + @subscriptions = @client_0.subscriptions @model_classes = ModelClasses.new end @@ -58,42 +58,42 @@ def method_missing(method, *args) end class ModelClasses - 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 - def subscription_policies - Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies - end def operation_display Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationDisplay end - def subscription_list_result - Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult - end def operation Azure::Subscriptions::Mgmt::V2016_06_01::Models::Operation end - def subscription - Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription + def tenant_id_description + Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription end def operation_list_result Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationListResult end + def subscription_policies + Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies + end + def tenant_list_result + Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult + end def location_list_result Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult end def subscription_state Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState end + def subscription + Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription + end def spending_limit Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit end + def subscription_list_result + Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult + end end end end diff --git a/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb b/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb index d80dab0eda..378540c3f5 100644 --- a/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb @@ -15,17 +15,17 @@ module Models LanguageBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::LanguageBatchResult KeyPhraseBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::KeyPhraseBatchResult SentimentBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResultItem - ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorResponse SentimentBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResult BatchInput = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::BatchInput MatchRecordV2dot1 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MatchRecordV2dot1 ErrorRecord = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorRecord EntityRecordV2dot1 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntityRecordV2dot1 - Input = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::Input EntitiesBatchResultItemV2dot1 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultItemV2dot1 InternalError = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::InternalError + Input = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::Input EntitiesBatchResultV2dot1 = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultV2dot1 MultiLanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MultiLanguageBatchInput + ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorResponse end class TextAnalyticsDataClass @@ -78,9 +78,6 @@ def key_phrase_batch_result def sentiment_batch_result_item Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResultItem end - def error_response - Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::ErrorResponse - end def sentiment_batch_result Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::SentimentBatchResult end @@ -96,21 +93,24 @@ def error_record def entity_record_v2dot1 Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntityRecordV2dot1 end - def input - Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::Input - end def entities_batch_result_item_v2dot1 Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultItemV2dot1 end def internal_error Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::InternalError end + def input + Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::Input + end def entities_batch_result_v2dot1 Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::EntitiesBatchResultV2dot1 end def multi_language_batch_input Azure::CognitiveServices::TextAnalytics::V2_1_preview::Models::MultiLanguageBatchInput end + def error_response + Azure::CognitiveServices::TextAnalytics::V2_1_preview::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..a829946288 100644 --- a/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb +++ b/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb @@ -14,6 +14,9 @@ module Mgmt TrafficManagerUserMetricsKeys = Azure::TrafficManager::Mgmt::V2018_04_01::TrafficManagerUserMetricsKeys module Models + 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 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 @@ -26,16 +29,11 @@ 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 - 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 + Resource = Azure::TrafficManager::Mgmt::V2018_04_01::Models::Resource EndpointStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointStatus EndpointMonitorStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointMonitorStatus ProfileMonitorStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileMonitorStatus @@ -43,6 +41,8 @@ module Models 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 + Profile = Azure::TrafficManager::Mgmt::V2018_04_01::Models::Profile + Endpoint = Azure::TrafficManager::Mgmt::V2018_04_01::Models::Endpoint end class TrafficManagerManagementClass @@ -79,6 +79,15 @@ def method_missing(method, *args) end class ModelClasses + 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 monitor_config_custom_headers_item Azure::TrafficManager::Mgmt::V2018_04_01::Models::MonitorConfigCustomHeadersItem end @@ -115,12 +124,6 @@ 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 @@ -130,21 +133,12 @@ def heat_map_model def user_metrics_model Azure::TrafficManager::Mgmt::V2018_04_01::Models::UserMetricsModel 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 resource + Azure::TrafficManager::Mgmt::V2018_04_01::Models::Resource + end def endpoint_status Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointStatus end @@ -166,6 +160,12 @@ def traffic_routing_method def traffic_view_enrollment_status Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficViewEnrollmentStatus end + def profile + Azure::TrafficManager::Mgmt::V2018_04_01::Models::Profile + end + def endpoint + Azure::TrafficManager::Mgmt::V2018_04_01::Models::Endpoint + 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 aab1daea75..08a349503d 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 - 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 - SearchResultsAnswer = Azure::CognitiveServices::VideoSearch::V1_0::Models::SearchResultsAnswer - 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 + ErrorSubCode = Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorSubCode ErrorResponse = Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorResponse + Freshness = Azure::CognitiveServices::VideoSearch::V1_0::Models::Freshness + TrendingVideosCategory = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosCategory + Response = Azure::CognitiveServices::VideoSearch::V1_0::Models::Response + TrendingVideosSubcategory = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosSubcategory + 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 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 + VideosModule = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideosModule 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 + TextFormat = Azure::CognitiveServices::VideoSearch::V1_0::Models::TextFormat + QueryContext = Azure::CognitiveServices::VideoSearch::V1_0::Models::QueryContext + ResponseBase = Azure::CognitiveServices::VideoSearch::V1_0::Models::ResponseBase + Answer = Azure::CognitiveServices::VideoSearch::V1_0::Models::Answer + SearchResultsAnswer = Azure::CognitiveServices::VideoSearch::V1_0::Models::SearchResultsAnswer + Thing = Azure::CognitiveServices::VideoSearch::V1_0::Models::Thing + CreativeWork = Azure::CognitiveServices::VideoSearch::V1_0::Models::CreativeWork + Identifiable = Azure::CognitiveServices::VideoSearch::V1_0::Models::Identifiable + VideoObject = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoObject + Error = Azure::CognitiveServices::VideoSearch::V1_0::Models::Error + SafeSearch = Azure::CognitiveServices::VideoSearch::V1_0::Models::SafeSearch + ErrorCode = Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorCode end class VideoSearchDataClass @@ -73,65 +73,41 @@ def method_missing(method, *args) end class ModelClasses - def trending_videos_category - Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosCategory - end - def trending_videos_subcategory - Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosSubcategory - end - def error - Azure::CognitiveServices::VideoSearch::V1_0::Models::Error - end def pivot_suggestions Azure::CognitiveServices::VideoSearch::V1_0::Models::PivotSuggestions end - def query_context - Azure::CognitiveServices::VideoSearch::V1_0::Models::QueryContext - end 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 + def media_object + Azure::CognitiveServices::VideoSearch::V1_0::Models::MediaObject end - def response - Azure::CognitiveServices::VideoSearch::V1_0::Models::Response + def error_sub_code + Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorSubCode end - def answer - Azure::CognitiveServices::VideoSearch::V1_0::Models::Answer + def error_response + Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorResponse end - def search_results_answer - Azure::CognitiveServices::VideoSearch::V1_0::Models::SearchResultsAnswer + def freshness + Azure::CognitiveServices::VideoSearch::V1_0::Models::Freshness end - def thing - Azure::CognitiveServices::VideoSearch::V1_0::Models::Thing + def trending_videos_category + Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosCategory end - def creative_work - Azure::CognitiveServices::VideoSearch::V1_0::Models::CreativeWork + def response + Azure::CognitiveServices::VideoSearch::V1_0::Models::Response end - def media_object - Azure::CognitiveServices::VideoSearch::V1_0::Models::MediaObject + def trending_videos_subcategory + Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosSubcategory end - def identifiable - Azure::CognitiveServices::VideoSearch::V1_0::Models::Identifiable + def trending_videos_tile + Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosTile end - def error_response - Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorResponse + def videos + Azure::CognitiveServices::VideoSearch::V1_0::Models::Videos end def trending_videos Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideos @@ -142,14 +118,8 @@ def video_details def video_query_scenario Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoQueryScenario end - def error_code - Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorCode - end - def error_sub_code - Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorSubCode - end - def freshness - Azure::CognitiveServices::VideoSearch::V1_0::Models::Freshness + def videos_module + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideosModule end def video_length Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoLength @@ -160,14 +130,44 @@ def video_pricing def video_resolution Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoResolution end - def safe_search - Azure::CognitiveServices::VideoSearch::V1_0::Models::SafeSearch + def video_insight_module + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoInsightModule end def text_format Azure::CognitiveServices::VideoSearch::V1_0::Models::TextFormat end - def video_insight_module - Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoInsightModule + def query_context + Azure::CognitiveServices::VideoSearch::V1_0::Models::QueryContext + end + def response_base + Azure::CognitiveServices::VideoSearch::V1_0::Models::ResponseBase + end + def answer + Azure::CognitiveServices::VideoSearch::V1_0::Models::Answer + 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 identifiable + Azure::CognitiveServices::VideoSearch::V1_0::Models::Identifiable + end + def video_object + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoObject + end + def error + Azure::CognitiveServices::VideoSearch::V1_0::Models::Error + end + def safe_search + Azure::CognitiveServices::VideoSearch::V1_0::Models::SafeSearch + end + def error_code + Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorCode end end end diff --git a/azure_sdk/lib/latest/modules/visualsearch_profile_module.rb b/azure_sdk/lib/latest/modules/visualsearch_profile_module.rb index 06546c4c6f..94689affd0 100644 --- a/azure_sdk/lib/latest/modules/visualsearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/visualsearch_profile_module.rb @@ -9,53 +9,53 @@ module VisualSearch Images = Azure::CognitiveServices::VisualSearch::V1_0::Images module Models - Error = Azure::CognitiveServices::VisualSearch::V1_0::Models::Error - CropArea = Azure::CognitiveServices::VisualSearch::V1_0::Models::CropArea - ImageInfo = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageInfo - ImageTagRegion = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageTagRegion - ImagesImageMetadata = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImagesImageMetadata - RelatedSearchesModule = Azure::CognitiveServices::VisualSearch::V1_0::Models::RelatedSearchesModule - Filters = Azure::CognitiveServices::VisualSearch::V1_0::Models::Filters - ImagesModule = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImagesModule - KnowledgeRequest = Azure::CognitiveServices::VisualSearch::V1_0::Models::KnowledgeRequest - RecipesModule = Azure::CognitiveServices::VisualSearch::V1_0::Models::RecipesModule - ResponseBase = Azure::CognitiveServices::VisualSearch::V1_0::Models::ResponseBase - Query = Azure::CognitiveServices::VisualSearch::V1_0::Models::Query - VisualSearchRequest = Azure::CognitiveServices::VisualSearch::V1_0::Models::VisualSearchRequest - PropertiesItem = Azure::CognitiveServices::VisualSearch::V1_0::Models::PropertiesItem Point2D = Azure::CognitiveServices::VisualSearch::V1_0::Models::Point2D NormalizedQuadrilateral = Azure::CognitiveServices::VisualSearch::V1_0::Models::NormalizedQuadrilateral ImageAction = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageAction - ImageTag = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageTag - Organization = Azure::CognitiveServices::VisualSearch::V1_0::Models::Organization - AggregateRating = Azure::CognitiveServices::VisualSearch::V1_0::Models::AggregateRating - Offer = Azure::CognitiveServices::VisualSearch::V1_0::Models::Offer - AggregateOffer = Azure::CognitiveServices::VisualSearch::V1_0::Models::AggregateOffer - ImageObject = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageObject - Identifiable = Azure::CognitiveServices::VisualSearch::V1_0::Models::Identifiable - Response = Azure::CognitiveServices::VisualSearch::V1_0::Models::Response ImageKnowledge = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageKnowledge - ErrorResponse = Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorResponse - Thing = Azure::CognitiveServices::VisualSearch::V1_0::Models::Thing - CreativeWork = Azure::CognitiveServices::VisualSearch::V1_0::Models::CreativeWork - Action = Azure::CognitiveServices::VisualSearch::V1_0::Models::Action - MediaObject = Azure::CognitiveServices::VisualSearch::V1_0::Models::MediaObject - Person = Azure::CognitiveServices::VisualSearch::V1_0::Models::Person - Intangible = Azure::CognitiveServices::VisualSearch::V1_0::Models::Intangible ImageEntityAction = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageEntityAction ImageModuleAction = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageModuleAction - Recipe = Azure::CognitiveServices::VisualSearch::V1_0::Models::Recipe ImageRecipesAction = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageRecipesAction ImageRelatedSearchesAction = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageRelatedSearchesAction ImageShoppingSourcesAction = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageShoppingSourcesAction + ContentTypes = Azure::CognitiveServices::VisualSearch::V1_0::Models::ContentTypes + ErrorCode = Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorCode + SafeSearch = Azure::CognitiveServices::VisualSearch::V1_0::Models::SafeSearch + Query = Azure::CognitiveServices::VisualSearch::V1_0::Models::Query + ImageObject = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageObject + MediaObject = Azure::CognitiveServices::VisualSearch::V1_0::Models::MediaObject + ErrorSubCode = Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorSubCode + ErrorResponse = Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorResponse + Response = Azure::CognitiveServices::VisualSearch::V1_0::Models::Response + Organization = Azure::CognitiveServices::VisualSearch::V1_0::Models::Organization + Intangible = Azure::CognitiveServices::VisualSearch::V1_0::Models::Intangible StructuredValue = Azure::CognitiveServices::VisualSearch::V1_0::Models::StructuredValue + Error = Azure::CognitiveServices::VisualSearch::V1_0::Models::Error + ImageTag = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageTag + RelatedSearchesModule = Azure::CognitiveServices::VisualSearch::V1_0::Models::RelatedSearchesModule + PropertiesItem = Azure::CognitiveServices::VisualSearch::V1_0::Models::PropertiesItem + RecipesModule = Azure::CognitiveServices::VisualSearch::V1_0::Models::RecipesModule + ImagesImageMetadata = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImagesImageMetadata + ImagesModule = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImagesModule + AggregateRating = Azure::CognitiveServices::VisualSearch::V1_0::Models::AggregateRating + Offer = Azure::CognitiveServices::VisualSearch::V1_0::Models::Offer + AggregateOffer = Azure::CognitiveServices::VisualSearch::V1_0::Models::AggregateOffer + Recipe = Azure::CognitiveServices::VisualSearch::V1_0::Models::Recipe + Filters = Azure::CognitiveServices::VisualSearch::V1_0::Models::Filters Rating = Azure::CognitiveServices::VisualSearch::V1_0::Models::Rating Currency = Azure::CognitiveServices::VisualSearch::V1_0::Models::Currency ItemAvailability = Azure::CognitiveServices::VisualSearch::V1_0::Models::ItemAvailability - ErrorCode = Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorCode - ErrorSubCode = Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorSubCode - SafeSearch = Azure::CognitiveServices::VisualSearch::V1_0::Models::SafeSearch - ContentTypes = Azure::CognitiveServices::VisualSearch::V1_0::Models::ContentTypes + Person = Azure::CognitiveServices::VisualSearch::V1_0::Models::Person + Action = Azure::CognitiveServices::VisualSearch::V1_0::Models::Action + ResponseBase = Azure::CognitiveServices::VisualSearch::V1_0::Models::ResponseBase + Thing = Azure::CognitiveServices::VisualSearch::V1_0::Models::Thing + CreativeWork = Azure::CognitiveServices::VisualSearch::V1_0::Models::CreativeWork + Identifiable = Azure::CognitiveServices::VisualSearch::V1_0::Models::Identifiable + CropArea = Azure::CognitiveServices::VisualSearch::V1_0::Models::CropArea + ImageInfo = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageInfo + ImageTagRegion = Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageTagRegion + KnowledgeRequest = Azure::CognitiveServices::VisualSearch::V1_0::Models::KnowledgeRequest + VisualSearchRequest = Azure::CognitiveServices::VisualSearch::V1_0::Models::VisualSearchRequest end class VisualSearchDataClass @@ -88,125 +88,104 @@ def method_missing(method, *args) end class ModelClasses - def error - Azure::CognitiveServices::VisualSearch::V1_0::Models::Error + def point2_d + Azure::CognitiveServices::VisualSearch::V1_0::Models::Point2D end - def crop_area - Azure::CognitiveServices::VisualSearch::V1_0::Models::CropArea + def normalized_quadrilateral + Azure::CognitiveServices::VisualSearch::V1_0::Models::NormalizedQuadrilateral end - def image_info - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageInfo + def image_action + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageAction end - def image_tag_region - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageTagRegion + def image_knowledge + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageKnowledge end - def images_image_metadata - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImagesImageMetadata + def image_entity_action + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageEntityAction end - def related_searches_module - Azure::CognitiveServices::VisualSearch::V1_0::Models::RelatedSearchesModule + def image_module_action + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageModuleAction end - def filters - Azure::CognitiveServices::VisualSearch::V1_0::Models::Filters + def image_recipes_action + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageRecipesAction end - def images_module - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImagesModule + def image_related_searches_action + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageRelatedSearchesAction end - def knowledge_request - Azure::CognitiveServices::VisualSearch::V1_0::Models::KnowledgeRequest + def image_shopping_sources_action + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageShoppingSourcesAction end - def recipes_module - Azure::CognitiveServices::VisualSearch::V1_0::Models::RecipesModule + def content_types + Azure::CognitiveServices::VisualSearch::V1_0::Models::ContentTypes end - def response_base - Azure::CognitiveServices::VisualSearch::V1_0::Models::ResponseBase + def error_code + Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorCode + end + def safe_search + Azure::CognitiveServices::VisualSearch::V1_0::Models::SafeSearch end def query Azure::CognitiveServices::VisualSearch::V1_0::Models::Query end - def visual_search_request - Azure::CognitiveServices::VisualSearch::V1_0::Models::VisualSearchRequest - end - def properties_item - Azure::CognitiveServices::VisualSearch::V1_0::Models::PropertiesItem + def image_object + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageObject end - def point2_d - Azure::CognitiveServices::VisualSearch::V1_0::Models::Point2D + def media_object + Azure::CognitiveServices::VisualSearch::V1_0::Models::MediaObject end - def normalized_quadrilateral - Azure::CognitiveServices::VisualSearch::V1_0::Models::NormalizedQuadrilateral + def error_sub_code + Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorSubCode end - def image_action - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageAction + def error_response + Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorResponse end - def image_tag - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageTag + def response + Azure::CognitiveServices::VisualSearch::V1_0::Models::Response end def organization Azure::CognitiveServices::VisualSearch::V1_0::Models::Organization end - def aggregate_rating - Azure::CognitiveServices::VisualSearch::V1_0::Models::AggregateRating - end - def offer - Azure::CognitiveServices::VisualSearch::V1_0::Models::Offer - end - def aggregate_offer - Azure::CognitiveServices::VisualSearch::V1_0::Models::AggregateOffer - end - def image_object - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageObject - end - def identifiable - Azure::CognitiveServices::VisualSearch::V1_0::Models::Identifiable + def intangible + Azure::CognitiveServices::VisualSearch::V1_0::Models::Intangible end - def response - Azure::CognitiveServices::VisualSearch::V1_0::Models::Response + def structured_value + Azure::CognitiveServices::VisualSearch::V1_0::Models::StructuredValue end - def image_knowledge - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageKnowledge + def error + Azure::CognitiveServices::VisualSearch::V1_0::Models::Error end - def error_response - Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorResponse + def image_tag + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageTag end - def thing - Azure::CognitiveServices::VisualSearch::V1_0::Models::Thing + def related_searches_module + Azure::CognitiveServices::VisualSearch::V1_0::Models::RelatedSearchesModule end - def creative_work - Azure::CognitiveServices::VisualSearch::V1_0::Models::CreativeWork + def properties_item + Azure::CognitiveServices::VisualSearch::V1_0::Models::PropertiesItem end - def action - Azure::CognitiveServices::VisualSearch::V1_0::Models::Action + def recipes_module + Azure::CognitiveServices::VisualSearch::V1_0::Models::RecipesModule end - def media_object - Azure::CognitiveServices::VisualSearch::V1_0::Models::MediaObject + def images_image_metadata + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImagesImageMetadata end - def person - Azure::CognitiveServices::VisualSearch::V1_0::Models::Person + def images_module + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImagesModule end - def intangible - Azure::CognitiveServices::VisualSearch::V1_0::Models::Intangible + def aggregate_rating + Azure::CognitiveServices::VisualSearch::V1_0::Models::AggregateRating end - def image_entity_action - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageEntityAction + def offer + Azure::CognitiveServices::VisualSearch::V1_0::Models::Offer end - def image_module_action - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageModuleAction + def aggregate_offer + Azure::CognitiveServices::VisualSearch::V1_0::Models::AggregateOffer end def recipe Azure::CognitiveServices::VisualSearch::V1_0::Models::Recipe end - def image_recipes_action - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageRecipesAction - end - def image_related_searches_action - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageRelatedSearchesAction - end - def image_shopping_sources_action - Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageShoppingSourcesAction - end - def structured_value - Azure::CognitiveServices::VisualSearch::V1_0::Models::StructuredValue + def filters + Azure::CognitiveServices::VisualSearch::V1_0::Models::Filters end def rating Azure::CognitiveServices::VisualSearch::V1_0::Models::Rating @@ -217,17 +196,38 @@ def currency def item_availability Azure::CognitiveServices::VisualSearch::V1_0::Models::ItemAvailability end - def error_code - Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorCode + def person + Azure::CognitiveServices::VisualSearch::V1_0::Models::Person end - def error_sub_code - Azure::CognitiveServices::VisualSearch::V1_0::Models::ErrorSubCode + def action + Azure::CognitiveServices::VisualSearch::V1_0::Models::Action end - def safe_search - Azure::CognitiveServices::VisualSearch::V1_0::Models::SafeSearch + def response_base + Azure::CognitiveServices::VisualSearch::V1_0::Models::ResponseBase end - def content_types - Azure::CognitiveServices::VisualSearch::V1_0::Models::ContentTypes + def thing + Azure::CognitiveServices::VisualSearch::V1_0::Models::Thing + end + def creative_work + Azure::CognitiveServices::VisualSearch::V1_0::Models::CreativeWork + end + def identifiable + Azure::CognitiveServices::VisualSearch::V1_0::Models::Identifiable + end + def crop_area + Azure::CognitiveServices::VisualSearch::V1_0::Models::CropArea + end + def image_info + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageInfo + end + def image_tag_region + Azure::CognitiveServices::VisualSearch::V1_0::Models::ImageTagRegion + end + def knowledge_request + Azure::CognitiveServices::VisualSearch::V1_0::Models::KnowledgeRequest + end + def visual_search_request + Azure::CognitiveServices::VisualSearch::V1_0::Models::VisualSearchRequest 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 19ce641330..4df29dcba9 100644 --- a/azure_sdk/lib/latest/modules/web_profile_module.rb +++ b/azure_sdk/lib/latest/modules/web_profile_module.rb @@ -7,230 +7,108 @@ module Azure::Profiles::Latest module Web module Mgmt + ResourceHealthMetadataOperations = Azure::Web::Mgmt::V2018_02_01::ResourceHealthMetadataOperations AppServiceCertificateOrders = Azure::Web::Mgmt::V2018_02_01::AppServiceCertificateOrders CertificateRegistrationProvider = Azure::Web::Mgmt::V2018_02_01::CertificateRegistrationProvider - Domains = Azure::Web::Mgmt::V2018_02_01::Domains TopLevelDomains = Azure::Web::Mgmt::V2018_02_01::TopLevelDomains DomainRegistrationProvider = Azure::Web::Mgmt::V2018_02_01::DomainRegistrationProvider + Provider = Azure::Web::Mgmt::V2018_02_01::Provider + Domains = Azure::Web::Mgmt::V2018_02_01::Domains + AppServiceEnvironments = Azure::Web::Mgmt::V2018_02_01::AppServiceEnvironments + AppServicePlans = Azure::Web::Mgmt::V2018_02_01::AppServicePlans + WebApps = Azure::Web::Mgmt::V2018_02_01::WebApps 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 - AppServicePlans = Azure::Web::Mgmt::V2018_02_01::AppServicePlans - ResourceHealthMetadataOperations = Azure::Web::Mgmt::V2018_02_01::ResourceHealthMetadataOperations module Models + RampUpRule = Azure::Web::Mgmt::V2018_02_01::Models::RampUpRule + DeploymentLocations = Azure::Web::Mgmt::V2018_02_01::Models::DeploymentLocations + VirtualDirectory = Azure::Web::Mgmt::V2018_02_01::Models::VirtualDirectory IdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::IdentifierCollection - Operation = Azure::Web::Mgmt::V2018_02_01::Models::Operation - TopLevelDomainCollection = Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainCollection - DeploymentCollection = Azure::Web::Mgmt::V2018_02_01::Models::DeploymentCollection - CertificateDetails = Azure::Web::Mgmt::V2018_02_01::Models::CertificateDetails - CertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::CertificateCollection - AppServiceCertificateOrderCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection - SnapshotRecoverySource = Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRecoverySource - ProcessInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::ProcessInfoCollection - VirtualNetworkProfile = Azure::Web::Mgmt::V2018_02_01::Models::VirtualNetworkProfile - PerfMonResponse = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonResponse - WorkerPool = Azure::Web::Mgmt::V2018_02_01::Models::WorkerPool - PerfMonSample = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSample - VirtualIPMapping = Azure::Web::Mgmt::V2018_02_01::Models::VirtualIPMapping - SiteSealRequest = Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest - StampCapacity = Azure::Web::Mgmt::V2018_02_01::Models::StampCapacity - ProcessModuleInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfoCollection - NetworkAccessControlEntry = Azure::Web::Mgmt::V2018_02_01::Models::NetworkAccessControlEntry - PublicCertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateCollection - AppServiceEnvironment = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironment - ResourceMetricAvailability = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricAvailability - AppServicePlanCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanCollection - SiteConfigResourceCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResourceCollection - LocalizableString = Azure::Web::Mgmt::V2018_02_01::Models::LocalizableString - SiteConfigurationSnapshotInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfoCollection - CsmUsageQuota = Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuota - HostNameBindingCollection = Azure::Web::Mgmt::V2018_02_01::Models::HostNameBindingCollection - CsmUsageQuotaCollection = Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuotaCollection - 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 - AppServiceCertificate = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificate - IpSecurityRestriction = Azure::Web::Mgmt::V2018_02_01::Models::IpSecurityRestriction - TriggeredJobHistoryCollection = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistoryCollection - CorsSettings = Azure::Web::Mgmt::V2018_02_01::Models::CorsSettings - ResourceMetricName = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricName - AutoHealActions = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActions + HandlerMapping = Azure::Web::Mgmt::V2018_02_01::Models::HandlerMapping + NameIdentifier = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier + ConnStringInfo = Azure::Web::Mgmt::V2018_02_01::Models::ConnStringInfo + SiteConfig = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfig ResourceMetricProperty = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricProperty - StatusCodesBasedTrigger = Azure::Web::Mgmt::V2018_02_01::Models::StatusCodesBasedTrigger + GlobalCsmSkuDescription = Azure::Web::Mgmt::V2018_02_01::Models::GlobalCsmSkuDescription ResourceMetricValue = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricValue - AutoHealTriggers = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealTriggers + SkuCapacity = Azure::Web::Mgmt::V2018_02_01::Models::SkuCapacity ResourceMetric = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetric - SiteLimits = Azure::Web::Mgmt::V2018_02_01::Models::SiteLimits + GeoRegionCollection = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection ResourceMetricCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricCollection - Experiments = Azure::Web::Mgmt::V2018_02_01::Models::Experiments + VirtualNetworkProfile = Azure::Web::Mgmt::V2018_02_01::Models::VirtualNetworkProfile ResourceMetricDefinitionCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinitionCollection - VirtualApplication = Azure::Web::Mgmt::V2018_02_01::Models::VirtualApplication + VirtualIPMapping = Azure::Web::Mgmt::V2018_02_01::Models::VirtualIPMapping WebAppCollection = Azure::Web::Mgmt::V2018_02_01::Models::WebAppCollection - SiteMachineKey = Azure::Web::Mgmt::V2018_02_01::Models::SiteMachineKey + NetworkAccessControlEntry = Azure::Web::Mgmt::V2018_02_01::Models::NetworkAccessControlEntry + DeletedSite = Azure::Web::Mgmt::V2018_02_01::Models::DeletedSite + AppServicePlanCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanCollection DeletedWebAppCollection = Azure::Web::Mgmt::V2018_02_01::Models::DeletedWebAppCollection - AzureStorageInfoValue = Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageInfoValue + ValidateResponseError = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponseError Solution = Azure::Web::Mgmt::V2018_02_01::Models::Solution - SiteConfig = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfig + ResourceMetricName = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricName DetectorAbnormalTimePeriod = Azure::Web::Mgmt::V2018_02_01::Models::DetectorAbnormalTimePeriod - SiteExtensionInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfoCollection + ResourceNameAvailability = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability AbnormalTimePeriod = Azure::Web::Mgmt::V2018_02_01::Models::AbnormalTimePeriod - SkuCapacity = Azure::Web::Mgmt::V2018_02_01::Models::SkuCapacity - TriggeredWebJobCollection = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJobCollection - SlotDifferenceCollection = Azure::Web::Mgmt::V2018_02_01::Models::SlotDifferenceCollection + SlotSwapStatus = Azure::Web::Mgmt::V2018_02_01::Models::SlotSwapStatus + HostingEnvironmentDeploymentInfo = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDeploymentInfo + CorsSettings = Azure::Web::Mgmt::V2018_02_01::Models::CorsSettings DiagnosticMetricSample = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSample - DefaultErrorResponseErrorDetailsItem = Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseErrorDetailsItem + AutoHealTriggers = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealTriggers DiagnosticMetricSet = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSet - DefaultErrorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponse + Experiments = Azure::Web::Mgmt::V2018_02_01::Models::Experiments DataSource = Azure::Web::Mgmt::V2018_02_01::Models::DataSource - LogSpecification = Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification + SiteMachineKey = Azure::Web::Mgmt::V2018_02_01::Models::SiteMachineKey ResponseMetaData = Azure::Web::Mgmt::V2018_02_01::Models::ResponseMetaData - Dimension = Azure::Web::Mgmt::V2018_02_01::Models::Dimension + HostNameSslState = Azure::Web::Mgmt::V2018_02_01::Models::HostNameSslState AnalysisData = Azure::Web::Mgmt::V2018_02_01::Models::AnalysisData - ServiceSpecification = Azure::Web::Mgmt::V2018_02_01::Models::ServiceSpecification - CsmSlotEntity = Azure::Web::Mgmt::V2018_02_01::Models::CsmSlotEntity - CsmOperationDisplay = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDisplay + SkuDescription = Azure::Web::Mgmt::V2018_02_01::Models::SkuDescription + CsmMoveResourceEnvelope = Azure::Web::Mgmt::V2018_02_01::Models::CsmMoveResourceEnvelope + WorkerPool = Azure::Web::Mgmt::V2018_02_01::Models::WorkerPool DataTableResponseColumn = Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseColumn - CsmOperationCollection = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationCollection + AppServiceEnvironment = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironment DataTableResponseObject = Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseObject - Contact = Azure::Web::Mgmt::V2018_02_01::Models::Contact + ValidateRequest = Azure::Web::Mgmt::V2018_02_01::Models::ValidateRequest DetectorInfo = Azure::Web::Mgmt::V2018_02_01::Models::DetectorInfo - DomainPurchaseConsent = Azure::Web::Mgmt::V2018_02_01::Models::DomainPurchaseConsent + ProxyOnlyResource = Azure::Web::Mgmt::V2018_02_01::Models::ProxyOnlyResource Rendering = Azure::Web::Mgmt::V2018_02_01::Models::Rendering - DomainAvailablilityCheckResult = Azure::Web::Mgmt::V2018_02_01::Models::DomainAvailablilityCheckResult + AutoHealActions = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActions DiagnosticData = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticData - DomainControlCenterSsoRequest = Azure::Web::Mgmt::V2018_02_01::Models::DomainControlCenterSsoRequest - CsmPublishingProfileOptions = Azure::Web::Mgmt::V2018_02_01::Models::CsmPublishingProfileOptions - DomainOwnershipIdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifierCollection + VirtualApplication = Azure::Web::Mgmt::V2018_02_01::Models::VirtualApplication + BillingMeterCollection = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection + Capability = Azure::Web::Mgmt::V2018_02_01::Models::Capability DetectorResponseCollection = Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection - DomainRecommendationSearchParameters = Azure::Web::Mgmt::V2018_02_01::Models::DomainRecommendationSearchParameters - ContinuousWebJobCollection = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobCollection - TldLegalAgreement = Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreement + StampCapacity = Azure::Web::Mgmt::V2018_02_01::Models::StampCapacity + ResourceHealthMetadataCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection + SkuInfos = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfos DiagnosticAnalysisCollection = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection - EnabledConfig = Azure::Web::Mgmt::V2018_02_01::Models::EnabledConfig - WebAppInstanceCollection = Azure::Web::Mgmt::V2018_02_01::Models::WebAppInstanceCollection - AppServiceCertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateCollection + SiteLimits = Azure::Web::Mgmt::V2018_02_01::Models::SiteLimits + RecommendationCollection = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection DiagnosticCategoryCollection = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategoryCollection - PrivateAccessVirtualNetwork = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessVirtualNetwork + IpSecurityRestriction = Azure::Web::Mgmt::V2018_02_01::Models::IpSecurityRestriction DiagnosticDetectorCollection = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection - PerfMonSet = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSet - NetworkTrace = Azure::Web::Mgmt::V2018_02_01::Models::NetworkTrace - StackMinorVersion = Azure::Web::Mgmt::V2018_02_01::Models::StackMinorVersion - SiteCloneabilityCriterion = Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneabilityCriterion - StackMajorVersion = Azure::Web::Mgmt::V2018_02_01::Models::StackMajorVersion - MSDeployLogEntry = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntry - ApplicationStack = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStack - ProxyOnlyResource = Azure::Web::Mgmt::V2018_02_01::Models::ProxyOnlyResource ApplicationStackCollection = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStackCollection - HostingEnvironmentProfile = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentProfile - ResourceHealthMetadataCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection - AutoHealCustomAction = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealCustomAction - RecommendationCollection = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection - RequestsBasedTrigger = Azure::Web::Mgmt::V2018_02_01::Models::RequestsBasedTrigger - ResourceCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceCollection - RampUpRule = Azure::Web::Mgmt::V2018_02_01::Models::RampUpRule - HybridConnectionCollection = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionCollection - HandlerMapping = Azure::Web::Mgmt::V2018_02_01::Models::HandlerMapping - BillingMeterCollection = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection NameValuePair = Azure::Web::Mgmt::V2018_02_01::Models::NameValuePair - CsmMoveResourceEnvelope = Azure::Web::Mgmt::V2018_02_01::Models::CsmMoveResourceEnvelope - Capability = Azure::Web::Mgmt::V2018_02_01::Models::Capability - WorkerPoolCollection = Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolCollection - Resource = Azure::Web::Mgmt::V2018_02_01::Models::Resource - HostingEnvironmentDeploymentInfo = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDeploymentInfo - NameIdentifier = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier - DeploymentLocations = Azure::Web::Mgmt::V2018_02_01::Models::DeploymentLocations - MetricSpecification = Azure::Web::Mgmt::V2018_02_01::Models::MetricSpecification - GeoRegionCollection = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection - CsmOperationDescription = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescription - GlobalCsmSkuDescription = Azure::Web::Mgmt::V2018_02_01::Models::GlobalCsmSkuDescription - HostName = Azure::Web::Mgmt::V2018_02_01::Models::HostName - UsageCollection = Azure::Web::Mgmt::V2018_02_01::Models::UsageCollection - DomainCollection = Azure::Web::Mgmt::V2018_02_01::Models::DomainCollection - PremierAddOnOfferCollection = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOfferCollection - FileSystemHttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::FileSystemHttpLogsConfig - ResourceNameAvailability = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability - TldLegalAgreementCollection = Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreementCollection - ResourceNameAvailabilityRequest = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailabilityRequest - PrivateAccessSubnet = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessSubnet - SkuInfos = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfos - SiteSeal = Azure::Web::Mgmt::V2018_02_01::Models::SiteSeal - StampCapacityCollection = Azure::Web::Mgmt::V2018_02_01::Models::StampCapacityCollection - SiteCloneability = Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneability - SourceControlCollection = Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection - SlotSwapStatus = Azure::Web::Mgmt::V2018_02_01::Models::SlotSwapStatus - ValidateRequest = Azure::Web::Mgmt::V2018_02_01::Models::ValidateRequest - SlowRequestsBasedTrigger = Azure::Web::Mgmt::V2018_02_01::Models::SlowRequestsBasedTrigger - ValidateResponseError = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponseError - VirtualDirectory = Azure::Web::Mgmt::V2018_02_01::Models::VirtualDirectory - ValidateResponse = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponse - HostNameSslState = Azure::Web::Mgmt::V2018_02_01::Models::HostNameSslState - SkuInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfoCollection - DefaultErrorResponseError = Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseError - SkuInfo = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfo - CsmOperationDescriptionProperties = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescriptionProperties - MetricAvailabilily = Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailabilily - FunctionEnvelopeCollection = Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelopeCollection - FileSystemApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::FileSystemApplicationLogsConfig - NameIdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifierCollection - AzureTableStorageApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureTableStorageApplicationLogsConfig - PerfMonCounterCollection = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonCounterCollection - AzureBlobStorageApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageApplicationLogsConfig - HttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::HttpLogsConfig - ApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationLogsConfig - AutoHealRules = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealRules - AzureBlobStorageHttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageHttpLogsConfig - SkuDescription = Azure::Web::Mgmt::V2018_02_01::Models::SkuDescription - HostingEnvironmentDiagnostics = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDiagnostics - Address = Azure::Web::Mgmt::V2018_02_01::Models::Address - DatabaseBackupSetting = Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting - TopLevelDomainAgreementOption = Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainAgreementOption - AppServiceEnvironmentCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentCollection - ApiDefinitionInfo = Azure::Web::Mgmt::V2018_02_01::Models::ApiDefinitionInfo - BackupItemCollection = Azure::Web::Mgmt::V2018_02_01::Models::BackupItemCollection - MetricAvailability = Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailability - BackupSchedule = Azure::Web::Mgmt::V2018_02_01::Models::BackupSchedule - ProcessThreadInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfoCollection - AddressResponse = Azure::Web::Mgmt::V2018_02_01::Models::AddressResponse - SnapshotCollection = Azure::Web::Mgmt::V2018_02_01::Models::SnapshotCollection - ConnStringValueTypePair = Azure::Web::Mgmt::V2018_02_01::Models::ConnStringValueTypePair - ConnStringInfo = Azure::Web::Mgmt::V2018_02_01::Models::ConnStringInfo - 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 - AppServiceCertificateOrderPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderPatchResource - AppServiceCertificatePatchResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificatePatchResource - 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 + StackMinorVersion = Azure::Web::Mgmt::V2018_02_01::Models::StackMinorVersion + CertificatePatchResource = Azure::Web::Mgmt::V2018_02_01::Models::CertificatePatchResource 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 User = Azure::Web::Mgmt::V2018_02_01::Models::User - Snapshot = Azure::Web::Mgmt::V2018_02_01::Models::Snapshot + AzureResourceType = Azure::Web::Mgmt::V2018_02_01::Models::AzureResourceType 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 - DeletedSite = Azure::Web::Mgmt::V2018_02_01::Models::DeletedSite 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 - 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 DetectorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponse DiagnosticAnalysis = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis + Identifier = Azure::Web::Mgmt::V2018_02_01::Models::Identifier DiagnosticCategory = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory DiagnosticDetectorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse Recommendation = Azure::Web::Mgmt::V2018_02_01::Models::Recommendation @@ -242,127 +120,249 @@ module Models VnetParameters = Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters VnetValidationTestFailure = Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationTestFailure VnetValidationFailureDetails = Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationFailureDetails - AzureStoragePropertyDictionaryResource = Azure::Web::Mgmt::V2018_02_01::Models::AzureStoragePropertyDictionaryResource - 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 - 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 - 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 - 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 - 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 - 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 - SiteSourceControl = Azure::Web::Mgmt::V2018_02_01::Models::SiteSourceControl - SlotConfigNamesResource = Azure::Web::Mgmt::V2018_02_01::Models::SlotConfigNamesResource - 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 - 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 - ResourceHealthMetadata = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadata 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 - 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 + ResourceHealthMetadata = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadata 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 ConnectionStringType = Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringType - AzureStorageType = Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageType - AzureStorageState = Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageState ScmType = Azure::Web::Mgmt::V2018_02_01::Models::ScmType 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 + Operation = Azure::Web::Mgmt::V2018_02_01::Models::Operation + TriggeredWebJob = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJob SslState = Azure::Web::Mgmt::V2018_02_01::Models::SslState 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 - 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 - DnsType = Azure::Web::Mgmt::V2018_02_01::Models::DnsType - DomainType = Azure::Web::Mgmt::V2018_02_01::Models::DomainType HostingEnvironmentStatus = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentStatus 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 + LogSpecification = Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification SolutionType = Azure::Web::Mgmt::V2018_02_01::Models::SolutionType - RenderingType = Azure::Web::Mgmt::V2018_02_01::Models::RenderingType - ResourceScopeType = Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType + ServiceSpecification = Azure::Web::Mgmt::V2018_02_01::Models::ServiceSpecification + HostNameType = Azure::Web::Mgmt::V2018_02_01::Models::HostNameType NotificationLevel = Azure::Web::Mgmt::V2018_02_01::Models::NotificationLevel + RenderingType = Azure::Web::Mgmt::V2018_02_01::Models::RenderingType + TriggeredJobHistory = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistory + AccessControlEntryAction = Azure::Web::Mgmt::V2018_02_01::Models::AccessControlEntryAction Channels = Azure::Web::Mgmt::V2018_02_01::Models::Channels AppServicePlanRestrictions = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions - InAvailabilityReasonType = Azure::Web::Mgmt::V2018_02_01::Models::InAvailabilityReasonType - CheckNameResourceTypes = Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes + ProvisioningState = Azure::Web::Mgmt::V2018_02_01::Models::ProvisioningState + Certificate = Azure::Web::Mgmt::V2018_02_01::Models::Certificate 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 - FrequencyUnit = Azure::Web::Mgmt::V2018_02_01::Models::FrequencyUnit - ContinuousWebJobStatus = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus - WebJobType = Azure::Web::Mgmt::V2018_02_01::Models::WebJobType + BackupRestoreOperationType = Azure::Web::Mgmt::V2018_02_01::Models::BackupRestoreOperationType + InAvailabilityReasonType = Azure::Web::Mgmt::V2018_02_01::Models::InAvailabilityReasonType + ResourceScopeType = Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType PublishingProfileFormat = Azure::Web::Mgmt::V2018_02_01::Models::PublishingProfileFormat DnsVerificationTestResult = Azure::Web::Mgmt::V2018_02_01::Models::DnsVerificationTestResult + IssueType = Azure::Web::Mgmt::V2018_02_01::Models::IssueType + CustomHostNameDnsRecordType = Azure::Web::Mgmt::V2018_02_01::Models::CustomHostNameDnsRecordType + CheckNameResourceTypes = Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes MSDeployLogEntryType = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntryType MSDeployProvisioningState = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployProvisioningState MySqlMigrationType = Azure::Web::Mgmt::V2018_02_01::Models::MySqlMigrationType 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 BuiltInAuthenticationProvider = Azure::Web::Mgmt::V2018_02_01::Models::BuiltInAuthenticationProvider + 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 + FrequencyUnit = Azure::Web::Mgmt::V2018_02_01::Models::FrequencyUnit + ContinuousWebJobStatus = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus + WebJobType = Azure::Web::Mgmt::V2018_02_01::Models::WebJobType + SkuName = Azure::Web::Mgmt::V2018_02_01::Models::SkuName 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 + Domain = Azure::Web::Mgmt::V2018_02_01::Models::Domain + AppServiceEnvironmentCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentCollection + HostingEnvironmentDiagnostics = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDiagnostics + AddressResponse = Azure::Web::Mgmt::V2018_02_01::Models::AddressResponse + SkuInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfoCollection + ResourceCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceCollection + WorkerPoolCollection = Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolCollection + HybridConnectionCollection = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionCollection + MetricAvailabilily = Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailabilily + SkuInfo = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfo + UsageCollection = Azure::Web::Mgmt::V2018_02_01::Models::UsageCollection + StampCapacityCollection = Azure::Web::Mgmt::V2018_02_01::Models::StampCapacityCollection + 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 + 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 + TopLevelDomainCollection = Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainCollection + CertificateDetails = Azure::Web::Mgmt::V2018_02_01::Models::CertificateDetails + AppServiceCertificateOrderCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection + SnapshotRecoverySource = Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRecoverySource + SiteSealRequest = Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest + AppServiceCertificate = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificate + AzureStorageInfoValue = Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageInfoValue + Contact = Azure::Web::Mgmt::V2018_02_01::Models::Contact + DomainPurchaseConsent = Azure::Web::Mgmt::V2018_02_01::Models::DomainPurchaseConsent + DomainAvailablilityCheckResult = Azure::Web::Mgmt::V2018_02_01::Models::DomainAvailablilityCheckResult + DomainControlCenterSsoRequest = Azure::Web::Mgmt::V2018_02_01::Models::DomainControlCenterSsoRequest + DomainOwnershipIdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifierCollection + DomainRecommendationSearchParameters = Azure::Web::Mgmt::V2018_02_01::Models::DomainRecommendationSearchParameters + TldLegalAgreement = Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreement + AppServiceCertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateCollection + PrivateAccessVirtualNetwork = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessVirtualNetwork + NetworkTrace = Azure::Web::Mgmt::V2018_02_01::Models::NetworkTrace + HostName = Azure::Web::Mgmt::V2018_02_01::Models::HostName + DomainCollection = Azure::Web::Mgmt::V2018_02_01::Models::DomainCollection + TldLegalAgreementCollection = Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreementCollection + PrivateAccessSubnet = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessSubnet + SiteSeal = Azure::Web::Mgmt::V2018_02_01::Models::SiteSeal + NameIdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifierCollection + TopLevelDomainAgreementOption = Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainAgreementOption + AppServiceCertificateResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource + Address = Azure::Web::Mgmt::V2018_02_01::Models::Address + AppServiceCertificateOrder = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder + AppServiceCertificateOrderPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderPatchResource + AppServiceCertificatePatchResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificatePatchResource + 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 + DomainOwnershipIdentifier = Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifier + DomainPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::DomainPatchResource + TopLevelDomain = Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomain + AzureStoragePropertyDictionaryResource = Azure::Web::Mgmt::V2018_02_01::Models::AzureStoragePropertyDictionaryResource + DeletedAppRestoreRequest = Azure::Web::Mgmt::V2018_02_01::Models::DeletedAppRestoreRequest + PremierAddOnPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnPatchResource + PrivateAccess = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccess + SnapshotRestoreRequest = Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRestoreRequest + SwiftVirtualNetwork = Azure::Web::Mgmt::V2018_02_01::Models::SwiftVirtualNetwork + CertificateProductType = Azure::Web::Mgmt::V2018_02_01::Models::CertificateProductType + CertificateOrderStatus = Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderStatus + CertificateOrderActionType = Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderActionType + IpFilterTag = Azure::Web::Mgmt::V2018_02_01::Models::IpFilterTag + AzureStorageType = Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageType + AzureStorageState = Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageState + FtpsState = Azure::Web::Mgmt::V2018_02_01::Models::FtpsState + DomainStatus = Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus + DnsType = Azure::Web::Mgmt::V2018_02_01::Models::DnsType + DomainType = Azure::Web::Mgmt::V2018_02_01::Models::DomainType + Usage = Azure::Web::Mgmt::V2018_02_01::Models::Usage + Dimension = Azure::Web::Mgmt::V2018_02_01::Models::Dimension + MetricSpecification = Azure::Web::Mgmt::V2018_02_01::Models::MetricSpecification + OperationStatus = Azure::Web::Mgmt::V2018_02_01::Models::OperationStatus + Deployment = Azure::Web::Mgmt::V2018_02_01::Models::Deployment + Resource = Azure::Web::Mgmt::V2018_02_01::Models::Resource + Snapshot = Azure::Web::Mgmt::V2018_02_01::Models::Snapshot + AzureTableStorageApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureTableStorageApplicationLogsConfig + ApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationLogsConfig + DatabaseBackupSetting = Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting + BackupItemCollection = Azure::Web::Mgmt::V2018_02_01::Models::BackupItemCollection + ProcessInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::ProcessInfoCollection + ConnStringValueTypePair = Azure::Web::Mgmt::V2018_02_01::Models::ConnStringValueTypePair + ProcessModuleInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfoCollection + ProcessThreadInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfoCollection + CsmPublishingProfileOptions = Azure::Web::Mgmt::V2018_02_01::Models::CsmPublishingProfileOptions + WebAppInstanceCollection = Azure::Web::Mgmt::V2018_02_01::Models::WebAppInstanceCollection + PublicCertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateCollection + TriggeredWebJobCollection = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJobCollection + EnabledConfig = Azure::Web::Mgmt::V2018_02_01::Models::EnabledConfig + TriggeredJobHistoryCollection = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistoryCollection + SnapshotCollection = Azure::Web::Mgmt::V2018_02_01::Models::SnapshotCollection + SiteCloneabilityCriterion = Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneabilityCriterion + HostNameBindingCollection = Azure::Web::Mgmt::V2018_02_01::Models::HostNameBindingCollection + SiteCloneability = Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneability + PerfMonSet = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSet + PerfMonCounterCollection = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonCounterCollection + WebJobCollection = Azure::Web::Mgmt::V2018_02_01::Models::WebJobCollection + ContinuousWebJobCollection = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobCollection + FileSystemApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::FileSystemApplicationLogsConfig + FileSystemHttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::FileSystemHttpLogsConfig + AzureBlobStorageApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageApplicationLogsConfig + AzureBlobStorageHttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageHttpLogsConfig + MSDeployLogEntry = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntry + BackupSchedule = Azure::Web::Mgmt::V2018_02_01::Models::BackupSchedule + PerfMonSample = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSample + SlotDifferenceCollection = Azure::Web::Mgmt::V2018_02_01::Models::SlotDifferenceCollection + DeploymentCollection = Azure::Web::Mgmt::V2018_02_01::Models::DeploymentCollection + HttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::HttpLogsConfig + SiteConfigResourceCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResourceCollection + FunctionEnvelopeCollection = Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelopeCollection + PerfMonResponse = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonResponse + SiteConfigurationSnapshotInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfoCollection + CsmSlotEntity = Azure::Web::Mgmt::V2018_02_01::Models::CsmSlotEntity + SiteExtensionInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfoCollection + ManagedServiceIdentity = Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity + 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 + 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 + 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 + NetworkFeatures = Azure::Web::Mgmt::V2018_02_01::Models::NetworkFeatures + PremierAddOn = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOn + ProcessThreadInfo = Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfo + 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 + 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 + SiteSourceControl = Azure::Web::Mgmt::V2018_02_01::Models::SiteSourceControl + SlotConfigNamesResource = Azure::Web::Mgmt::V2018_02_01::Models::SlotConfigNamesResource + SlotDifference = Azure::Web::Mgmt::V2018_02_01::Models::SlotDifference + 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 + TriggeredJobRun = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobRun + DefaultErrorResponseErrorDetailsItem = Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseErrorDetailsItem + HostingEnvironmentProfile = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentProfile + DefaultErrorResponseError = Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseError + CertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::CertificateCollection + DefaultErrorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponse + CsmOperationDisplay = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDisplay + ValidateResponse = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponse + MetricAvailability = Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailability + WebJob = Azure::Web::Mgmt::V2018_02_01::Models::WebJob + ResourceMetricAvailability = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricAvailability + SourceControlCollection = Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection + CsmOperationDescriptionProperties = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescriptionProperties + ResourceNameAvailabilityRequest = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailabilityRequest + CsmOperationDescription = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescription + PremierAddOnOfferCollection = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOfferCollection + CsmOperationCollection = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationCollection + LocalizableString = Azure::Web::Mgmt::V2018_02_01::Models::LocalizableString + CloningInfo = Azure::Web::Mgmt::V2018_02_01::Models::CloningInfo + CsmUsageQuota = Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuota + ApiDefinitionInfo = Azure::Web::Mgmt::V2018_02_01::Models::ApiDefinitionInfo + CsmUsageQuotaCollection = Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuotaCollection + AutoHealCustomAction = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealCustomAction + ErrorEntity = Azure::Web::Mgmt::V2018_02_01::Models::ErrorEntity + SlowRequestsBasedTrigger = Azure::Web::Mgmt::V2018_02_01::Models::SlowRequestsBasedTrigger + StatusCodesBasedTrigger = Azure::Web::Mgmt::V2018_02_01::Models::StatusCodesBasedTrigger + RequestsBasedTrigger = Azure::Web::Mgmt::V2018_02_01::Models::RequestsBasedTrigger + ApplicationStack = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStack + AutoHealRules = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealRules + StackMajorVersion = Azure::Web::Mgmt::V2018_02_01::Models::StackMajorVersion 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, :resource_health_metadata_operations, :configurable, :base_url, :options, :model_classes + attr_reader :resource_health_metadata_operations, :app_service_certificate_orders, :certificate_registration_provider, :top_level_domains, :domain_registration_provider, :provider, :domains, :app_service_environments, :app_service_plans, :web_apps, :certificates, :deleted_web_apps, :diagnostics, :recommendations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -372,572 +372,635 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @app_service_certificate_orders = @client_0.app_service_certificate_orders - @certificate_registration_provider = @client_0.certificate_registration_provider - @domains = @client_0.domains - @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 - @app_service_plans = @client_0.app_service_plans - @resource_health_metadata_operations = @client_0.resource_health_metadata_operations - - @model_classes = ModelClasses.new - end - - def add_telemetry(client) - profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Web/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 - end - - class ModelClasses - def identifier_collection - Azure::Web::Mgmt::V2018_02_01::Models::IdentifierCollection - end - def operation - Azure::Web::Mgmt::V2018_02_01::Models::Operation - end - def top_level_domain_collection - Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainCollection - end - def deployment_collection - Azure::Web::Mgmt::V2018_02_01::Models::DeploymentCollection - end - def certificate_details - Azure::Web::Mgmt::V2018_02_01::Models::CertificateDetails - end - def certificate_collection - Azure::Web::Mgmt::V2018_02_01::Models::CertificateCollection - end - def app_service_certificate_order_collection - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection - end - def snapshot_recovery_source - Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRecoverySource - end - def process_info_collection - Azure::Web::Mgmt::V2018_02_01::Models::ProcessInfoCollection - end - def virtual_network_profile - Azure::Web::Mgmt::V2018_02_01::Models::VirtualNetworkProfile - end - def perf_mon_response - Azure::Web::Mgmt::V2018_02_01::Models::PerfMonResponse - end - def worker_pool - Azure::Web::Mgmt::V2018_02_01::Models::WorkerPool - end - def perf_mon_sample - Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSample - end - def virtual_ipmapping - Azure::Web::Mgmt::V2018_02_01::Models::VirtualIPMapping - end - def site_seal_request - Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest - end - def stamp_capacity - Azure::Web::Mgmt::V2018_02_01::Models::StampCapacity - end - def process_module_info_collection - Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfoCollection - end - def network_access_control_entry - Azure::Web::Mgmt::V2018_02_01::Models::NetworkAccessControlEntry - end - def public_certificate_collection - Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateCollection - end - def app_service_environment - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironment - end - def resource_metric_availability - Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricAvailability - end - def app_service_plan_collection - Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanCollection - end - def site_config_resource_collection - Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResourceCollection - end - def localizable_string - Azure::Web::Mgmt::V2018_02_01::Models::LocalizableString - end - def site_configuration_snapshot_info_collection - Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfoCollection - end - def csm_usage_quota - Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuota - end - def host_name_binding_collection - Azure::Web::Mgmt::V2018_02_01::Models::HostNameBindingCollection - end - def csm_usage_quota_collection - Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuotaCollection - end - def managed_service_identity - Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity + @resource_health_metadata_operations = @client_0.resource_health_metadata_operations + @app_service_certificate_orders = @client_0.app_service_certificate_orders + @certificate_registration_provider = @client_0.certificate_registration_provider + @top_level_domains = @client_0.top_level_domains + @domain_registration_provider = @client_0.domain_registration_provider + @provider = @client_0.provider + @domains = @client_0.domains + @app_service_environments = @client_0.app_service_environments + @app_service_plans = @client_0.app_service_plans + @web_apps = @client_0.web_apps + @certificates = @client_0.certificates + @deleted_web_apps = @client_0.deleted_web_apps + @diagnostics = @client_0.diagnostics + @recommendations = @client_0.recommendations + + @model_classes = ModelClasses.new + end + + def add_telemetry(client) + profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Web/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 error_entity - Azure::Web::Mgmt::V2018_02_01::Models::ErrorEntity + end + + class ModelClasses + def ramp_up_rule + Azure::Web::Mgmt::V2018_02_01::Models::RampUpRule end - def cloning_info - Azure::Web::Mgmt::V2018_02_01::Models::CloningInfo + def deployment_locations + Azure::Web::Mgmt::V2018_02_01::Models::DeploymentLocations end - def app_service_certificate - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificate + def virtual_directory + Azure::Web::Mgmt::V2018_02_01::Models::VirtualDirectory end - def ip_security_restriction - Azure::Web::Mgmt::V2018_02_01::Models::IpSecurityRestriction + def identifier_collection + Azure::Web::Mgmt::V2018_02_01::Models::IdentifierCollection end - def triggered_job_history_collection - Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistoryCollection + def handler_mapping + Azure::Web::Mgmt::V2018_02_01::Models::HandlerMapping end - def cors_settings - Azure::Web::Mgmt::V2018_02_01::Models::CorsSettings + def name_identifier + Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier end - def resource_metric_name - Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricName + def conn_string_info + Azure::Web::Mgmt::V2018_02_01::Models::ConnStringInfo end - def auto_heal_actions - Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActions + def site_config + Azure::Web::Mgmt::V2018_02_01::Models::SiteConfig end def resource_metric_property Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricProperty end - def status_codes_based_trigger - Azure::Web::Mgmt::V2018_02_01::Models::StatusCodesBasedTrigger + def global_csm_sku_description + Azure::Web::Mgmt::V2018_02_01::Models::GlobalCsmSkuDescription end def resource_metric_value Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricValue end - def auto_heal_triggers - Azure::Web::Mgmt::V2018_02_01::Models::AutoHealTriggers + def sku_capacity + Azure::Web::Mgmt::V2018_02_01::Models::SkuCapacity end def resource_metric Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetric end - def site_limits - Azure::Web::Mgmt::V2018_02_01::Models::SiteLimits + def geo_region_collection + Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection end def resource_metric_collection Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricCollection end - def experiments - Azure::Web::Mgmt::V2018_02_01::Models::Experiments + def virtual_network_profile + Azure::Web::Mgmt::V2018_02_01::Models::VirtualNetworkProfile 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 + def virtual_ipmapping + Azure::Web::Mgmt::V2018_02_01::Models::VirtualIPMapping end def web_app_collection Azure::Web::Mgmt::V2018_02_01::Models::WebAppCollection end - def site_machine_key - Azure::Web::Mgmt::V2018_02_01::Models::SiteMachineKey + def network_access_control_entry + Azure::Web::Mgmt::V2018_02_01::Models::NetworkAccessControlEntry + end + def deleted_site + Azure::Web::Mgmt::V2018_02_01::Models::DeletedSite + end + def app_service_plan_collection + Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanCollection end def deleted_web_app_collection Azure::Web::Mgmt::V2018_02_01::Models::DeletedWebAppCollection end - def azure_storage_info_value - Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageInfoValue + def validate_response_error + Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponseError end def solution Azure::Web::Mgmt::V2018_02_01::Models::Solution end - def site_config - Azure::Web::Mgmt::V2018_02_01::Models::SiteConfig + def resource_metric_name + Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricName end def detector_abnormal_time_period Azure::Web::Mgmt::V2018_02_01::Models::DetectorAbnormalTimePeriod end - def site_extension_info_collection - Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfoCollection + def resource_name_availability + Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability end def abnormal_time_period Azure::Web::Mgmt::V2018_02_01::Models::AbnormalTimePeriod end - def sku_capacity - Azure::Web::Mgmt::V2018_02_01::Models::SkuCapacity + def slot_swap_status + Azure::Web::Mgmt::V2018_02_01::Models::SlotSwapStatus end - def triggered_web_job_collection - Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJobCollection + def hosting_environment_deployment_info + Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDeploymentInfo end - def slot_difference_collection - Azure::Web::Mgmt::V2018_02_01::Models::SlotDifferenceCollection + def cors_settings + Azure::Web::Mgmt::V2018_02_01::Models::CorsSettings end def diagnostic_metric_sample Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSample end - def default_error_response_error_details_item - Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseErrorDetailsItem + def auto_heal_triggers + Azure::Web::Mgmt::V2018_02_01::Models::AutoHealTriggers end def diagnostic_metric_set Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSet end - def default_error_response - Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponse + def experiments + Azure::Web::Mgmt::V2018_02_01::Models::Experiments end def data_source Azure::Web::Mgmt::V2018_02_01::Models::DataSource end - def log_specification - Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification + def site_machine_key + Azure::Web::Mgmt::V2018_02_01::Models::SiteMachineKey end def response_meta_data Azure::Web::Mgmt::V2018_02_01::Models::ResponseMetaData end - def dimension - Azure::Web::Mgmt::V2018_02_01::Models::Dimension + def host_name_ssl_state + Azure::Web::Mgmt::V2018_02_01::Models::HostNameSslState end def analysis_data Azure::Web::Mgmt::V2018_02_01::Models::AnalysisData end - def service_specification - Azure::Web::Mgmt::V2018_02_01::Models::ServiceSpecification + def sku_description + Azure::Web::Mgmt::V2018_02_01::Models::SkuDescription + end + def csm_move_resource_envelope + Azure::Web::Mgmt::V2018_02_01::Models::CsmMoveResourceEnvelope + end + def worker_pool + Azure::Web::Mgmt::V2018_02_01::Models::WorkerPool + end + def data_table_response_column + Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseColumn + end + def app_service_environment + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironment + end + def data_table_response_object + Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseObject + end + def validate_request + Azure::Web::Mgmt::V2018_02_01::Models::ValidateRequest + end + def detector_info + Azure::Web::Mgmt::V2018_02_01::Models::DetectorInfo + end + def proxy_only_resource + Azure::Web::Mgmt::V2018_02_01::Models::ProxyOnlyResource + end + def rendering + Azure::Web::Mgmt::V2018_02_01::Models::Rendering + end + def auto_heal_actions + Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActions + end + def diagnostic_data + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticData + end + def virtual_application + Azure::Web::Mgmt::V2018_02_01::Models::VirtualApplication + end + def billing_meter_collection + Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection + end + def capability + Azure::Web::Mgmt::V2018_02_01::Models::Capability + end + def detector_response_collection + Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection + end + def stamp_capacity + Azure::Web::Mgmt::V2018_02_01::Models::StampCapacity + end + def resource_health_metadata_collection + Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection + end + def sku_infos + Azure::Web::Mgmt::V2018_02_01::Models::SkuInfos + end + def diagnostic_analysis_collection + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection + end + def site_limits + Azure::Web::Mgmt::V2018_02_01::Models::SiteLimits + end + def recommendation_collection + Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection + end + def diagnostic_category_collection + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategoryCollection + end + def ip_security_restriction + Azure::Web::Mgmt::V2018_02_01::Models::IpSecurityRestriction + end + def diagnostic_detector_collection + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection + end + def application_stack_collection + Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStackCollection + end + def name_value_pair + Azure::Web::Mgmt::V2018_02_01::Models::NameValuePair + end + def stack_minor_version + Azure::Web::Mgmt::V2018_02_01::Models::StackMinorVersion + end + def certificate_patch_resource + Azure::Web::Mgmt::V2018_02_01::Models::CertificatePatchResource + end + def vnet_route + Azure::Web::Mgmt::V2018_02_01::Models::VnetRoute + end + def vnet_info + Azure::Web::Mgmt::V2018_02_01::Models::VnetInfo + end + def vnet_gateway + Azure::Web::Mgmt::V2018_02_01::Models::VnetGateway + end + def user + Azure::Web::Mgmt::V2018_02_01::Models::User + end + def azure_resource_type + Azure::Web::Mgmt::V2018_02_01::Models::AzureResourceType + end + def resource_metric_definition + Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinition + end + def push_settings + Azure::Web::Mgmt::V2018_02_01::Models::PushSettings + 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 + end + def site + Azure::Web::Mgmt::V2018_02_01::Models::Site + end + def app_service_plan + Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlan + end + def detector_definition + Azure::Web::Mgmt::V2018_02_01::Models::DetectorDefinition end - def csm_slot_entity - Azure::Web::Mgmt::V2018_02_01::Models::CsmSlotEntity + def analysis_definition + Azure::Web::Mgmt::V2018_02_01::Models::AnalysisDefinition end - def csm_operation_display - Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDisplay + def detector_response + Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponse end - def data_table_response_column - Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseColumn + def diagnostic_analysis + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis end - def csm_operation_collection - Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationCollection + def identifier + Azure::Web::Mgmt::V2018_02_01::Models::Identifier end - def data_table_response_object - Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseObject + def diagnostic_category + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory end - def contact - Azure::Web::Mgmt::V2018_02_01::Models::Contact + def diagnostic_detector_response + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse end - def detector_info - Azure::Web::Mgmt::V2018_02_01::Models::DetectorInfo + def recommendation + Azure::Web::Mgmt::V2018_02_01::Models::Recommendation end - def domain_purchase_consent - Azure::Web::Mgmt::V2018_02_01::Models::DomainPurchaseConsent + def recommendation_rule + Azure::Web::Mgmt::V2018_02_01::Models::RecommendationRule end - def rendering - Azure::Web::Mgmt::V2018_02_01::Models::Rendering + def billing_meter + Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter end - def domain_availablility_check_result - Azure::Web::Mgmt::V2018_02_01::Models::DomainAvailablilityCheckResult + def geo_region + Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion end - def diagnostic_data - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticData + def premier_add_on_offer + Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOffer end - def domain_control_center_sso_request - Azure::Web::Mgmt::V2018_02_01::Models::DomainControlCenterSsoRequest + def source_control + Azure::Web::Mgmt::V2018_02_01::Models::SourceControl end - def csm_publishing_profile_options - Azure::Web::Mgmt::V2018_02_01::Models::CsmPublishingProfileOptions + def vnet_parameters + Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters end - def domain_ownership_identifier_collection - Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifierCollection + def vnet_validation_test_failure + Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationTestFailure end - def detector_response_collection - Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection + def vnet_validation_failure_details + Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationFailureDetails end - def domain_recommendation_search_parameters - Azure::Web::Mgmt::V2018_02_01::Models::DomainRecommendationSearchParameters + def key_vault_secret_status + Azure::Web::Mgmt::V2018_02_01::Models::KeyVaultSecretStatus end - def continuous_web_job_collection - Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobCollection + def route_type + Azure::Web::Mgmt::V2018_02_01::Models::RouteType end - def tld_legal_agreement - Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreement + def resource_health_metadata + Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadata end - def diagnostic_analysis_collection - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection + def managed_service_identity_type + Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentityType end - def enabled_config - Azure::Web::Mgmt::V2018_02_01::Models::EnabledConfig + def auto_heal_action_type + Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType end - def web_app_instance_collection - Azure::Web::Mgmt::V2018_02_01::Models::WebAppInstanceCollection + def connection_string_type + Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringType end - def app_service_certificate_collection - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateCollection + def scm_type + Azure::Web::Mgmt::V2018_02_01::Models::ScmType end - def diagnostic_category_collection - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategoryCollection + def managed_pipeline_mode + Azure::Web::Mgmt::V2018_02_01::Models::ManagedPipelineMode end - def private_access_virtual_network - Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessVirtualNetwork + def site_load_balancing + Azure::Web::Mgmt::V2018_02_01::Models::SiteLoadBalancing end - def diagnostic_detector_collection - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection + def supported_tls_versions + Azure::Web::Mgmt::V2018_02_01::Models::SupportedTlsVersions end - def perf_mon_set - Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSet + def operation + Azure::Web::Mgmt::V2018_02_01::Models::Operation end - def network_trace - Azure::Web::Mgmt::V2018_02_01::Models::NetworkTrace + def triggered_web_job + Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJob end - def stack_minor_version - Azure::Web::Mgmt::V2018_02_01::Models::StackMinorVersion + def ssl_state + Azure::Web::Mgmt::V2018_02_01::Models::SslState end - def site_cloneability_criterion - Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneabilityCriterion + def host_type + Azure::Web::Mgmt::V2018_02_01::Models::HostType end - def stack_major_version - Azure::Web::Mgmt::V2018_02_01::Models::StackMajorVersion + def usage_state + Azure::Web::Mgmt::V2018_02_01::Models::UsageState end - def msdeploy_log_entry - Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntry + def site_availability_state + Azure::Web::Mgmt::V2018_02_01::Models::SiteAvailabilityState end - def application_stack - Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStack + def status_options + Azure::Web::Mgmt::V2018_02_01::Models::StatusOptions end - def proxy_only_resource - Azure::Web::Mgmt::V2018_02_01::Models::ProxyOnlyResource + def hosting_environment_status + Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentStatus end - def application_stack_collection - Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStackCollection + def internal_load_balancing_mode + Azure::Web::Mgmt::V2018_02_01::Models::InternalLoadBalancingMode end - def hosting_environment_profile - Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentProfile + def compute_mode_options + Azure::Web::Mgmt::V2018_02_01::Models::ComputeModeOptions end - def resource_health_metadata_collection - Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadataCollection + def worker_size_options + Azure::Web::Mgmt::V2018_02_01::Models::WorkerSizeOptions end - def auto_heal_custom_action - Azure::Web::Mgmt::V2018_02_01::Models::AutoHealCustomAction + def log_specification + Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification end - def recommendation_collection - Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection + def solution_type + Azure::Web::Mgmt::V2018_02_01::Models::SolutionType end - def requests_based_trigger - Azure::Web::Mgmt::V2018_02_01::Models::RequestsBasedTrigger + def service_specification + Azure::Web::Mgmt::V2018_02_01::Models::ServiceSpecification end - def resource_collection - Azure::Web::Mgmt::V2018_02_01::Models::ResourceCollection + def host_name_type + Azure::Web::Mgmt::V2018_02_01::Models::HostNameType end - def ramp_up_rule - Azure::Web::Mgmt::V2018_02_01::Models::RampUpRule + def notification_level + Azure::Web::Mgmt::V2018_02_01::Models::NotificationLevel end - def hybrid_connection_collection - Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionCollection + def rendering_type + Azure::Web::Mgmt::V2018_02_01::Models::RenderingType end - def handler_mapping - Azure::Web::Mgmt::V2018_02_01::Models::HandlerMapping + def triggered_job_history + Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistory end - def billing_meter_collection - Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection + def access_control_entry_action + Azure::Web::Mgmt::V2018_02_01::Models::AccessControlEntryAction end - def name_value_pair - Azure::Web::Mgmt::V2018_02_01::Models::NameValuePair + def channels + Azure::Web::Mgmt::V2018_02_01::Models::Channels end - def csm_move_resource_envelope - Azure::Web::Mgmt::V2018_02_01::Models::CsmMoveResourceEnvelope + def app_service_plan_restrictions + Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions end - def capability - Azure::Web::Mgmt::V2018_02_01::Models::Capability + def provisioning_state + Azure::Web::Mgmt::V2018_02_01::Models::ProvisioningState end - def worker_pool_collection - Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolCollection + def certificate + Azure::Web::Mgmt::V2018_02_01::Models::Certificate end - def resource - Azure::Web::Mgmt::V2018_02_01::Models::Resource + def validate_resource_types + Azure::Web::Mgmt::V2018_02_01::Models::ValidateResourceTypes end - def hosting_environment_deployment_info - Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDeploymentInfo + def backup_restore_operation_type + Azure::Web::Mgmt::V2018_02_01::Models::BackupRestoreOperationType end - def name_identifier - Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier + def in_availability_reason_type + Azure::Web::Mgmt::V2018_02_01::Models::InAvailabilityReasonType end - def deployment_locations - Azure::Web::Mgmt::V2018_02_01::Models::DeploymentLocations + def resource_scope_type + Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType end - def metric_specification - Azure::Web::Mgmt::V2018_02_01::Models::MetricSpecification + def publishing_profile_format + Azure::Web::Mgmt::V2018_02_01::Models::PublishingProfileFormat end - def geo_region_collection - Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection + def dns_verification_test_result + Azure::Web::Mgmt::V2018_02_01::Models::DnsVerificationTestResult end - def csm_operation_description - Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescription + def issue_type + Azure::Web::Mgmt::V2018_02_01::Models::IssueType end - def global_csm_sku_description - Azure::Web::Mgmt::V2018_02_01::Models::GlobalCsmSkuDescription + def custom_host_name_dns_record_type + Azure::Web::Mgmt::V2018_02_01::Models::CustomHostNameDnsRecordType end - def host_name - Azure::Web::Mgmt::V2018_02_01::Models::HostName + def check_name_resource_types + Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes end - def usage_collection - Azure::Web::Mgmt::V2018_02_01::Models::UsageCollection + def msdeploy_log_entry_type + Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntryType end - def domain_collection - Azure::Web::Mgmt::V2018_02_01::Models::DomainCollection + def msdeploy_provisioning_state + Azure::Web::Mgmt::V2018_02_01::Models::MSDeployProvisioningState end - def premier_add_on_offer_collection - Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOfferCollection + def my_sql_migration_type + Azure::Web::Mgmt::V2018_02_01::Models::MySqlMigrationType end - def file_system_http_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::FileSystemHttpLogsConfig + def public_certificate_location + Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateLocation end - def resource_name_availability - Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability + def unauthenticated_client_action + Azure::Web::Mgmt::V2018_02_01::Models::UnauthenticatedClientAction end - def tld_legal_agreement_collection - Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreementCollection + def built_in_authentication_provider + Azure::Web::Mgmt::V2018_02_01::Models::BuiltInAuthenticationProvider end - def resource_name_availability_request - Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailabilityRequest + def log_level + Azure::Web::Mgmt::V2018_02_01::Models::LogLevel end - def private_access_subnet - Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessSubnet + def backup_item_status + Azure::Web::Mgmt::V2018_02_01::Models::BackupItemStatus end - def sku_infos - Azure::Web::Mgmt::V2018_02_01::Models::SkuInfos + def database_type + Azure::Web::Mgmt::V2018_02_01::Models::DatabaseType end - def site_seal - Azure::Web::Mgmt::V2018_02_01::Models::SiteSeal + def frequency_unit + Azure::Web::Mgmt::V2018_02_01::Models::FrequencyUnit end - def stamp_capacity_collection - Azure::Web::Mgmt::V2018_02_01::Models::StampCapacityCollection + def continuous_web_job_status + Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus end - def site_cloneability - Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneability + def web_job_type + Azure::Web::Mgmt::V2018_02_01::Models::WebJobType end - def source_control_collection - Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection + def sku_name + Azure::Web::Mgmt::V2018_02_01::Models::SkuName end - def slot_swap_status - Azure::Web::Mgmt::V2018_02_01::Models::SlotSwapStatus + def clone_ability_result + Azure::Web::Mgmt::V2018_02_01::Models::CloneAbilityResult end - def validate_request - Azure::Web::Mgmt::V2018_02_01::Models::ValidateRequest + def site_extension_type + Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionType end - def slow_requests_based_trigger - Azure::Web::Mgmt::V2018_02_01::Models::SlowRequestsBasedTrigger + def triggered_web_job_status + Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJobStatus end - def validate_response_error - Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponseError + def domain + Azure::Web::Mgmt::V2018_02_01::Models::Domain end - def virtual_directory - Azure::Web::Mgmt::V2018_02_01::Models::VirtualDirectory + def app_service_environment_collection + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentCollection end - def validate_response - Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponse + def hosting_environment_diagnostics + Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDiagnostics end - def host_name_ssl_state - Azure::Web::Mgmt::V2018_02_01::Models::HostNameSslState + def address_response + Azure::Web::Mgmt::V2018_02_01::Models::AddressResponse end def sku_info_collection Azure::Web::Mgmt::V2018_02_01::Models::SkuInfoCollection end - def default_error_response_error - Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseError + def resource_collection + Azure::Web::Mgmt::V2018_02_01::Models::ResourceCollection end - def sku_info - Azure::Web::Mgmt::V2018_02_01::Models::SkuInfo + def worker_pool_collection + Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolCollection end - def csm_operation_description_properties - Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescriptionProperties + def hybrid_connection_collection + Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionCollection end def metric_availabilily Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailabilily end - def function_envelope_collection - Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelopeCollection + 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 + def usage_collection + Azure::Web::Mgmt::V2018_02_01::Models::UsageCollection end - def name_identifier_collection - Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifierCollection + def stamp_capacity_collection + Azure::Web::Mgmt::V2018_02_01::Models::StampCapacityCollection end - def azure_table_storage_application_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::AzureTableStorageApplicationLogsConfig + def app_service_environment_resource + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentResource end - def perf_mon_counter_collection - Azure::Web::Mgmt::V2018_02_01::Models::PerfMonCounterCollection + def app_service_environment_patch_resource + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentPatchResource end - def azure_blob_storage_application_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageApplicationLogsConfig + def metric_definition + Azure::Web::Mgmt::V2018_02_01::Models::MetricDefinition end - def http_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::HttpLogsConfig + def worker_pool_resource + Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolResource end - def application_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::ApplicationLogsConfig + def app_service_plan_patch_resource + Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanPatchResource end - def auto_heal_rules - Azure::Web::Mgmt::V2018_02_01::Models::AutoHealRules + def hybrid_connection_limits + Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionLimits end - def azure_blob_storage_http_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageHttpLogsConfig + def top_level_domain_collection + Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainCollection end - def sku_description - Azure::Web::Mgmt::V2018_02_01::Models::SkuDescription + def certificate_details + Azure::Web::Mgmt::V2018_02_01::Models::CertificateDetails end - def hosting_environment_diagnostics - Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDiagnostics + def app_service_certificate_order_collection + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection end - def address - Azure::Web::Mgmt::V2018_02_01::Models::Address + def snapshot_recovery_source + Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRecoverySource end - def database_backup_setting - Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting + def site_seal_request + Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest end - def top_level_domain_agreement_option - Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainAgreementOption + def app_service_certificate + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificate end - def app_service_environment_collection - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentCollection + def azure_storage_info_value + Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageInfoValue end - def api_definition_info - Azure::Web::Mgmt::V2018_02_01::Models::ApiDefinitionInfo + def contact + Azure::Web::Mgmt::V2018_02_01::Models::Contact end - def backup_item_collection - Azure::Web::Mgmt::V2018_02_01::Models::BackupItemCollection + def domain_purchase_consent + Azure::Web::Mgmt::V2018_02_01::Models::DomainPurchaseConsent end - def metric_availability - Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailability + def domain_availablility_check_result + Azure::Web::Mgmt::V2018_02_01::Models::DomainAvailablilityCheckResult end - def backup_schedule - Azure::Web::Mgmt::V2018_02_01::Models::BackupSchedule + def domain_control_center_sso_request + Azure::Web::Mgmt::V2018_02_01::Models::DomainControlCenterSsoRequest end - def process_thread_info_collection - Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfoCollection + def domain_ownership_identifier_collection + Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifierCollection end - def address_response - Azure::Web::Mgmt::V2018_02_01::Models::AddressResponse + def domain_recommendation_search_parameters + Azure::Web::Mgmt::V2018_02_01::Models::DomainRecommendationSearchParameters end - def snapshot_collection - Azure::Web::Mgmt::V2018_02_01::Models::SnapshotCollection + def tld_legal_agreement + Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreement end - def conn_string_value_type_pair - Azure::Web::Mgmt::V2018_02_01::Models::ConnStringValueTypePair + def app_service_certificate_collection + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateCollection end - def conn_string_info - Azure::Web::Mgmt::V2018_02_01::Models::ConnStringInfo + def private_access_virtual_network + Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessVirtualNetwork end - def web_job_collection - Azure::Web::Mgmt::V2018_02_01::Models::WebJobCollection + def network_trace + Azure::Web::Mgmt::V2018_02_01::Models::NetworkTrace + end + def host_name + Azure::Web::Mgmt::V2018_02_01::Models::HostName + end + def domain_collection + Azure::Web::Mgmt::V2018_02_01::Models::DomainCollection + end + def tld_legal_agreement_collection + Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreementCollection + end + def private_access_subnet + Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessSubnet + end + def site_seal + Azure::Web::Mgmt::V2018_02_01::Models::SiteSeal + end + def name_identifier_collection + Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifierCollection + end + def top_level_domain_agreement_option + Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainAgreementOption end def app_service_certificate_resource Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource end + def address + Azure::Web::Mgmt::V2018_02_01::Models::Address + end def app_service_certificate_order Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder end @@ -959,458 +1022,395 @@ def reissue_certificate_order_request def renew_certificate_order_request Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest end - def vnet_route - Azure::Web::Mgmt::V2018_02_01::Models::VnetRoute - end - def vnet_info - Azure::Web::Mgmt::V2018_02_01::Models::VnetInfo - end - def vnet_gateway - Azure::Web::Mgmt::V2018_02_01::Models::VnetGateway - end - def user - Azure::Web::Mgmt::V2018_02_01::Models::User - end - def snapshot - Azure::Web::Mgmt::V2018_02_01::Models::Snapshot - end - def resource_metric_definition - Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinition - end - 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 - end - def deleted_site - Azure::Web::Mgmt::V2018_02_01::Models::DeletedSite - end - def site - Azure::Web::Mgmt::V2018_02_01::Models::Site - end - 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 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 - end - def detector_response - Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponse - end - def diagnostic_analysis - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis - end - def diagnostic_category - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory + def top_level_domain + Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomain end - def diagnostic_detector_response - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse + def azure_storage_property_dictionary_resource + Azure::Web::Mgmt::V2018_02_01::Models::AzureStoragePropertyDictionaryResource end - def recommendation - Azure::Web::Mgmt::V2018_02_01::Models::Recommendation + def deleted_app_restore_request + Azure::Web::Mgmt::V2018_02_01::Models::DeletedAppRestoreRequest end - def recommendation_rule - Azure::Web::Mgmt::V2018_02_01::Models::RecommendationRule + def premier_add_on_patch_resource + Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnPatchResource end - def billing_meter - Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter + def private_access + Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccess end - def geo_region - Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion + def snapshot_restore_request + Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRestoreRequest end - def premier_add_on_offer - Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOffer + def swift_virtual_network + Azure::Web::Mgmt::V2018_02_01::Models::SwiftVirtualNetwork end - def source_control - Azure::Web::Mgmt::V2018_02_01::Models::SourceControl + def certificate_product_type + Azure::Web::Mgmt::V2018_02_01::Models::CertificateProductType end - def vnet_parameters - Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters + def certificate_order_status + Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderStatus end - def vnet_validation_test_failure - Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationTestFailure + def certificate_order_action_type + Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderActionType end - def vnet_validation_failure_details - Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationFailureDetails + def ip_filter_tag + Azure::Web::Mgmt::V2018_02_01::Models::IpFilterTag end - def azure_storage_property_dictionary_resource - Azure::Web::Mgmt::V2018_02_01::Models::AzureStoragePropertyDictionaryResource + def azure_storage_type + Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageType end - def backup_item - Azure::Web::Mgmt::V2018_02_01::Models::BackupItem + def azure_storage_state + Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageState end - def backup_request - Azure::Web::Mgmt::V2018_02_01::Models::BackupRequest + def ftps_state + Azure::Web::Mgmt::V2018_02_01::Models::FtpsState end - def connection_string_dictionary - Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringDictionary + def domain_status + Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus end - def continuous_web_job - Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJob + def dns_type + Azure::Web::Mgmt::V2018_02_01::Models::DnsType end - def custom_hostname_analysis_result - Azure::Web::Mgmt::V2018_02_01::Models::CustomHostnameAnalysisResult + def domain_type + Azure::Web::Mgmt::V2018_02_01::Models::DomainType end - def deleted_app_restore_request - Azure::Web::Mgmt::V2018_02_01::Models::DeletedAppRestoreRequest + def usage + Azure::Web::Mgmt::V2018_02_01::Models::Usage end - def deployment - Azure::Web::Mgmt::V2018_02_01::Models::Deployment + def dimension + Azure::Web::Mgmt::V2018_02_01::Models::Dimension end - def function_envelope - Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelope + def metric_specification + Azure::Web::Mgmt::V2018_02_01::Models::MetricSpecification end - def function_secrets - Azure::Web::Mgmt::V2018_02_01::Models::FunctionSecrets + def operation_status + Azure::Web::Mgmt::V2018_02_01::Models::OperationStatus end - def host_name_binding - Azure::Web::Mgmt::V2018_02_01::Models::HostNameBinding + def deployment + Azure::Web::Mgmt::V2018_02_01::Models::Deployment end - def msdeploy - Azure::Web::Mgmt::V2018_02_01::Models::MSDeploy + def resource + Azure::Web::Mgmt::V2018_02_01::Models::Resource end - def msdeploy_log - Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLog + def snapshot + Azure::Web::Mgmt::V2018_02_01::Models::Snapshot end - def msdeploy_status - Azure::Web::Mgmt::V2018_02_01::Models::MSDeployStatus + def azure_table_storage_application_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::AzureTableStorageApplicationLogsConfig end - def migrate_my_sql_request - Azure::Web::Mgmt::V2018_02_01::Models::MigrateMySqlRequest + def application_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::ApplicationLogsConfig end - def migrate_my_sql_status - Azure::Web::Mgmt::V2018_02_01::Models::MigrateMySqlStatus + def database_backup_setting + Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting end - def relay_service_connection_entity - Azure::Web::Mgmt::V2018_02_01::Models::RelayServiceConnectionEntity + def backup_item_collection + Azure::Web::Mgmt::V2018_02_01::Models::BackupItemCollection end - def network_features - Azure::Web::Mgmt::V2018_02_01::Models::NetworkFeatures + def process_info_collection + Azure::Web::Mgmt::V2018_02_01::Models::ProcessInfoCollection end - def premier_add_on - Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOn + def conn_string_value_type_pair + Azure::Web::Mgmt::V2018_02_01::Models::ConnStringValueTypePair end - def premier_add_on_patch_resource - Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnPatchResource + def process_module_info_collection + Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfoCollection end - def private_access - Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccess + def process_thread_info_collection + Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfoCollection end - def process_thread_info - Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfo + def csm_publishing_profile_options + Azure::Web::Mgmt::V2018_02_01::Models::CsmPublishingProfileOptions end - def process_module_info - Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfo + def web_app_instance_collection + Azure::Web::Mgmt::V2018_02_01::Models::WebAppInstanceCollection end - def process_info - Azure::Web::Mgmt::V2018_02_01::Models::ProcessInfo + def public_certificate_collection + Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateCollection end - def public_certificate - Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificate + def triggered_web_job_collection + Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJobCollection end - def restore_request - Azure::Web::Mgmt::V2018_02_01::Models::RestoreRequest + def enabled_config + Azure::Web::Mgmt::V2018_02_01::Models::EnabledConfig end - def site_auth_settings - Azure::Web::Mgmt::V2018_02_01::Models::SiteAuthSettings + def triggered_job_history_collection + Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistoryCollection end - def site_config_resource - Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResource + def snapshot_collection + Azure::Web::Mgmt::V2018_02_01::Models::SnapshotCollection end - def site_configuration_snapshot_info - Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo + def site_cloneability_criterion + Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneabilityCriterion end - def site_extension_info - Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfo + def host_name_binding_collection + Azure::Web::Mgmt::V2018_02_01::Models::HostNameBindingCollection end - def site_instance - Azure::Web::Mgmt::V2018_02_01::Models::SiteInstance + def site_cloneability + Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneability end - def site_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::SiteLogsConfig + def perf_mon_set + Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSet end - def site_patch_resource - Azure::Web::Mgmt::V2018_02_01::Models::SitePatchResource + def perf_mon_counter_collection + Azure::Web::Mgmt::V2018_02_01::Models::PerfMonCounterCollection end - def site_php_error_log_flag - Azure::Web::Mgmt::V2018_02_01::Models::SitePhpErrorLogFlag + def web_job_collection + Azure::Web::Mgmt::V2018_02_01::Models::WebJobCollection end - def site_source_control - Azure::Web::Mgmt::V2018_02_01::Models::SiteSourceControl + def continuous_web_job_collection + Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobCollection end - def slot_config_names_resource - Azure::Web::Mgmt::V2018_02_01::Models::SlotConfigNamesResource + def file_system_application_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::FileSystemApplicationLogsConfig end - def slot_difference - Azure::Web::Mgmt::V2018_02_01::Models::SlotDifference + def file_system_http_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::FileSystemHttpLogsConfig end - def snapshot_restore_request - Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRestoreRequest + def azure_blob_storage_application_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageApplicationLogsConfig end - def storage_migration_options - Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationOptions + def azure_blob_storage_http_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageHttpLogsConfig end - def storage_migration_response - Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationResponse + def msdeploy_log_entry + Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntry end - def string_dictionary - Azure::Web::Mgmt::V2018_02_01::Models::StringDictionary + def backup_schedule + Azure::Web::Mgmt::V2018_02_01::Models::BackupSchedule end - def swift_virtual_network - Azure::Web::Mgmt::V2018_02_01::Models::SwiftVirtualNetwork + def perf_mon_sample + Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSample end - def triggered_job_run - Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobRun + def slot_difference_collection + Azure::Web::Mgmt::V2018_02_01::Models::SlotDifferenceCollection end - def triggered_job_history - Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistory + def deployment_collection + Azure::Web::Mgmt::V2018_02_01::Models::DeploymentCollection end - def triggered_web_job - Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJob + def http_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::HttpLogsConfig end - def web_job - Azure::Web::Mgmt::V2018_02_01::Models::WebJob + def site_config_resource_collection + Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResourceCollection end - def app_service_environment_resource - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentResource + def function_envelope_collection + Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelopeCollection end - def app_service_environment_patch_resource - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentPatchResource + def perf_mon_response + Azure::Web::Mgmt::V2018_02_01::Models::PerfMonResponse end - def metric_definition - Azure::Web::Mgmt::V2018_02_01::Models::MetricDefinition + def site_configuration_snapshot_info_collection + Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfoCollection end - def usage - Azure::Web::Mgmt::V2018_02_01::Models::Usage + def csm_slot_entity + Azure::Web::Mgmt::V2018_02_01::Models::CsmSlotEntity end - def worker_pool_resource - Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolResource + def site_extension_info_collection + Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfoCollection end - def app_service_plan_patch_resource - Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanPatchResource + def managed_service_identity + Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity end - def hybrid_connection_limits - Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionLimits + def backup_item + Azure::Web::Mgmt::V2018_02_01::Models::BackupItem end - def resource_health_metadata - Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadata + def backup_request + Azure::Web::Mgmt::V2018_02_01::Models::BackupRequest end - def key_vault_secret_status - Azure::Web::Mgmt::V2018_02_01::Models::KeyVaultSecretStatus + def connection_string_dictionary + Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringDictionary end - def certificate_product_type - Azure::Web::Mgmt::V2018_02_01::Models::CertificateProductType + def continuous_web_job + Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJob end - def provisioning_state - Azure::Web::Mgmt::V2018_02_01::Models::ProvisioningState + def custom_hostname_analysis_result + Azure::Web::Mgmt::V2018_02_01::Models::CustomHostnameAnalysisResult end - def certificate_order_status - Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderStatus + def function_envelope + Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelope end - def certificate_order_action_type - Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderActionType + def function_secrets + Azure::Web::Mgmt::V2018_02_01::Models::FunctionSecrets end - def route_type - Azure::Web::Mgmt::V2018_02_01::Models::RouteType + def host_name_binding + Azure::Web::Mgmt::V2018_02_01::Models::HostNameBinding end - def managed_service_identity_type - Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentityType + def msdeploy + Azure::Web::Mgmt::V2018_02_01::Models::MSDeploy end - def ip_filter_tag - Azure::Web::Mgmt::V2018_02_01::Models::IpFilterTag + def msdeploy_log + Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLog end - def auto_heal_action_type - Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType + def msdeploy_status + Azure::Web::Mgmt::V2018_02_01::Models::MSDeployStatus end - def connection_string_type - Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringType + def migrate_my_sql_request + Azure::Web::Mgmt::V2018_02_01::Models::MigrateMySqlRequest end - def azure_storage_type - Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageType + def migrate_my_sql_status + Azure::Web::Mgmt::V2018_02_01::Models::MigrateMySqlStatus end - def azure_storage_state - Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageState + def relay_service_connection_entity + Azure::Web::Mgmt::V2018_02_01::Models::RelayServiceConnectionEntity end - def scm_type - Azure::Web::Mgmt::V2018_02_01::Models::ScmType + def network_features + Azure::Web::Mgmt::V2018_02_01::Models::NetworkFeatures end - def managed_pipeline_mode - Azure::Web::Mgmt::V2018_02_01::Models::ManagedPipelineMode + def premier_add_on + Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOn end - def site_load_balancing - Azure::Web::Mgmt::V2018_02_01::Models::SiteLoadBalancing + def process_thread_info + Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfo end - def supported_tls_versions - Azure::Web::Mgmt::V2018_02_01::Models::SupportedTlsVersions + def process_module_info + Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfo end - def ftps_state - Azure::Web::Mgmt::V2018_02_01::Models::FtpsState + def process_info + Azure::Web::Mgmt::V2018_02_01::Models::ProcessInfo end - def ssl_state - Azure::Web::Mgmt::V2018_02_01::Models::SslState + def public_certificate + Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificate end - def host_type - Azure::Web::Mgmt::V2018_02_01::Models::HostType + def restore_request + Azure::Web::Mgmt::V2018_02_01::Models::RestoreRequest end - def usage_state - Azure::Web::Mgmt::V2018_02_01::Models::UsageState + def site_auth_settings + Azure::Web::Mgmt::V2018_02_01::Models::SiteAuthSettings end - def site_availability_state - Azure::Web::Mgmt::V2018_02_01::Models::SiteAvailabilityState + def site_config_resource + Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResource end - def status_options - Azure::Web::Mgmt::V2018_02_01::Models::StatusOptions + def site_configuration_snapshot_info + Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo end - def domain_status - Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus + def site_extension_info + Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfo end - def azure_resource_type - Azure::Web::Mgmt::V2018_02_01::Models::AzureResourceType + def site_instance + Azure::Web::Mgmt::V2018_02_01::Models::SiteInstance end - def custom_host_name_dns_record_type - Azure::Web::Mgmt::V2018_02_01::Models::CustomHostNameDnsRecordType + def site_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::SiteLogsConfig end - def host_name_type - Azure::Web::Mgmt::V2018_02_01::Models::HostNameType + def site_patch_resource + Azure::Web::Mgmt::V2018_02_01::Models::SitePatchResource end - def dns_type - Azure::Web::Mgmt::V2018_02_01::Models::DnsType + def site_php_error_log_flag + Azure::Web::Mgmt::V2018_02_01::Models::SitePhpErrorLogFlag end - def domain_type - Azure::Web::Mgmt::V2018_02_01::Models::DomainType + def site_source_control + Azure::Web::Mgmt::V2018_02_01::Models::SiteSourceControl end - def hosting_environment_status - Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentStatus + def slot_config_names_resource + Azure::Web::Mgmt::V2018_02_01::Models::SlotConfigNamesResource end - def internal_load_balancing_mode - Azure::Web::Mgmt::V2018_02_01::Models::InternalLoadBalancingMode + def slot_difference + Azure::Web::Mgmt::V2018_02_01::Models::SlotDifference end - def compute_mode_options - Azure::Web::Mgmt::V2018_02_01::Models::ComputeModeOptions + def storage_migration_options + Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationOptions end - def worker_size_options - Azure::Web::Mgmt::V2018_02_01::Models::WorkerSizeOptions + def storage_migration_response + Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationResponse end - def access_control_entry_action - Azure::Web::Mgmt::V2018_02_01::Models::AccessControlEntryAction + def string_dictionary + Azure::Web::Mgmt::V2018_02_01::Models::StringDictionary end - def operation_status - Azure::Web::Mgmt::V2018_02_01::Models::OperationStatus + def triggered_job_run + Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobRun end - def issue_type - Azure::Web::Mgmt::V2018_02_01::Models::IssueType + def default_error_response_error_details_item + Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseErrorDetailsItem end - def solution_type - Azure::Web::Mgmt::V2018_02_01::Models::SolutionType + def hosting_environment_profile + Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentProfile end - def rendering_type - Azure::Web::Mgmt::V2018_02_01::Models::RenderingType + def default_error_response_error + Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseError end - def resource_scope_type - Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType + def certificate_collection + Azure::Web::Mgmt::V2018_02_01::Models::CertificateCollection end - def notification_level - Azure::Web::Mgmt::V2018_02_01::Models::NotificationLevel + def default_error_response + Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponse end - def channels - Azure::Web::Mgmt::V2018_02_01::Models::Channels + def csm_operation_display + Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDisplay end - def app_service_plan_restrictions - Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions + def validate_response + Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponse end - def in_availability_reason_type - Azure::Web::Mgmt::V2018_02_01::Models::InAvailabilityReasonType + def metric_availability + Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailability end - def check_name_resource_types - Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes + def web_job + Azure::Web::Mgmt::V2018_02_01::Models::WebJob end - def validate_resource_types - Azure::Web::Mgmt::V2018_02_01::Models::ValidateResourceTypes + def resource_metric_availability + Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricAvailability end - def log_level - Azure::Web::Mgmt::V2018_02_01::Models::LogLevel + def source_control_collection + Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection end - def backup_item_status - Azure::Web::Mgmt::V2018_02_01::Models::BackupItemStatus + def csm_operation_description_properties + Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescriptionProperties end - def database_type - Azure::Web::Mgmt::V2018_02_01::Models::DatabaseType + def resource_name_availability_request + Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailabilityRequest end - def frequency_unit - Azure::Web::Mgmt::V2018_02_01::Models::FrequencyUnit + def csm_operation_description + Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescription end - def continuous_web_job_status - Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus + def premier_add_on_offer_collection + Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOfferCollection end - def web_job_type - Azure::Web::Mgmt::V2018_02_01::Models::WebJobType + def csm_operation_collection + Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationCollection end - def publishing_profile_format - Azure::Web::Mgmt::V2018_02_01::Models::PublishingProfileFormat + def localizable_string + Azure::Web::Mgmt::V2018_02_01::Models::LocalizableString end - def dns_verification_test_result - Azure::Web::Mgmt::V2018_02_01::Models::DnsVerificationTestResult + def cloning_info + Azure::Web::Mgmt::V2018_02_01::Models::CloningInfo end - def msdeploy_log_entry_type - Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntryType + def csm_usage_quota + Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuota end - def msdeploy_provisioning_state - Azure::Web::Mgmt::V2018_02_01::Models::MSDeployProvisioningState + def api_definition_info + Azure::Web::Mgmt::V2018_02_01::Models::ApiDefinitionInfo end - def my_sql_migration_type - Azure::Web::Mgmt::V2018_02_01::Models::MySqlMigrationType + def csm_usage_quota_collection + Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuotaCollection end - def public_certificate_location - Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateLocation + def auto_heal_custom_action + Azure::Web::Mgmt::V2018_02_01::Models::AutoHealCustomAction end - def backup_restore_operation_type - Azure::Web::Mgmt::V2018_02_01::Models::BackupRestoreOperationType + def error_entity + Azure::Web::Mgmt::V2018_02_01::Models::ErrorEntity end - def unauthenticated_client_action - Azure::Web::Mgmt::V2018_02_01::Models::UnauthenticatedClientAction + def slow_requests_based_trigger + Azure::Web::Mgmt::V2018_02_01::Models::SlowRequestsBasedTrigger end - def built_in_authentication_provider - Azure::Web::Mgmt::V2018_02_01::Models::BuiltInAuthenticationProvider + def status_codes_based_trigger + Azure::Web::Mgmt::V2018_02_01::Models::StatusCodesBasedTrigger end - def clone_ability_result - Azure::Web::Mgmt::V2018_02_01::Models::CloneAbilityResult + def requests_based_trigger + Azure::Web::Mgmt::V2018_02_01::Models::RequestsBasedTrigger end - def site_extension_type - Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionType + def application_stack + Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStack end - def triggered_web_job_status - Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJobStatus + def auto_heal_rules + Azure::Web::Mgmt::V2018_02_01::Models::AutoHealRules end - def sku_name - Azure::Web::Mgmt::V2018_02_01::Models::SkuName + def stack_major_version + Azure::Web::Mgmt::V2018_02_01::Models::StackMajorVersion 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 ed02f799f5..654e068dae 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 + Article = Azure::CognitiveServices::WebSearch::V1_0::Models::Article + RelatedSearchesRelatedSearchAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::RelatedSearchesRelatedSearchAnswer + Intangible = Azure::CognitiveServices::WebSearch::V1_0::Models::Intangible + StructuredValue = Azure::CognitiveServices::WebSearch::V1_0::Models::StructuredValue + AnswerType = Azure::CognitiveServices::WebSearch::V1_0::Models::AnswerType + ErrorCode = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorCode + SafeSearch = Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch + Query = Azure::CognitiveServices::WebSearch::V1_0::Models::Query + ImageObject = Azure::CognitiveServices::WebSearch::V1_0::Models::ImageObject + MediaObject = Azure::CognitiveServices::WebSearch::V1_0::Models::MediaObject + WebPage = Azure::CognitiveServices::WebSearch::V1_0::Models::WebPage + ErrorSubCode = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorSubCode + ErrorResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorResponse + Freshness = Azure::CognitiveServices::WebSearch::V1_0::Models::Freshness + Response = Azure::CognitiveServices::WebSearch::V1_0::Models::Response + WebMetaTag = Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag + WebWebAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebAnswer + SearchResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResponse + Images = Azure::CognitiveServices::WebSearch::V1_0::Models::Images + TextFormat = Azure::CognitiveServices::WebSearch::V1_0::Models::TextFormat + Videos = Azure::CognitiveServices::WebSearch::V1_0::Models::Videos + Places = Azure::CognitiveServices::WebSearch::V1_0::Models::Places 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 + Computation = Azure::CognitiveServices::WebSearch::V1_0::Models::Computation ResponseBase = Azure::CognitiveServices::WebSearch::V1_0::Models::ResponseBase - QueryContext = Azure::CognitiveServices::WebSearch::V1_0::Models::QueryContext - ImageObject = Azure::CognitiveServices::WebSearch::V1_0::Models::ImageObject + SearchResultsAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResultsAnswer + SpellSuggestions = Azure::CognitiveServices::WebSearch::V1_0::Models::SpellSuggestions + Thing = Azure::CognitiveServices::WebSearch::V1_0::Models::Thing 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 - Identifiable = Azure::CognitiveServices::WebSearch::V1_0::Models::Identifiable - Response = Azure::CognitiveServices::WebSearch::V1_0::Models::Response - 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 - Images = Azure::CognitiveServices::WebSearch::V1_0::Models::Images + QueryContext = Azure::CognitiveServices::WebSearch::V1_0::Models::QueryContext News = Azure::CognitiveServices::WebSearch::V1_0::Models::News - RelatedSearchesRelatedSearchAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::RelatedSearchesRelatedSearchAnswer - SpellSuggestions = Azure::CognitiveServices::WebSearch::V1_0::Models::SpellSuggestions + Identifiable = Azure::CognitiveServices::WebSearch::V1_0::Models::Identifiable + VideoObject = Azure::CognitiveServices::WebSearch::V1_0::Models::VideoObject + Error = Azure::CognitiveServices::WebSearch::V1_0::Models::Error TimeZone = Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZone - Videos = Azure::CognitiveServices::WebSearch::V1_0::Models::Videos - Places = Azure::CognitiveServices::WebSearch::V1_0::Models::Places - ErrorResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorResponse - 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 end class WebSearchDataClass @@ -82,128 +82,128 @@ def method_missing(method, *args) end class ModelClasses - def ranking_ranking_item - Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem + def article + Azure::CognitiveServices::WebSearch::V1_0::Models::Article end - def ranking_ranking_group - Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingGroup + def related_searches_related_search_answer + Azure::CognitiveServices::WebSearch::V1_0::Models::RelatedSearchesRelatedSearchAnswer end - def web_meta_tag - Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag + def intangible + Azure::CognitiveServices::WebSearch::V1_0::Models::Intangible end - def ranking_ranking_response - Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingResponse + def structured_value + Azure::CognitiveServices::WebSearch::V1_0::Models::StructuredValue end - def web_web_grouping - Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebGrouping + def answer_type + Azure::CognitiveServices::WebSearch::V1_0::Models::AnswerType end - def error - Azure::CognitiveServices::WebSearch::V1_0::Models::Error + def error_code + Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorCode + end + def safe_search + Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch 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 - end def image_object Azure::CognitiveServices::WebSearch::V1_0::Models::ImageObject end - def creative_work - Azure::CognitiveServices::WebSearch::V1_0::Models::CreativeWork + def media_object + Azure::CognitiveServices::WebSearch::V1_0::Models::MediaObject end def web_page Azure::CognitiveServices::WebSearch::V1_0::Models::WebPage end - def news_article - Azure::CognitiveServices::WebSearch::V1_0::Models::NewsArticle + def error_sub_code + Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorSubCode end - def video_object - Azure::CognitiveServices::WebSearch::V1_0::Models::VideoObject + def error_response + Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorResponse end - def identifiable - Azure::CognitiveServices::WebSearch::V1_0::Models::Identifiable + def freshness + Azure::CognitiveServices::WebSearch::V1_0::Models::Freshness end def response Azure::CognitiveServices::WebSearch::V1_0::Models::Response end + def web_meta_tag + Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag + end + 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 + def images + Azure::CognitiveServices::WebSearch::V1_0::Models::Images end - def answer - Azure::CognitiveServices::WebSearch::V1_0::Models::Answer + def text_format + Azure::CognitiveServices::WebSearch::V1_0::Models::TextFormat end - def computation - Azure::CognitiveServices::WebSearch::V1_0::Models::Computation + def videos + Azure::CognitiveServices::WebSearch::V1_0::Models::Videos end - def search_results_answer - Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResultsAnswer + def places + Azure::CognitiveServices::WebSearch::V1_0::Models::Places end - def web_web_answer - Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebAnswer + def ranking_ranking_item + Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem end - def images - Azure::CognitiveServices::WebSearch::V1_0::Models::Images + def ranking_ranking_group + Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingGroup end - def news - Azure::CognitiveServices::WebSearch::V1_0::Models::News + def ranking_ranking_response + Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingResponse end - def related_searches_related_search_answer - Azure::CognitiveServices::WebSearch::V1_0::Models::RelatedSearchesRelatedSearchAnswer + def web_web_grouping + Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebGrouping end - def spell_suggestions - Azure::CognitiveServices::WebSearch::V1_0::Models::SpellSuggestions + def time_zone_time_zone_information + Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZoneTimeZoneInformation end - def time_zone - Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZone + def computation + Azure::CognitiveServices::WebSearch::V1_0::Models::Computation end - def videos - Azure::CognitiveServices::WebSearch::V1_0::Models::Videos + def response_base + Azure::CognitiveServices::WebSearch::V1_0::Models::ResponseBase end - def places - Azure::CognitiveServices::WebSearch::V1_0::Models::Places + def search_results_answer + Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResultsAnswer end - def error_response - Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorResponse + def spell_suggestions + Azure::CognitiveServices::WebSearch::V1_0::Models::SpellSuggestions end - def intangible - Azure::CognitiveServices::WebSearch::V1_0::Models::Intangible + def thing + Azure::CognitiveServices::WebSearch::V1_0::Models::Thing end - def media_object - Azure::CognitiveServices::WebSearch::V1_0::Models::MediaObject + def creative_work + Azure::CognitiveServices::WebSearch::V1_0::Models::CreativeWork end - def article - Azure::CognitiveServices::WebSearch::V1_0::Models::Article + def news_article + Azure::CognitiveServices::WebSearch::V1_0::Models::NewsArticle end - def structured_value - Azure::CognitiveServices::WebSearch::V1_0::Models::StructuredValue + def answer + Azure::CognitiveServices::WebSearch::V1_0::Models::Answer end - def answer_type - Azure::CognitiveServices::WebSearch::V1_0::Models::AnswerType + def query_context + Azure::CognitiveServices::WebSearch::V1_0::Models::QueryContext end - def error_code - Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorCode + def news + Azure::CognitiveServices::WebSearch::V1_0::Models::News end - def error_sub_code - Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorSubCode + def identifiable + Azure::CognitiveServices::WebSearch::V1_0::Models::Identifiable end - def freshness - Azure::CognitiveServices::WebSearch::V1_0::Models::Freshness + def video_object + Azure::CognitiveServices::WebSearch::V1_0::Models::VideoObject 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 time_zone + Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZone end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/authorization_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/authorization_profile_module.rb index ddb8b40f31..1edd81ab59 100644 --- a/azure_sdk/lib/v2017_03_09/modules/authorization_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/authorization_profile_module.rb @@ -7,13 +7,21 @@ module Azure::Profiles::V2017_03_09 module Authorization module Mgmt - Permissions = Azure::Authorization::Mgmt::V2015_07_01::Permissions - ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2015_07_01::ProviderOperationsMetadataOperations RoleAssignments = Azure::Authorization::Mgmt::V2015_07_01::RoleAssignments RoleDefinitions = Azure::Authorization::Mgmt::V2015_07_01::RoleDefinitions ClassicAdministrators = Azure::Authorization::Mgmt::V2015_07_01::ClassicAdministrators + Permissions = Azure::Authorization::Mgmt::V2015_07_01::Permissions + ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2015_07_01::ProviderOperationsMetadataOperations module Models + RoleDefinitionListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult + ProviderOperation = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation + ClassicAdministratorProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties + RoleAssignmentPropertiesWithScope = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope + ClassicAdministrator = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator + ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata + ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult + Permission = Azure::Authorization::Mgmt::V2015_07_01::Models::Permission RoleAssignment = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment RoleAssignmentListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult RoleDefinitionFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter @@ -25,18 +33,10 @@ module Models ProviderOperationsMetadataListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult RoleDefinition = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition RoleAssignmentFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter - RoleDefinitionListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult - ProviderOperation = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation - ClassicAdministratorProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties - RoleAssignmentPropertiesWithScope = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope - ClassicAdministrator = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator - ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata - ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult - Permission = Azure::Authorization::Mgmt::V2015_07_01::Models::Permission end class AuthorizationManagementClass - attr_reader :permissions, :provider_operations_metadata_operations, :role_assignments, :role_definitions, :classic_administrators, :configurable, :base_url, :options, :model_classes + attr_reader :role_assignments, :role_definitions, :classic_administrators, :permissions, :provider_operations_metadata_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -52,11 +52,11 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) - @permissions = @client_1.permissions - @provider_operations_metadata_operations = @client_1.provider_operations_metadata_operations @role_assignments = @client_1.role_assignments @role_definitions = @client_1.role_definitions @classic_administrators = @client_1.classic_administrators + @permissions = @client_1.permissions + @provider_operations_metadata_operations = @client_1.provider_operations_metadata_operations @model_classes = ModelClasses.new end @@ -77,6 +77,30 @@ def method_missing(method, *args) end class ModelClasses + def role_definition_list_result + Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult + end + def provider_operation + Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation + end + def classic_administrator_properties + Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties + end + def role_assignment_properties_with_scope + Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope + end + def classic_administrator + Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator + end + def provider_operations_metadata + Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata + end + def classic_administrator_list_result + Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult + end + def permission + Azure::Authorization::Mgmt::V2015_07_01::Models::Permission + end def role_assignment Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment end @@ -110,30 +134,6 @@ def role_definition def role_assignment_filter Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter end - def role_definition_list_result - Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult - end - def provider_operation - Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation - end - def classic_administrator_properties - Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties - end - def role_assignment_properties_with_scope - Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope - end - def classic_administrator - Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator - end - def provider_operations_metadata - Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata - end - def classic_administrator_list_result - Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult - end - def permission - Azure::Authorization::Mgmt::V2015_07_01::Models::Permission - end 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..9a7bcbdb8a 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,91 +7,82 @@ module Azure::Profiles::V2017_03_09 module Compute module Mgmt + 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 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 - DiagnosticsProfile = Azure::Compute::Mgmt::V2016_03_30::Models::DiagnosticsProfile + VirtualMachineCaptureParameters = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineCaptureParameters + VirtualMachineScaleSetOSProfile = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetOSProfile + Plan = Azure::Compute::Mgmt::V2016_03_30::Models::Plan InstanceViewStatus = Azure::Compute::Mgmt::V2016_03_30::Models::InstanceViewStatus - VirtualMachineExtensionHandlerInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionHandlerInstanceView - VaultCertificate = Azure::Compute::Mgmt::V2016_03_30::Models::VaultCertificate - VaultSecretGroup = Azure::Compute::Mgmt::V2016_03_30::Models::VaultSecretGroup - VirtualMachineSize = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineSize - OSProfile = Azure::Compute::Mgmt::V2016_03_30::Models::OSProfile - 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 - ApiError = Azure::Compute::Mgmt::V2016_03_30::Models::ApiError - BootDiagnosticsInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::BootDiagnosticsInstanceView - HardwareProfile = Azure::Compute::Mgmt::V2016_03_30::Models::HardwareProfile - VirtualMachineIdentity = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineIdentity - KeyVaultSecretReference = Azure::Compute::Mgmt::V2016_03_30::Models::KeyVaultSecretReference - VirtualMachineInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineInstanceView - DiskEncryptionSettings = Azure::Compute::Mgmt::V2016_03_30::Models::DiskEncryptionSettings - VirtualMachineScaleSetVMListResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMListResult + KeyVaultKeyReference = Azure::Compute::Mgmt::V2016_03_30::Models::KeyVaultKeyReference + Sku = Azure::Compute::Mgmt::V2016_03_30::Models::Sku + VirtualHardDisk = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualHardDisk 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 + VirtualMachineScaleSetStorageProfile = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetStorageProfile 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 - VirtualMachineScaleSetIdentity = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetIdentity - SshConfiguration = Azure::Compute::Mgmt::V2016_03_30::Models::SshConfiguration - VirtualMachineScaleSetOSProfile = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetOSProfile - AvailabilitySetListResult = Azure::Compute::Mgmt::V2016_03_30::Models::AvailabilitySetListResult - VirtualMachineScaleSetOSDisk = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetOSDisk - OperationStatusResponse = Azure::Compute::Mgmt::V2016_03_30::Models::OperationStatusResponse - VirtualMachineScaleSetStorageProfile = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetStorageProfile - VirtualMachineExtensionsListResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionsListResult ApiEntityReference = Azure::Compute::Mgmt::V2016_03_30::Models::ApiEntityReference - ComputeLongRunningOperationProperties = Azure::Compute::Mgmt::V2016_03_30::Models::ComputeLongRunningOperationProperties - VirtualMachineScaleSetVMInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceView - VirtualMachineCaptureParameters = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineCaptureParameters - VirtualMachineScaleSetListSkusResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetListSkusResult - ImageReference = Azure::Compute::Mgmt::V2016_03_30::Models::ImageReference + SshConfiguration = Azure::Compute::Mgmt::V2016_03_30::Models::SshConfiguration + VaultCertificate = Azure::Compute::Mgmt::V2016_03_30::Models::VaultCertificate + OSProfile = Azure::Compute::Mgmt::V2016_03_30::Models::OSProfile + NetworkProfile = Azure::Compute::Mgmt::V2016_03_30::Models::NetworkProfile + DiagnosticsProfile = Azure::Compute::Mgmt::V2016_03_30::Models::DiagnosticsProfile + VirtualMachineAgentInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineAgentInstanceView + BootDiagnosticsInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::BootDiagnosticsInstanceView VirtualMachineScaleSetNetworkProfile = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetNetworkProfile - VirtualHardDisk = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualHardDisk - VirtualMachineScaleSetSku = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetSku - AdditionalUnattendContent = Azure::Compute::Mgmt::V2016_03_30::Models::AdditionalUnattendContent VirtualMachineScaleSetExtensionProfile = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetExtensionProfile - SshPublicKey = Azure::Compute::Mgmt::V2016_03_30::Models::SshPublicKey VirtualMachineScaleSetVMProfile = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMProfile - VirtualMachineSizeListResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineSizeListResult - VirtualMachineScaleSetSkuCapacity = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetSkuCapacity - OSDiskImage = Azure::Compute::Mgmt::V2016_03_30::Models::OSDiskImage + DataDiskImage = Azure::Compute::Mgmt::V2016_03_30::Models::DataDiskImage + ListUsagesResult = Azure::Compute::Mgmt::V2016_03_30::Models::ListUsagesResult + HardwareProfile = Azure::Compute::Mgmt::V2016_03_30::Models::HardwareProfile + OperationStatusResponse = Azure::Compute::Mgmt::V2016_03_30::Models::OperationStatusResponse + DiskEncryptionSettings = Azure::Compute::Mgmt::V2016_03_30::Models::DiskEncryptionSettings VirtualMachineScaleSetVMInstanceIDs = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceIDs - Plan = Azure::Compute::Mgmt::V2016_03_30::Models::Plan - VirtualMachineScaleSetVMInstanceRequiredIDs = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceRequiredIDs DataDisk = Azure::Compute::Mgmt::V2016_03_30::Models::DataDisk + VirtualMachineScaleSetVMInstanceRequiredIDs = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceRequiredIDs + WinRMConfiguration = Azure::Compute::Mgmt::V2016_03_30::Models::WinRMConfiguration 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 + VirtualMachineExtensionHandlerInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionHandlerInstanceView VirtualMachineScaleSetInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetInstanceView - KeyVaultKeyReference = Azure::Compute::Mgmt::V2016_03_30::Models::KeyVaultKeyReference + VirtualMachineIdentity = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineIdentity VirtualMachineScaleSetListResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetListResult - UpdateResource = Azure::Compute::Mgmt::V2016_03_30::Models::UpdateResource + VirtualMachineListResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineListResult VirtualMachineScaleSetListWithLinkResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetListWithLinkResult + VirtualMachineScaleSetSkuCapacity = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetSkuCapacity + VirtualMachineExtensionInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionInstanceView + VirtualMachineScaleSetSku = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetSku + UsageName = Azure::Compute::Mgmt::V2016_03_30::Models::UsageName + VirtualMachineScaleSetListSkusResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetListSkusResult + KeyVaultSecretReference = Azure::Compute::Mgmt::V2016_03_30::Models::KeyVaultSecretReference + AdditionalUnattendContent = Azure::Compute::Mgmt::V2016_03_30::Models::AdditionalUnattendContent + VirtualMachineScaleSetVMInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceView + VaultSecretGroup = Azure::Compute::Mgmt::V2016_03_30::Models::VaultSecretGroup + DiskInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::DiskInstanceView + VirtualMachineScaleSetVMListResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMListResult + UpgradePolicy = Azure::Compute::Mgmt::V2016_03_30::Models::UpgradePolicy + PurchasePlan = Azure::Compute::Mgmt::V2016_03_30::Models::PurchasePlan + ApiErrorBase = Azure::Compute::Mgmt::V2016_03_30::Models::ApiErrorBase + BootDiagnostics = Azure::Compute::Mgmt::V2016_03_30::Models::BootDiagnostics + InnerError = Azure::Compute::Mgmt::V2016_03_30::Models::InnerError + VirtualMachineSize = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineSize + ApiError = Azure::Compute::Mgmt::V2016_03_30::Models::ApiError + SshPublicKey = Azure::Compute::Mgmt::V2016_03_30::Models::SshPublicKey + UpdateResource = Azure::Compute::Mgmt::V2016_03_30::Models::UpdateResource + ComputeLongRunningOperationProperties = Azure::Compute::Mgmt::V2016_03_30::Models::ComputeLongRunningOperationProperties + VirtualMachineInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineInstanceView + Resource = Azure::Compute::Mgmt::V2016_03_30::Models::Resource AvailabilitySet = Azure::Compute::Mgmt::V2016_03_30::Models::AvailabilitySet VirtualMachineExtensionImage = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionImage VirtualMachineImageResource = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineImageResource @@ -99,6 +90,7 @@ module Models VirtualMachineExtensionUpdate = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionUpdate VirtualMachineImage = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineImage VirtualMachineCaptureResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineCaptureResult + ImageReference = Azure::Compute::Mgmt::V2016_03_30::Models::ImageReference NetworkInterfaceReference = Azure::Compute::Mgmt::V2016_03_30::Models::NetworkInterfaceReference VirtualMachine = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachine VirtualMachineScaleSetIPConfiguration = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetIPConfiguration @@ -119,10 +111,18 @@ module Models UpgradeMode = Azure::Compute::Mgmt::V2016_03_30::Models::UpgradeMode VirtualMachineScaleSetSkuScaleType = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetSkuScaleType InstanceViewTypes = Azure::Compute::Mgmt::V2016_03_30::Models::InstanceViewTypes + VirtualMachineScaleSetOSDisk = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetOSDisk + SubResource = Azure::Compute::Mgmt::V2016_03_30::Models::SubResource + AvailabilitySetListResult = Azure::Compute::Mgmt::V2016_03_30::Models::AvailabilitySetListResult + VirtualMachineSizeListResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineSizeListResult + VirtualMachineScaleSetIdentity = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetIdentity + VirtualMachineExtensionsListResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionsListResult + OSDiskImage = Azure::Compute::Mgmt::V2016_03_30::Models::OSDiskImage + Usage = Azure::Compute::Mgmt::V2016_03_30::Models::Usage 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, :virtual_machine_sizes, :virtual_machine_scale_sets, :virtual_machine_scale_set_vms, :availability_sets, :virtual_machine_extension_images, :virtual_machine_extensions, :virtual_machines, :virtual_machine_images, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -132,15 +132,15 @@ 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 + @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 @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 @model_classes = ModelClasses.new end @@ -159,194 +159,101 @@ def method_missing(method, *args) end class ModelClasses - def diagnostics_profile - Azure::Compute::Mgmt::V2016_03_30::Models::DiagnosticsProfile - end - def instance_view_status - Azure::Compute::Mgmt::V2016_03_30::Models::InstanceViewStatus - end - def virtual_machine_extension_handler_instance_view - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionHandlerInstanceView - end - def vault_certificate - Azure::Compute::Mgmt::V2016_03_30::Models::VaultCertificate - end - def vault_secret_group - Azure::Compute::Mgmt::V2016_03_30::Models::VaultSecretGroup - end - def virtual_machine_size - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineSize - end - def osprofile - Azure::Compute::Mgmt::V2016_03_30::Models::OSProfile - end - def inner_error - Azure::Compute::Mgmt::V2016_03_30::Models::InnerError - end - def virtual_machine_extension_instance_view - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionInstanceView - end - 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 - def list_usages_result - Azure::Compute::Mgmt::V2016_03_30::Models::ListUsagesResult - end - def disk_instance_view - Azure::Compute::Mgmt::V2016_03_30::Models::DiskInstanceView - end - def api_error - Azure::Compute::Mgmt::V2016_03_30::Models::ApiError - end - def boot_diagnostics_instance_view - Azure::Compute::Mgmt::V2016_03_30::Models::BootDiagnosticsInstanceView + def virtual_machine_capture_parameters + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineCaptureParameters end - def hardware_profile - Azure::Compute::Mgmt::V2016_03_30::Models::HardwareProfile + def virtual_machine_scale_set_osprofile + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetOSProfile end - def virtual_machine_identity - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineIdentity + def plan + Azure::Compute::Mgmt::V2016_03_30::Models::Plan end - def key_vault_secret_reference - Azure::Compute::Mgmt::V2016_03_30::Models::KeyVaultSecretReference + def instance_view_status + Azure::Compute::Mgmt::V2016_03_30::Models::InstanceViewStatus end - def virtual_machine_instance_view - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineInstanceView + def key_vault_key_reference + Azure::Compute::Mgmt::V2016_03_30::Models::KeyVaultKeyReference end - def disk_encryption_settings - Azure::Compute::Mgmt::V2016_03_30::Models::DiskEncryptionSettings + def sku + Azure::Compute::Mgmt::V2016_03_30::Models::Sku end - def virtual_machine_scale_set_vmlist_result - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMListResult + def virtual_hard_disk + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualHardDisk end def osdisk Azure::Compute::Mgmt::V2016_03_30::Models::OSDisk end - def virtual_machine_list_result - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineListResult - end def storage_profile Azure::Compute::Mgmt::V2016_03_30::Models::StorageProfile end - def sku - Azure::Compute::Mgmt::V2016_03_30::Models::Sku + def virtual_machine_scale_set_storage_profile + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetStorageProfile end def win_rmlistener Azure::Compute::Mgmt::V2016_03_30::Models::WinRMListener end - def upgrade_policy - Azure::Compute::Mgmt::V2016_03_30::Models::UpgradePolicy - end def windows_configuration Azure::Compute::Mgmt::V2016_03_30::Models::WindowsConfiguration end - def virtual_machine_scale_set_identity - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetIdentity + def api_entity_reference + Azure::Compute::Mgmt::V2016_03_30::Models::ApiEntityReference end def ssh_configuration Azure::Compute::Mgmt::V2016_03_30::Models::SshConfiguration end - def virtual_machine_scale_set_osprofile - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetOSProfile - end - def availability_set_list_result - Azure::Compute::Mgmt::V2016_03_30::Models::AvailabilitySetListResult - end - def virtual_machine_scale_set_osdisk - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetOSDisk - end - def operation_status_response - Azure::Compute::Mgmt::V2016_03_30::Models::OperationStatusResponse - end - def virtual_machine_scale_set_storage_profile - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetStorageProfile - end - def virtual_machine_extensions_list_result - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionsListResult - end - def api_entity_reference - Azure::Compute::Mgmt::V2016_03_30::Models::ApiEntityReference + def vault_certificate + Azure::Compute::Mgmt::V2016_03_30::Models::VaultCertificate end - def compute_long_running_operation_properties - Azure::Compute::Mgmt::V2016_03_30::Models::ComputeLongRunningOperationProperties + def osprofile + Azure::Compute::Mgmt::V2016_03_30::Models::OSProfile end - def virtual_machine_scale_set_vminstance_view - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceView + def network_profile + Azure::Compute::Mgmt::V2016_03_30::Models::NetworkProfile end - def virtual_machine_capture_parameters - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineCaptureParameters + def diagnostics_profile + Azure::Compute::Mgmt::V2016_03_30::Models::DiagnosticsProfile end - def virtual_machine_scale_set_list_skus_result - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetListSkusResult + def virtual_machine_agent_instance_view + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineAgentInstanceView end - def image_reference - Azure::Compute::Mgmt::V2016_03_30::Models::ImageReference + def boot_diagnostics_instance_view + Azure::Compute::Mgmt::V2016_03_30::Models::BootDiagnosticsInstanceView end def virtual_machine_scale_set_network_profile Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetNetworkProfile end - def virtual_hard_disk - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualHardDisk - end - def virtual_machine_scale_set_sku - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetSku - end - def additional_unattend_content - Azure::Compute::Mgmt::V2016_03_30::Models::AdditionalUnattendContent - end def virtual_machine_scale_set_extension_profile Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetExtensionProfile end - def ssh_public_key - Azure::Compute::Mgmt::V2016_03_30::Models::SshPublicKey - end def virtual_machine_scale_set_vmprofile Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMProfile end - def virtual_machine_size_list_result - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineSizeListResult + def data_disk_image + Azure::Compute::Mgmt::V2016_03_30::Models::DataDiskImage end - def virtual_machine_scale_set_sku_capacity - Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetSkuCapacity + def list_usages_result + Azure::Compute::Mgmt::V2016_03_30::Models::ListUsagesResult end - def osdisk_image - Azure::Compute::Mgmt::V2016_03_30::Models::OSDiskImage + def hardware_profile + Azure::Compute::Mgmt::V2016_03_30::Models::HardwareProfile + end + def operation_status_response + Azure::Compute::Mgmt::V2016_03_30::Models::OperationStatusResponse + end + def disk_encryption_settings + Azure::Compute::Mgmt::V2016_03_30::Models::DiskEncryptionSettings end def virtual_machine_scale_set_vminstance_ids Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceIDs end - def plan - Azure::Compute::Mgmt::V2016_03_30::Models::Plan + def data_disk + Azure::Compute::Mgmt::V2016_03_30::Models::DataDisk end def virtual_machine_scale_set_vminstance_required_ids Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceRequiredIDs end - def data_disk - Azure::Compute::Mgmt::V2016_03_30::Models::DataDisk + def win_rmconfiguration + Azure::Compute::Mgmt::V2016_03_30::Models::WinRMConfiguration end def virtual_machine_status_code_count Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineStatusCodeCount @@ -357,30 +264,96 @@ 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 - def win_rmconfiguration - Azure::Compute::Mgmt::V2016_03_30::Models::WinRMConfiguration + def virtual_machine_extension_handler_instance_view + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionHandlerInstanceView end def virtual_machine_scale_set_instance_view Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetInstanceView end - def key_vault_key_reference - Azure::Compute::Mgmt::V2016_03_30::Models::KeyVaultKeyReference + def virtual_machine_identity + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineIdentity end def virtual_machine_scale_set_list_result Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetListResult end - def update_resource - Azure::Compute::Mgmt::V2016_03_30::Models::UpdateResource + def virtual_machine_list_result + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineListResult end def virtual_machine_scale_set_list_with_link_result Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetListWithLinkResult end + def virtual_machine_scale_set_sku_capacity + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetSkuCapacity + end + def virtual_machine_extension_instance_view + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionInstanceView + end + def virtual_machine_scale_set_sku + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetSku + end + def usage_name + Azure::Compute::Mgmt::V2016_03_30::Models::UsageName + end + def virtual_machine_scale_set_list_skus_result + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetListSkusResult + end + def key_vault_secret_reference + Azure::Compute::Mgmt::V2016_03_30::Models::KeyVaultSecretReference + end + def additional_unattend_content + Azure::Compute::Mgmt::V2016_03_30::Models::AdditionalUnattendContent + end + def virtual_machine_scale_set_vminstance_view + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceView + end + def vault_secret_group + Azure::Compute::Mgmt::V2016_03_30::Models::VaultSecretGroup + end + def disk_instance_view + Azure::Compute::Mgmt::V2016_03_30::Models::DiskInstanceView + end + def virtual_machine_scale_set_vmlist_result + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMListResult + end + def upgrade_policy + Azure::Compute::Mgmt::V2016_03_30::Models::UpgradePolicy + end + def purchase_plan + Azure::Compute::Mgmt::V2016_03_30::Models::PurchasePlan + end + def api_error_base + Azure::Compute::Mgmt::V2016_03_30::Models::ApiErrorBase + end + def boot_diagnostics + Azure::Compute::Mgmt::V2016_03_30::Models::BootDiagnostics + end + def inner_error + Azure::Compute::Mgmt::V2016_03_30::Models::InnerError + end + def virtual_machine_size + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineSize + end + def api_error + Azure::Compute::Mgmt::V2016_03_30::Models::ApiError + end + def ssh_public_key + Azure::Compute::Mgmt::V2016_03_30::Models::SshPublicKey + end + def update_resource + Azure::Compute::Mgmt::V2016_03_30::Models::UpdateResource + end + def compute_long_running_operation_properties + Azure::Compute::Mgmt::V2016_03_30::Models::ComputeLongRunningOperationProperties + end + def virtual_machine_instance_view + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineInstanceView + end + def resource + Azure::Compute::Mgmt::V2016_03_30::Models::Resource + end def availability_set Azure::Compute::Mgmt::V2016_03_30::Models::AvailabilitySet end @@ -402,6 +375,9 @@ def virtual_machine_image def virtual_machine_capture_result Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineCaptureResult end + def image_reference + Azure::Compute::Mgmt::V2016_03_30::Models::ImageReference + end def network_interface_reference Azure::Compute::Mgmt::V2016_03_30::Models::NetworkInterfaceReference end @@ -462,6 +438,30 @@ def virtual_machine_scale_set_sku_scale_type def instance_view_types Azure::Compute::Mgmt::V2016_03_30::Models::InstanceViewTypes end + def virtual_machine_scale_set_osdisk + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetOSDisk + end + def sub_resource + Azure::Compute::Mgmt::V2016_03_30::Models::SubResource + end + def availability_set_list_result + Azure::Compute::Mgmt::V2016_03_30::Models::AvailabilitySetListResult + end + def virtual_machine_size_list_result + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineSizeListResult + end + def virtual_machine_scale_set_identity + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetIdentity + end + def virtual_machine_extensions_list_result + Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionsListResult + end + def osdisk_image + Azure::Compute::Mgmt::V2016_03_30::Models::OSDiskImage + end + def usage + Azure::Compute::Mgmt::V2016_03_30::Models::Usage + end end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/dns_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/dns_profile_module.rb index 2df0a0c543..6c5cf17279 100644 --- a/azure_sdk/lib/v2017_03_09/modules/dns_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/dns_profile_module.rb @@ -11,6 +11,7 @@ module Mgmt Zones = Azure::Dns::Mgmt::V2016_04_01::Zones module Models + Resource = Azure::Dns::Mgmt::V2016_04_01::Models::Resource RecordSetUpdateParameters = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters RecordSetListResult = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult AaaaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord @@ -18,7 +19,6 @@ module Models MxRecord = Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord PtrRecord = Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord SrvRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord - Resource = Azure::Dns::Mgmt::V2016_04_01::Models::Resource CnameRecord = Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord ZoneDeleteResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult RecordSet = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet @@ -66,6 +66,9 @@ def method_missing(method, *args) end class ModelClasses + def resource + Azure::Dns::Mgmt::V2016_04_01::Models::Resource + end def record_set_update_parameters Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters end @@ -87,9 +90,6 @@ def ptr_record def srv_record Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord end - def resource - Azure::Dns::Mgmt::V2016_04_01::Models::Resource - end def cname_record Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord 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 92904dc4b8..53eadfd88d 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,12 +10,12 @@ module Mgmt Features = Azure::Features::Mgmt::V2015_12_01::Features module Models - OperationDisplay = Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties - Operation = Azure::Features::Mgmt::V2015_12_01::Models::Operation + OperationDisplay = Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult - OperationListResult = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult + Operation = Azure::Features::Mgmt::V2015_12_01::Models::Operation FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult + OperationListResult = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult end class FeaturesManagementClass @@ -48,24 +48,24 @@ def method_missing(method, *args) end class ModelClasses - def operation_display - Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay - end def feature_properties Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties end - def operation - Azure::Features::Mgmt::V2015_12_01::Models::Operation + def operation_display + Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay end def feature_operations_list_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult end - def operation_list_result - Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult + def operation + Azure::Features::Mgmt::V2015_12_01::Models::Operation end def feature_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult end + def operation_list_result + Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult + end end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/keyvault_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/keyvault_profile_module.rb index 883d19cb61..98108ee3b2 100644 --- a/azure_sdk/lib/v2017_03_09/modules/keyvault_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/keyvault_profile_module.rb @@ -9,6 +9,7 @@ module Azure::Profiles::V2017_03_09 module KeyVault module Models + Action = Azure::KeyVault::V2016_10_01::Models::Action KeyOperationsParameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters KeySignParameters = Azure::KeyVault::V2016_10_01::Models::KeySignParameters JsonWebKey = Azure::KeyVault::V2016_10_01::Models::JsonWebKey @@ -38,10 +39,9 @@ module Models CertificateUpdateParameters = Azure::KeyVault::V2016_10_01::Models::CertificateUpdateParameters SasDefinitionItem = Azure::KeyVault::V2016_10_01::Models::SasDefinitionItem CertificateMergeParameters = Azure::KeyVault::V2016_10_01::Models::CertificateMergeParameters - Error = Azure::KeyVault::V2016_10_01::Models::Error CertificateIssuerSetParameters = Azure::KeyVault::V2016_10_01::Models::CertificateIssuerSetParameters + Error = Azure::KeyVault::V2016_10_01::Models::Error IssuerCredentials = Azure::KeyVault::V2016_10_01::Models::IssuerCredentials - CertificateIssuerUpdateParameters = Azure::KeyVault::V2016_10_01::Models::CertificateIssuerUpdateParameters OrganizationDetails = Azure::KeyVault::V2016_10_01::Models::OrganizationDetails CertificateOperationUpdateParameter = Azure::KeyVault::V2016_10_01::Models::CertificateOperationUpdateParameter IssuerBundle = Azure::KeyVault::V2016_10_01::Models::IssuerBundle @@ -56,6 +56,7 @@ module Models X509CertificateProperties = Azure::KeyVault::V2016_10_01::Models::X509CertificateProperties DeletedSecretListResult = Azure::KeyVault::V2016_10_01::Models::DeletedSecretListResult IssuerParameters = Azure::KeyVault::V2016_10_01::Models::IssuerParameters + CertificateIssuerUpdateParameters = Azure::KeyVault::V2016_10_01::Models::CertificateIssuerUpdateParameters CertificateListResult = Azure::KeyVault::V2016_10_01::Models::CertificateListResult SasDefinitionBundle = Azure::KeyVault::V2016_10_01::Models::SasDefinitionBundle DeletedCertificateListResult = Azure::KeyVault::V2016_10_01::Models::DeletedCertificateListResult @@ -75,7 +76,6 @@ module Models StorageAccountCreateParameters = Azure::KeyVault::V2016_10_01::Models::StorageAccountCreateParameters CertificateOperation = Azure::KeyVault::V2016_10_01::Models::CertificateOperation StorageAccountUpdateParameters = Azure::KeyVault::V2016_10_01::Models::StorageAccountUpdateParameters - Action = Azure::KeyVault::V2016_10_01::Models::Action StorageAccountRegenerteKeyParameters = Azure::KeyVault::V2016_10_01::Models::StorageAccountRegenerteKeyParameters KeyCreateParameters = Azure::KeyVault::V2016_10_01::Models::KeyCreateParameters StorageAccountItem = Azure::KeyVault::V2016_10_01::Models::StorageAccountItem @@ -89,13 +89,13 @@ module Models DeletedCertificateBundle = Azure::KeyVault::V2016_10_01::Models::DeletedCertificateBundle DeletedCertificateItem = Azure::KeyVault::V2016_10_01::Models::DeletedCertificateItem JsonWebKeyType = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyType - JsonWebKeyCurveName = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyCurveName DeletionRecoveryLevel = Azure::KeyVault::V2016_10_01::Models::DeletionRecoveryLevel KeyUsageType = Azure::KeyVault::V2016_10_01::Models::KeyUsageType + JsonWebKeyCurveName = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyCurveName ActionType = Azure::KeyVault::V2016_10_01::Models::ActionType - JsonWebKeyOperation = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyOperation JsonWebKeyEncryptionAlgorithm = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyEncryptionAlgorithm JsonWebKeySignatureAlgorithm = Azure::KeyVault::V2016_10_01::Models::JsonWebKeySignatureAlgorithm + JsonWebKeyOperation = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyOperation end class KeyVaultDataClass @@ -127,6 +127,9 @@ def method_missing(method, *args) end class ModelClasses + def action + Azure::KeyVault::V2016_10_01::Models::Action + end def key_operations_parameters Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters end @@ -214,18 +217,15 @@ def sas_definition_item def certificate_merge_parameters Azure::KeyVault::V2016_10_01::Models::CertificateMergeParameters end - def error - Azure::KeyVault::V2016_10_01::Models::Error - end def certificate_issuer_set_parameters Azure::KeyVault::V2016_10_01::Models::CertificateIssuerSetParameters end + def error + Azure::KeyVault::V2016_10_01::Models::Error + end def issuer_credentials Azure::KeyVault::V2016_10_01::Models::IssuerCredentials end - def certificate_issuer_update_parameters - Azure::KeyVault::V2016_10_01::Models::CertificateIssuerUpdateParameters - end def organization_details Azure::KeyVault::V2016_10_01::Models::OrganizationDetails end @@ -268,6 +268,9 @@ def deleted_secret_list_result def issuer_parameters Azure::KeyVault::V2016_10_01::Models::IssuerParameters end + def certificate_issuer_update_parameters + Azure::KeyVault::V2016_10_01::Models::CertificateIssuerUpdateParameters + end def certificate_list_result Azure::KeyVault::V2016_10_01::Models::CertificateListResult end @@ -325,9 +328,6 @@ def certificate_operation def storage_account_update_parameters Azure::KeyVault::V2016_10_01::Models::StorageAccountUpdateParameters end - def action - Azure::KeyVault::V2016_10_01::Models::Action - end def storage_account_regenerte_key_parameters Azure::KeyVault::V2016_10_01::Models::StorageAccountRegenerteKeyParameters end @@ -367,27 +367,27 @@ def deleted_certificate_item def json_web_key_type Azure::KeyVault::V2016_10_01::Models::JsonWebKeyType end - def json_web_key_curve_name - Azure::KeyVault::V2016_10_01::Models::JsonWebKeyCurveName - end def deletion_recovery_level Azure::KeyVault::V2016_10_01::Models::DeletionRecoveryLevel end def key_usage_type Azure::KeyVault::V2016_10_01::Models::KeyUsageType end + def json_web_key_curve_name + Azure::KeyVault::V2016_10_01::Models::JsonWebKeyCurveName + end def action_type Azure::KeyVault::V2016_10_01::Models::ActionType end - def json_web_key_operation - Azure::KeyVault::V2016_10_01::Models::JsonWebKeyOperation - end def json_web_key_encryption_algorithm Azure::KeyVault::V2016_10_01::Models::JsonWebKeyEncryptionAlgorithm end def json_web_key_signature_algorithm Azure::KeyVault::V2016_10_01::Models::JsonWebKeySignatureAlgorithm end + def json_web_key_operation + Azure::KeyVault::V2016_10_01::Models::JsonWebKeyOperation + end end end module Mgmt @@ -395,37 +395,37 @@ module Mgmt Operations = Azure::KeyVault::Mgmt::V2016_10_01::Operations module Models + KeyPermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions + StoragePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions + CertificatePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions + Reason = Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason + CreateMode = Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode + AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind + Sku = Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku + Permissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions + Resource = Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource + OperationDisplay = Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay + Operation = Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation DeletedVault = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVault VaultListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultListResult - Permissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions DeletedVaultListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultListResult - VaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties - Resource = Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource VaultAccessPolicyProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyProperties ResourceListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::ResourceListResult VaultCreateOrUpdateParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCreateOrUpdateParameters VaultCheckNameAvailabilityParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCheckNameAvailabilityParameters VaultAccessPolicyParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyParameters + VaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties CheckNameAvailabilityResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::CheckNameAvailabilityResult - Sku = Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku - OperationDisplay = Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay VaultPatchProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchProperties LogSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification VaultPatchParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchParameters ServiceSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::ServiceSpecification AccessPolicyEntry = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry - Operation = Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation DeletedVaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties OperationListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationListResult - Vault = Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault SkuName = Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName - KeyPermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions + Vault = Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault SecretPermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::SecretPermissions - CertificatePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions - StoragePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions - CreateMode = Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode - Reason = Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason - AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind end class KeyVaultManagementClass @@ -459,24 +459,48 @@ def method_missing(method, *args) end class ModelClasses + def key_permissions + Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions + end + def storage_permissions + Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions + end + def certificate_permissions + Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions + end + def reason + Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason + end + def create_mode + Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode + end + def access_policy_update_kind + Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind + end + def sku + Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku + end + def permissions + Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions + end + def resource + Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource + end + def operation_display + Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay + end + def operation + Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation + end def deleted_vault Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVault end def vault_list_result Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultListResult end - def permissions - Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions - end def deleted_vault_list_result Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultListResult end - def vault_properties - Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties - end - def resource - Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource - end def vault_access_policy_properties Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyProperties end @@ -492,15 +516,12 @@ def vault_check_name_availability_parameters def vault_access_policy_parameters Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyParameters end + def vault_properties + Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties + end def check_name_availability_result Azure::KeyVault::Mgmt::V2016_10_01::Models::CheckNameAvailabilityResult end - def sku - Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku - end - def operation_display - Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay - end def vault_patch_properties Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchProperties end @@ -516,42 +537,21 @@ def service_specification def access_policy_entry Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry end - def operation - Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation - end def deleted_vault_properties Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties end def operation_list_result Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationListResult end - def vault - Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault - end def sku_name Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName end - def key_permissions - Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions + def vault + Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault end def secret_permissions Azure::KeyVault::Mgmt::V2016_10_01::Models::SecretPermissions end - def certificate_permissions - Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions - end - def storage_permissions - Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions - end - def create_mode - Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode - end - def reason - Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason - end - def access_policy_update_kind - Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind - end end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/links_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/links_profile_module.rb index 398db2e048..801f15ada4 100644 --- a/azure_sdk/lib/v2017_03_09/modules/links_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/links_profile_module.rb @@ -15,9 +15,9 @@ module Models OperationDisplay = Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay ResourceLinkProperties = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties Operation = Azure::Links::Mgmt::V2016_09_01::Models::Operation + ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink ResourceLinkFilter = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter OperationListResult = Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult - ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink Filter = Azure::Links::Mgmt::V2016_09_01::Models::Filter end @@ -64,15 +64,15 @@ def resource_link_properties def operation Azure::Links::Mgmt::V2016_09_01::Models::Operation end + def resource_link + Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink + end def resource_link_filter Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter end def operation_list_result Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult end - def resource_link - Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink - end def filter Azure::Links::Mgmt::V2016_09_01::Models::Filter 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..49a803b370 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 @@ -7,108 +7,91 @@ module Azure::Profiles::V2017_03_09 module Network module Mgmt - ApplicationGateways = Azure::Network::Mgmt::V2015_06_15::ApplicationGateways - ExpressRouteCircuitAuthorizations = Azure::Network::Mgmt::V2015_06_15::ExpressRouteCircuitAuthorizations - ExpressRouteCircuitPeerings = Azure::Network::Mgmt::V2015_06_15::ExpressRouteCircuitPeerings - ExpressRouteCircuits = Azure::Network::Mgmt::V2015_06_15::ExpressRouteCircuits - ExpressRouteServiceProviders = Azure::Network::Mgmt::V2015_06_15::ExpressRouteServiceProviders - LoadBalancers = Azure::Network::Mgmt::V2015_06_15::LoadBalancers - NetworkInterfaces = Azure::Network::Mgmt::V2015_06_15::NetworkInterfaces + VirtualNetworkGatewayConnections = Azure::Network::Mgmt::V2015_06_15::VirtualNetworkGatewayConnections NetworkSecurityGroups = Azure::Network::Mgmt::V2015_06_15::NetworkSecurityGroups SecurityRules = Azure::Network::Mgmt::V2015_06_15::SecurityRules - PublicIPAddresses = Azure::Network::Mgmt::V2015_06_15::PublicIPAddresses RouteTables = Azure::Network::Mgmt::V2015_06_15::RouteTables Routes = Azure::Network::Mgmt::V2015_06_15::Routes Usages = Azure::Network::Mgmt::V2015_06_15::Usages VirtualNetworks = Azure::Network::Mgmt::V2015_06_15::VirtualNetworks Subnets = Azure::Network::Mgmt::V2015_06_15::Subnets VirtualNetworkGateways = Azure::Network::Mgmt::V2015_06_15::VirtualNetworkGateways - VirtualNetworkGatewayConnections = Azure::Network::Mgmt::V2015_06_15::VirtualNetworkGatewayConnections + ApplicationGateways = Azure::Network::Mgmt::V2015_06_15::ApplicationGateways + PublicIPAddresses = Azure::Network::Mgmt::V2015_06_15::PublicIPAddresses LocalNetworkGateways = Azure::Network::Mgmt::V2015_06_15::LocalNetworkGateways + NetworkInterfaces = Azure::Network::Mgmt::V2015_06_15::NetworkInterfaces + ExpressRouteCircuitAuthorizations = Azure::Network::Mgmt::V2015_06_15::ExpressRouteCircuitAuthorizations + ExpressRouteCircuitPeerings = Azure::Network::Mgmt::V2015_06_15::ExpressRouteCircuitPeerings + ExpressRouteCircuits = Azure::Network::Mgmt::V2015_06_15::ExpressRouteCircuits + ExpressRouteServiceProviders = Azure::Network::Mgmt::V2015_06_15::ExpressRouteServiceProviders + LoadBalancers = Azure::Network::Mgmt::V2015_06_15::LoadBalancers module Models - ExpressRouteCircuitsStatsListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsStatsListResult - ExpressRouteCircuitListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitListResult - 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 + AddressSpace = Azure::Network::Mgmt::V2015_06_15::Models::AddressSpace 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 AuthorizationListResult = Azure::Network::Mgmt::V2015_06_15::Models::AuthorizationListResult - BgpSettings = Azure::Network::Mgmt::V2015_06_15::Models::BgpSettings - ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringConfig - VpnClientConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::VpnClientConfiguration - ExpressRouteCircuitStats = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitStats - VirtualNetworkListResult = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkListResult - SecurityRuleListResult = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleListResult - AddressSpace = Azure::Network::Mgmt::V2015_06_15::Models::AddressSpace - 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 - 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 - ConnectionSharedKey = Azure::Network::Mgmt::V2015_06_15::Models::ConnectionSharedKey - ExpressRouteCircuitArpTable = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitArpTable - ConnectionSharedKeyResult = Azure::Network::Mgmt::V2015_06_15::Models::ConnectionSharedKeyResult + RouteListResult = Azure::Network::Mgmt::V2015_06_15::Models::RouteListResult ExpressRouteCircuitsArpTableListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsArpTableListResult - PublicIPAddressDnsSettings = Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddressDnsSettings - 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 + ExpressRouteServiceProviderBandwidthsOffered = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProviderBandwidthsOffered + ExpressRouteServiceProviderListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProviderListResult + VirtualNetworkGatewayConnectionListResult = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionListResult ApplicationGatewaySku = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySku + DhcpOptions = Azure::Network::Mgmt::V2015_06_15::Models::DhcpOptions + UsagesListResult = Azure::Network::Mgmt::V2015_06_15::Models::UsagesListResult + ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringConfig + ExpressRouteCircuitServiceProviderProperties = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitServiceProviderProperties + ExpressRouteCircuitRoutesTable = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitRoutesTable + ExpressRouteCircuitListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitListResult + UsageName = Azure::Network::Mgmt::V2015_06_15::Models::UsageName + VpnClientParameters = Azure::Network::Mgmt::V2015_06_15::Models::VpnClientParameters + ExpressRouteCircuitStats = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitStats + ExpressRouteCircuitArpTable = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitArpTable + RouteTableListResult = Azure::Network::Mgmt::V2015_06_15::Models::RouteTableListResult 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 + ApplicationGatewayBackendAddress = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddress + PublicIPAddressListResult = Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddressListResult + PublicIPAddressDnsSettings = Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddressDnsSettings + NetworkInterfaceListResult = Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceListResult + NetworkInterfaceDnsSettings = Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceDnsSettings + Resource = Azure::Network::Mgmt::V2015_06_15::Models::Resource 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 - ErrorDetails = Azure::Network::Mgmt::V2015_06_15::Models::ErrorDetails + ExpressRouteCircuitPeeringListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringListResult + VpnClientConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::VpnClientConfiguration + SecurityRule = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRule + ApplicationGatewayBackendHttpSettings = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendHttpSettings + IPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::IPConfiguration ApplicationGatewayIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayIPConfiguration + FrontendIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::FrontendIPConfiguration ApplicationGatewaySslCertificate = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySslCertificate ApplicationGatewayFrontendIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayFrontendIPConfiguration - ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayFrontendPort - BackendAddressPool = Azure::Network::Mgmt::V2015_06_15::Models::BackendAddressPool - InboundNatRule = Azure::Network::Mgmt::V2015_06_15::Models::InboundNatRule - SecurityRule = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRule - NetworkInterface = Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterface - NetworkSecurityGroup = Azure::Network::Mgmt::V2015_06_15::Models::NetworkSecurityGroup - Route = Azure::Network::Mgmt::V2015_06_15::Models::Route - RouteTable = Azure::Network::Mgmt::V2015_06_15::Models::RouteTable - PublicIPAddress = Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddress - IPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::IPConfiguration - Subnet = Azure::Network::Mgmt::V2015_06_15::Models::Subnet - NetworkInterfaceIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceIPConfiguration - ApplicationGatewayBackendAddressPool = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddressPool - ApplicationGatewayBackendHttpSettings = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendHttpSettings ApplicationGatewayHttpListener = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayHttpListener ApplicationGatewayPathRule = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayPathRule - ApplicationGatewayProbe = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProbe + NetworkInterfaceIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceIPConfiguration ApplicationGatewayRequestRoutingRule = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayRequestRoutingRule + NetworkInterface = Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterface ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayUrlPathMap ApplicationGateway = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGateway + InboundNatRule = Azure::Network::Mgmt::V2015_06_15::Models::InboundNatRule + ApplicationGatewayProbe = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProbe + ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayFrontendPort + Subnet = Azure::Network::Mgmt::V2015_06_15::Models::Subnet ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitAuthorization + RouteTable = Azure::Network::Mgmt::V2015_06_15::Models::RouteTable ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeering + NetworkSecurityGroup = Azure::Network::Mgmt::V2015_06_15::Models::NetworkSecurityGroup ExpressRouteCircuit = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuit ExpressRouteServiceProvider = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProvider - FrontendIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::FrontendIPConfiguration LoadBalancingRule = Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancingRule Probe = Azure::Network::Mgmt::V2015_06_15::Models::Probe InboundNatPool = Azure::Network::Mgmt::V2015_06_15::Models::InboundNatPool OutboundNatRule = Azure::Network::Mgmt::V2015_06_15::Models::OutboundNatRule LoadBalancer = Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancer + TransportProtocol = Azure::Network::Mgmt::V2015_06_15::Models::TransportProtocol + SecurityRuleDirection = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleDirection + PublicIPAddress = Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddress + Route = Azure::Network::Mgmt::V2015_06_15::Models::Route VirtualNetwork = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetwork VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayIPConfiguration VpnClientRootCertificate = Azure::Network::Mgmt::V2015_06_15::Models::VpnClientRootCertificate @@ -116,18 +99,18 @@ module Models VirtualNetworkGateway = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGateway LocalNetworkGateway = Azure::Network::Mgmt::V2015_06_15::Models::LocalNetworkGateway VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnection + ApplicationGatewayBackendAddressPool = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddressPool + BackendAddressPool = Azure::Network::Mgmt::V2015_06_15::Models::BackendAddressPool + ApplicationGatewayCookieBasedAffinity = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayCookieBasedAffinity ApplicationGatewaySkuName = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySkuName ApplicationGatewayTier = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayTier - IPAllocationMethod = Azure::Network::Mgmt::V2015_06_15::Models::IPAllocationMethod - TransportProtocol = Azure::Network::Mgmt::V2015_06_15::Models::TransportProtocol - SecurityRuleProtocol = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleProtocol SecurityRuleAccess = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleAccess - SecurityRuleDirection = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleDirection - RouteNextHopType = Azure::Network::Mgmt::V2015_06_15::Models::RouteNextHopType ApplicationGatewayProtocol = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProtocol - ApplicationGatewayCookieBasedAffinity = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayCookieBasedAffinity + IPAllocationMethod = Azure::Network::Mgmt::V2015_06_15::Models::IPAllocationMethod ApplicationGatewayRequestRoutingRuleType = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayRequestRoutingRuleType + RouteNextHopType = Azure::Network::Mgmt::V2015_06_15::Models::RouteNextHopType ApplicationGatewayOperationalState = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayOperationalState + SecurityRuleProtocol = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleProtocol AuthorizationUseStatus = Azure::Network::Mgmt::V2015_06_15::Models::AuthorizationUseStatus ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState ExpressRouteCircuitPeeringType = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringType @@ -140,15 +123,32 @@ module Models NetworkOperationStatus = Azure::Network::Mgmt::V2015_06_15::Models::NetworkOperationStatus VirtualNetworkGatewayType = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayType VpnType = Azure::Network::Mgmt::V2015_06_15::Models::VpnType + Error = Azure::Network::Mgmt::V2015_06_15::Models::Error VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySkuName VirtualNetworkGatewaySkuTier = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySkuTier ProcessorArchitecture = Azure::Network::Mgmt::V2015_06_15::Models::ProcessorArchitecture - VirtualNetworkGatewayConnectionType = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionType VirtualNetworkGatewayConnectionStatus = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionStatus + VirtualNetworkGatewayConnectionType = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionType + ExpressRouteCircuitsStatsListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsStatsListResult + ConnectionSharedKeyResult = Azure::Network::Mgmt::V2015_06_15::Models::ConnectionSharedKeyResult + LoadBalancerListResult = Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancerListResult + ConnectionSharedKey = Azure::Network::Mgmt::V2015_06_15::Models::ConnectionSharedKey + ConnectionResetSharedKey = Azure::Network::Mgmt::V2015_06_15::Models::ConnectionResetSharedKey + VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayListResult + ErrorDetails = Azure::Network::Mgmt::V2015_06_15::Models::ErrorDetails + AzureAsyncOperationResult = Azure::Network::Mgmt::V2015_06_15::Models::AzureAsyncOperationResult + SubResource = Azure::Network::Mgmt::V2015_06_15::Models::SubResource + BgpSettings = Azure::Network::Mgmt::V2015_06_15::Models::BgpSettings + VirtualNetworkGatewaySku = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySku + VirtualNetworkListResult = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkListResult + ApplicationGatewayListResult = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayListResult + SecurityRuleListResult = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleListResult + NetworkSecurityGroupListResult = Azure::Network::Mgmt::V2015_06_15::Models::NetworkSecurityGroupListResult + Usage = Azure::Network::Mgmt::V2015_06_15::Models::Usage end class NetworkManagementClass - attr_reader :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, :configurable, :base_url, :options, :model_classes + attr_reader :virtual_network_gateway_connections, :network_security_groups, :security_rules, :route_tables, :routes, :usages, :virtual_networks, :subnets, :virtual_network_gateways, :application_gateways, :public_ipaddresses, :local_network_gateways, :network_interfaces, :express_route_circuit_authorizations, :express_route_circuit_peerings, :express_route_circuits, :express_route_service_providers, :load_balancers, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -158,24 +158,24 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @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 + @virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections @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 @usages = @client_0.usages @virtual_networks = @client_0.virtual_networks @subnets = @client_0.subnets @virtual_network_gateways = @client_0.virtual_network_gateways - @virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections + @application_gateways = @client_0.application_gateways + @public_ipaddresses = @client_0.public_ipaddresses @local_network_gateways = @client_0.local_network_gateways + @network_interfaces = @client_0.network_interfaces + @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 @model_classes = ModelClasses.new end @@ -194,203 +194,122 @@ def method_missing(method, *args) end class ModelClasses - 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 sub_resource - Azure::Network::Mgmt::V2015_06_15::Models::SubResource - end - def express_route_service_provider_bandwidths_offered - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProviderBandwidthsOffered - end - def public_ipaddress_list_result - Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddressListResult - end - def application_gateway_list_result - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayListResult - end - 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 + def address_space + Azure::Network::Mgmt::V2015_06_15::Models::AddressSpace 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 - def network_security_group_list_result - Azure::Network::Mgmt::V2015_06_15::Models::NetworkSecurityGroupListResult - end - def virtual_network_gateway_list_result - Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayListResult - end def authorization_list_result Azure::Network::Mgmt::V2015_06_15::Models::AuthorizationListResult end - def bgp_settings - Azure::Network::Mgmt::V2015_06_15::Models::BgpSettings + def express_route_circuit_sku + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitSku end - def express_route_circuit_peering_config - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringConfig + def route_list_result + Azure::Network::Mgmt::V2015_06_15::Models::RouteListResult end - def vpn_client_configuration - Azure::Network::Mgmt::V2015_06_15::Models::VpnClientConfiguration + def express_route_circuits_arp_table_list_result + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsArpTableListResult end - def express_route_circuit_stats - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitStats + def express_route_circuits_routes_table_list_result + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsRoutesTableListResult end - def virtual_network_list_result - Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkListResult + def express_route_service_provider_bandwidths_offered + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProviderBandwidthsOffered end - def security_rule_list_result - Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleListResult + def express_route_service_provider_list_result + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProviderListResult end - def address_space - Azure::Network::Mgmt::V2015_06_15::Models::AddressSpace + def virtual_network_gateway_connection_list_result + Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionListResult end - def express_route_circuit_peering_list_result - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringListResult + def application_gateway_sku + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySku + end + def dhcp_options + Azure::Network::Mgmt::V2015_06_15::Models::DhcpOptions end def usages_list_result Azure::Network::Mgmt::V2015_06_15::Models::UsagesListResult end - 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 express_route_circuit_peering_config + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringConfig end def express_route_circuit_service_provider_properties Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitServiceProviderProperties end - def route_table_list_result - Azure::Network::Mgmt::V2015_06_15::Models::RouteTableListResult - end - def network_interface_list_result - Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceListResult - end - def connection_shared_key - Azure::Network::Mgmt::V2015_06_15::Models::ConnectionSharedKey - end - def express_route_circuit_arp_table - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitArpTable - end - def connection_shared_key_result - Azure::Network::Mgmt::V2015_06_15::Models::ConnectionSharedKeyResult - end - def express_route_circuits_arp_table_list_result - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsArpTableListResult - end - def public_ipaddress_dns_settings - Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddressDnsSettings - end def express_route_circuit_routes_table Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitRoutesTable end - def dhcp_options - Azure::Network::Mgmt::V2015_06_15::Models::DhcpOptions + def express_route_circuit_list_result + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitListResult end - def express_route_circuits_routes_table_list_result - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsRoutesTableListResult + def usage_name + Azure::Network::Mgmt::V2015_06_15::Models::UsageName end - def usage - Azure::Network::Mgmt::V2015_06_15::Models::Usage + def vpn_client_parameters + Azure::Network::Mgmt::V2015_06_15::Models::VpnClientParameters end - def application_gateway_sku - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySku + def express_route_circuit_stats + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitStats + end + def express_route_circuit_arp_table + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitArpTable + end + def route_table_list_result + Azure::Network::Mgmt::V2015_06_15::Models::RouteTableListResult end def local_network_gateway_list_result Azure::Network::Mgmt::V2015_06_15::Models::LocalNetworkGatewayListResult end - def virtual_network_gateway_connection_list_result - Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionListResult + def application_gateway_backend_address + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddress end - def load_balancer_list_result - Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancerListResult + def public_ipaddress_list_result + Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddressListResult end - def virtual_network_gateway_sku - Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySku + def public_ipaddress_dns_settings + Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddressDnsSettings end - def azure_async_operation_result - Azure::Network::Mgmt::V2015_06_15::Models::AzureAsyncOperationResult + def network_interface_list_result + Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceListResult end - def route_list_result - Azure::Network::Mgmt::V2015_06_15::Models::RouteListResult + def network_interface_dns_settings + Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceDnsSettings end - def error - Azure::Network::Mgmt::V2015_06_15::Models::Error + def resource + Azure::Network::Mgmt::V2015_06_15::Models::Resource end def subnet_list_result Azure::Network::Mgmt::V2015_06_15::Models::SubnetListResult end - def express_route_service_provider_list_result - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProviderListResult - end - def vpn_client_parameters - Azure::Network::Mgmt::V2015_06_15::Models::VpnClientParameters - end - def error_details - Azure::Network::Mgmt::V2015_06_15::Models::ErrorDetails - end - def application_gateway_ipconfiguration - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayIPConfiguration - end - def application_gateway_ssl_certificate - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySslCertificate - end - def application_gateway_frontend_ipconfiguration - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayFrontendIPConfiguration - end - def application_gateway_frontend_port - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayFrontendPort - end - def backend_address_pool - Azure::Network::Mgmt::V2015_06_15::Models::BackendAddressPool + def express_route_circuit_peering_list_result + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringListResult end - def inbound_nat_rule - Azure::Network::Mgmt::V2015_06_15::Models::InboundNatRule + def vpn_client_configuration + Azure::Network::Mgmt::V2015_06_15::Models::VpnClientConfiguration end def security_rule Azure::Network::Mgmt::V2015_06_15::Models::SecurityRule end - def network_interface - Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterface - end - def network_security_group - Azure::Network::Mgmt::V2015_06_15::Models::NetworkSecurityGroup - end - def route - Azure::Network::Mgmt::V2015_06_15::Models::Route - end - def route_table - Azure::Network::Mgmt::V2015_06_15::Models::RouteTable - end - def public_ipaddress - Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddress + def application_gateway_backend_http_settings + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendHttpSettings end def ipconfiguration Azure::Network::Mgmt::V2015_06_15::Models::IPConfiguration end - def subnet - Azure::Network::Mgmt::V2015_06_15::Models::Subnet + def application_gateway_ipconfiguration + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayIPConfiguration end - def network_interface_ipconfiguration - Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceIPConfiguration + def frontend_ipconfiguration + Azure::Network::Mgmt::V2015_06_15::Models::FrontendIPConfiguration end - def application_gateway_backend_address_pool - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddressPool + def application_gateway_ssl_certificate + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySslCertificate end - def application_gateway_backend_http_settings - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendHttpSettings + def application_gateway_frontend_ipconfiguration + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayFrontendIPConfiguration end def application_gateway_http_listener Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayHttpListener @@ -398,33 +317,51 @@ def application_gateway_http_listener def application_gateway_path_rule Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayPathRule end - def application_gateway_probe - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProbe + def network_interface_ipconfiguration + Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceIPConfiguration end def application_gateway_request_routing_rule Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayRequestRoutingRule end + def network_interface + Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterface + end def application_gateway_url_path_map Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayUrlPathMap end def application_gateway Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGateway end + def inbound_nat_rule + Azure::Network::Mgmt::V2015_06_15::Models::InboundNatRule + end + def application_gateway_probe + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProbe + end + def application_gateway_frontend_port + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayFrontendPort + end + def subnet + Azure::Network::Mgmt::V2015_06_15::Models::Subnet + end def express_route_circuit_authorization Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitAuthorization end + def route_table + Azure::Network::Mgmt::V2015_06_15::Models::RouteTable + end def express_route_circuit_peering Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeering end + def network_security_group + Azure::Network::Mgmt::V2015_06_15::Models::NetworkSecurityGroup + end def express_route_circuit Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuit end def express_route_service_provider Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProvider end - def frontend_ipconfiguration - Azure::Network::Mgmt::V2015_06_15::Models::FrontendIPConfiguration - end def load_balancing_rule Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancingRule end @@ -440,6 +377,18 @@ def outbound_nat_rule def load_balancer Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancer end + def transport_protocol + Azure::Network::Mgmt::V2015_06_15::Models::TransportProtocol + end + def security_rule_direction + Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleDirection + end + def public_ipaddress + Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddress + end + def route + Azure::Network::Mgmt::V2015_06_15::Models::Route + end def virtual_network Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetwork end @@ -461,42 +410,42 @@ def local_network_gateway def virtual_network_gateway_connection Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnection end + def application_gateway_backend_address_pool + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddressPool + end + def backend_address_pool + Azure::Network::Mgmt::V2015_06_15::Models::BackendAddressPool + end + def application_gateway_cookie_based_affinity + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayCookieBasedAffinity + end def application_gateway_sku_name Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySkuName end def application_gateway_tier Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayTier end - def ipallocation_method - Azure::Network::Mgmt::V2015_06_15::Models::IPAllocationMethod - end - def transport_protocol - Azure::Network::Mgmt::V2015_06_15::Models::TransportProtocol - end - def security_rule_protocol - Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleProtocol - end def security_rule_access Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleAccess end - def security_rule_direction - Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleDirection - end - def route_next_hop_type - Azure::Network::Mgmt::V2015_06_15::Models::RouteNextHopType - end def application_gateway_protocol Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProtocol end - def application_gateway_cookie_based_affinity - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayCookieBasedAffinity + def ipallocation_method + Azure::Network::Mgmt::V2015_06_15::Models::IPAllocationMethod end def application_gateway_request_routing_rule_type Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayRequestRoutingRuleType end + def route_next_hop_type + Azure::Network::Mgmt::V2015_06_15::Models::RouteNextHopType + end def application_gateway_operational_state Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayOperationalState end + def security_rule_protocol + Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleProtocol + end def authorization_use_status Azure::Network::Mgmt::V2015_06_15::Models::AuthorizationUseStatus end @@ -533,6 +482,9 @@ def virtual_network_gateway_type def vpn_type Azure::Network::Mgmt::V2015_06_15::Models::VpnType end + def error + Azure::Network::Mgmt::V2015_06_15::Models::Error + end def virtual_network_gateway_sku_name Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySkuName end @@ -542,11 +494,59 @@ def virtual_network_gateway_sku_tier 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 def virtual_network_gateway_connection_type Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionType end - def virtual_network_gateway_connection_status - Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionStatus + def express_route_circuits_stats_list_result + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsStatsListResult + end + def connection_shared_key_result + Azure::Network::Mgmt::V2015_06_15::Models::ConnectionSharedKeyResult + end + def load_balancer_list_result + Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancerListResult + end + def connection_shared_key + Azure::Network::Mgmt::V2015_06_15::Models::ConnectionSharedKey + end + def connection_reset_shared_key + Azure::Network::Mgmt::V2015_06_15::Models::ConnectionResetSharedKey + end + def virtual_network_gateway_list_result + Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayListResult + end + def error_details + Azure::Network::Mgmt::V2015_06_15::Models::ErrorDetails + end + def azure_async_operation_result + Azure::Network::Mgmt::V2015_06_15::Models::AzureAsyncOperationResult + end + def sub_resource + Azure::Network::Mgmt::V2015_06_15::Models::SubResource + end + def bgp_settings + Azure::Network::Mgmt::V2015_06_15::Models::BgpSettings + end + def virtual_network_gateway_sku + Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySku + end + def virtual_network_list_result + Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkListResult + end + def application_gateway_list_result + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayListResult + end + def security_rule_list_result + Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleListResult + end + def network_security_group_list_result + Azure::Network::Mgmt::V2015_06_15::Models::NetworkSecurityGroupListResult + end + def usage + Azure::Network::Mgmt::V2015_06_15::Models::Usage end end 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..b34349047f 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,64 +7,64 @@ module Azure::Profiles::V2017_03_09 module Resources module Mgmt + Resources = Azure::Resources::Mgmt::V2016_02_01::Resources 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 module Models + Plan = Azure::Resources::Mgmt::V2016_02_01::Models::Plan + ResourceIdentityType = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceIdentityType Sku = Azure::Resources::Mgmt::V2016_02_01::Models::Sku - DeploymentExtendedFilter = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtendedFilter + Dependency = Azure::Resources::Mgmt::V2016_02_01::Models::Dependency + GenericResourceFilter = Azure::Resources::Mgmt::V2016_02_01::Models::GenericResourceFilter 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 + ParametersLink = Azure::Resources::Mgmt::V2016_02_01::Models::ParametersLink 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 ResourceGroup = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroup AliasType = Azure::Resources::Mgmt::V2016_02_01::Models::AliasType - ResourceGroupListResult = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupListResult Provider = Azure::Resources::Mgmt::V2016_02_01::Models::Provider + ResourceGroupListResult = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupListResult ResourcesMoveInfo = Azure::Resources::Mgmt::V2016_02_01::Models::ResourcesMoveInfo - Dependency = Azure::Resources::Mgmt::V2016_02_01::Models::Dependency + DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentPropertiesExtended ExportTemplateRequest = Azure::Resources::Mgmt::V2016_02_01::Models::ExportTemplateRequest - DeploymentValidateResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentValidateResult + DeploymentExtended = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtended TagCount = Azure::Resources::Mgmt::V2016_02_01::Models::TagCount - DeploymentListResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentListResult + ProviderListResult = Azure::Resources::Mgmt::V2016_02_01::Models::ProviderListResult TagValue = Azure::Resources::Mgmt::V2016_02_01::Models::TagValue - Plan = Azure::Resources::Mgmt::V2016_02_01::Models::Plan + ResourceGroupFilter = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupFilter TagDetails = Azure::Resources::Mgmt::V2016_02_01::Models::TagDetails - ParametersLink = Azure::Resources::Mgmt::V2016_02_01::Models::ParametersLink + DeploymentProperties = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentProperties TagsListResult = Azure::Resources::Mgmt::V2016_02_01::Models::TagsListResult - DeploymentExportResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExportResult + AliasPathType = Azure::Resources::Mgmt::V2016_02_01::Models::AliasPathType TargetResource = Azure::Resources::Mgmt::V2016_02_01::Models::TargetResource - ProviderResourceType = Azure::Resources::Mgmt::V2016_02_01::Models::ProviderResourceType + BasicDependency = Azure::Resources::Mgmt::V2016_02_01::Models::BasicDependency HttpMessage = Azure::Resources::Mgmt::V2016_02_01::Models::HttpMessage - DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentPropertiesExtended + DeploymentValidateResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentValidateResult DeploymentOperationProperties = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentOperationProperties - ProviderListResult = Azure::Resources::Mgmt::V2016_02_01::Models::ProviderListResult + DeploymentExtendedFilter = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtendedFilter DeploymentOperation = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentOperation - DeploymentProperties = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentProperties + DeploymentExportResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExportResult 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 + ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceProviderOperationDisplayProperties + DebugSetting = Azure::Resources::Mgmt::V2016_02_01::Models::DebugSetting + DeploymentListResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentListResult + ProviderResourceType = Azure::Resources::Mgmt::V2016_02_01::Models::ProviderResourceType ResourceGroupExportResult = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupExportResult GenericResource = Azure::Resources::Mgmt::V2016_02_01::Models::GenericResource DeploymentMode = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentMode - ResourceIdentityType = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceIdentityType + SubResource = Azure::Resources::Mgmt::V2016_02_01::Models::SubResource + ResourceListResult = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceListResult end class ResourcesManagementClass - attr_reader :deployments, :providers, :resource_groups, :resources, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes + attr_reader :resources, :deployments, :providers, :resource_groups, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -74,10 +74,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @resources = @client_0.resources @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 @@ -98,26 +98,29 @@ def method_missing(method, *args) end class ModelClasses + def plan + Azure::Resources::Mgmt::V2016_02_01::Models::Plan + end + def resource_identity_type + Azure::Resources::Mgmt::V2016_02_01::Models::ResourceIdentityType + end def sku Azure::Resources::Mgmt::V2016_02_01::Models::Sku end - def deployment_extended_filter - Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtendedFilter + def dependency + Azure::Resources::Mgmt::V2016_02_01::Models::Dependency + end + def generic_resource_filter + Azure::Resources::Mgmt::V2016_02_01::Models::GenericResourceFilter end def identity Azure::Resources::Mgmt::V2016_02_01::Models::Identity end - def resource_group_filter - Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupFilter - end def template_link Azure::Resources::Mgmt::V2016_02_01::Models::TemplateLink end - def debug_setting - Azure::Resources::Mgmt::V2016_02_01::Models::DebugSetting - end - def resource_list_result - Azure::Resources::Mgmt::V2016_02_01::Models::ResourceListResult + def parameters_link + Azure::Resources::Mgmt::V2016_02_01::Models::ParametersLink end def deployment Azure::Resources::Mgmt::V2016_02_01::Models::Deployment @@ -134,95 +137,89 @@ def resource_group def alias_type Azure::Resources::Mgmt::V2016_02_01::Models::AliasType end - def resource_group_list_result - Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupListResult - end def provider Azure::Resources::Mgmt::V2016_02_01::Models::Provider end + def resource_group_list_result + Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupListResult + end def resources_move_info Azure::Resources::Mgmt::V2016_02_01::Models::ResourcesMoveInfo end - def dependency - Azure::Resources::Mgmt::V2016_02_01::Models::Dependency + def deployment_properties_extended + Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentPropertiesExtended 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 + def deployment_extended + Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtended 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 + def provider_list_result + Azure::Resources::Mgmt::V2016_02_01::Models::ProviderListResult end def tag_value Azure::Resources::Mgmt::V2016_02_01::Models::TagValue end - def plan - Azure::Resources::Mgmt::V2016_02_01::Models::Plan + def resource_group_filter + Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupFilter end def tag_details Azure::Resources::Mgmt::V2016_02_01::Models::TagDetails end - def parameters_link - Azure::Resources::Mgmt::V2016_02_01::Models::ParametersLink + def deployment_properties + Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentProperties end def tags_list_result Azure::Resources::Mgmt::V2016_02_01::Models::TagsListResult end - def deployment_export_result - Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExportResult + def alias_path_type + Azure::Resources::Mgmt::V2016_02_01::Models::AliasPathType end def target_resource Azure::Resources::Mgmt::V2016_02_01::Models::TargetResource end - def provider_resource_type - Azure::Resources::Mgmt::V2016_02_01::Models::ProviderResourceType + def basic_dependency + Azure::Resources::Mgmt::V2016_02_01::Models::BasicDependency end def http_message Azure::Resources::Mgmt::V2016_02_01::Models::HttpMessage end - def deployment_properties_extended - Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentPropertiesExtended + def deployment_validate_result + Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentValidateResult end def deployment_operation_properties Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentOperationProperties end - def provider_list_result - Azure::Resources::Mgmt::V2016_02_01::Models::ProviderListResult + def deployment_extended_filter + Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtendedFilter end def deployment_operation Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentOperation end - def deployment_properties - Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentProperties + def deployment_export_result + Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExportResult end def deployment_operations_list_result Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentOperationsListResult end - def basic_dependency - Azure::Resources::Mgmt::V2016_02_01::Models::BasicDependency + def resource + Azure::Resources::Mgmt::V2016_02_01::Models::Resource 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 + def debug_setting + Azure::Resources::Mgmt::V2016_02_01::Models::DebugSetting end - def sub_resource - Azure::Resources::Mgmt::V2016_02_01::Models::SubResource + def deployment_list_result + Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentListResult end - def alias_path_type - Azure::Resources::Mgmt::V2016_02_01::Models::AliasPathType + def provider_resource_type + Azure::Resources::Mgmt::V2016_02_01::Models::ProviderResourceType end def resource_group_export_result Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupExportResult @@ -233,8 +230,11 @@ def generic_resource def deployment_mode Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentMode end - def resource_identity_type - Azure::Resources::Mgmt::V2016_02_01::Models::ResourceIdentityType + def sub_resource + Azure::Resources::Mgmt::V2016_02_01::Models::SubResource + end + def resource_list_result + Azure::Resources::Mgmt::V2016_02_01::Models::ResourceListResult 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..8e54b38cf9 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 @@ -7,42 +7,42 @@ module Azure::Profiles::V2017_03_09 module Storage module Mgmt - StorageAccounts = Azure::Storage::Mgmt::V2016_01_01::StorageAccounts UsageOperations = Azure::Storage::Mgmt::V2016_01_01::UsageOperations + StorageAccounts = Azure::Storage::Mgmt::V2016_01_01::StorageAccounts module Models - StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters - StorageAccountKey = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey - Sku = Azure::Storage::Mgmt::V2016_01_01::Models::Sku - StorageAccountListResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult EncryptionService = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService StorageAccountListKeysResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult Encryption = Azure::Storage::Mgmt::V2016_01_01::Models::Encryption StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters Endpoints = Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints - StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters CustomDomain = Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain - UsageName = Azure::Storage::Mgmt::V2016_01_01::Models::UsageName - StorageAccountCreateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters - Usage = Azure::Storage::Mgmt::V2016_01_01::Models::Usage EncryptionServices = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices UsageListResult = Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult - 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 + Sku = Azure::Storage::Mgmt::V2016_01_01::Models::Sku + UsageName = Azure::Storage::Mgmt::V2016_01_01::Models::UsageName SkuTier = Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier - AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + StorageAccount = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount Kind = Azure::Storage::Mgmt::V2016_01_01::Models::Kind - ProvisioningState = Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState + AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + Usage = Azure::Storage::Mgmt::V2016_01_01::Models::Usage 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 + StorageAccountCreateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters + StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters + Resource = Azure::Storage::Mgmt::V2016_01_01::Models::Resource + Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason + ProvisioningState = Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState + CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult + SkuName = Azure::Storage::Mgmt::V2016_01_01::Models::SkuName + StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters + StorageAccountKey = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey + StorageAccountListResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult end class StorageManagementClass - attr_reader :storage_accounts, :usage_operations, :configurable, :base_url, :options, :model_classes + attr_reader :usage_operations, :storage_accounts, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -52,8 +52,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @storage_accounts = @client_0.storage_accounts @usage_operations = @client_0.usage_operations + @storage_accounts = @client_0.storage_accounts @model_classes = ModelClasses.new end @@ -72,18 +72,6 @@ def method_missing(method, *args) end class ModelClasses - def storage_account_check_name_availability_parameters - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters - end - def storage_account_key - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey - end - def sku - Azure::Storage::Mgmt::V2016_01_01::Models::Sku - end - def storage_account_list_result - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult - end def encryption_service Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService end @@ -99,53 +87,35 @@ def storage_account_regenerate_key_parameters def endpoints Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints end - def storage_account_update_parameters - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters - end def custom_domain Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain end - def usage_name - Azure::Storage::Mgmt::V2016_01_01::Models::UsageName - end - def storage_account_create_parameters - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters - end - def usage - Azure::Storage::Mgmt::V2016_01_01::Models::Usage - end def encryption_services Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices end def usage_list_result Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult end - def check_name_availability_result - Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult - end - def resource - Azure::Storage::Mgmt::V2016_01_01::Models::Resource - end - def storage_account - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount - end - def reason - Azure::Storage::Mgmt::V2016_01_01::Models::Reason + def sku + Azure::Storage::Mgmt::V2016_01_01::Models::Sku end - def sku_name - Azure::Storage::Mgmt::V2016_01_01::Models::SkuName + def usage_name + Azure::Storage::Mgmt::V2016_01_01::Models::UsageName end def sku_tier Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier end - def access_tier - Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + def storage_account + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount end def kind Azure::Storage::Mgmt::V2016_01_01::Models::Kind end - def provisioning_state - Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState + def access_tier + Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + end + def usage + Azure::Storage::Mgmt::V2016_01_01::Models::Usage end def account_status Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus @@ -156,6 +126,36 @@ def key_permission def usage_unit Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit end + def storage_account_create_parameters + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters + end + def storage_account_update_parameters + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters + end + def resource + Azure::Storage::Mgmt::V2016_01_01::Models::Resource + end + def reason + Azure::Storage::Mgmt::V2016_01_01::Models::Reason + end + def provisioning_state + Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState + end + def check_name_availability_result + Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult + end + def sku_name + Azure::Storage::Mgmt::V2016_01_01::Models::SkuName + end + def storage_account_check_name_availability_parameters + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters + end + def storage_account_key + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey + end + def storage_account_list_result + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult + 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 b67c33ef3c..c3ec7d365d 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 @@ -8,26 +8,26 @@ module Azure::Profiles::V2017_03_09 module Subscriptions module Mgmt Operations = Azure::Subscriptions::Mgmt::V2016_06_01::Operations - Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants + Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions module Models - 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 OperationDisplay = Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationDisplay - SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult Operation = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Operation - Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription + TenantIdDescription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription OperationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationListResult + SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies + TenantListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult LocationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult SubscriptionState = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState + Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription SpendingLimit = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit + SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult end class SubscriptionsManagementClass - attr_reader :operations, :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :tenants, :subscriptions, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -38,8 +38,8 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @operations = @client_0.operations - @subscriptions = @client_0.subscriptions @tenants = @client_0.tenants + @subscriptions = @client_0.subscriptions @model_classes = ModelClasses.new end @@ -58,42 +58,42 @@ def method_missing(method, *args) end class ModelClasses - 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 - def subscription_policies - Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies - end def operation_display Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationDisplay end - def subscription_list_result - Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult - end def operation Azure::Subscriptions::Mgmt::V2016_06_01::Models::Operation end - def subscription - Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription + def tenant_id_description + Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription end def operation_list_result Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationListResult end + def subscription_policies + Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies + end + def tenant_list_result + Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult + end def location_list_result Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult end def subscription_state Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState end + def subscription + Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription + end def spending_limit Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit end + def subscription_list_result + Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult + end end end end diff --git a/azure_sdk/lib/v2018_03_01/modules/authorization_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/authorization_profile_module.rb index 96de7dadb0..6a7e787c62 100644 --- a/azure_sdk/lib/v2018_03_01/modules/authorization_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/authorization_profile_module.rb @@ -7,13 +7,21 @@ module Azure::Profiles::V2018_03_01 module Authorization module Mgmt - Permissions = Azure::Authorization::Mgmt::V2015_07_01::Permissions - ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2015_07_01::ProviderOperationsMetadataOperations RoleAssignments = Azure::Authorization::Mgmt::V2015_07_01::RoleAssignments RoleDefinitions = Azure::Authorization::Mgmt::V2015_07_01::RoleDefinitions ClassicAdministrators = Azure::Authorization::Mgmt::V2015_07_01::ClassicAdministrators + Permissions = Azure::Authorization::Mgmt::V2015_07_01::Permissions + ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2015_07_01::ProviderOperationsMetadataOperations module Models + RoleDefinitionListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult + ProviderOperation = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation + ClassicAdministratorProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties + RoleAssignmentPropertiesWithScope = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope + ClassicAdministrator = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator + ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata + ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult + Permission = Azure::Authorization::Mgmt::V2015_07_01::Models::Permission RoleAssignment = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment RoleAssignmentListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult RoleDefinitionFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter @@ -25,18 +33,10 @@ module Models ProviderOperationsMetadataListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult RoleDefinition = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition RoleAssignmentFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter - RoleDefinitionListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult - ProviderOperation = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation - ClassicAdministratorProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties - RoleAssignmentPropertiesWithScope = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope - ClassicAdministrator = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator - ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata - ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult - Permission = Azure::Authorization::Mgmt::V2015_07_01::Models::Permission end class AuthorizationManagementClass - attr_reader :permissions, :provider_operations_metadata_operations, :role_assignments, :role_definitions, :classic_administrators, :configurable, :base_url, :options, :model_classes + attr_reader :role_assignments, :role_definitions, :classic_administrators, :permissions, :provider_operations_metadata_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -46,11 +46,11 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @permissions = @client_0.permissions - @provider_operations_metadata_operations = @client_0.provider_operations_metadata_operations @role_assignments = @client_0.role_assignments @role_definitions = @client_0.role_definitions @classic_administrators = @client_0.classic_administrators + @permissions = @client_0.permissions + @provider_operations_metadata_operations = @client_0.provider_operations_metadata_operations @model_classes = ModelClasses.new end @@ -69,6 +69,30 @@ def method_missing(method, *args) end class ModelClasses + def role_definition_list_result + Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult + end + def provider_operation + Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation + end + def classic_administrator_properties + Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties + end + def role_assignment_properties_with_scope + Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope + end + def classic_administrator + Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator + end + def provider_operations_metadata + Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata + end + def classic_administrator_list_result + Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult + end + def permission + Azure::Authorization::Mgmt::V2015_07_01::Models::Permission + end def role_assignment Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment end @@ -102,30 +126,6 @@ def role_definition def role_assignment_filter Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter end - def role_definition_list_result - Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult - end - def provider_operation - Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation - end - def classic_administrator_properties - Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties - end - def role_assignment_properties_with_scope - Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope - end - def classic_administrator - Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator - end - def provider_operations_metadata - Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata - end - def classic_administrator_list_result - Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult - end - def permission - Azure::Authorization::Mgmt::V2015_07_01::Models::Permission - end end end end diff --git a/azure_sdk/lib/v2018_03_01/modules/compute_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/compute_profile_module.rb index 778531386d..0003ae5030 100644 --- a/azure_sdk/lib/v2018_03_01/modules/compute_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/compute_profile_module.rb @@ -7,11 +7,6 @@ module Azure::Profiles::V2018_03_01 module Compute module Mgmt - AvailabilitySets = Azure::Compute::Mgmt::V2017_03_30::AvailabilitySets - VirtualMachineExtensionImages = Azure::Compute::Mgmt::V2017_03_30::VirtualMachineExtensionImages - VirtualMachineExtensions = Azure::Compute::Mgmt::V2017_03_30::VirtualMachineExtensions - VirtualMachines = Azure::Compute::Mgmt::V2017_03_30::VirtualMachines - VirtualMachineImages = Azure::Compute::Mgmt::V2017_03_30::VirtualMachineImages UsageOperations = Azure::Compute::Mgmt::V2017_03_30::UsageOperations VirtualMachineSizes = Azure::Compute::Mgmt::V2017_03_30::VirtualMachineSizes Images = Azure::Compute::Mgmt::V2017_03_30::Images @@ -23,28 +18,13 @@ module Mgmt Disks = Azure::Compute::Mgmt::V2017_03_30::Disks Snapshots = Azure::Compute::Mgmt::V2017_03_30::Snapshots VirtualMachineRunCommands = Azure::Compute::Mgmt::V2017_03_30::VirtualMachineRunCommands + AvailabilitySets = Azure::Compute::Mgmt::V2017_03_30::AvailabilitySets + VirtualMachineExtensionImages = Azure::Compute::Mgmt::V2017_03_30::VirtualMachineExtensionImages + VirtualMachineExtensions = Azure::Compute::Mgmt::V2017_03_30::VirtualMachineExtensions + VirtualMachines = Azure::Compute::Mgmt::V2017_03_30::VirtualMachines + VirtualMachineImages = Azure::Compute::Mgmt::V2017_03_30::VirtualMachineImages module Models - VirtualMachineScaleSetManagedDiskParameters = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetManagedDiskParameters - VirtualMachineScaleSetOSDisk = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetOSDisk - SubResource = Azure::Compute::Mgmt::V2017_03_30::Models::SubResource - VirtualMachineScaleSetUpdateOSDisk = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetUpdateOSDisk - EncryptionSettings = Azure::Compute::Mgmt::V2017_03_30::Models::EncryptionSettings - AvailabilitySetListResult = Azure::Compute::Mgmt::V2017_03_30::Models::AvailabilitySetListResult - ImageListResult = Azure::Compute::Mgmt::V2017_03_30::Models::ImageListResult - VirtualMachineSizeListResult = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineSizeListResult - VirtualMachineScaleSetIdentity = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetIdentity - RunCommandListResult = Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandListResult - ResourceSkuCapacity = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCapacity - RunCommandDocumentBase = Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandDocumentBase - ResourceSkuCosts = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCosts - VirtualMachineExtensionsListResult = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineExtensionsListResult - ResourceSkuCapabilities = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCapabilities - OSDiskImage = Azure::Compute::Mgmt::V2017_03_30::Models::OSDiskImage - ResourceSkuRestrictions = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuRestrictions - RunCommandInput = Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandInput - ResourceSku = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSku - Usage = Azure::Compute::Mgmt::V2017_03_30::Models::Usage ResourceSkusResult = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkusResult VirtualMachineCaptureParameters = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineCaptureParameters VirtualMachineScaleSetOSProfile = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetOSProfile @@ -194,10 +174,30 @@ module Models DiskCreateOption = Azure::Compute::Mgmt::V2017_03_30::Models::DiskCreateOption AccessLevel = Azure::Compute::Mgmt::V2017_03_30::Models::AccessLevel InstanceViewTypes = Azure::Compute::Mgmt::V2017_03_30::Models::InstanceViewTypes + VirtualMachineScaleSetManagedDiskParameters = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetManagedDiskParameters + VirtualMachineScaleSetOSDisk = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetOSDisk + SubResource = Azure::Compute::Mgmt::V2017_03_30::Models::SubResource + VirtualMachineScaleSetUpdateOSDisk = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetUpdateOSDisk + EncryptionSettings = Azure::Compute::Mgmt::V2017_03_30::Models::EncryptionSettings + AvailabilitySetListResult = Azure::Compute::Mgmt::V2017_03_30::Models::AvailabilitySetListResult + ImageListResult = Azure::Compute::Mgmt::V2017_03_30::Models::ImageListResult + VirtualMachineSizeListResult = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineSizeListResult + VirtualMachineScaleSetIdentity = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetIdentity + RunCommandListResult = Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandListResult + ResourceSkuCapacity = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCapacity + RunCommandDocumentBase = Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandDocumentBase + ResourceSkuCosts = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCosts + VirtualMachineExtensionsListResult = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineExtensionsListResult + ResourceSkuCapabilities = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCapabilities + OSDiskImage = Azure::Compute::Mgmt::V2017_03_30::Models::OSDiskImage + ResourceSkuRestrictions = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuRestrictions + RunCommandInput = Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandInput + ResourceSku = Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSku + Usage = Azure::Compute::Mgmt::V2017_03_30::Models::Usage end class ComputeManagementClass - attr_reader :availability_sets, :virtual_machine_extension_images, :virtual_machine_extensions, :virtual_machines, :virtual_machine_images, :usage_operations, :virtual_machine_sizes, :images, :resource_skus, :virtual_machine_scale_sets, :virtual_machine_scale_set_extensions, :virtual_machine_scale_set_rolling_upgrades, :virtual_machine_scale_set_vms, :disks, :snapshots, :virtual_machine_run_commands, :configurable, :base_url, :options, :model_classes + attr_reader :usage_operations, :virtual_machine_sizes, :images, :resource_skus, :virtual_machine_scale_sets, :virtual_machine_scale_set_extensions, :virtual_machine_scale_set_rolling_upgrades, :virtual_machine_scale_set_vms, :disks, :snapshots, :virtual_machine_run_commands, :availability_sets, :virtual_machine_extension_images, :virtual_machine_extensions, :virtual_machines, :virtual_machine_images, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -207,11 +207,6 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @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 @images = @client_0.images @@ -223,6 +218,11 @@ def initialize(configurable, base_url=nil, options=nil) @disks = @client_0.disks @snapshots = @client_0.snapshots @virtual_machine_run_commands = @client_0.virtual_machine_run_commands + @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 @model_classes = ModelClasses.new end @@ -241,66 +241,6 @@ def method_missing(method, *args) end class ModelClasses - def virtual_machine_scale_set_managed_disk_parameters - Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetManagedDiskParameters - end - def virtual_machine_scale_set_osdisk - Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetOSDisk - end - def sub_resource - Azure::Compute::Mgmt::V2017_03_30::Models::SubResource - end - def virtual_machine_scale_set_update_osdisk - Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetUpdateOSDisk - end - def encryption_settings - Azure::Compute::Mgmt::V2017_03_30::Models::EncryptionSettings - end - def availability_set_list_result - Azure::Compute::Mgmt::V2017_03_30::Models::AvailabilitySetListResult - end - def image_list_result - Azure::Compute::Mgmt::V2017_03_30::Models::ImageListResult - end - def virtual_machine_size_list_result - Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineSizeListResult - end - def virtual_machine_scale_set_identity - Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetIdentity - end - def run_command_list_result - Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandListResult - end - def resource_sku_capacity - Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCapacity - end - def run_command_document_base - Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandDocumentBase - end - def resource_sku_costs - Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCosts - end - def virtual_machine_extensions_list_result - Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineExtensionsListResult - end - def resource_sku_capabilities - Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCapabilities - end - def osdisk_image - Azure::Compute::Mgmt::V2017_03_30::Models::OSDiskImage - end - def resource_sku_restrictions - Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuRestrictions - end - def run_command_input - Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandInput - end - def resource_sku - Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSku - end - def usage - Azure::Compute::Mgmt::V2017_03_30::Models::Usage - end def resource_skus_result Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkusResult end @@ -748,6 +688,66 @@ def access_level def instance_view_types Azure::Compute::Mgmt::V2017_03_30::Models::InstanceViewTypes end + def virtual_machine_scale_set_managed_disk_parameters + Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetManagedDiskParameters + end + def virtual_machine_scale_set_osdisk + Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetOSDisk + end + def sub_resource + Azure::Compute::Mgmt::V2017_03_30::Models::SubResource + end + def virtual_machine_scale_set_update_osdisk + Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetUpdateOSDisk + end + def encryption_settings + Azure::Compute::Mgmt::V2017_03_30::Models::EncryptionSettings + end + def availability_set_list_result + Azure::Compute::Mgmt::V2017_03_30::Models::AvailabilitySetListResult + end + def image_list_result + Azure::Compute::Mgmt::V2017_03_30::Models::ImageListResult + end + def virtual_machine_size_list_result + Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineSizeListResult + end + def virtual_machine_scale_set_identity + Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetIdentity + end + def run_command_list_result + Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandListResult + end + def resource_sku_capacity + Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCapacity + end + def run_command_document_base + Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandDocumentBase + end + def resource_sku_costs + Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCosts + end + def virtual_machine_extensions_list_result + Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineExtensionsListResult + end + def resource_sku_capabilities + Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuCapabilities + end + def osdisk_image + Azure::Compute::Mgmt::V2017_03_30::Models::OSDiskImage + end + def resource_sku_restrictions + Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSkuRestrictions + end + def run_command_input + Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandInput + end + def resource_sku + Azure::Compute::Mgmt::V2017_03_30::Models::ResourceSku + end + def usage + Azure::Compute::Mgmt::V2017_03_30::Models::Usage + end end end end diff --git a/azure_sdk/lib/v2018_03_01/modules/dns_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/dns_profile_module.rb index 14cfdd76c9..878902ba1e 100644 --- a/azure_sdk/lib/v2018_03_01/modules/dns_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/dns_profile_module.rb @@ -11,6 +11,7 @@ module Mgmt Zones = Azure::Dns::Mgmt::V2016_04_01::Zones module Models + Resource = Azure::Dns::Mgmt::V2016_04_01::Models::Resource RecordSetUpdateParameters = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters RecordSetListResult = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetListResult AaaaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::AaaaRecord @@ -18,7 +19,6 @@ module Models MxRecord = Azure::Dns::Mgmt::V2016_04_01::Models::MxRecord PtrRecord = Azure::Dns::Mgmt::V2016_04_01::Models::PtrRecord SrvRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord - Resource = Azure::Dns::Mgmt::V2016_04_01::Models::Resource CnameRecord = Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord ZoneDeleteResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult RecordSet = Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet @@ -66,6 +66,9 @@ def method_missing(method, *args) end class ModelClasses + def resource + Azure::Dns::Mgmt::V2016_04_01::Models::Resource + end def record_set_update_parameters Azure::Dns::Mgmt::V2016_04_01::Models::RecordSetUpdateParameters end @@ -87,9 +90,6 @@ def ptr_record def srv_record Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord end - def resource - Azure::Dns::Mgmt::V2016_04_01::Models::Resource - end def cname_record Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord end diff --git a/azure_sdk/lib/v2018_03_01/modules/keyvault_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/keyvault_profile_module.rb index 37308f7249..916dd80255 100644 --- a/azure_sdk/lib/v2018_03_01/modules/keyvault_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/keyvault_profile_module.rb @@ -9,6 +9,7 @@ module Azure::Profiles::V2018_03_01 module KeyVault module Models + Action = Azure::KeyVault::V2016_10_01::Models::Action KeyOperationsParameters = Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters KeySignParameters = Azure::KeyVault::V2016_10_01::Models::KeySignParameters JsonWebKey = Azure::KeyVault::V2016_10_01::Models::JsonWebKey @@ -38,10 +39,9 @@ module Models CertificateUpdateParameters = Azure::KeyVault::V2016_10_01::Models::CertificateUpdateParameters SasDefinitionItem = Azure::KeyVault::V2016_10_01::Models::SasDefinitionItem CertificateMergeParameters = Azure::KeyVault::V2016_10_01::Models::CertificateMergeParameters - Error = Azure::KeyVault::V2016_10_01::Models::Error CertificateIssuerSetParameters = Azure::KeyVault::V2016_10_01::Models::CertificateIssuerSetParameters + Error = Azure::KeyVault::V2016_10_01::Models::Error IssuerCredentials = Azure::KeyVault::V2016_10_01::Models::IssuerCredentials - CertificateIssuerUpdateParameters = Azure::KeyVault::V2016_10_01::Models::CertificateIssuerUpdateParameters OrganizationDetails = Azure::KeyVault::V2016_10_01::Models::OrganizationDetails CertificateOperationUpdateParameter = Azure::KeyVault::V2016_10_01::Models::CertificateOperationUpdateParameter IssuerBundle = Azure::KeyVault::V2016_10_01::Models::IssuerBundle @@ -56,6 +56,7 @@ module Models X509CertificateProperties = Azure::KeyVault::V2016_10_01::Models::X509CertificateProperties DeletedSecretListResult = Azure::KeyVault::V2016_10_01::Models::DeletedSecretListResult IssuerParameters = Azure::KeyVault::V2016_10_01::Models::IssuerParameters + CertificateIssuerUpdateParameters = Azure::KeyVault::V2016_10_01::Models::CertificateIssuerUpdateParameters CertificateListResult = Azure::KeyVault::V2016_10_01::Models::CertificateListResult SasDefinitionBundle = Azure::KeyVault::V2016_10_01::Models::SasDefinitionBundle DeletedCertificateListResult = Azure::KeyVault::V2016_10_01::Models::DeletedCertificateListResult @@ -75,7 +76,6 @@ module Models StorageAccountCreateParameters = Azure::KeyVault::V2016_10_01::Models::StorageAccountCreateParameters CertificateOperation = Azure::KeyVault::V2016_10_01::Models::CertificateOperation StorageAccountUpdateParameters = Azure::KeyVault::V2016_10_01::Models::StorageAccountUpdateParameters - Action = Azure::KeyVault::V2016_10_01::Models::Action StorageAccountRegenerteKeyParameters = Azure::KeyVault::V2016_10_01::Models::StorageAccountRegenerteKeyParameters KeyCreateParameters = Azure::KeyVault::V2016_10_01::Models::KeyCreateParameters StorageAccountItem = Azure::KeyVault::V2016_10_01::Models::StorageAccountItem @@ -89,13 +89,13 @@ module Models DeletedCertificateBundle = Azure::KeyVault::V2016_10_01::Models::DeletedCertificateBundle DeletedCertificateItem = Azure::KeyVault::V2016_10_01::Models::DeletedCertificateItem JsonWebKeyType = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyType - JsonWebKeyCurveName = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyCurveName DeletionRecoveryLevel = Azure::KeyVault::V2016_10_01::Models::DeletionRecoveryLevel KeyUsageType = Azure::KeyVault::V2016_10_01::Models::KeyUsageType + JsonWebKeyCurveName = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyCurveName ActionType = Azure::KeyVault::V2016_10_01::Models::ActionType - JsonWebKeyOperation = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyOperation JsonWebKeyEncryptionAlgorithm = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyEncryptionAlgorithm JsonWebKeySignatureAlgorithm = Azure::KeyVault::V2016_10_01::Models::JsonWebKeySignatureAlgorithm + JsonWebKeyOperation = Azure::KeyVault::V2016_10_01::Models::JsonWebKeyOperation end class KeyVaultDataClass @@ -127,6 +127,9 @@ def method_missing(method, *args) end class ModelClasses + def action + Azure::KeyVault::V2016_10_01::Models::Action + end def key_operations_parameters Azure::KeyVault::V2016_10_01::Models::KeyOperationsParameters end @@ -214,18 +217,15 @@ def sas_definition_item def certificate_merge_parameters Azure::KeyVault::V2016_10_01::Models::CertificateMergeParameters end - def error - Azure::KeyVault::V2016_10_01::Models::Error - end def certificate_issuer_set_parameters Azure::KeyVault::V2016_10_01::Models::CertificateIssuerSetParameters end + def error + Azure::KeyVault::V2016_10_01::Models::Error + end def issuer_credentials Azure::KeyVault::V2016_10_01::Models::IssuerCredentials end - def certificate_issuer_update_parameters - Azure::KeyVault::V2016_10_01::Models::CertificateIssuerUpdateParameters - end def organization_details Azure::KeyVault::V2016_10_01::Models::OrganizationDetails end @@ -268,6 +268,9 @@ def deleted_secret_list_result def issuer_parameters Azure::KeyVault::V2016_10_01::Models::IssuerParameters end + def certificate_issuer_update_parameters + Azure::KeyVault::V2016_10_01::Models::CertificateIssuerUpdateParameters + end def certificate_list_result Azure::KeyVault::V2016_10_01::Models::CertificateListResult end @@ -325,9 +328,6 @@ def certificate_operation def storage_account_update_parameters Azure::KeyVault::V2016_10_01::Models::StorageAccountUpdateParameters end - def action - Azure::KeyVault::V2016_10_01::Models::Action - end def storage_account_regenerte_key_parameters Azure::KeyVault::V2016_10_01::Models::StorageAccountRegenerteKeyParameters end @@ -367,27 +367,27 @@ def deleted_certificate_item def json_web_key_type Azure::KeyVault::V2016_10_01::Models::JsonWebKeyType end - def json_web_key_curve_name - Azure::KeyVault::V2016_10_01::Models::JsonWebKeyCurveName - end def deletion_recovery_level Azure::KeyVault::V2016_10_01::Models::DeletionRecoveryLevel end def key_usage_type Azure::KeyVault::V2016_10_01::Models::KeyUsageType end + def json_web_key_curve_name + Azure::KeyVault::V2016_10_01::Models::JsonWebKeyCurveName + end def action_type Azure::KeyVault::V2016_10_01::Models::ActionType end - def json_web_key_operation - Azure::KeyVault::V2016_10_01::Models::JsonWebKeyOperation - end def json_web_key_encryption_algorithm Azure::KeyVault::V2016_10_01::Models::JsonWebKeyEncryptionAlgorithm end def json_web_key_signature_algorithm Azure::KeyVault::V2016_10_01::Models::JsonWebKeySignatureAlgorithm end + def json_web_key_operation + Azure::KeyVault::V2016_10_01::Models::JsonWebKeyOperation + end end end module Mgmt @@ -395,37 +395,37 @@ module Mgmt Operations = Azure::KeyVault::Mgmt::V2016_10_01::Operations module Models + KeyPermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions + StoragePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions + CertificatePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions + Reason = Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason + CreateMode = Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode + AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind + Sku = Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku + Permissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions + Resource = Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource + OperationDisplay = Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay + Operation = Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation DeletedVault = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVault VaultListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultListResult - Permissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions DeletedVaultListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultListResult - VaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties - Resource = Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource VaultAccessPolicyProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyProperties ResourceListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::ResourceListResult VaultCreateOrUpdateParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCreateOrUpdateParameters VaultCheckNameAvailabilityParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCheckNameAvailabilityParameters VaultAccessPolicyParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyParameters + VaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties CheckNameAvailabilityResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::CheckNameAvailabilityResult - Sku = Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku - OperationDisplay = Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay VaultPatchProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchProperties LogSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification VaultPatchParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchParameters ServiceSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::ServiceSpecification AccessPolicyEntry = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry - Operation = Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation DeletedVaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties OperationListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationListResult - Vault = Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault SkuName = Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName - KeyPermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions + Vault = Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault SecretPermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::SecretPermissions - CertificatePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions - StoragePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions - CreateMode = Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode - Reason = Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason - AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind end class KeyVaultManagementClass @@ -459,24 +459,48 @@ def method_missing(method, *args) end class ModelClasses + def key_permissions + Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions + end + def storage_permissions + Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions + end + def certificate_permissions + Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions + end + def reason + Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason + end + def create_mode + Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode + end + def access_policy_update_kind + Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind + end + def sku + Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku + end + def permissions + Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions + end + def resource + Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource + end + def operation_display + Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay + end + def operation + Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation + end def deleted_vault Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVault end def vault_list_result Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultListResult end - def permissions - Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions - end def deleted_vault_list_result Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultListResult end - def vault_properties - Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties - end - def resource - Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource - end def vault_access_policy_properties Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyProperties end @@ -492,15 +516,12 @@ def vault_check_name_availability_parameters def vault_access_policy_parameters Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyParameters end + def vault_properties + Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties + end def check_name_availability_result Azure::KeyVault::Mgmt::V2016_10_01::Models::CheckNameAvailabilityResult end - def sku - Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku - end - def operation_display - Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay - end def vault_patch_properties Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchProperties end @@ -516,42 +537,21 @@ def service_specification def access_policy_entry Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry end - def operation - Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation - end def deleted_vault_properties Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties end def operation_list_result Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationListResult end - def vault - Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault - end def sku_name Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName end - def key_permissions - Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions + def vault + Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault end def secret_permissions Azure::KeyVault::Mgmt::V2016_10_01::Models::SecretPermissions end - def certificate_permissions - Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions - end - def storage_permissions - Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions - end - def create_mode - Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode - end - def reason - Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason - end - def access_policy_update_kind - Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind - end end end end diff --git a/azure_sdk/lib/v2018_03_01/modules/network_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/network_profile_module.rb index d108315fbd..4c22a97fa5 100644 --- a/azure_sdk/lib/v2018_03_01/modules/network_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/network_profile_module.rb @@ -7,21 +7,10 @@ module Azure::Profiles::V2018_03_01 module Network module Mgmt - ApplicationGateways = Azure::Network::Mgmt::V2017_10_01::ApplicationGateways - ApplicationSecurityGroups = Azure::Network::Mgmt::V2017_10_01::ApplicationSecurityGroups - AvailableEndpointServices = Azure::Network::Mgmt::V2017_10_01::AvailableEndpointServices - ExpressRouteCircuitAuthorizations = Azure::Network::Mgmt::V2017_10_01::ExpressRouteCircuitAuthorizations - ExpressRouteCircuitPeerings = Azure::Network::Mgmt::V2017_10_01::ExpressRouteCircuitPeerings - ExpressRouteCircuits = Azure::Network::Mgmt::V2017_10_01::ExpressRouteCircuits - ExpressRouteServiceProviders = Azure::Network::Mgmt::V2017_10_01::ExpressRouteServiceProviders - LoadBalancers = Azure::Network::Mgmt::V2017_10_01::LoadBalancers - LoadBalancerBackendAddressPools = Azure::Network::Mgmt::V2017_10_01::LoadBalancerBackendAddressPools - LoadBalancerFrontendIPConfigurations = Azure::Network::Mgmt::V2017_10_01::LoadBalancerFrontendIPConfigurations InboundNatRules = Azure::Network::Mgmt::V2017_10_01::InboundNatRules LoadBalancerLoadBalancingRules = Azure::Network::Mgmt::V2017_10_01::LoadBalancerLoadBalancingRules LoadBalancerNetworkInterfaces = Azure::Network::Mgmt::V2017_10_01::LoadBalancerNetworkInterfaces LoadBalancerProbes = Azure::Network::Mgmt::V2017_10_01::LoadBalancerProbes - NetworkInterfaces = Azure::Network::Mgmt::V2017_10_01::NetworkInterfaces NetworkInterfaceIPConfigurations = Azure::Network::Mgmt::V2017_10_01::NetworkInterfaceIPConfigurations NetworkInterfaceLoadBalancers = Azure::Network::Mgmt::V2017_10_01::NetworkInterfaceLoadBalancers NetworkSecurityGroups = Azure::Network::Mgmt::V2017_10_01::NetworkSecurityGroups @@ -30,8 +19,6 @@ module Mgmt NetworkWatchers = Azure::Network::Mgmt::V2017_10_01::NetworkWatchers PacketCaptures = Azure::Network::Mgmt::V2017_10_01::PacketCaptures ConnectionMonitors = Azure::Network::Mgmt::V2017_10_01::ConnectionMonitors - Operations = Azure::Network::Mgmt::V2017_10_01::Operations - PublicIPAddresses = Azure::Network::Mgmt::V2017_10_01::PublicIPAddresses RouteFilters = Azure::Network::Mgmt::V2017_10_01::RouteFilters RouteFilterRules = Azure::Network::Mgmt::V2017_10_01::RouteFilterRules RouteTables = Azure::Network::Mgmt::V2017_10_01::RouteTables @@ -42,8 +29,21 @@ module Mgmt Subnets = Azure::Network::Mgmt::V2017_10_01::Subnets VirtualNetworkPeerings = Azure::Network::Mgmt::V2017_10_01::VirtualNetworkPeerings VirtualNetworkGateways = Azure::Network::Mgmt::V2017_10_01::VirtualNetworkGateways - VirtualNetworkGatewayConnections = Azure::Network::Mgmt::V2017_10_01::VirtualNetworkGatewayConnections + NetworkInterfaces = Azure::Network::Mgmt::V2017_10_01::NetworkInterfaces + PublicIPAddresses = Azure::Network::Mgmt::V2017_10_01::PublicIPAddresses LocalNetworkGateways = Azure::Network::Mgmt::V2017_10_01::LocalNetworkGateways + VirtualNetworkGatewayConnections = Azure::Network::Mgmt::V2017_10_01::VirtualNetworkGatewayConnections + Operations = Azure::Network::Mgmt::V2017_10_01::Operations + ApplicationGateways = Azure::Network::Mgmt::V2017_10_01::ApplicationGateways + ApplicationSecurityGroups = Azure::Network::Mgmt::V2017_10_01::ApplicationSecurityGroups + AvailableEndpointServices = Azure::Network::Mgmt::V2017_10_01::AvailableEndpointServices + ExpressRouteCircuitAuthorizations = Azure::Network::Mgmt::V2017_10_01::ExpressRouteCircuitAuthorizations + ExpressRouteCircuitPeerings = Azure::Network::Mgmt::V2017_10_01::ExpressRouteCircuitPeerings + ExpressRouteCircuits = Azure::Network::Mgmt::V2017_10_01::ExpressRouteCircuits + ExpressRouteServiceProviders = Azure::Network::Mgmt::V2017_10_01::ExpressRouteServiceProviders + LoadBalancers = Azure::Network::Mgmt::V2017_10_01::LoadBalancers + LoadBalancerBackendAddressPools = Azure::Network::Mgmt::V2017_10_01::LoadBalancerBackendAddressPools + LoadBalancerFrontendIPConfigurations = Azure::Network::Mgmt::V2017_10_01::LoadBalancerFrontendIPConfigurations module Models IpTag = Azure::Network::Mgmt::V2017_03_30::Models::IpTag @@ -54,20 +54,50 @@ module Models NetworkInterfaceTapConfiguration = Azure::Network::Mgmt::V2017_03_30::Models::NetworkInterfaceTapConfiguration VirtualNetworkTap = Azure::Network::Mgmt::V2017_03_30::Models::VirtualNetworkTap ServiceEndpointPolicyDefinition = Azure::Network::Mgmt::V2017_03_30::Models::ServiceEndpointPolicyDefinition - ServiceEndpointPolicy = Azure::Network::Mgmt::V2017_03_30::Models::ServiceEndpointPolicy IPConfigurationProfile = Azure::Network::Mgmt::V2017_03_30::Models::IPConfigurationProfile + ServiceEndpointPolicy = Azure::Network::Mgmt::V2017_03_30::Models::ServiceEndpointPolicy + ApplicationGatewayBackendAddress = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendAddress + PublicIPAddressSku = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressSku + PublicIPAddressListResult = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressListResult + PublicIPAddressDnsSettings = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressDnsSettings + NetworkInterfaceListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceListResult + NetworkInterfaceDnsSettings = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceDnsSettings + NetworkInterfaceIPConfigurationListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceIPConfigurationListResult + ServiceEndpointPropertiesFormat = Azure::Network::Mgmt::V2017_10_01::Models::ServiceEndpointPropertiesFormat + ApplicationSecurityGroup = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationSecurityGroup + ResourceNavigationLink = Azure::Network::Mgmt::V2017_10_01::Models::ResourceNavigationLink + SecurityRule = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRule + OperationDisplay = Azure::Network::Mgmt::V2017_10_01::Models::OperationDisplay + IPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::IPConfiguration + Operation = Azure::Network::Mgmt::V2017_10_01::Models::Operation + PublicIPAddress = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddress + OperationListResult = Azure::Network::Mgmt::V2017_10_01::Models::OperationListResult + ApplicationGatewayBackendAddressPool = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendAddressPool + BackendAddressPool = Azure::Network::Mgmt::V2017_10_01::Models::BackendAddressPool + InboundNatRule = Azure::Network::Mgmt::V2017_10_01::Models::InboundNatRule + NetworkInterfaceIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceIPConfiguration + NetworkInterface = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterface + NetworkSecurityGroup = Azure::Network::Mgmt::V2017_10_01::Models::NetworkSecurityGroup + Route = Azure::Network::Mgmt::V2017_10_01::Models::Route + RouteTable = Azure::Network::Mgmt::V2017_10_01::Models::RouteTable + LogSpecification = Azure::Network::Mgmt::V2017_10_01::Models::LogSpecification + Subnet = Azure::Network::Mgmt::V2017_10_01::Models::Subnet + SecurityRuleProtocol = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleProtocol + FrontendIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::FrontendIPConfiguration + SecurityRuleAccess = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleAccess + IPAllocationMethod = Azure::Network::Mgmt::V2017_10_01::Models::IPAllocationMethod + PublicIPAddressSkuName = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressSkuName + TransportProtocol = Azure::Network::Mgmt::V2017_10_01::Models::TransportProtocol + RouteNextHopType = Azure::Network::Mgmt::V2017_10_01::Models::RouteNextHopType + SecurityRuleDirection = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleDirection + Error = Azure::Network::Mgmt::V2017_10_01::Models::Error TopologyAssociation = Azure::Network::Mgmt::V2017_10_01::Models::TopologyAssociation - SubResource = Azure::Network::Mgmt::V2017_10_01::Models::SubResource TopologyResource = Azure::Network::Mgmt::V2017_10_01::Models::TopologyResource - OperationListResult = Azure::Network::Mgmt::V2017_10_01::Models::OperationListResult - Operation = Azure::Network::Mgmt::V2017_10_01::Models::Operation - NetworkInterfaceDnsSettings = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceDnsSettings OperationPropertiesFormatServiceSpecification = Azure::Network::Mgmt::V2017_10_01::Models::OperationPropertiesFormatServiceSpecification VirtualNetworkConnectionGatewayReference = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkConnectionGatewayReference LoadBalancerListResult = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerListResult ConnectionSharedKey = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionSharedKey InboundNatRuleListResult = Azure::Network::Mgmt::V2017_10_01::Models::InboundNatRuleListResult - PublicIPAddressSku = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressSku LoadBalancerBackendAddressPoolListResult = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerBackendAddressPoolListResult ConnectionResetSharedKey = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionResetSharedKey LoadBalancerFrontendIPConfigurationListResult = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerFrontendIPConfigurationListResult @@ -76,20 +106,18 @@ module Models GatewayRouteListResult = Azure::Network::Mgmt::V2017_10_01::Models::GatewayRouteListResult LoadBalancerProbeListResult = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerProbeListResult BgpPeerStatusListResult = Azure::Network::Mgmt::V2017_10_01::Models::BgpPeerStatusListResult - NetworkInterfaceListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceListResult VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayListResult ErrorDetails = Azure::Network::Mgmt::V2017_10_01::Models::ErrorDetails ApplicationGatewayBackendHealthHttpSettings = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthHttpSettings - Error = Azure::Network::Mgmt::V2017_10_01::Models::Error ApplicationGatewayBackendHealth = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealth AzureAsyncOperationResult = Azure::Network::Mgmt::V2017_10_01::Models::AzureAsyncOperationResult ApplicationGatewaySslPolicy = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPolicy - NetworkInterfaceIPConfigurationListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceIPConfigurationListResult GatewayRoute = Azure::Network::Mgmt::V2017_10_01::Models::GatewayRoute + SubResource = Azure::Network::Mgmt::V2017_10_01::Models::SubResource NetworkInterfaceLoadBalancerListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceLoadBalancerListResult - BgpSettings = Azure::Network::Mgmt::V2017_10_01::Models::BgpSettings EffectiveNetworkSecurityGroupAssociation = Azure::Network::Mgmt::V2017_10_01::Models::EffectiveNetworkSecurityGroupAssociation VirtualNetworkGatewaySku = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySku + BgpSettings = Azure::Network::Mgmt::V2017_10_01::Models::BgpSettings EffectiveNetworkSecurityRule = Azure::Network::Mgmt::V2017_10_01::Models::EffectiveNetworkSecurityRule ApplicationGatewayProbeHealthResponseMatch = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProbeHealthResponseMatch EffectiveNetworkSecurityGroup = Azure::Network::Mgmt::V2017_10_01::Models::EffectiveNetworkSecurityGroup @@ -102,12 +130,9 @@ module Models ApplicationGatewayListResult = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayListResult SecurityRuleListResult = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleListResult ApplicationGatewayFirewallRuleGroup = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRuleGroup - NetworkSecurityGroupListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkSecurityGroupListResult - ApplicationGatewayAvailableWafRuleSetsResult = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult - LogSpecification = Azure::Network::Mgmt::V2017_10_01::Models::LogSpecification + Usage = Azure::Network::Mgmt::V2017_10_01::Models::Usage AddressSpace = Azure::Network::Mgmt::V2017_10_01::Models::AddressSpace NetworkWatcherListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcherListResult - Resource = Azure::Network::Mgmt::V2017_10_01::Models::Resource TopologyParameters = Azure::Network::Mgmt::V2017_10_01::Models::TopologyParameters ApplicationSecurityGroupListResult = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationSecurityGroupListResult DnsNameAvailabilityResult = Azure::Network::Mgmt::V2017_10_01::Models::DnsNameAvailabilityResult @@ -116,7 +141,6 @@ module Models MetricSpecification = Azure::Network::Mgmt::V2017_10_01::Models::MetricSpecification AuthorizationListResult = Azure::Network::Mgmt::V2017_10_01::Models::AuthorizationListResult Topology = Azure::Network::Mgmt::V2017_10_01::Models::Topology - UsageName = Azure::Network::Mgmt::V2017_10_01::Models::UsageName VerificationIPFlowParameters = Azure::Network::Mgmt::V2017_10_01::Models::VerificationIPFlowParameters BgpServiceCommunityListResult = Azure::Network::Mgmt::V2017_10_01::Models::BgpServiceCommunityListResult VerificationIPFlowResult = Azure::Network::Mgmt::V2017_10_01::Models::VerificationIPFlowResult @@ -138,15 +162,12 @@ module Models SecurityGroupViewResult = Azure::Network::Mgmt::V2017_10_01::Models::SecurityGroupViewResult RouteFilterRuleListResult = Azure::Network::Mgmt::V2017_10_01::Models::RouteFilterRuleListResult PacketCaptureStorageLocation = Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureStorageLocation - PublicIPAddressListResult = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressListResult PacketCaptureFilter = Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureFilter VirtualNetworkGatewayListConnectionsResult = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayListConnectionsResult PacketCaptureParameters = Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureParameters - ServiceEndpointPropertiesFormat = Azure::Network::Mgmt::V2017_10_01::Models::ServiceEndpointPropertiesFormat PacketCapture = Azure::Network::Mgmt::V2017_10_01::Models::PacketCapture VirtualNetworkGatewayConnectionListResult = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionListResult PacketCaptureResult = Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureResult - ApplicationGatewayBackendAddress = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendAddress PacketCaptureListResult = Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureListResult ApplicationGatewayBackendHealthServer = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthServer PacketCaptureQueryStatusResult = Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureQueryStatusResult @@ -180,171 +201,150 @@ module Models ConnectivityInformation = Azure::Network::Mgmt::V2017_10_01::Models::ConnectivityInformation VpnDeviceScriptParameters = Azure::Network::Mgmt::V2017_10_01::Models::VpnDeviceScriptParameters AzureReachabilityReportLocation = Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReportLocation - PublicIPAddressDnsSettings = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressDnsSettings AzureReachabilityReportParameters = Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReportParameters ApplicationGatewayConnectionDraining = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayConnectionDraining + UsageName = Azure::Network::Mgmt::V2017_10_01::Models::UsageName AzureReachabilityReportLatencyInfo = Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReportLatencyInfo - VpnClientParameters = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientParameters AzureReachabilityReportItem = Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReportItem VirtualNetworkUsage = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkUsage + VpnClientParameters = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientParameters AzureReachabilityReport = Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReport - ApplicationGatewayFirewallRule = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRule AvailableProvidersListParameters = Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersListParameters TagsObject = Azure::Network::Mgmt::V2017_10_01::Models::TagsObject + ApplicationGatewayFirewallRule = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRule AvailableProvidersListCity = Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersListCity - ExpressRouteCircuitStats = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitStats AvailableProvidersListState = Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersListState ExpressRouteCircuitArpTable = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitArpTable + ExpressRouteCircuitStats = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitStats AvailableProvidersListCountry = Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersListCountry - RouteTableListResult = Azure::Network::Mgmt::V2017_10_01::Models::RouteTableListResult AvailableProvidersList = Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersList LocalNetworkGatewayListResult = Azure::Network::Mgmt::V2017_10_01::Models::LocalNetworkGatewayListResult + RouteTableListResult = Azure::Network::Mgmt::V2017_10_01::Models::RouteTableListResult ConnectionMonitorSource = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorSource - ApplicationGatewayBackendHealthPool = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthPool ConnectionMonitorDestination = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorDestination ApplicationGatewayFirewallDisabledRuleGroup = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallDisabledRuleGroup ConnectionMonitorParameters = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorParameters - Usage = Azure::Network::Mgmt::V2017_10_01::Models::Usage ConnectionMonitor = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitor ExpressRouteCircuitRoutesTableSummary = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitRoutesTableSummary + ApplicationGatewayBackendHealthPool = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthPool ConnectionMonitorResult = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorResult - TunnelConnectionHealth = Azure::Network::Mgmt::V2017_10_01::Models::TunnelConnectionHealth - ConnectionMonitorListResult = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorListResult + Resource = Azure::Network::Mgmt::V2017_10_01::Models::Resource SubnetListResult = Azure::Network::Mgmt::V2017_10_01::Models::SubnetListResult - ConnectionStateSnapshot = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionStateSnapshot + TunnelConnectionHealth = Azure::Network::Mgmt::V2017_10_01::Models::TunnelConnectionHealth RouteFilterListResult = Azure::Network::Mgmt::V2017_10_01::Models::RouteFilterListResult ConnectionMonitorQueryResult = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorQueryResult - ExpressRouteCircuitPeeringListResult = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringListResult - OperationDisplay = Azure::Network::Mgmt::V2017_10_01::Models::OperationDisplay + ConnectionStateSnapshot = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionStateSnapshot + ConnectionMonitorListResult = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorListResult VpnClientConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientConfiguration - Availability = Azure::Network::Mgmt::V2017_10_01::Models::Availability - BackendAddressPool = Azure::Network::Mgmt::V2017_10_01::Models::BackendAddressPool - InboundNatRule = Azure::Network::Mgmt::V2017_10_01::Models::InboundNatRule - ApplicationSecurityGroup = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationSecurityGroup - SecurityRule = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRule - NetworkInterface = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterface - NetworkSecurityGroup = Azure::Network::Mgmt::V2017_10_01::Models::NetworkSecurityGroup - Route = Azure::Network::Mgmt::V2017_10_01::Models::Route - RouteTable = Azure::Network::Mgmt::V2017_10_01::Models::RouteTable - PublicIPAddress = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddress - IPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::IPConfiguration - ResourceNavigationLink = Azure::Network::Mgmt::V2017_10_01::Models::ResourceNavigationLink - Subnet = Azure::Network::Mgmt::V2017_10_01::Models::Subnet - NetworkInterfaceIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceIPConfiguration - ApplicationGatewayBackendAddressPool = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendAddressPool + ExpressRouteCircuitPeeringListResult = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringListResult ApplicationGatewayBackendHttpSettings = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHttpSettings - ApplicationGatewayIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayIPConfiguration + Availability = Azure::Network::Mgmt::V2017_10_01::Models::Availability ApplicationGatewayAuthenticationCertificate = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAuthenticationCertificate - ApplicationGatewaySslCertificate = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslCertificate + ApplicationGatewayIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayIPConfiguration ApplicationGatewayFrontendIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendIPConfiguration - ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendPort + ApplicationGatewaySslCertificate = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslCertificate ApplicationGatewayHttpListener = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayHttpListener - ApplicationGatewayPathRule = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayPathRule + ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendPort ApplicationGatewayProbe = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProbe - ApplicationGatewayRequestRoutingRule = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRequestRoutingRule + ApplicationGatewayPathRule = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayPathRule ApplicationGatewayRedirectConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRedirectConfiguration - ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayUrlPathMap + ApplicationGatewayRequestRoutingRule = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRequestRoutingRule + NetworkSecurityGroupListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkSecurityGroupListResult + ApplicationGatewayAvailableWafRuleSetsResult = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult ApplicationGateway = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGateway ApplicationGatewayFirewallRuleSet = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRuleSet - ApplicationGatewayAvailableSslOptions = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableSslOptions + ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayUrlPathMap ApplicationGatewaySslPredefinedPolicy = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPredefinedPolicy EndpointServiceResult = Azure::Network::Mgmt::V2017_10_01::Models::EndpointServiceResult - ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitAuthorization + ApplicationGatewayAvailableSslOptions = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableSslOptions RouteFilterRule = Azure::Network::Mgmt::V2017_10_01::Models::RouteFilterRule ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeering - RouteFilter = Azure::Network::Mgmt::V2017_10_01::Models::RouteFilter + ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitAuthorization ExpressRouteCircuit = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuit ExpressRouteServiceProvider = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteServiceProvider - FrontendIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::FrontendIPConfiguration - LoadBalancingRule = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancingRule + RouteFilter = Azure::Network::Mgmt::V2017_10_01::Models::RouteFilter Probe = Azure::Network::Mgmt::V2017_10_01::Models::Probe InboundNatPool = Azure::Network::Mgmt::V2017_10_01::Models::InboundNatPool - OutboundNatRule = Azure::Network::Mgmt::V2017_10_01::Models::OutboundNatRule + LoadBalancingRule = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancingRule LoadBalancer = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancer NetworkWatcher = Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcher - PatchRouteFilterRule = Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilterRule + OutboundNatRule = Azure::Network::Mgmt::V2017_10_01::Models::OutboundNatRule PatchRouteFilter = Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilter BgpServiceCommunity = Azure::Network::Mgmt::V2017_10_01::Models::BgpServiceCommunity - VirtualNetworkPeering = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkPeering + PatchRouteFilterRule = Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilterRule VirtualNetwork = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetwork VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayIPConfiguration - VpnClientRootCertificate = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRootCertificate + VirtualNetworkPeering = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkPeering VpnClientRevokedCertificate = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRevokedCertificate VirtualNetworkGateway = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGateway - LocalNetworkGateway = Azure::Network::Mgmt::V2017_10_01::Models::LocalNetworkGateway + VpnClientRootCertificate = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRootCertificate VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnection VirtualNetworkGatewayConnectionListEntity = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionListEntity - TransportProtocol = Azure::Network::Mgmt::V2017_10_01::Models::TransportProtocol - IPAllocationMethod = Azure::Network::Mgmt::V2017_10_01::Models::IPAllocationMethod - IPVersion = Azure::Network::Mgmt::V2017_10_01::Models::IPVersion - SecurityRuleProtocol = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleProtocol - SecurityRuleAccess = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleAccess - SecurityRuleDirection = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleDirection - RouteNextHopType = Azure::Network::Mgmt::V2017_10_01::Models::RouteNextHopType - PublicIPAddressSkuName = Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressSkuName - ApplicationGatewayProtocol = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProtocol + LocalNetworkGateway = Azure::Network::Mgmt::V2017_10_01::Models::LocalNetworkGateway ApplicationGatewayCookieBasedAffinity = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayCookieBasedAffinity ApplicationGatewayBackendHealthServerHealth = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthServerHealth - ApplicationGatewaySkuName = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySkuName + IPVersion = Azure::Network::Mgmt::V2017_10_01::Models::IPVersion ApplicationGatewayTier = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayTier ApplicationGatewaySslProtocol = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslProtocol + ApplicationGatewaySkuName = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySkuName + ApplicationGatewayProtocol = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProtocol + ApplicationGatewaySslCipherSuite = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslCipherSuite ApplicationGatewaySslPolicyType = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPolicyType ApplicationGatewaySslPolicyName = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPolicyName - ApplicationGatewaySslCipherSuite = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslCipherSuite + ApplicationGatewayOperationalState = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayOperationalState ApplicationGatewayRequestRoutingRuleType = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRequestRoutingRuleType ApplicationGatewayRedirectType = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRedirectType - ApplicationGatewayOperationalState = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayOperationalState + ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState ApplicationGatewayFirewallMode = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallMode AuthorizationUseStatus = Azure::Network::Mgmt::V2017_10_01::Models::AuthorizationUseStatus - ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState + ExpressRouteCircuitPeeringState = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringState Access = Azure::Network::Mgmt::V2017_10_01::Models::Access ExpressRouteCircuitPeeringType = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringType - ExpressRouteCircuitPeeringState = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringState + ServiceProviderProvisioningState = Azure::Network::Mgmt::V2017_10_01::Models::ServiceProviderProvisioningState ExpressRouteCircuitSkuTier = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitSkuTier ExpressRouteCircuitSkuFamily = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitSkuFamily - ServiceProviderProvisioningState = Azure::Network::Mgmt::V2017_10_01::Models::ServiceProviderProvisioningState + ProbeProtocol = Azure::Network::Mgmt::V2017_10_01::Models::ProbeProtocol LoadBalancerSkuName = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerSkuName LoadDistribution = Azure::Network::Mgmt::V2017_10_01::Models::LoadDistribution - ProbeProtocol = Azure::Network::Mgmt::V2017_10_01::Models::ProbeProtocol + EffectiveRouteSource = Azure::Network::Mgmt::V2017_10_01::Models::EffectiveRouteSource NetworkOperationStatus = Azure::Network::Mgmt::V2017_10_01::Models::NetworkOperationStatus EffectiveSecurityRuleProtocol = Azure::Network::Mgmt::V2017_10_01::Models::EffectiveSecurityRuleProtocol - EffectiveRouteSource = Azure::Network::Mgmt::V2017_10_01::Models::EffectiveRouteSource + AssociationType = Azure::Network::Mgmt::V2017_10_01::Models::AssociationType EffectiveRouteState = Azure::Network::Mgmt::V2017_10_01::Models::EffectiveRouteState ProvisioningState = Azure::Network::Mgmt::V2017_10_01::Models::ProvisioningState - AssociationType = Azure::Network::Mgmt::V2017_10_01::Models::AssociationType + PcProtocol = Azure::Network::Mgmt::V2017_10_01::Models::PcProtocol Direction = Azure::Network::Mgmt::V2017_10_01::Models::Direction - Protocol = Azure::Network::Mgmt::V2017_10_01::Models::Protocol NextHopType = Azure::Network::Mgmt::V2017_10_01::Models::NextHopType - PcProtocol = Azure::Network::Mgmt::V2017_10_01::Models::PcProtocol + Origin = Azure::Network::Mgmt::V2017_10_01::Models::Origin PcStatus = Azure::Network::Mgmt::V2017_10_01::Models::PcStatus PcError = Azure::Network::Mgmt::V2017_10_01::Models::PcError - Origin = Azure::Network::Mgmt::V2017_10_01::Models::Origin - Severity = Azure::Network::Mgmt::V2017_10_01::Models::Severity + ConnectionState = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionState IssueType = Azure::Network::Mgmt::V2017_10_01::Models::IssueType ConnectionStatus = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionStatus - ConnectionState = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionState - EvaluationState = Azure::Network::Mgmt::V2017_10_01::Models::EvaluationState - VirtualNetworkPeeringState = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkPeeringState VirtualNetworkGatewayType = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayType - VpnType = Azure::Network::Mgmt::V2017_10_01::Models::VpnType - VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySkuName + Protocol = Azure::Network::Mgmt::V2017_10_01::Models::Protocol + VirtualNetworkPeeringState = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkPeeringState VirtualNetworkGatewaySkuTier = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySkuTier + VpnType = Azure::Network::Mgmt::V2017_10_01::Models::VpnType + EvaluationState = Azure::Network::Mgmt::V2017_10_01::Models::EvaluationState + ProcessorArchitecture = Azure::Network::Mgmt::V2017_10_01::Models::ProcessorArchitecture VpnClientProtocol = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientProtocol BgpPeerState = Azure::Network::Mgmt::V2017_10_01::Models::BgpPeerState - ProcessorArchitecture = Azure::Network::Mgmt::V2017_10_01::Models::ProcessorArchitecture + VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySkuName AuthenticationMethod = Azure::Network::Mgmt::V2017_10_01::Models::AuthenticationMethod - VirtualNetworkGatewayConnectionStatus = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionStatus + Severity = Azure::Network::Mgmt::V2017_10_01::Models::Severity VirtualNetworkGatewayConnectionType = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionType IpsecEncryption = Azure::Network::Mgmt::V2017_10_01::Models::IpsecEncryption IpsecIntegrity = Azure::Network::Mgmt::V2017_10_01::Models::IpsecIntegrity - IkeEncryption = Azure::Network::Mgmt::V2017_10_01::Models::IkeEncryption + VirtualNetworkGatewayConnectionStatus = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionStatus IkeIntegrity = Azure::Network::Mgmt::V2017_10_01::Models::IkeIntegrity DhGroup = Azure::Network::Mgmt::V2017_10_01::Models::DhGroup PfsGroup = Azure::Network::Mgmt::V2017_10_01::Models::PfsGroup + IkeEncryption = Azure::Network::Mgmt::V2017_10_01::Models::IkeEncryption end class NetworkManagementClass - attr_reader :application_gateways, :application_security_groups, :available_endpoint_services, :express_route_circuit_authorizations, :express_route_circuit_peerings, :express_route_circuits, :express_route_service_providers, :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, :configurable, :base_url, :options, :model_classes + attr_reader :inbound_nat_rules, :load_balancer_load_balancing_rules, :load_balancer_network_interfaces, :load_balancer_probes, :network_interface_ipconfigurations, :network_interface_load_balancers, :network_security_groups, :security_rules, :default_security_rules, :network_watchers, :packet_captures, :connection_monitors, :route_filters, :route_filter_rules, :route_tables, :routes, :bgp_service_communities, :usages, :virtual_networks, :subnets, :virtual_network_peerings, :virtual_network_gateways, :network_interfaces, :public_ipaddresses, :local_network_gateways, :virtual_network_gateway_connections, :operations, :application_gateways, :application_security_groups, :available_endpoint_services, :express_route_circuit_authorizations, :express_route_circuit_peerings, :express_route_circuits, :express_route_service_providers, :load_balancers, :load_balancer_backend_address_pools, :load_balancer_frontend_ipconfigurations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -360,21 +360,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) - @application_gateways = @client_1.application_gateways - @application_security_groups = @client_1.application_security_groups - @available_endpoint_services = @client_1.available_endpoint_services - @express_route_circuit_authorizations = @client_1.express_route_circuit_authorizations - @express_route_circuit_peerings = @client_1.express_route_circuit_peerings - @express_route_circuits = @client_1.express_route_circuits - @express_route_service_providers = @client_1.express_route_service_providers - @load_balancers = @client_1.load_balancers - @load_balancer_backend_address_pools = @client_1.load_balancer_backend_address_pools - @load_balancer_frontend_ipconfigurations = @client_1.load_balancer_frontend_ipconfigurations @inbound_nat_rules = @client_1.inbound_nat_rules @load_balancer_load_balancing_rules = @client_1.load_balancer_load_balancing_rules @load_balancer_network_interfaces = @client_1.load_balancer_network_interfaces @load_balancer_probes = @client_1.load_balancer_probes - @network_interfaces = @client_1.network_interfaces @network_interface_ipconfigurations = @client_1.network_interface_ipconfigurations @network_interface_load_balancers = @client_1.network_interface_load_balancers @network_security_groups = @client_1.network_security_groups @@ -383,8 +372,6 @@ def initialize(configurable, base_url=nil, options=nil) @network_watchers = @client_1.network_watchers @packet_captures = @client_1.packet_captures @connection_monitors = @client_1.connection_monitors - @operations = @client_1.operations - @public_ipaddresses = @client_1.public_ipaddresses @route_filters = @client_1.route_filters @route_filter_rules = @client_1.route_filter_rules @route_tables = @client_1.route_tables @@ -395,8 +382,21 @@ def initialize(configurable, base_url=nil, options=nil) @subnets = @client_1.subnets @virtual_network_peerings = @client_1.virtual_network_peerings @virtual_network_gateways = @client_1.virtual_network_gateways - @virtual_network_gateway_connections = @client_1.virtual_network_gateway_connections + @network_interfaces = @client_1.network_interfaces + @public_ipaddresses = @client_1.public_ipaddresses @local_network_gateways = @client_1.local_network_gateways + @virtual_network_gateway_connections = @client_1.virtual_network_gateway_connections + @operations = @client_1.operations + @application_gateways = @client_1.application_gateways + @application_security_groups = @client_1.application_security_groups + @available_endpoint_services = @client_1.available_endpoint_services + @express_route_circuit_authorizations = @client_1.express_route_circuit_authorizations + @express_route_circuit_peerings = @client_1.express_route_circuit_peerings + @express_route_circuits = @client_1.express_route_circuits + @express_route_service_providers = @client_1.express_route_service_providers + @load_balancers = @client_1.load_balancers + @load_balancer_backend_address_pools = @client_1.load_balancer_backend_address_pools + @load_balancer_frontend_ipconfigurations = @client_1.load_balancer_frontend_ipconfigurations @model_classes = ModelClasses.new end @@ -441,30 +441,123 @@ def virtual_network_tap def service_endpoint_policy_definition Azure::Network::Mgmt::V2017_03_30::Models::ServiceEndpointPolicyDefinition end - def service_endpoint_policy - Azure::Network::Mgmt::V2017_03_30::Models::ServiceEndpointPolicy - end def ipconfiguration_profile Azure::Network::Mgmt::V2017_03_30::Models::IPConfigurationProfile end - def topology_association - Azure::Network::Mgmt::V2017_10_01::Models::TopologyAssociation - end - def sub_resource - Azure::Network::Mgmt::V2017_10_01::Models::SubResource + def service_endpoint_policy + Azure::Network::Mgmt::V2017_03_30::Models::ServiceEndpointPolicy end - def topology_resource - Azure::Network::Mgmt::V2017_10_01::Models::TopologyResource + def application_gateway_backend_address + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendAddress end - def operation_list_result - Azure::Network::Mgmt::V2017_10_01::Models::OperationListResult + def public_ipaddress_sku + Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressSku end - def operation - Azure::Network::Mgmt::V2017_10_01::Models::Operation + def public_ipaddress_list_result + Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressListResult + end + def public_ipaddress_dns_settings + Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressDnsSettings + end + def network_interface_list_result + Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceListResult end def network_interface_dns_settings Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceDnsSettings end + def network_interface_ipconfiguration_list_result + Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceIPConfigurationListResult + end + def service_endpoint_properties_format + Azure::Network::Mgmt::V2017_10_01::Models::ServiceEndpointPropertiesFormat + end + def application_security_group + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationSecurityGroup + end + def resource_navigation_link + Azure::Network::Mgmt::V2017_10_01::Models::ResourceNavigationLink + end + def security_rule + Azure::Network::Mgmt::V2017_10_01::Models::SecurityRule + end + def operation_display + Azure::Network::Mgmt::V2017_10_01::Models::OperationDisplay + end + def ipconfiguration + Azure::Network::Mgmt::V2017_10_01::Models::IPConfiguration + end + def operation + Azure::Network::Mgmt::V2017_10_01::Models::Operation + end + def public_ipaddress + Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddress + end + def operation_list_result + Azure::Network::Mgmt::V2017_10_01::Models::OperationListResult + end + def application_gateway_backend_address_pool + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendAddressPool + end + def backend_address_pool + Azure::Network::Mgmt::V2017_10_01::Models::BackendAddressPool + end + def inbound_nat_rule + Azure::Network::Mgmt::V2017_10_01::Models::InboundNatRule + end + def network_interface_ipconfiguration + Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceIPConfiguration + end + def network_interface + Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterface + end + def network_security_group + Azure::Network::Mgmt::V2017_10_01::Models::NetworkSecurityGroup + end + def route + Azure::Network::Mgmt::V2017_10_01::Models::Route + end + def route_table + Azure::Network::Mgmt::V2017_10_01::Models::RouteTable + end + def log_specification + Azure::Network::Mgmt::V2017_10_01::Models::LogSpecification + end + def subnet + Azure::Network::Mgmt::V2017_10_01::Models::Subnet + end + def security_rule_protocol + Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleProtocol + end + def frontend_ipconfiguration + Azure::Network::Mgmt::V2017_10_01::Models::FrontendIPConfiguration + end + def security_rule_access + Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleAccess + end + def ipallocation_method + Azure::Network::Mgmt::V2017_10_01::Models::IPAllocationMethod + end + def public_ipaddress_sku_name + Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressSkuName + end + def transport_protocol + Azure::Network::Mgmt::V2017_10_01::Models::TransportProtocol + end + def route_next_hop_type + Azure::Network::Mgmt::V2017_10_01::Models::RouteNextHopType + end + def security_rule_direction + Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleDirection + end + def error + Azure::Network::Mgmt::V2017_10_01::Models::Error + end + def topology_association + Azure::Network::Mgmt::V2017_10_01::Models::TopologyAssociation + end + def topology_resource + Azure::Network::Mgmt::V2017_10_01::Models::TopologyResource + end def operation_properties_format_service_specification Azure::Network::Mgmt::V2017_10_01::Models::OperationPropertiesFormatServiceSpecification end @@ -480,9 +573,6 @@ def connection_shared_key def inbound_nat_rule_list_result Azure::Network::Mgmt::V2017_10_01::Models::InboundNatRuleListResult end - def public_ipaddress_sku - Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressSku - end def load_balancer_backend_address_pool_list_result Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerBackendAddressPoolListResult end @@ -507,9 +597,6 @@ def load_balancer_probe_list_result def bgp_peer_status_list_result Azure::Network::Mgmt::V2017_10_01::Models::BgpPeerStatusListResult end - def network_interface_list_result - Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceListResult - end def virtual_network_gateway_list_result Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayListResult end @@ -519,9 +606,6 @@ def error_details def application_gateway_backend_health_http_settings Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthHttpSettings end - def error - Azure::Network::Mgmt::V2017_10_01::Models::Error - end def application_gateway_backend_health Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealth end @@ -531,24 +615,24 @@ def azure_async_operation_result def application_gateway_ssl_policy Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPolicy end - def network_interface_ipconfiguration_list_result - Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceIPConfigurationListResult - end def gateway_route Azure::Network::Mgmt::V2017_10_01::Models::GatewayRoute end + def sub_resource + Azure::Network::Mgmt::V2017_10_01::Models::SubResource + end def network_interface_load_balancer_list_result Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceLoadBalancerListResult end - def bgp_settings - Azure::Network::Mgmt::V2017_10_01::Models::BgpSettings - end def effective_network_security_group_association Azure::Network::Mgmt::V2017_10_01::Models::EffectiveNetworkSecurityGroupAssociation end def virtual_network_gateway_sku Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySku end + def bgp_settings + Azure::Network::Mgmt::V2017_10_01::Models::BgpSettings + end def effective_network_security_rule Azure::Network::Mgmt::V2017_10_01::Models::EffectiveNetworkSecurityRule end @@ -585,14 +669,8 @@ def security_rule_list_result def application_gateway_firewall_rule_group Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRuleGroup end - def network_security_group_list_result - Azure::Network::Mgmt::V2017_10_01::Models::NetworkSecurityGroupListResult - end - def application_gateway_available_waf_rule_sets_result - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult - end - def log_specification - Azure::Network::Mgmt::V2017_10_01::Models::LogSpecification + def usage + Azure::Network::Mgmt::V2017_10_01::Models::Usage end def address_space Azure::Network::Mgmt::V2017_10_01::Models::AddressSpace @@ -600,9 +678,6 @@ def address_space def network_watcher_list_result Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcherListResult end - def resource - Azure::Network::Mgmt::V2017_10_01::Models::Resource - end def topology_parameters Azure::Network::Mgmt::V2017_10_01::Models::TopologyParameters end @@ -627,9 +702,6 @@ def authorization_list_result def topology Azure::Network::Mgmt::V2017_10_01::Models::Topology end - def usage_name - Azure::Network::Mgmt::V2017_10_01::Models::UsageName - end def verification_ipflow_parameters Azure::Network::Mgmt::V2017_10_01::Models::VerificationIPFlowParameters end @@ -693,9 +765,6 @@ def route_filter_rule_list_result def packet_capture_storage_location Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureStorageLocation end - def public_ipaddress_list_result - Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressListResult - end def packet_capture_filter Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureFilter end @@ -705,9 +774,6 @@ def virtual_network_gateway_list_connections_result def packet_capture_parameters Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureParameters end - def service_endpoint_properties_format - Azure::Network::Mgmt::V2017_10_01::Models::ServiceEndpointPropertiesFormat - end def packet_capture Azure::Network::Mgmt::V2017_10_01::Models::PacketCapture end @@ -717,9 +783,6 @@ def virtual_network_gateway_connection_list_result def packet_capture_result Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureResult end - def application_gateway_backend_address - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendAddress - end def packet_capture_list_result Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureListResult end @@ -819,69 +882,66 @@ def vpn_device_script_parameters def azure_reachability_report_location Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReportLocation end - def public_ipaddress_dns_settings - Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressDnsSettings - end def azure_reachability_report_parameters Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReportParameters end def application_gateway_connection_draining Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayConnectionDraining end + def usage_name + Azure::Network::Mgmt::V2017_10_01::Models::UsageName + end def azure_reachability_report_latency_info Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReportLatencyInfo end - def vpn_client_parameters - Azure::Network::Mgmt::V2017_10_01::Models::VpnClientParameters - end def azure_reachability_report_item Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReportItem end def virtual_network_usage Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkUsage end + def vpn_client_parameters + Azure::Network::Mgmt::V2017_10_01::Models::VpnClientParameters + end def azure_reachability_report Azure::Network::Mgmt::V2017_10_01::Models::AzureReachabilityReport end - def application_gateway_firewall_rule - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRule - end def available_providers_list_parameters Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersListParameters end def tags_object Azure::Network::Mgmt::V2017_10_01::Models::TagsObject end + def application_gateway_firewall_rule + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRule + end def available_providers_list_city Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersListCity end - def express_route_circuit_stats - Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitStats - end def available_providers_list_state Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersListState end def express_route_circuit_arp_table Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitArpTable end + def express_route_circuit_stats + Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitStats + end def available_providers_list_country Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersListCountry end - def route_table_list_result - Azure::Network::Mgmt::V2017_10_01::Models::RouteTableListResult - end def available_providers_list Azure::Network::Mgmt::V2017_10_01::Models::AvailableProvidersList end def local_network_gateway_list_result Azure::Network::Mgmt::V2017_10_01::Models::LocalNetworkGatewayListResult end + def route_table_list_result + Azure::Network::Mgmt::V2017_10_01::Models::RouteTableListResult + end def connection_monitor_source Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorSource end - def application_gateway_backend_health_pool - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthPool - end def connection_monitor_destination Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorDestination end @@ -891,29 +951,26 @@ def application_gateway_firewall_disabled_rule_group def connection_monitor_parameters Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorParameters end - def usage - Azure::Network::Mgmt::V2017_10_01::Models::Usage - end def connection_monitor Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitor end def express_route_circuit_routes_table_summary Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitRoutesTableSummary end + def application_gateway_backend_health_pool + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthPool + end def connection_monitor_result Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorResult end - def tunnel_connection_health - Azure::Network::Mgmt::V2017_10_01::Models::TunnelConnectionHealth - end - def connection_monitor_list_result - Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorListResult + def resource + Azure::Network::Mgmt::V2017_10_01::Models::Resource end def subnet_list_result Azure::Network::Mgmt::V2017_10_01::Models::SubnetListResult end - def connection_state_snapshot - Azure::Network::Mgmt::V2017_10_01::Models::ConnectionStateSnapshot + def tunnel_connection_health + Azure::Network::Mgmt::V2017_10_01::Models::TunnelConnectionHealth end def route_filter_list_result Azure::Network::Mgmt::V2017_10_01::Models::RouteFilterListResult @@ -921,95 +978,59 @@ def route_filter_list_result def connection_monitor_query_result Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorQueryResult end - def express_route_circuit_peering_list_result - Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringListResult + def connection_state_snapshot + Azure::Network::Mgmt::V2017_10_01::Models::ConnectionStateSnapshot end - def operation_display - Azure::Network::Mgmt::V2017_10_01::Models::OperationDisplay + def connection_monitor_list_result + Azure::Network::Mgmt::V2017_10_01::Models::ConnectionMonitorListResult end def vpn_client_configuration Azure::Network::Mgmt::V2017_10_01::Models::VpnClientConfiguration end - def availability - Azure::Network::Mgmt::V2017_10_01::Models::Availability - end - def backend_address_pool - Azure::Network::Mgmt::V2017_10_01::Models::BackendAddressPool - end - def inbound_nat_rule - Azure::Network::Mgmt::V2017_10_01::Models::InboundNatRule - end - def application_security_group - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationSecurityGroup - end - def security_rule - Azure::Network::Mgmt::V2017_10_01::Models::SecurityRule - end - def network_interface - Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterface - end - def network_security_group - Azure::Network::Mgmt::V2017_10_01::Models::NetworkSecurityGroup - end - def route - Azure::Network::Mgmt::V2017_10_01::Models::Route - end - def route_table - Azure::Network::Mgmt::V2017_10_01::Models::RouteTable - end - def public_ipaddress - Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddress - end - def ipconfiguration - Azure::Network::Mgmt::V2017_10_01::Models::IPConfiguration - end - def resource_navigation_link - Azure::Network::Mgmt::V2017_10_01::Models::ResourceNavigationLink - end - def subnet - Azure::Network::Mgmt::V2017_10_01::Models::Subnet - end - def network_interface_ipconfiguration - Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceIPConfiguration - end - def application_gateway_backend_address_pool - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendAddressPool + def express_route_circuit_peering_list_result + Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringListResult end def application_gateway_backend_http_settings Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHttpSettings end - def application_gateway_ipconfiguration - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayIPConfiguration + def availability + Azure::Network::Mgmt::V2017_10_01::Models::Availability end def application_gateway_authentication_certificate Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAuthenticationCertificate end - def application_gateway_ssl_certificate - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslCertificate + def application_gateway_ipconfiguration + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayIPConfiguration end def application_gateway_frontend_ipconfiguration Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendIPConfiguration end - def application_gateway_frontend_port - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendPort + def application_gateway_ssl_certificate + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslCertificate end def application_gateway_http_listener Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayHttpListener end - def application_gateway_path_rule - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayPathRule + def application_gateway_frontend_port + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendPort end def application_gateway_probe Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProbe end - def application_gateway_request_routing_rule - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRequestRoutingRule + def application_gateway_path_rule + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayPathRule end def application_gateway_redirect_configuration Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRedirectConfiguration end - def application_gateway_url_path_map - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayUrlPathMap + def application_gateway_request_routing_rule + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRequestRoutingRule + end + def network_security_group_list_result + Azure::Network::Mgmt::V2017_10_01::Models::NetworkSecurityGroupListResult + end + def application_gateway_available_waf_rule_sets_result + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult end def application_gateway Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGateway @@ -1017,8 +1038,8 @@ def application_gateway def application_gateway_firewall_rule_set Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRuleSet end - def application_gateway_available_ssl_options - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableSslOptions + def application_gateway_url_path_map + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayUrlPathMap end def application_gateway_ssl_predefined_policy Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPredefinedPolicy @@ -1026,8 +1047,8 @@ def application_gateway_ssl_predefined_policy def endpoint_service_result Azure::Network::Mgmt::V2017_10_01::Models::EndpointServiceResult end - def express_route_circuit_authorization - Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitAuthorization + def application_gateway_available_ssl_options + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableSslOptions end def route_filter_rule Azure::Network::Mgmt::V2017_10_01::Models::RouteFilterRule @@ -1035,8 +1056,8 @@ def route_filter_rule def express_route_circuit_peering Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeering end - def route_filter - Azure::Network::Mgmt::V2017_10_01::Models::RouteFilter + def express_route_circuit_authorization + Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitAuthorization end def express_route_circuit Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuit @@ -1044,11 +1065,8 @@ def express_route_circuit def express_route_service_provider Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteServiceProvider end - def frontend_ipconfiguration - Azure::Network::Mgmt::V2017_10_01::Models::FrontendIPConfiguration - end - def load_balancing_rule - Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancingRule + def route_filter + Azure::Network::Mgmt::V2017_10_01::Models::RouteFilter end def probe Azure::Network::Mgmt::V2017_10_01::Models::Probe @@ -1056,8 +1074,8 @@ def probe def inbound_nat_pool Azure::Network::Mgmt::V2017_10_01::Models::InboundNatPool end - def outbound_nat_rule - Azure::Network::Mgmt::V2017_10_01::Models::OutboundNatRule + def load_balancing_rule + Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancingRule end def load_balancer Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancer @@ -1065,8 +1083,8 @@ def load_balancer def network_watcher Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcher end - def patch_route_filter_rule - Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilterRule + def outbound_nat_rule + Azure::Network::Mgmt::V2017_10_01::Models::OutboundNatRule end def patch_route_filter Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilter @@ -1074,8 +1092,8 @@ def patch_route_filter def bgp_service_community Azure::Network::Mgmt::V2017_10_01::Models::BgpServiceCommunity end - def virtual_network_peering - Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkPeering + def patch_route_filter_rule + Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilterRule end def virtual_network Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetwork @@ -1083,8 +1101,8 @@ def virtual_network def virtual_network_gateway_ipconfiguration Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayIPConfiguration end - def vpn_client_root_certificate - Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRootCertificate + def virtual_network_peering + Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkPeering end def vpn_client_revoked_certificate Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRevokedCertificate @@ -1092,8 +1110,8 @@ def vpn_client_revoked_certificate def virtual_network_gateway Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGateway end - def local_network_gateway - Azure::Network::Mgmt::V2017_10_01::Models::LocalNetworkGateway + def vpn_client_root_certificate + Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRootCertificate end def virtual_network_gateway_connection Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnection @@ -1101,32 +1119,8 @@ def virtual_network_gateway_connection def virtual_network_gateway_connection_list_entity Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionListEntity end - def transport_protocol - Azure::Network::Mgmt::V2017_10_01::Models::TransportProtocol - end - def ipallocation_method - Azure::Network::Mgmt::V2017_10_01::Models::IPAllocationMethod - end - def ipversion - Azure::Network::Mgmt::V2017_10_01::Models::IPVersion - end - def security_rule_protocol - Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleProtocol - end - def security_rule_access - Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleAccess - end - def security_rule_direction - Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleDirection - end - def route_next_hop_type - Azure::Network::Mgmt::V2017_10_01::Models::RouteNextHopType - end - def public_ipaddress_sku_name - Azure::Network::Mgmt::V2017_10_01::Models::PublicIPAddressSkuName - end - def application_gateway_protocol - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProtocol + def local_network_gateway + Azure::Network::Mgmt::V2017_10_01::Models::LocalNetworkGateway end def application_gateway_cookie_based_affinity Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayCookieBasedAffinity @@ -1134,8 +1128,8 @@ def application_gateway_cookie_based_affinity def application_gateway_backend_health_server_health Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthServerHealth end - def application_gateway_sku_name - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySkuName + def ipversion + Azure::Network::Mgmt::V2017_10_01::Models::IPVersion end def application_gateway_tier Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayTier @@ -1143,14 +1137,23 @@ def application_gateway_tier def application_gateway_ssl_protocol Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslProtocol end + def application_gateway_sku_name + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySkuName + end + def application_gateway_protocol + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProtocol + end + def application_gateway_ssl_cipher_suite + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslCipherSuite + end def application_gateway_ssl_policy_type Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPolicyType end def application_gateway_ssl_policy_name Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPolicyName end - def application_gateway_ssl_cipher_suite - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslCipherSuite + def application_gateway_operational_state + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayOperationalState end def application_gateway_request_routing_rule_type Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRequestRoutingRuleType @@ -1158,8 +1161,8 @@ def application_gateway_request_routing_rule_type def application_gateway_redirect_type Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRedirectType end - def application_gateway_operational_state - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayOperationalState + def express_route_circuit_peering_advertised_public_prefix_state + Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState end def application_gateway_firewall_mode Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallMode @@ -1167,8 +1170,8 @@ def application_gateway_firewall_mode def authorization_use_status Azure::Network::Mgmt::V2017_10_01::Models::AuthorizationUseStatus end - def express_route_circuit_peering_advertised_public_prefix_state - Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState + def express_route_circuit_peering_state + Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringState end def access Azure::Network::Mgmt::V2017_10_01::Models::Access @@ -1176,8 +1179,8 @@ def access def express_route_circuit_peering_type Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringType end - def express_route_circuit_peering_state - Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeeringState + def service_provider_provisioning_state + Azure::Network::Mgmt::V2017_10_01::Models::ServiceProviderProvisioningState end def express_route_circuit_sku_tier Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitSkuTier @@ -1185,8 +1188,8 @@ def express_route_circuit_sku_tier def express_route_circuit_sku_family Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitSkuFamily end - def service_provider_provisioning_state - Azure::Network::Mgmt::V2017_10_01::Models::ServiceProviderProvisioningState + def probe_protocol + Azure::Network::Mgmt::V2017_10_01::Models::ProbeProtocol end def load_balancer_sku_name Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerSkuName @@ -1194,8 +1197,8 @@ def load_balancer_sku_name def load_distribution Azure::Network::Mgmt::V2017_10_01::Models::LoadDistribution end - def probe_protocol - Azure::Network::Mgmt::V2017_10_01::Models::ProbeProtocol + def effective_route_source + Azure::Network::Mgmt::V2017_10_01::Models::EffectiveRouteSource end def network_operation_status Azure::Network::Mgmt::V2017_10_01::Models::NetworkOperationStatus @@ -1203,8 +1206,8 @@ def network_operation_status def effective_security_rule_protocol Azure::Network::Mgmt::V2017_10_01::Models::EffectiveSecurityRuleProtocol end - def effective_route_source - Azure::Network::Mgmt::V2017_10_01::Models::EffectiveRouteSource + def association_type + Azure::Network::Mgmt::V2017_10_01::Models::AssociationType end def effective_route_state Azure::Network::Mgmt::V2017_10_01::Models::EffectiveRouteState @@ -1212,20 +1215,17 @@ def effective_route_state def provisioning_state Azure::Network::Mgmt::V2017_10_01::Models::ProvisioningState end - def association_type - Azure::Network::Mgmt::V2017_10_01::Models::AssociationType + def pc_protocol + Azure::Network::Mgmt::V2017_10_01::Models::PcProtocol end def direction Azure::Network::Mgmt::V2017_10_01::Models::Direction end - def protocol - Azure::Network::Mgmt::V2017_10_01::Models::Protocol - end def next_hop_type Azure::Network::Mgmt::V2017_10_01::Models::NextHopType end - def pc_protocol - Azure::Network::Mgmt::V2017_10_01::Models::PcProtocol + def origin + Azure::Network::Mgmt::V2017_10_01::Models::Origin end def pc_status Azure::Network::Mgmt::V2017_10_01::Models::PcStatus @@ -1233,11 +1233,8 @@ def pc_status def pc_error Azure::Network::Mgmt::V2017_10_01::Models::PcError end - def origin - Azure::Network::Mgmt::V2017_10_01::Models::Origin - end - def severity - Azure::Network::Mgmt::V2017_10_01::Models::Severity + def connection_state + Azure::Network::Mgmt::V2017_10_01::Models::ConnectionState end def issue_type Azure::Network::Mgmt::V2017_10_01::Models::IssueType @@ -1245,26 +1242,26 @@ def issue_type def connection_status Azure::Network::Mgmt::V2017_10_01::Models::ConnectionStatus end - def connection_state - Azure::Network::Mgmt::V2017_10_01::Models::ConnectionState + def virtual_network_gateway_type + Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayType end - def evaluation_state - Azure::Network::Mgmt::V2017_10_01::Models::EvaluationState + def protocol + Azure::Network::Mgmt::V2017_10_01::Models::Protocol end def virtual_network_peering_state Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkPeeringState end - def virtual_network_gateway_type - Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayType + def virtual_network_gateway_sku_tier + Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySkuTier end def vpn_type Azure::Network::Mgmt::V2017_10_01::Models::VpnType end - def virtual_network_gateway_sku_name - Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySkuName + def evaluation_state + Azure::Network::Mgmt::V2017_10_01::Models::EvaluationState end - def virtual_network_gateway_sku_tier - Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySkuTier + def processor_architecture + Azure::Network::Mgmt::V2017_10_01::Models::ProcessorArchitecture end def vpn_client_protocol Azure::Network::Mgmt::V2017_10_01::Models::VpnClientProtocol @@ -1272,14 +1269,14 @@ def vpn_client_protocol def bgp_peer_state Azure::Network::Mgmt::V2017_10_01::Models::BgpPeerState end - def processor_architecture - Azure::Network::Mgmt::V2017_10_01::Models::ProcessorArchitecture + def virtual_network_gateway_sku_name + Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySkuName end def authentication_method Azure::Network::Mgmt::V2017_10_01::Models::AuthenticationMethod end - def virtual_network_gateway_connection_status - Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionStatus + def severity + Azure::Network::Mgmt::V2017_10_01::Models::Severity end def virtual_network_gateway_connection_type Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionType @@ -1290,8 +1287,8 @@ def ipsec_encryption def ipsec_integrity Azure::Network::Mgmt::V2017_10_01::Models::IpsecIntegrity end - def ike_encryption - Azure::Network::Mgmt::V2017_10_01::Models::IkeEncryption + def virtual_network_gateway_connection_status + Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionStatus end def ike_integrity Azure::Network::Mgmt::V2017_10_01::Models::IkeIntegrity @@ -1302,6 +1299,9 @@ def dh_group def pfs_group Azure::Network::Mgmt::V2017_10_01::Models::PfsGroup end + def ike_encryption + Azure::Network::Mgmt::V2017_10_01::Models::IkeEncryption + end end end end diff --git a/azure_sdk/lib/v2018_03_01/modules/policy_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/policy_profile_module.rb index ce036fadcb..bfa0fa8eb4 100644 --- a/azure_sdk/lib/v2018_03_01/modules/policy_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/policy_profile_module.rb @@ -7,8 +7,8 @@ module Azure::Profiles::V2018_03_01 module Policy module Mgmt - PolicyDefinitions = Azure::Policy::Mgmt::V2016_12_01::PolicyDefinitions PolicyAssignments = Azure::Policy::Mgmt::V2016_12_01::PolicyAssignments + PolicyDefinitions = Azure::Policy::Mgmt::V2016_12_01::PolicyDefinitions module Models PolicyAssignment = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignment @@ -20,7 +20,7 @@ module Models end class PolicyManagementClass - attr_reader :policy_definitions, :policy_assignments, :configurable, :base_url, :options, :model_classes + attr_reader :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 @@ -30,8 +30,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @policy_definitions = @client_0.policy_definitions @policy_assignments = @client_0.policy_assignments + @policy_definitions = @client_0.policy_definitions @model_classes = ModelClasses.new end diff --git a/azure_sdk/lib/v2018_03_01/modules/resources_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/resources_profile_module.rb index 5d392db3cf..273941eabd 100644 --- a/azure_sdk/lib/v2018_03_01/modules/resources_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/resources_profile_module.rb @@ -7,22 +7,23 @@ module Azure::Profiles::V2018_03_01 module Resources module Mgmt + Resources = Azure::Resources::Mgmt::V2018_02_01::Resources Deployments = Azure::Resources::Mgmt::V2018_02_01::Deployments Providers = Azure::Resources::Mgmt::V2018_02_01::Providers - Resources = Azure::Resources::Mgmt::V2018_02_01::Resources ResourceGroups = Azure::Resources::Mgmt::V2018_02_01::ResourceGroups Tags = Azure::Resources::Mgmt::V2018_02_01::Tags DeploymentOperations = Azure::Resources::Mgmt::V2018_02_01::DeploymentOperations module Models Plan = Azure::Resources::Mgmt::V2018_02_01::Models::Plan + ResourceIdentityType = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceIdentityType Sku = Azure::Resources::Mgmt::V2018_02_01::Models::Sku + Dependency = Azure::Resources::Mgmt::V2018_02_01::Models::Dependency GenericResourceFilter = Azure::Resources::Mgmt::V2018_02_01::Models::GenericResourceFilter Identity = Azure::Resources::Mgmt::V2018_02_01::Models::Identity TemplateLink = Azure::Resources::Mgmt::V2018_02_01::Models::TemplateLink ParametersLink = Azure::Resources::Mgmt::V2018_02_01::Models::ParametersLink OnErrorDeployment = Azure::Resources::Mgmt::V2018_02_01::Models::OnErrorDeployment - ResourceListResult = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceListResult Deployment = Azure::Resources::Mgmt::V2018_02_01::Models::Deployment ResourceGroupProperties = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceGroupProperties ResourceManagementErrorWithDetails = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceManagementErrorWithDetails @@ -31,7 +32,6 @@ module Models ResourceGroupPatchable = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceGroupPatchable Provider = Azure::Resources::Mgmt::V2018_02_01::Models::Provider ResourceGroupListResult = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceGroupListResult - Dependency = Azure::Resources::Mgmt::V2018_02_01::Models::Dependency ResourcesMoveInfo = Azure::Resources::Mgmt::V2018_02_01::Models::ResourcesMoveInfo DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentPropertiesExtended ExportTemplateRequest = Azure::Resources::Mgmt::V2018_02_01::Models::ExportTemplateRequest @@ -58,17 +58,17 @@ module Models DebugSetting = Azure::Resources::Mgmt::V2018_02_01::Models::DebugSetting Resource = Azure::Resources::Mgmt::V2018_02_01::Models::Resource DeploymentListResult = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentListResult - SubResource = Azure::Resources::Mgmt::V2018_02_01::Models::SubResource ProviderResourceType = Azure::Resources::Mgmt::V2018_02_01::Models::ProviderResourceType ResourceGroupExportResult = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceGroupExportResult GenericResource = Azure::Resources::Mgmt::V2018_02_01::Models::GenericResource DeploymentMode = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentMode OnErrorDeploymentType = Azure::Resources::Mgmt::V2018_02_01::Models::OnErrorDeploymentType - ResourceIdentityType = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceIdentityType + SubResource = Azure::Resources::Mgmt::V2018_02_01::Models::SubResource + ResourceListResult = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceListResult end class ResourcesManagementClass - attr_reader :deployments, :providers, :resources, :resource_groups, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes + attr_reader :resources, :deployments, :providers, :resource_groups, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -78,9 +78,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @resources = @client_0.resources @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 @@ -105,9 +105,15 @@ class ModelClasses def plan Azure::Resources::Mgmt::V2018_02_01::Models::Plan end + def resource_identity_type + Azure::Resources::Mgmt::V2018_02_01::Models::ResourceIdentityType + end def sku Azure::Resources::Mgmt::V2018_02_01::Models::Sku end + def dependency + Azure::Resources::Mgmt::V2018_02_01::Models::Dependency + end def generic_resource_filter Azure::Resources::Mgmt::V2018_02_01::Models::GenericResourceFilter end @@ -123,9 +129,6 @@ def parameters_link def on_error_deployment Azure::Resources::Mgmt::V2018_02_01::Models::OnErrorDeployment end - def resource_list_result - Azure::Resources::Mgmt::V2018_02_01::Models::ResourceListResult - end def deployment Azure::Resources::Mgmt::V2018_02_01::Models::Deployment end @@ -150,9 +153,6 @@ def provider def resource_group_list_result Azure::Resources::Mgmt::V2018_02_01::Models::ResourceGroupListResult end - def dependency - Azure::Resources::Mgmt::V2018_02_01::Models::Dependency - end def resources_move_info Azure::Resources::Mgmt::V2018_02_01::Models::ResourcesMoveInfo end @@ -231,9 +231,6 @@ def resource def deployment_list_result Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentListResult end - def sub_resource - Azure::Resources::Mgmt::V2018_02_01::Models::SubResource - end def provider_resource_type Azure::Resources::Mgmt::V2018_02_01::Models::ProviderResourceType end @@ -249,8 +246,11 @@ def deployment_mode def on_error_deployment_type Azure::Resources::Mgmt::V2018_02_01::Models::OnErrorDeploymentType end - def resource_identity_type - Azure::Resources::Mgmt::V2018_02_01::Models::ResourceIdentityType + def sub_resource + Azure::Resources::Mgmt::V2018_02_01::Models::SubResource + end + def resource_list_result + Azure::Resources::Mgmt::V2018_02_01::Models::ResourceListResult end end end diff --git a/azure_sdk/lib/v2018_03_01/modules/storage_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/storage_profile_module.rb index 3fab44e57f..78a04b8a55 100644 --- a/azure_sdk/lib/v2018_03_01/modules/storage_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/storage_profile_module.rb @@ -7,42 +7,42 @@ module Azure::Profiles::V2018_03_01 module Storage module Mgmt - StorageAccounts = Azure::Storage::Mgmt::V2016_01_01::StorageAccounts UsageOperations = Azure::Storage::Mgmt::V2016_01_01::UsageOperations + StorageAccounts = Azure::Storage::Mgmt::V2016_01_01::StorageAccounts module Models - StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters - StorageAccountKey = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey - Sku = Azure::Storage::Mgmt::V2016_01_01::Models::Sku - StorageAccountListResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult EncryptionService = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService StorageAccountListKeysResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult Encryption = Azure::Storage::Mgmt::V2016_01_01::Models::Encryption StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters Endpoints = Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints - StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters CustomDomain = Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain - UsageName = Azure::Storage::Mgmt::V2016_01_01::Models::UsageName - StorageAccountCreateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters - Usage = Azure::Storage::Mgmt::V2016_01_01::Models::Usage EncryptionServices = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices UsageListResult = Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult - 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 + Sku = Azure::Storage::Mgmt::V2016_01_01::Models::Sku + UsageName = Azure::Storage::Mgmt::V2016_01_01::Models::UsageName SkuTier = Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier - AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + StorageAccount = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount Kind = Azure::Storage::Mgmt::V2016_01_01::Models::Kind - ProvisioningState = Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState + AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + Usage = Azure::Storage::Mgmt::V2016_01_01::Models::Usage 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 + StorageAccountCreateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters + StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters + Resource = Azure::Storage::Mgmt::V2016_01_01::Models::Resource + Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason + ProvisioningState = Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState + CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult + SkuName = Azure::Storage::Mgmt::V2016_01_01::Models::SkuName + StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters + StorageAccountKey = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey + StorageAccountListResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult end class StorageManagementClass - attr_reader :storage_accounts, :usage_operations, :configurable, :base_url, :options, :model_classes + attr_reader :usage_operations, :storage_accounts, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -52,8 +52,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @storage_accounts = @client_0.storage_accounts @usage_operations = @client_0.usage_operations + @storage_accounts = @client_0.storage_accounts @model_classes = ModelClasses.new end @@ -72,18 +72,6 @@ def method_missing(method, *args) end class ModelClasses - def storage_account_check_name_availability_parameters - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters - end - def storage_account_key - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey - end - def sku - Azure::Storage::Mgmt::V2016_01_01::Models::Sku - end - def storage_account_list_result - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult - end def encryption_service Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService end @@ -99,53 +87,35 @@ def storage_account_regenerate_key_parameters def endpoints Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints end - def storage_account_update_parameters - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters - end def custom_domain Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain end - def usage_name - Azure::Storage::Mgmt::V2016_01_01::Models::UsageName - end - def storage_account_create_parameters - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters - end - def usage - Azure::Storage::Mgmt::V2016_01_01::Models::Usage - end def encryption_services Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices end def usage_list_result Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult end - def check_name_availability_result - Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult - end - def resource - Azure::Storage::Mgmt::V2016_01_01::Models::Resource - end - def storage_account - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount - end - def reason - Azure::Storage::Mgmt::V2016_01_01::Models::Reason + def sku + Azure::Storage::Mgmt::V2016_01_01::Models::Sku end - def sku_name - Azure::Storage::Mgmt::V2016_01_01::Models::SkuName + def usage_name + Azure::Storage::Mgmt::V2016_01_01::Models::UsageName end def sku_tier Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier end - def access_tier - Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + def storage_account + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount end def kind Azure::Storage::Mgmt::V2016_01_01::Models::Kind end - def provisioning_state - Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState + def access_tier + Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + end + def usage + Azure::Storage::Mgmt::V2016_01_01::Models::Usage end def account_status Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus @@ -156,6 +126,36 @@ def key_permission def usage_unit Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit end + def storage_account_create_parameters + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters + end + def storage_account_update_parameters + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters + end + def resource + Azure::Storage::Mgmt::V2016_01_01::Models::Resource + end + def reason + Azure::Storage::Mgmt::V2016_01_01::Models::Reason + end + def provisioning_state + Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState + end + def check_name_availability_result + Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult + end + def sku_name + Azure::Storage::Mgmt::V2016_01_01::Models::SkuName + end + def storage_account_check_name_availability_parameters + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters + end + def storage_account_key + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey + end + def storage_account_list_result + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult + end end end end diff --git a/azure_sdk/lib/v2018_03_01/modules/subscriptions_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/subscriptions_profile_module.rb index 3a8fbae856..9307b784ac 100644 --- a/azure_sdk/lib/v2018_03_01/modules/subscriptions_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/subscriptions_profile_module.rb @@ -8,26 +8,26 @@ module Azure::Profiles::V2018_03_01 module Subscriptions module Mgmt Operations = Azure::Subscriptions::Mgmt::V2016_06_01::Operations - Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants + Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions module Models - 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 OperationDisplay = Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationDisplay - SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult Operation = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Operation - Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription + TenantIdDescription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription OperationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationListResult + SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies + TenantListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult LocationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult SubscriptionState = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState + Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription SpendingLimit = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit + SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult end class SubscriptionsManagementClass - attr_reader :operations, :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :tenants, :subscriptions, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -38,8 +38,8 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @operations = @client_0.operations - @subscriptions = @client_0.subscriptions @tenants = @client_0.tenants + @subscriptions = @client_0.subscriptions @model_classes = ModelClasses.new end @@ -58,42 +58,42 @@ def method_missing(method, *args) end class ModelClasses - 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 - def subscription_policies - Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies - end def operation_display Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationDisplay end - def subscription_list_result - Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult - end def operation Azure::Subscriptions::Mgmt::V2016_06_01::Models::Operation end - def subscription - Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription + def tenant_id_description + Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription end def operation_list_result Azure::Subscriptions::Mgmt::V2016_06_01::Models::OperationListResult end + def subscription_policies + Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies + end + def tenant_list_result + Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult + end def location_list_result Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult end def subscription_state Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState end + def subscription + Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription + end def spending_limit Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit end + def subscription_list_result + Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult + end end end end diff --git a/azure_sdk/lib/v2018_03_01/modules/web_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/web_profile_module.rb index e71982c8ba..e4214cc6c2 100644 --- a/azure_sdk/lib/v2018_03_01/modules/web_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/web_profile_module.rb @@ -7,75 +7,58 @@ module Azure::Profiles::V2018_03_01 module Web module Mgmt + ResourceHealthMetadataOperations = Azure::Web::Mgmt::V2016_03_01::ResourceHealthMetadataOperations + BillingMeters = Azure::Web::Mgmt::V2016_03_01::BillingMeters + Provider = Azure::Web::Mgmt::V2016_03_01::Provider Certificates = Azure::Web::Mgmt::V2016_03_01::Certificates DeletedWebApps = Azure::Web::Mgmt::V2016_03_01::DeletedWebApps Diagnostics = Azure::Web::Mgmt::V2016_03_01::Diagnostics - Provider = Azure::Web::Mgmt::V2016_03_01::Provider Recommendations = Azure::Web::Mgmt::V2016_03_01::Recommendations - ResourceHealthMetadataOperations = Azure::Web::Mgmt::V2016_03_01::ResourceHealthMetadataOperations - BillingMeters = Azure::Web::Mgmt::V2016_03_01::BillingMeters WebApps = Azure::Web::Mgmt::V2016_08_01::WebApps AppServiceEnvironments = Azure::Web::Mgmt::V2016_09_01::AppServiceEnvironments AppServicePlans = Azure::Web::Mgmt::V2016_09_01::AppServicePlans module Models - DefaultErrorResponseErrorDetailsItem = Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponseErrorDetailsItem - DefaultErrorResponseError = Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponseError - CertificateCollection = Azure::Web::Mgmt::V2016_03_01::Models::CertificateCollection - DefaultErrorResponse = Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponse - CsmOperationDisplay = Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDisplay - Dimension = Azure::Web::Mgmt::V2016_03_01::Models::Dimension - ValidateResponse = Azure::Web::Mgmt::V2016_03_01::Models::ValidateResponse - MetricAvailability = Azure::Web::Mgmt::V2016_03_01::Models::MetricAvailability - MetricSpecification = Azure::Web::Mgmt::V2016_03_01::Models::MetricSpecification - ServiceSpecification = Azure::Web::Mgmt::V2016_03_01::Models::ServiceSpecification - SourceControlCollection = Azure::Web::Mgmt::V2016_03_01::Models::SourceControlCollection - CsmOperationDescriptionProperties = Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDescriptionProperties - ResourceNameAvailabilityRequest = Azure::Web::Mgmt::V2016_03_01::Models::ResourceNameAvailabilityRequest - CsmOperationDescription = Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDescription - PremierAddOnOfferCollection = Azure::Web::Mgmt::V2016_03_01::Models::PremierAddOnOfferCollection - CsmOperationCollection = Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationCollection - ApplicationStack = Azure::Web::Mgmt::V2016_03_01::Models::ApplicationStack - StackMajorVersion = Azure::Web::Mgmt::V2016_03_01::Models::StackMajorVersion DeploymentLocations = Azure::Web::Mgmt::V2016_03_01::Models::DeploymentLocations + Dimension = Azure::Web::Mgmt::V2016_03_01::Models::Dimension NameIdentifier = Azure::Web::Mgmt::V2016_03_01::Models::NameIdentifier + MetricSpecification = Azure::Web::Mgmt::V2016_03_01::Models::MetricSpecification GlobalCsmSkuDescription = Azure::Web::Mgmt::V2016_03_01::Models::GlobalCsmSkuDescription GeoRegionCollection = Azure::Web::Mgmt::V2016_03_01::Models::GeoRegionCollection DeletedSite = Azure::Web::Mgmt::V2016_03_01::Models::DeletedSite DeletedWebAppCollection = Azure::Web::Mgmt::V2016_03_01::Models::DeletedWebAppCollection ValidateResponseError = Azure::Web::Mgmt::V2016_03_01::Models::ValidateResponseError - Solution = Azure::Web::Mgmt::V2016_03_01::Models::Solution DetectorAbnormalTimePeriod = Azure::Web::Mgmt::V2016_03_01::Models::DetectorAbnormalTimePeriod - ResourceNameAvailability = Azure::Web::Mgmt::V2016_03_01::Models::ResourceNameAvailability AbnormalTimePeriod = Azure::Web::Mgmt::V2016_03_01::Models::AbnormalTimePeriod - HostingEnvironmentDeploymentInfo = Azure::Web::Mgmt::V2016_03_01::Models::HostingEnvironmentDeploymentInfo + Solution = Azure::Web::Mgmt::V2016_03_01::Models::Solution DiagnosticMetricSample = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticMetricSample + ResourceNameAvailability = Azure::Web::Mgmt::V2016_03_01::Models::ResourceNameAvailability DiagnosticMetricSet = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticMetricSet - DataSource = Azure::Web::Mgmt::V2016_03_01::Models::DataSource + HostingEnvironmentDeploymentInfo = Azure::Web::Mgmt::V2016_03_01::Models::HostingEnvironmentDeploymentInfo ResponseMetaData = Azure::Web::Mgmt::V2016_03_01::Models::ResponseMetaData AnalysisData = Azure::Web::Mgmt::V2016_03_01::Models::AnalysisData - CsmMoveResourceEnvelope = Azure::Web::Mgmt::V2016_03_01::Models::CsmMoveResourceEnvelope + DataSource = Azure::Web::Mgmt::V2016_03_01::Models::DataSource DataTableResponseColumn = Azure::Web::Mgmt::V2016_03_01::Models::DataTableResponseColumn - AppServiceEnvironment = Azure::Web::Mgmt::V2016_03_01::Models::AppServiceEnvironment DataTableResponseObject = Azure::Web::Mgmt::V2016_03_01::Models::DataTableResponseObject ValidateRequest = Azure::Web::Mgmt::V2016_03_01::Models::ValidateRequest - DetectorInfo = Azure::Web::Mgmt::V2016_03_01::Models::DetectorInfo + CsmMoveResourceEnvelope = Azure::Web::Mgmt::V2016_03_01::Models::CsmMoveResourceEnvelope Rendering = Azure::Web::Mgmt::V2016_03_01::Models::Rendering + AppServiceEnvironment = Azure::Web::Mgmt::V2016_03_01::Models::AppServiceEnvironment DiagnosticData = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticData + DetectorInfo = Azure::Web::Mgmt::V2016_03_01::Models::DetectorInfo BillingMeterCollection = Azure::Web::Mgmt::V2016_03_01::Models::BillingMeterCollection DetectorResponseCollection = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponseCollection ResourceHealthMetadataCollection = Azure::Web::Mgmt::V2016_03_01::Models::ResourceHealthMetadataCollection - SkuInfos = Azure::Web::Mgmt::V2016_03_01::Models::SkuInfos DiagnosticAnalysisCollection = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticAnalysisCollection + SkuInfos = Azure::Web::Mgmt::V2016_03_01::Models::SkuInfos RecommendationCollection = Azure::Web::Mgmt::V2016_03_01::Models::RecommendationCollection DiagnosticCategoryCollection = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticCategoryCollection - DiagnosticDetectorCollection = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticDetectorCollection ApplicationStackCollection = Azure::Web::Mgmt::V2016_03_01::Models::ApplicationStackCollection + DiagnosticDetectorCollection = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticDetectorCollection StackMinorVersion = Azure::Web::Mgmt::V2016_03_01::Models::StackMinorVersion - Certificate = Azure::Web::Mgmt::V2016_03_01::Models::Certificate CertificatePatchResource = Azure::Web::Mgmt::V2016_03_01::Models::CertificatePatchResource - DetectorDefinition = Azure::Web::Mgmt::V2016_03_01::Models::DetectorDefinition AnalysisDefinition = Azure::Web::Mgmt::V2016_03_01::Models::AnalysisDefinition + DetectorDefinition = Azure::Web::Mgmt::V2016_03_01::Models::DetectorDefinition DetectorResponse = Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponse DiagnosticAnalysis = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticAnalysis DiagnosticCategory = Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticCategory @@ -87,11 +70,11 @@ module Models GeoRegion = Azure::Web::Mgmt::V2016_03_01::Models::GeoRegion PremierAddOnOffer = Azure::Web::Mgmt::V2016_03_01::Models::PremierAddOnOffer SourceControl = Azure::Web::Mgmt::V2016_03_01::Models::SourceControl - VnetParameters = Azure::Web::Mgmt::V2016_03_01::Models::VnetParameters VnetValidationTestFailure = Azure::Web::Mgmt::V2016_03_01::Models::VnetValidationTestFailure VnetValidationFailureDetails = Azure::Web::Mgmt::V2016_03_01::Models::VnetValidationFailureDetails + VnetParameters = Azure::Web::Mgmt::V2016_03_01::Models::VnetParameters KeyVaultSecretStatus = Azure::Web::Mgmt::V2016_03_01::Models::KeyVaultSecretStatus - IssueType = Azure::Web::Mgmt::V2016_03_01::Models::IssueType + ServiceSpecification = Azure::Web::Mgmt::V2016_03_01::Models::ServiceSpecification SolutionType = Azure::Web::Mgmt::V2016_03_01::Models::SolutionType RenderingType = Azure::Web::Mgmt::V2016_03_01::Models::RenderingType ResourceScopeType = Azure::Web::Mgmt::V2016_03_01::Models::ResourceScopeType @@ -99,9 +82,31 @@ module Models Channels = Azure::Web::Mgmt::V2016_03_01::Models::Channels AppServicePlanRestrictions = Azure::Web::Mgmt::V2016_03_01::Models::AppServicePlanRestrictions InAvailabilityReasonType = Azure::Web::Mgmt::V2016_03_01::Models::InAvailabilityReasonType - CheckNameResourceTypes = Azure::Web::Mgmt::V2016_03_01::Models::CheckNameResourceTypes + Certificate = Azure::Web::Mgmt::V2016_03_01::Models::Certificate ValidateResourceTypes = Azure::Web::Mgmt::V2016_03_01::Models::ValidateResourceTypes + CheckNameResourceTypes = Azure::Web::Mgmt::V2016_03_01::Models::CheckNameResourceTypes SkuName = Azure::Web::Mgmt::V2016_03_01::Models::SkuName + IssueType = Azure::Web::Mgmt::V2016_03_01::Models::IssueType + DefaultErrorResponseErrorDetailsItem = Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponseErrorDetailsItem + DefaultErrorResponseError = Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponseError + CertificateCollection = Azure::Web::Mgmt::V2016_03_01::Models::CertificateCollection + DefaultErrorResponse = Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponse + CsmOperationDisplay = Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDisplay + ValidateResponse = Azure::Web::Mgmt::V2016_03_01::Models::ValidateResponse + MetricAvailability = Azure::Web::Mgmt::V2016_03_01::Models::MetricAvailability + SourceControlCollection = Azure::Web::Mgmt::V2016_03_01::Models::SourceControlCollection + CsmOperationDescriptionProperties = Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDescriptionProperties + ResourceNameAvailabilityRequest = Azure::Web::Mgmt::V2016_03_01::Models::ResourceNameAvailabilityRequest + CsmOperationDescription = Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDescription + PremierAddOnOfferCollection = Azure::Web::Mgmt::V2016_03_01::Models::PremierAddOnOfferCollection + CsmOperationCollection = Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationCollection + ApplicationStack = Azure::Web::Mgmt::V2016_03_01::Models::ApplicationStack + StackMajorVersion = Azure::Web::Mgmt::V2016_03_01::Models::StackMajorVersion + IdentifierCollection = Azure::Web::Mgmt::V2016_08_01::Models::IdentifierCollection + MSDeployProvisioningState = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployProvisioningState + CustomHostNameDnsRecordType = Azure::Web::Mgmt::V2016_08_01::Models::CustomHostNameDnsRecordType + Deployment = Azure::Web::Mgmt::V2016_08_01::Models::Deployment + Snapshot = Azure::Web::Mgmt::V2016_08_01::Models::Snapshot AzureTableStorageApplicationLogsConfig = Azure::Web::Mgmt::V2016_08_01::Models::AzureTableStorageApplicationLogsConfig ApplicationLogsConfig = Azure::Web::Mgmt::V2016_08_01::Models::ApplicationLogsConfig DatabaseBackupSetting = Azure::Web::Mgmt::V2016_08_01::Models::DatabaseBackupSetting @@ -113,7 +118,6 @@ module Models CsmPublishingProfileOptions = Azure::Web::Mgmt::V2016_08_01::Models::CsmPublishingProfileOptions WebAppInstanceCollection = Azure::Web::Mgmt::V2016_08_01::Models::WebAppInstanceCollection PublicCertificateCollection = Azure::Web::Mgmt::V2016_08_01::Models::PublicCertificateCollection - IdentifierCollection = Azure::Web::Mgmt::V2016_08_01::Models::IdentifierCollection TriggeredWebJobCollection = Azure::Web::Mgmt::V2016_08_01::Models::TriggeredWebJobCollection EnabledConfig = Azure::Web::Mgmt::V2016_08_01::Models::EnabledConfig TriggeredJobHistoryCollection = Azure::Web::Mgmt::V2016_08_01::Models::TriggeredJobHistoryCollection @@ -146,7 +150,6 @@ module Models ConnectionStringDictionary = Azure::Web::Mgmt::V2016_08_01::Models::ConnectionStringDictionary ContinuousWebJob = Azure::Web::Mgmt::V2016_08_01::Models::ContinuousWebJob CustomHostnameAnalysisResult = Azure::Web::Mgmt::V2016_08_01::Models::CustomHostnameAnalysisResult - Deployment = Azure::Web::Mgmt::V2016_08_01::Models::Deployment FunctionEnvelope = Azure::Web::Mgmt::V2016_08_01::Models::FunctionEnvelope FunctionSecrets = Azure::Web::Mgmt::V2016_08_01::Models::FunctionSecrets HostNameBinding = Azure::Web::Mgmt::V2016_08_01::Models::HostNameBinding @@ -175,28 +178,23 @@ module Models SiteSourceControl = Azure::Web::Mgmt::V2016_08_01::Models::SiteSourceControl SlotConfigNamesResource = Azure::Web::Mgmt::V2016_08_01::Models::SlotConfigNamesResource SlotDifference = Azure::Web::Mgmt::V2016_08_01::Models::SlotDifference - Snapshot = Azure::Web::Mgmt::V2016_08_01::Models::Snapshot StorageMigrationOptions = Azure::Web::Mgmt::V2016_08_01::Models::StorageMigrationOptions StorageMigrationResponse = Azure::Web::Mgmt::V2016_08_01::Models::StorageMigrationResponse StringDictionary = Azure::Web::Mgmt::V2016_08_01::Models::StringDictionary TriggeredJobRun = Azure::Web::Mgmt::V2016_08_01::Models::TriggeredJobRun - TriggeredJobHistory = Azure::Web::Mgmt::V2016_08_01::Models::TriggeredJobHistory TriggeredWebJob = Azure::Web::Mgmt::V2016_08_01::Models::TriggeredWebJob - WebJob = Azure::Web::Mgmt::V2016_08_01::Models::WebJob + TriggeredJobHistory = Azure::Web::Mgmt::V2016_08_01::Models::TriggeredJobHistory LogLevel = Azure::Web::Mgmt::V2016_08_01::Models::LogLevel - BackupItemStatus = Azure::Web::Mgmt::V2016_08_01::Models::BackupItemStatus + WebJob = Azure::Web::Mgmt::V2016_08_01::Models::WebJob DatabaseType = Azure::Web::Mgmt::V2016_08_01::Models::DatabaseType - FrequencyUnit = Azure::Web::Mgmt::V2016_08_01::Models::FrequencyUnit + BackupItemStatus = Azure::Web::Mgmt::V2016_08_01::Models::BackupItemStatus BackupRestoreOperationType = Azure::Web::Mgmt::V2016_08_01::Models::BackupRestoreOperationType ContinuousWebJobStatus = Azure::Web::Mgmt::V2016_08_01::Models::ContinuousWebJobStatus - WebJobType = Azure::Web::Mgmt::V2016_08_01::Models::WebJobType - PublishingProfileFormat = Azure::Web::Mgmt::V2016_08_01::Models::PublishingProfileFormat - DnsVerificationTestResult = Azure::Web::Mgmt::V2016_08_01::Models::DnsVerificationTestResult AzureResourceType = Azure::Web::Mgmt::V2016_08_01::Models::AzureResourceType - CustomHostNameDnsRecordType = Azure::Web::Mgmt::V2016_08_01::Models::CustomHostNameDnsRecordType + PublishingProfileFormat = Azure::Web::Mgmt::V2016_08_01::Models::PublishingProfileFormat HostNameType = Azure::Web::Mgmt::V2016_08_01::Models::HostNameType MSDeployLogEntryType = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployLogEntryType - MSDeployProvisioningState = Azure::Web::Mgmt::V2016_08_01::Models::MSDeployProvisioningState + FrequencyUnit = Azure::Web::Mgmt::V2016_08_01::Models::FrequencyUnit MySqlMigrationType = Azure::Web::Mgmt::V2016_08_01::Models::MySqlMigrationType PublicCertificateLocation = Azure::Web::Mgmt::V2016_08_01::Models::PublicCertificateLocation UnauthenticatedClientAction = Azure::Web::Mgmt::V2016_08_01::Models::UnauthenticatedClientAction @@ -204,72 +202,43 @@ module Models CloneAbilityResult = Azure::Web::Mgmt::V2016_08_01::Models::CloneAbilityResult SiteExtensionType = Azure::Web::Mgmt::V2016_08_01::Models::SiteExtensionType TriggeredWebJobStatus = Azure::Web::Mgmt::V2016_08_01::Models::TriggeredWebJobStatus - HostingEnvironmentProfile = Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentProfile - VirtualIPMapping = Azure::Web::Mgmt::V2016_09_01::Models::VirtualIPMapping - IpSecurityRestriction = Azure::Web::Mgmt::V2016_09_01::Models::IpSecurityRestriction - VirtualNetworkProfile = Azure::Web::Mgmt::V2016_09_01::Models::VirtualNetworkProfile - ApiDefinitionInfo = Azure::Web::Mgmt::V2016_09_01::Models::ApiDefinitionInfo - StampCapacity = Azure::Web::Mgmt::V2016_09_01::Models::StampCapacity - CorsSettings = Azure::Web::Mgmt::V2016_09_01::Models::CorsSettings - NameValuePair = Azure::Web::Mgmt::V2016_09_01::Models::NameValuePair - AutoHealCustomAction = Azure::Web::Mgmt::V2016_09_01::Models::AutoHealCustomAction - AppServiceEnvironmentCollection = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentCollection - AutoHealActions = Azure::Web::Mgmt::V2016_09_01::Models::AutoHealActions - HostingEnvironmentDiagnostics = Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentDiagnostics - SlowRequestsBasedTrigger = Azure::Web::Mgmt::V2016_09_01::Models::SlowRequestsBasedTrigger - SlotSwapStatus = Azure::Web::Mgmt::V2016_09_01::Models::SlotSwapStatus - SkuCapacity = Azure::Web::Mgmt::V2016_09_01::Models::SkuCapacity - CloningInfo = Azure::Web::Mgmt::V2016_09_01::Models::CloningInfo - SkuDescription = Azure::Web::Mgmt::V2016_09_01::Models::SkuDescription - AddressResponse = Azure::Web::Mgmt::V2016_09_01::Models::AddressResponse - SkuInfoCollection = Azure::Web::Mgmt::V2016_09_01::Models::SkuInfoCollection - WorkerPool = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPool - NetworkAccessControlEntry = Azure::Web::Mgmt::V2016_09_01::Models::NetworkAccessControlEntry - ResourceCollection = Azure::Web::Mgmt::V2016_09_01::Models::ResourceCollection - WorkerPoolCollection = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolCollection - HybridConnectionCollection = Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionCollection - Resource = Azure::Web::Mgmt::V2016_09_01::Models::Resource - ErrorEntity = Azure::Web::Mgmt::V2016_09_01::Models::ErrorEntity + WebJobType = Azure::Web::Mgmt::V2016_08_01::Models::WebJobType + DnsVerificationTestResult = Azure::Web::Mgmt::V2016_08_01::Models::DnsVerificationTestResult + RampUpRule = Azure::Web::Mgmt::V2016_09_01::Models::RampUpRule + VirtualDirectory = Azure::Web::Mgmt::V2016_09_01::Models::VirtualDirectory + HandlerMapping = Azure::Web::Mgmt::V2016_09_01::Models::HandlerMapping + ConnStringInfo = Azure::Web::Mgmt::V2016_09_01::Models::ConnStringInfo + SiteConfig = Azure::Web::Mgmt::V2016_09_01::Models::SiteConfig ResourceMetricProperty = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricProperty - SnapshotRecoveryTarget = Azure::Web::Mgmt::V2016_09_01::Models::SnapshotRecoveryTarget - MetricAvailabilily = Azure::Web::Mgmt::V2016_09_01::Models::MetricAvailabilily - ResourceMetricAvailability = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricAvailability + ResourceMetricValue = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricValue + SkuCapacity = Azure::Web::Mgmt::V2016_09_01::Models::SkuCapacity ResourceMetric = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetric - CsmUsageQuotaCollection = Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuotaCollection - StatusCodesBasedTrigger = Azure::Web::Mgmt::V2016_09_01::Models::StatusCodesBasedTrigger - LocalizableString = Azure::Web::Mgmt::V2016_09_01::Models::LocalizableString - RequestsBasedTrigger = Azure::Web::Mgmt::V2016_09_01::Models::RequestsBasedTrigger + Identifier = Azure::Web::Mgmt::V2016_09_01::Models::Identifier ResourceMetricCollection = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection - AutoHealTriggers = Azure::Web::Mgmt::V2016_09_01::Models::AutoHealTriggers - ManagedServiceIdentity = Azure::Web::Mgmt::V2016_09_01::Models::ManagedServiceIdentity - AutoHealRules = Azure::Web::Mgmt::V2016_09_01::Models::AutoHealRules - SkuInfo = Azure::Web::Mgmt::V2016_09_01::Models::SkuInfo - SiteLimits = Azure::Web::Mgmt::V2016_09_01::Models::SiteLimits - UsageCollection = Azure::Web::Mgmt::V2016_09_01::Models::UsageCollection - RampUpRule = Azure::Web::Mgmt::V2016_09_01::Models::RampUpRule + VirtualNetworkProfile = Azure::Web::Mgmt::V2016_09_01::Models::VirtualNetworkProfile + ResourceMetricDefinitionCollection = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection + VirtualIPMapping = Azure::Web::Mgmt::V2016_09_01::Models::VirtualIPMapping + WebAppCollection = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection + NetworkAccessControlEntry = Azure::Web::Mgmt::V2016_09_01::Models::NetworkAccessControlEntry AppServicePlanCollection = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlanCollection - Experiments = Azure::Web::Mgmt::V2016_09_01::Models::Experiments ResourceMetricName = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricName - VirtualDirectory = Azure::Web::Mgmt::V2016_09_01::Models::VirtualDirectory - ResourceMetricDefinitionCollection = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection - VirtualApplication = Azure::Web::Mgmt::V2016_09_01::Models::VirtualApplication - Capability = Azure::Web::Mgmt::V2016_09_01::Models::Capability - HandlerMapping = Azure::Web::Mgmt::V2016_09_01::Models::HandlerMapping - Operation = Azure::Web::Mgmt::V2016_09_01::Models::Operation + SlotSwapStatus = Azure::Web::Mgmt::V2016_09_01::Models::SlotSwapStatus + OperationStatus = Azure::Web::Mgmt::V2016_09_01::Models::OperationStatus + CorsSettings = Azure::Web::Mgmt::V2016_09_01::Models::CorsSettings + AutoHealTriggers = Azure::Web::Mgmt::V2016_09_01::Models::AutoHealTriggers + Experiments = Azure::Web::Mgmt::V2016_09_01::Models::Experiments SiteMachineKey = Azure::Web::Mgmt::V2016_09_01::Models::SiteMachineKey - CsmUsageQuota = Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuota - ConnStringInfo = Azure::Web::Mgmt::V2016_09_01::Models::ConnStringInfo - StampCapacityCollection = Azure::Web::Mgmt::V2016_09_01::Models::StampCapacityCollection - SiteConfig = Azure::Web::Mgmt::V2016_09_01::Models::SiteConfig - ProxyOnlyResource = Azure::Web::Mgmt::V2016_09_01::Models::ProxyOnlyResource HostNameSslState = Azure::Web::Mgmt::V2016_09_01::Models::HostNameSslState - WebAppCollection = Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection - ResourceMetricValue = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricValue - AppServiceEnvironmentResource = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource - AppServiceEnvironmentPatchResource = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentPatchResource - MetricDefinition = Azure::Web::Mgmt::V2016_09_01::Models::MetricDefinition - Usage = Azure::Web::Mgmt::V2016_09_01::Models::Usage - WorkerPoolResource = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource + SkuDescription = Azure::Web::Mgmt::V2016_09_01::Models::SkuDescription + WorkerPool = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPool + ProxyOnlyResource = Azure::Web::Mgmt::V2016_09_01::Models::ProxyOnlyResource + AutoHealActions = Azure::Web::Mgmt::V2016_09_01::Models::AutoHealActions + VirtualApplication = Azure::Web::Mgmt::V2016_09_01::Models::VirtualApplication + Capability = Azure::Web::Mgmt::V2016_09_01::Models::Capability + StampCapacity = Azure::Web::Mgmt::V2016_09_01::Models::StampCapacity + SiteLimits = Azure::Web::Mgmt::V2016_09_01::Models::SiteLimits + IpSecurityRestriction = Azure::Web::Mgmt::V2016_09_01::Models::IpSecurityRestriction + NameValuePair = Azure::Web::Mgmt::V2016_09_01::Models::NameValuePair VnetRoute = Azure::Web::Mgmt::V2016_09_01::Models::VnetRoute VnetInfo = Azure::Web::Mgmt::V2016_09_01::Models::VnetInfo VnetGateway = Azure::Web::Mgmt::V2016_09_01::Models::VnetGateway @@ -277,19 +246,11 @@ module Models SnapshotRecoveryRequest = Azure::Web::Mgmt::V2016_09_01::Models::SnapshotRecoveryRequest ResourceMetricDefinition = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinition PushSettings = Azure::Web::Mgmt::V2016_09_01::Models::PushSettings - Identifier = Azure::Web::Mgmt::V2016_09_01::Models::Identifier HybridConnectionKey = Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionKey HybridConnection = Azure::Web::Mgmt::V2016_09_01::Models::HybridConnection Site = Azure::Web::Mgmt::V2016_09_01::Models::Site AppServicePlan = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlan - AppServicePlanPatchResource = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlanPatchResource - HybridConnectionLimits = Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionLimits - ProvisioningState = Azure::Web::Mgmt::V2016_09_01::Models::ProvisioningState - HostingEnvironmentStatus = Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentStatus - InternalLoadBalancingMode = Azure::Web::Mgmt::V2016_09_01::Models::InternalLoadBalancingMode - ComputeModeOptions = Azure::Web::Mgmt::V2016_09_01::Models::ComputeModeOptions - WorkerSizeOptions = Azure::Web::Mgmt::V2016_09_01::Models::WorkerSizeOptions - AccessControlEntryAction = Azure::Web::Mgmt::V2016_09_01::Models::AccessControlEntryAction + Resource = Azure::Web::Mgmt::V2016_09_01::Models::Resource RouteType = Azure::Web::Mgmt::V2016_09_01::Models::RouteType ManagedServiceIdentityType = Azure::Web::Mgmt::V2016_09_01::Models::ManagedServiceIdentityType AutoHealActionType = Azure::Web::Mgmt::V2016_09_01::Models::AutoHealActionType @@ -299,15 +260,54 @@ module Models SiteLoadBalancing = Azure::Web::Mgmt::V2016_09_01::Models::SiteLoadBalancing SupportedTlsVersions = Azure::Web::Mgmt::V2016_09_01::Models::SupportedTlsVersions SslState = Azure::Web::Mgmt::V2016_09_01::Models::SslState + Operation = Azure::Web::Mgmt::V2016_09_01::Models::Operation HostType = Azure::Web::Mgmt::V2016_09_01::Models::HostType UsageState = Azure::Web::Mgmt::V2016_09_01::Models::UsageState SiteAvailabilityState = Azure::Web::Mgmt::V2016_09_01::Models::SiteAvailabilityState + HostingEnvironmentStatus = Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentStatus + InternalLoadBalancingMode = Azure::Web::Mgmt::V2016_09_01::Models::InternalLoadBalancingMode + ComputeModeOptions = Azure::Web::Mgmt::V2016_09_01::Models::ComputeModeOptions + WorkerSizeOptions = Azure::Web::Mgmt::V2016_09_01::Models::WorkerSizeOptions + AccessControlEntryAction = Azure::Web::Mgmt::V2016_09_01::Models::AccessControlEntryAction StatusOptions = Azure::Web::Mgmt::V2016_09_01::Models::StatusOptions - OperationStatus = Azure::Web::Mgmt::V2016_09_01::Models::OperationStatus + ProvisioningState = Azure::Web::Mgmt::V2016_09_01::Models::ProvisioningState + AppServiceEnvironmentCollection = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentCollection + HostingEnvironmentDiagnostics = Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentDiagnostics + AddressResponse = Azure::Web::Mgmt::V2016_09_01::Models::AddressResponse + SkuInfoCollection = Azure::Web::Mgmt::V2016_09_01::Models::SkuInfoCollection + ResourceCollection = Azure::Web::Mgmt::V2016_09_01::Models::ResourceCollection + WorkerPoolCollection = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolCollection + HybridConnectionCollection = Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionCollection + MetricAvailabilily = Azure::Web::Mgmt::V2016_09_01::Models::MetricAvailabilily + SkuInfo = Azure::Web::Mgmt::V2016_09_01::Models::SkuInfo + UsageCollection = Azure::Web::Mgmt::V2016_09_01::Models::UsageCollection + ManagedServiceIdentity = Azure::Web::Mgmt::V2016_09_01::Models::ManagedServiceIdentity + AppServiceEnvironmentResource = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource + AppServiceEnvironmentPatchResource = Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentPatchResource + StampCapacityCollection = Azure::Web::Mgmt::V2016_09_01::Models::StampCapacityCollection + WorkerPoolResource = Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource + AppServicePlanPatchResource = Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlanPatchResource + MetricDefinition = Azure::Web::Mgmt::V2016_09_01::Models::MetricDefinition + HybridConnectionLimits = Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionLimits + HostingEnvironmentProfile = Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentProfile + SnapshotRecoveryTarget = Azure::Web::Mgmt::V2016_09_01::Models::SnapshotRecoveryTarget + ResourceMetricAvailability = Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricAvailability + LocalizableString = Azure::Web::Mgmt::V2016_09_01::Models::LocalizableString + CloningInfo = Azure::Web::Mgmt::V2016_09_01::Models::CloningInfo + CsmUsageQuota = Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuota + ApiDefinitionInfo = Azure::Web::Mgmt::V2016_09_01::Models::ApiDefinitionInfo + CsmUsageQuotaCollection = Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuotaCollection + AutoHealCustomAction = Azure::Web::Mgmt::V2016_09_01::Models::AutoHealCustomAction + ErrorEntity = Azure::Web::Mgmt::V2016_09_01::Models::ErrorEntity + SlowRequestsBasedTrigger = Azure::Web::Mgmt::V2016_09_01::Models::SlowRequestsBasedTrigger + StatusCodesBasedTrigger = Azure::Web::Mgmt::V2016_09_01::Models::StatusCodesBasedTrigger + RequestsBasedTrigger = Azure::Web::Mgmt::V2016_09_01::Models::RequestsBasedTrigger + AutoHealRules = Azure::Web::Mgmt::V2016_09_01::Models::AutoHealRules + Usage = Azure::Web::Mgmt::V2016_09_01::Models::Usage end class WebManagementClass - attr_reader :certificates, :deleted_web_apps, :diagnostics, :provider, :recommendations, :resource_health_metadata_operations, :billing_meters, :web_apps, :app_service_environments, :app_service_plans, :configurable, :base_url, :options, :model_classes + attr_reader :resource_health_metadata_operations, :billing_meters, :provider, :certificates, :deleted_web_apps, :diagnostics, :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 @@ -317,13 +317,13 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @resource_health_metadata_operations = @client_0.resource_health_metadata_operations + @billing_meters = @client_0.billing_meters + @provider = @client_0.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 - @resource_health_metadata_operations = @client_0.resource_health_metadata_operations - @billing_meters = @client_0.billing_meters @client_1 = Azure::Web::Mgmt::V2016_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) if(@client_1.respond_to?(:subscription_id)) @@ -361,66 +361,18 @@ def method_missing(method, *args) end class ModelClasses - def default_error_response_error_details_item - Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponseErrorDetailsItem - end - def default_error_response_error - Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponseError - end - def certificate_collection - Azure::Web::Mgmt::V2016_03_01::Models::CertificateCollection - end - def default_error_response - Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponse - end - def csm_operation_display - Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDisplay + def deployment_locations + Azure::Web::Mgmt::V2016_03_01::Models::DeploymentLocations end def dimension Azure::Web::Mgmt::V2016_03_01::Models::Dimension end - def validate_response - Azure::Web::Mgmt::V2016_03_01::Models::ValidateResponse - end - def metric_availability - Azure::Web::Mgmt::V2016_03_01::Models::MetricAvailability + def name_identifier + Azure::Web::Mgmt::V2016_03_01::Models::NameIdentifier end def metric_specification Azure::Web::Mgmt::V2016_03_01::Models::MetricSpecification end - def service_specification - Azure::Web::Mgmt::V2016_03_01::Models::ServiceSpecification - end - def source_control_collection - Azure::Web::Mgmt::V2016_03_01::Models::SourceControlCollection - end - def csm_operation_description_properties - Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDescriptionProperties - end - def resource_name_availability_request - Azure::Web::Mgmt::V2016_03_01::Models::ResourceNameAvailabilityRequest - end - def csm_operation_description - Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDescription - end - def premier_add_on_offer_collection - Azure::Web::Mgmt::V2016_03_01::Models::PremierAddOnOfferCollection - end - def csm_operation_collection - Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationCollection - end - def application_stack - Azure::Web::Mgmt::V2016_03_01::Models::ApplicationStack - end - def stack_major_version - Azure::Web::Mgmt::V2016_03_01::Models::StackMajorVersion - end - def deployment_locations - Azure::Web::Mgmt::V2016_03_01::Models::DeploymentLocations - end - def name_identifier - Azure::Web::Mgmt::V2016_03_01::Models::NameIdentifier - end def global_csm_sku_description Azure::Web::Mgmt::V2016_03_01::Models::GlobalCsmSkuDescription end @@ -436,29 +388,26 @@ def deleted_web_app_collection def validate_response_error Azure::Web::Mgmt::V2016_03_01::Models::ValidateResponseError end - def solution - Azure::Web::Mgmt::V2016_03_01::Models::Solution - end def detector_abnormal_time_period Azure::Web::Mgmt::V2016_03_01::Models::DetectorAbnormalTimePeriod end - def resource_name_availability - Azure::Web::Mgmt::V2016_03_01::Models::ResourceNameAvailability - end def abnormal_time_period Azure::Web::Mgmt::V2016_03_01::Models::AbnormalTimePeriod end - def hosting_environment_deployment_info - Azure::Web::Mgmt::V2016_03_01::Models::HostingEnvironmentDeploymentInfo + def solution + Azure::Web::Mgmt::V2016_03_01::Models::Solution end def diagnostic_metric_sample Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticMetricSample end + def resource_name_availability + Azure::Web::Mgmt::V2016_03_01::Models::ResourceNameAvailability + end def diagnostic_metric_set Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticMetricSet end - def data_source - Azure::Web::Mgmt::V2016_03_01::Models::DataSource + def hosting_environment_deployment_info + Azure::Web::Mgmt::V2016_03_01::Models::HostingEnvironmentDeploymentInfo end def response_meta_data Azure::Web::Mgmt::V2016_03_01::Models::ResponseMetaData @@ -466,30 +415,33 @@ def response_meta_data def analysis_data Azure::Web::Mgmt::V2016_03_01::Models::AnalysisData end - def csm_move_resource_envelope - Azure::Web::Mgmt::V2016_03_01::Models::CsmMoveResourceEnvelope + def data_source + Azure::Web::Mgmt::V2016_03_01::Models::DataSource end def data_table_response_column Azure::Web::Mgmt::V2016_03_01::Models::DataTableResponseColumn end - def app_service_environment - Azure::Web::Mgmt::V2016_03_01::Models::AppServiceEnvironment - end def data_table_response_object Azure::Web::Mgmt::V2016_03_01::Models::DataTableResponseObject end def validate_request Azure::Web::Mgmt::V2016_03_01::Models::ValidateRequest end - def detector_info - Azure::Web::Mgmt::V2016_03_01::Models::DetectorInfo + def csm_move_resource_envelope + Azure::Web::Mgmt::V2016_03_01::Models::CsmMoveResourceEnvelope end def rendering Azure::Web::Mgmt::V2016_03_01::Models::Rendering end + def app_service_environment + Azure::Web::Mgmt::V2016_03_01::Models::AppServiceEnvironment + end def diagnostic_data Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticData end + def detector_info + Azure::Web::Mgmt::V2016_03_01::Models::DetectorInfo + end def billing_meter_collection Azure::Web::Mgmt::V2016_03_01::Models::BillingMeterCollection end @@ -499,39 +451,36 @@ def detector_response_collection def resource_health_metadata_collection Azure::Web::Mgmt::V2016_03_01::Models::ResourceHealthMetadataCollection end - def sku_infos - Azure::Web::Mgmt::V2016_03_01::Models::SkuInfos - end def diagnostic_analysis_collection Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticAnalysisCollection end + def sku_infos + Azure::Web::Mgmt::V2016_03_01::Models::SkuInfos + end def recommendation_collection Azure::Web::Mgmt::V2016_03_01::Models::RecommendationCollection end def diagnostic_category_collection Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticCategoryCollection end - def diagnostic_detector_collection - Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticDetectorCollection - end def application_stack_collection Azure::Web::Mgmt::V2016_03_01::Models::ApplicationStackCollection end + def diagnostic_detector_collection + Azure::Web::Mgmt::V2016_03_01::Models::DiagnosticDetectorCollection + end def stack_minor_version Azure::Web::Mgmt::V2016_03_01::Models::StackMinorVersion end - def certificate - Azure::Web::Mgmt::V2016_03_01::Models::Certificate - end def certificate_patch_resource Azure::Web::Mgmt::V2016_03_01::Models::CertificatePatchResource end - def detector_definition - Azure::Web::Mgmt::V2016_03_01::Models::DetectorDefinition - end def analysis_definition Azure::Web::Mgmt::V2016_03_01::Models::AnalysisDefinition end + def detector_definition + Azure::Web::Mgmt::V2016_03_01::Models::DetectorDefinition + end def detector_response Azure::Web::Mgmt::V2016_03_01::Models::DetectorResponse end @@ -565,20 +514,20 @@ def premier_add_on_offer def source_control Azure::Web::Mgmt::V2016_03_01::Models::SourceControl end - def vnet_parameters - Azure::Web::Mgmt::V2016_03_01::Models::VnetParameters - end def vnet_validation_test_failure Azure::Web::Mgmt::V2016_03_01::Models::VnetValidationTestFailure end def vnet_validation_failure_details Azure::Web::Mgmt::V2016_03_01::Models::VnetValidationFailureDetails end + def vnet_parameters + Azure::Web::Mgmt::V2016_03_01::Models::VnetParameters + end def key_vault_secret_status Azure::Web::Mgmt::V2016_03_01::Models::KeyVaultSecretStatus end - def issue_type - Azure::Web::Mgmt::V2016_03_01::Models::IssueType + def service_specification + Azure::Web::Mgmt::V2016_03_01::Models::ServiceSpecification end def solution_type Azure::Web::Mgmt::V2016_03_01::Models::SolutionType @@ -601,15 +550,81 @@ def app_service_plan_restrictions def in_availability_reason_type Azure::Web::Mgmt::V2016_03_01::Models::InAvailabilityReasonType end - def check_name_resource_types - Azure::Web::Mgmt::V2016_03_01::Models::CheckNameResourceTypes + def certificate + Azure::Web::Mgmt::V2016_03_01::Models::Certificate end def validate_resource_types Azure::Web::Mgmt::V2016_03_01::Models::ValidateResourceTypes end + def check_name_resource_types + Azure::Web::Mgmt::V2016_03_01::Models::CheckNameResourceTypes + end def sku_name Azure::Web::Mgmt::V2016_03_01::Models::SkuName end + def issue_type + Azure::Web::Mgmt::V2016_03_01::Models::IssueType + end + def default_error_response_error_details_item + Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponseErrorDetailsItem + end + def default_error_response_error + Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponseError + end + def certificate_collection + Azure::Web::Mgmt::V2016_03_01::Models::CertificateCollection + end + def default_error_response + Azure::Web::Mgmt::V2016_03_01::Models::DefaultErrorResponse + end + def csm_operation_display + Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDisplay + end + def validate_response + Azure::Web::Mgmt::V2016_03_01::Models::ValidateResponse + end + def metric_availability + Azure::Web::Mgmt::V2016_03_01::Models::MetricAvailability + end + def source_control_collection + Azure::Web::Mgmt::V2016_03_01::Models::SourceControlCollection + end + def csm_operation_description_properties + Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDescriptionProperties + end + def resource_name_availability_request + Azure::Web::Mgmt::V2016_03_01::Models::ResourceNameAvailabilityRequest + end + def csm_operation_description + Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationDescription + end + def premier_add_on_offer_collection + Azure::Web::Mgmt::V2016_03_01::Models::PremierAddOnOfferCollection + end + def csm_operation_collection + Azure::Web::Mgmt::V2016_03_01::Models::CsmOperationCollection + end + def application_stack + Azure::Web::Mgmt::V2016_03_01::Models::ApplicationStack + end + def stack_major_version + Azure::Web::Mgmt::V2016_03_01::Models::StackMajorVersion + end + def identifier_collection + Azure::Web::Mgmt::V2016_08_01::Models::IdentifierCollection + end + def msdeploy_provisioning_state + Azure::Web::Mgmt::V2016_08_01::Models::MSDeployProvisioningState + end + def custom_host_name_dns_record_type + Azure::Web::Mgmt::V2016_08_01::Models::CustomHostNameDnsRecordType + end + def deployment + Azure::Web::Mgmt::V2016_08_01::Models::Deployment + end + def snapshot + Azure::Web::Mgmt::V2016_08_01::Models::Snapshot + end def azure_table_storage_application_logs_config Azure::Web::Mgmt::V2016_08_01::Models::AzureTableStorageApplicationLogsConfig end @@ -643,9 +658,6 @@ def web_app_instance_collection def public_certificate_collection Azure::Web::Mgmt::V2016_08_01::Models::PublicCertificateCollection end - def identifier_collection - Azure::Web::Mgmt::V2016_08_01::Models::IdentifierCollection - end def triggered_web_job_collection Azure::Web::Mgmt::V2016_08_01::Models::TriggeredWebJobCollection end @@ -742,9 +754,6 @@ def continuous_web_job def custom_hostname_analysis_result Azure::Web::Mgmt::V2016_08_01::Models::CustomHostnameAnalysisResult end - def deployment - Azure::Web::Mgmt::V2016_08_01::Models::Deployment - end def function_envelope Azure::Web::Mgmt::V2016_08_01::Models::FunctionEnvelope end @@ -829,9 +838,6 @@ def slot_config_names_resource def slot_difference Azure::Web::Mgmt::V2016_08_01::Models::SlotDifference end - def snapshot - Azure::Web::Mgmt::V2016_08_01::Models::Snapshot - end def storage_migration_options Azure::Web::Mgmt::V2016_08_01::Models::StorageMigrationOptions end @@ -844,26 +850,23 @@ def string_dictionary def triggered_job_run Azure::Web::Mgmt::V2016_08_01::Models::TriggeredJobRun end - def triggered_job_history - Azure::Web::Mgmt::V2016_08_01::Models::TriggeredJobHistory - end def triggered_web_job Azure::Web::Mgmt::V2016_08_01::Models::TriggeredWebJob end - def web_job - Azure::Web::Mgmt::V2016_08_01::Models::WebJob + def triggered_job_history + Azure::Web::Mgmt::V2016_08_01::Models::TriggeredJobHistory end def log_level Azure::Web::Mgmt::V2016_08_01::Models::LogLevel end - def backup_item_status - Azure::Web::Mgmt::V2016_08_01::Models::BackupItemStatus + def web_job + Azure::Web::Mgmt::V2016_08_01::Models::WebJob end def database_type Azure::Web::Mgmt::V2016_08_01::Models::DatabaseType end - def frequency_unit - Azure::Web::Mgmt::V2016_08_01::Models::FrequencyUnit + def backup_item_status + Azure::Web::Mgmt::V2016_08_01::Models::BackupItemStatus end def backup_restore_operation_type Azure::Web::Mgmt::V2016_08_01::Models::BackupRestoreOperationType @@ -871,20 +874,11 @@ def backup_restore_operation_type def continuous_web_job_status Azure::Web::Mgmt::V2016_08_01::Models::ContinuousWebJobStatus end - def web_job_type - Azure::Web::Mgmt::V2016_08_01::Models::WebJobType - end - def publishing_profile_format - Azure::Web::Mgmt::V2016_08_01::Models::PublishingProfileFormat - end - def dns_verification_test_result - Azure::Web::Mgmt::V2016_08_01::Models::DnsVerificationTestResult - end def azure_resource_type Azure::Web::Mgmt::V2016_08_01::Models::AzureResourceType end - def custom_host_name_dns_record_type - Azure::Web::Mgmt::V2016_08_01::Models::CustomHostNameDnsRecordType + def publishing_profile_format + Azure::Web::Mgmt::V2016_08_01::Models::PublishingProfileFormat end def host_name_type Azure::Web::Mgmt::V2016_08_01::Models::HostNameType @@ -892,8 +886,8 @@ def host_name_type def msdeploy_log_entry_type Azure::Web::Mgmt::V2016_08_01::Models::MSDeployLogEntryType end - def msdeploy_provisioning_state - Azure::Web::Mgmt::V2016_08_01::Models::MSDeployProvisioningState + def frequency_unit + Azure::Web::Mgmt::V2016_08_01::Models::FrequencyUnit end def my_sql_migration_type Azure::Web::Mgmt::V2016_08_01::Models::MySqlMigrationType @@ -916,203 +910,116 @@ def site_extension_type def triggered_web_job_status Azure::Web::Mgmt::V2016_08_01::Models::TriggeredWebJobStatus end - def hosting_environment_profile - Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentProfile + def web_job_type + Azure::Web::Mgmt::V2016_08_01::Models::WebJobType end - def virtual_ipmapping - Azure::Web::Mgmt::V2016_09_01::Models::VirtualIPMapping + def dns_verification_test_result + Azure::Web::Mgmt::V2016_08_01::Models::DnsVerificationTestResult end - def ip_security_restriction - Azure::Web::Mgmt::V2016_09_01::Models::IpSecurityRestriction + def ramp_up_rule + Azure::Web::Mgmt::V2016_09_01::Models::RampUpRule end - def virtual_network_profile - Azure::Web::Mgmt::V2016_09_01::Models::VirtualNetworkProfile + def virtual_directory + Azure::Web::Mgmt::V2016_09_01::Models::VirtualDirectory end - def api_definition_info - Azure::Web::Mgmt::V2016_09_01::Models::ApiDefinitionInfo + def handler_mapping + Azure::Web::Mgmt::V2016_09_01::Models::HandlerMapping end - def stamp_capacity - Azure::Web::Mgmt::V2016_09_01::Models::StampCapacity + def conn_string_info + Azure::Web::Mgmt::V2016_09_01::Models::ConnStringInfo end - def cors_settings - Azure::Web::Mgmt::V2016_09_01::Models::CorsSettings + def site_config + Azure::Web::Mgmt::V2016_09_01::Models::SiteConfig end - def name_value_pair - Azure::Web::Mgmt::V2016_09_01::Models::NameValuePair + def resource_metric_property + Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricProperty end - def auto_heal_custom_action - Azure::Web::Mgmt::V2016_09_01::Models::AutoHealCustomAction + def resource_metric_value + Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricValue end - def app_service_environment_collection - Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentCollection - end - def auto_heal_actions - Azure::Web::Mgmt::V2016_09_01::Models::AutoHealActions - end - def hosting_environment_diagnostics - Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentDiagnostics - end - def slow_requests_based_trigger - Azure::Web::Mgmt::V2016_09_01::Models::SlowRequestsBasedTrigger - end - def slot_swap_status - Azure::Web::Mgmt::V2016_09_01::Models::SlotSwapStatus - end - def sku_capacity - Azure::Web::Mgmt::V2016_09_01::Models::SkuCapacity - end - def cloning_info - Azure::Web::Mgmt::V2016_09_01::Models::CloningInfo - end - def sku_description - Azure::Web::Mgmt::V2016_09_01::Models::SkuDescription - end - def address_response - Azure::Web::Mgmt::V2016_09_01::Models::AddressResponse - end - def sku_info_collection - Azure::Web::Mgmt::V2016_09_01::Models::SkuInfoCollection - end - def worker_pool - Azure::Web::Mgmt::V2016_09_01::Models::WorkerPool - end - def network_access_control_entry - Azure::Web::Mgmt::V2016_09_01::Models::NetworkAccessControlEntry - end - def resource_collection - Azure::Web::Mgmt::V2016_09_01::Models::ResourceCollection - end - def worker_pool_collection - Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolCollection - end - def hybrid_connection_collection - Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionCollection - end - def resource - Azure::Web::Mgmt::V2016_09_01::Models::Resource - end - def error_entity - Azure::Web::Mgmt::V2016_09_01::Models::ErrorEntity - end - def resource_metric_property - Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricProperty - end - def snapshot_recovery_target - Azure::Web::Mgmt::V2016_09_01::Models::SnapshotRecoveryTarget - end - def metric_availabilily - Azure::Web::Mgmt::V2016_09_01::Models::MetricAvailabilily - end - def resource_metric_availability - Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricAvailability + def sku_capacity + Azure::Web::Mgmt::V2016_09_01::Models::SkuCapacity end def resource_metric Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetric end - def csm_usage_quota_collection - Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuotaCollection - end - def status_codes_based_trigger - Azure::Web::Mgmt::V2016_09_01::Models::StatusCodesBasedTrigger - end - def localizable_string - Azure::Web::Mgmt::V2016_09_01::Models::LocalizableString - end - def requests_based_trigger - Azure::Web::Mgmt::V2016_09_01::Models::RequestsBasedTrigger + def identifier + Azure::Web::Mgmt::V2016_09_01::Models::Identifier end def resource_metric_collection Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricCollection end - def auto_heal_triggers - Azure::Web::Mgmt::V2016_09_01::Models::AutoHealTriggers - end - def managed_service_identity - Azure::Web::Mgmt::V2016_09_01::Models::ManagedServiceIdentity - end - def auto_heal_rules - Azure::Web::Mgmt::V2016_09_01::Models::AutoHealRules + def virtual_network_profile + Azure::Web::Mgmt::V2016_09_01::Models::VirtualNetworkProfile end - def sku_info - Azure::Web::Mgmt::V2016_09_01::Models::SkuInfo + def resource_metric_definition_collection + Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection end - def site_limits - Azure::Web::Mgmt::V2016_09_01::Models::SiteLimits + def virtual_ipmapping + Azure::Web::Mgmt::V2016_09_01::Models::VirtualIPMapping end - def usage_collection - Azure::Web::Mgmt::V2016_09_01::Models::UsageCollection + def web_app_collection + Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection end - def ramp_up_rule - Azure::Web::Mgmt::V2016_09_01::Models::RampUpRule + def network_access_control_entry + Azure::Web::Mgmt::V2016_09_01::Models::NetworkAccessControlEntry end def app_service_plan_collection Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlanCollection end - def experiments - Azure::Web::Mgmt::V2016_09_01::Models::Experiments - end def resource_metric_name Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricName end - def virtual_directory - Azure::Web::Mgmt::V2016_09_01::Models::VirtualDirectory - end - def resource_metric_definition_collection - Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricDefinitionCollection + def slot_swap_status + Azure::Web::Mgmt::V2016_09_01::Models::SlotSwapStatus end - def virtual_application - Azure::Web::Mgmt::V2016_09_01::Models::VirtualApplication + def operation_status + Azure::Web::Mgmt::V2016_09_01::Models::OperationStatus end - def capability - Azure::Web::Mgmt::V2016_09_01::Models::Capability + def cors_settings + Azure::Web::Mgmt::V2016_09_01::Models::CorsSettings end - def handler_mapping - Azure::Web::Mgmt::V2016_09_01::Models::HandlerMapping + def auto_heal_triggers + Azure::Web::Mgmt::V2016_09_01::Models::AutoHealTriggers end - def operation - Azure::Web::Mgmt::V2016_09_01::Models::Operation + def experiments + Azure::Web::Mgmt::V2016_09_01::Models::Experiments end def site_machine_key Azure::Web::Mgmt::V2016_09_01::Models::SiteMachineKey end - def csm_usage_quota - Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuota - end - def conn_string_info - Azure::Web::Mgmt::V2016_09_01::Models::ConnStringInfo + def host_name_ssl_state + Azure::Web::Mgmt::V2016_09_01::Models::HostNameSslState end - def stamp_capacity_collection - Azure::Web::Mgmt::V2016_09_01::Models::StampCapacityCollection + def sku_description + Azure::Web::Mgmt::V2016_09_01::Models::SkuDescription end - def site_config - Azure::Web::Mgmt::V2016_09_01::Models::SiteConfig + def worker_pool + Azure::Web::Mgmt::V2016_09_01::Models::WorkerPool end def proxy_only_resource Azure::Web::Mgmt::V2016_09_01::Models::ProxyOnlyResource end - def host_name_ssl_state - Azure::Web::Mgmt::V2016_09_01::Models::HostNameSslState - end - def web_app_collection - Azure::Web::Mgmt::V2016_09_01::Models::WebAppCollection + def auto_heal_actions + Azure::Web::Mgmt::V2016_09_01::Models::AutoHealActions end - def resource_metric_value - Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricValue + def virtual_application + Azure::Web::Mgmt::V2016_09_01::Models::VirtualApplication end - def app_service_environment_resource - Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource + def capability + Azure::Web::Mgmt::V2016_09_01::Models::Capability end - def app_service_environment_patch_resource - Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentPatchResource + def stamp_capacity + Azure::Web::Mgmt::V2016_09_01::Models::StampCapacity end - def metric_definition - Azure::Web::Mgmt::V2016_09_01::Models::MetricDefinition + def site_limits + Azure::Web::Mgmt::V2016_09_01::Models::SiteLimits end - def usage - Azure::Web::Mgmt::V2016_09_01::Models::Usage + def ip_security_restriction + Azure::Web::Mgmt::V2016_09_01::Models::IpSecurityRestriction end - def worker_pool_resource - Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource + def name_value_pair + Azure::Web::Mgmt::V2016_09_01::Models::NameValuePair end def vnet_route Azure::Web::Mgmt::V2016_09_01::Models::VnetRoute @@ -1135,9 +1042,6 @@ def resource_metric_definition def push_settings Azure::Web::Mgmt::V2016_09_01::Models::PushSettings end - def identifier - Azure::Web::Mgmt::V2016_09_01::Models::Identifier - end def hybrid_connection_key Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionKey end @@ -1150,29 +1054,8 @@ def site def app_service_plan Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlan end - def app_service_plan_patch_resource - Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlanPatchResource - end - def hybrid_connection_limits - Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionLimits - end - def provisioning_state - Azure::Web::Mgmt::V2016_09_01::Models::ProvisioningState - end - def hosting_environment_status - Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentStatus - end - def internal_load_balancing_mode - Azure::Web::Mgmt::V2016_09_01::Models::InternalLoadBalancingMode - end - def compute_mode_options - Azure::Web::Mgmt::V2016_09_01::Models::ComputeModeOptions - end - def worker_size_options - Azure::Web::Mgmt::V2016_09_01::Models::WorkerSizeOptions - end - def access_control_entry_action - Azure::Web::Mgmt::V2016_09_01::Models::AccessControlEntryAction + def resource + Azure::Web::Mgmt::V2016_09_01::Models::Resource end def route_type Azure::Web::Mgmt::V2016_09_01::Models::RouteType @@ -1201,6 +1084,9 @@ def supported_tls_versions def ssl_state Azure::Web::Mgmt::V2016_09_01::Models::SslState end + def operation + Azure::Web::Mgmt::V2016_09_01::Models::Operation + end def host_type Azure::Web::Mgmt::V2016_09_01::Models::HostType end @@ -1210,11 +1096,125 @@ def usage_state def site_availability_state Azure::Web::Mgmt::V2016_09_01::Models::SiteAvailabilityState end + def hosting_environment_status + Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentStatus + end + def internal_load_balancing_mode + Azure::Web::Mgmt::V2016_09_01::Models::InternalLoadBalancingMode + end + def compute_mode_options + Azure::Web::Mgmt::V2016_09_01::Models::ComputeModeOptions + end + def worker_size_options + Azure::Web::Mgmt::V2016_09_01::Models::WorkerSizeOptions + end + def access_control_entry_action + Azure::Web::Mgmt::V2016_09_01::Models::AccessControlEntryAction + end def status_options Azure::Web::Mgmt::V2016_09_01::Models::StatusOptions end - def operation_status - Azure::Web::Mgmt::V2016_09_01::Models::OperationStatus + def provisioning_state + Azure::Web::Mgmt::V2016_09_01::Models::ProvisioningState + end + def app_service_environment_collection + Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentCollection + end + def hosting_environment_diagnostics + Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentDiagnostics + end + def address_response + Azure::Web::Mgmt::V2016_09_01::Models::AddressResponse + end + def sku_info_collection + Azure::Web::Mgmt::V2016_09_01::Models::SkuInfoCollection + end + def resource_collection + Azure::Web::Mgmt::V2016_09_01::Models::ResourceCollection + end + def worker_pool_collection + Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolCollection + end + def hybrid_connection_collection + Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionCollection + end + def metric_availabilily + Azure::Web::Mgmt::V2016_09_01::Models::MetricAvailabilily + end + def sku_info + Azure::Web::Mgmt::V2016_09_01::Models::SkuInfo + end + def usage_collection + Azure::Web::Mgmt::V2016_09_01::Models::UsageCollection + end + def managed_service_identity + Azure::Web::Mgmt::V2016_09_01::Models::ManagedServiceIdentity + end + def app_service_environment_resource + Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentResource + end + def app_service_environment_patch_resource + Azure::Web::Mgmt::V2016_09_01::Models::AppServiceEnvironmentPatchResource + end + def stamp_capacity_collection + Azure::Web::Mgmt::V2016_09_01::Models::StampCapacityCollection + end + def worker_pool_resource + Azure::Web::Mgmt::V2016_09_01::Models::WorkerPoolResource + end + def app_service_plan_patch_resource + Azure::Web::Mgmt::V2016_09_01::Models::AppServicePlanPatchResource + end + def metric_definition + Azure::Web::Mgmt::V2016_09_01::Models::MetricDefinition + end + def hybrid_connection_limits + Azure::Web::Mgmt::V2016_09_01::Models::HybridConnectionLimits + end + def hosting_environment_profile + Azure::Web::Mgmt::V2016_09_01::Models::HostingEnvironmentProfile + end + def snapshot_recovery_target + Azure::Web::Mgmt::V2016_09_01::Models::SnapshotRecoveryTarget + end + def resource_metric_availability + Azure::Web::Mgmt::V2016_09_01::Models::ResourceMetricAvailability + end + def localizable_string + Azure::Web::Mgmt::V2016_09_01::Models::LocalizableString + end + def cloning_info + Azure::Web::Mgmt::V2016_09_01::Models::CloningInfo + end + def csm_usage_quota + Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuota + end + def api_definition_info + Azure::Web::Mgmt::V2016_09_01::Models::ApiDefinitionInfo + end + def csm_usage_quota_collection + Azure::Web::Mgmt::V2016_09_01::Models::CsmUsageQuotaCollection + end + def auto_heal_custom_action + Azure::Web::Mgmt::V2016_09_01::Models::AutoHealCustomAction + end + def error_entity + Azure::Web::Mgmt::V2016_09_01::Models::ErrorEntity + end + def slow_requests_based_trigger + Azure::Web::Mgmt::V2016_09_01::Models::SlowRequestsBasedTrigger + end + def status_codes_based_trigger + Azure::Web::Mgmt::V2016_09_01::Models::StatusCodesBasedTrigger + end + def requests_based_trigger + Azure::Web::Mgmt::V2016_09_01::Models::RequestsBasedTrigger + end + def auto_heal_rules + Azure::Web::Mgmt::V2016_09_01::Models::AutoHealRules + end + def usage + Azure::Web::Mgmt::V2016_09_01::Models::Usage end end 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 3564c73c16..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.1" + 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..845bb9728c 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 @@ -75,7 +75,7 @@ class ApiManagementServiceBaseParameters # Management service, like disabling TLS 1.0. attr_accessor :custom_properties - # @return [VirtualNetworkType] The type of VPN in which API Managemet + # @return [VirtualNetworkType] The type of VPN in which API Management # 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 @@ -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..4fa39948c5 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 @@ -31,7 +31,7 @@ class ApiManagementServiceManageDeploymentsParameters # @return [VirtualNetworkConfiguration] Virtual network configuration. attr_accessor :vpn_configuration - # @return [VirtualNetworkType] The type of VPN in which API Managemet + # @return [VirtualNetworkType] The type of VPN in which API Management # 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 @@ -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..872af10bf8 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 @@ -14,7 +14,7 @@ class GroupContract # @return [String] Uniquely identifies the group within the current API # Management service instance. The value is a valid relative URL in the - # format of /groups/{groupid} where {groupid} is a group identifier. + # format of /groups/{groupId} where {groupId} is a group identifier. attr_accessor :id # @return [String] Group name. @@ -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..83017c7f91 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 @@ -22,7 +22,7 @@ class ReportRecordContract # attr_accessor :timestamp - # @return [Integer] Length of agregation period. + # @return [Integer] Length of aggregation period. attr_accessor :interval # @return [String] Country to which this record data is related. @@ -54,7 +54,7 @@ class ReportRecordContract # /subscriptions/{subscriptionId} attr_accessor :subscription_id - # @return [Integer] Number of succesful calls. + # @return [Integer] Number of successful calls. attr_accessor :call_count_success # @return [Integer] Number of calls blocked due to invalid credentials. @@ -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..0708e18151 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 @@ -6,7 +6,7 @@ module Azure::ApiManagement::Mgmt::V2016_07_07 module Models # - # Paged Subsctions list representation. + # Paged Subscriptions list representation. # class SubscriptionCollection @@ -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..82eb328fc0 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 @@ -17,7 +17,7 @@ class SubscriptionCreateParameters attr_accessor :user_id # @return [String] Product (product id path) for which subscription is - # being created in form /products/{productid} + # being created in form /products/{productId} attr_accessor :product_id # @return [String] Subscription name. @@ -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..6bf7e48dd0 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 @@ -21,7 +21,7 @@ class VirtualNetworkConfiguration attr_accessor :subnetname # @return [String] The name of the subnet Resource ID. This has format - # /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/{virtual + # /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/{virtual # network name}/subnets/{subnet name}. attr_accessor :subnet_resource_id @@ -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..40b3dc7260 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) @@ -456,7 +440,7 @@ def update_async(resource_group_name, service_name, prop_id, parameters, if_matc end # - # Deletes specific property from the the API Management service instance. + # Deletes specific property from 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. @@ -469,13 +453,13 @@ 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 # - # Deletes specific property from the the API Management service instance. + # Deletes specific property from 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. @@ -488,12 +472,12 @@ 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 # - # Deletes specific property from the the API Management service instance. + # Deletes specific property from 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. @@ -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..873220d640 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 @@ -37,14 +37,14 @@ def initialize(client) # zero. The value should be in ISO 8601 format # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to # convert TimSpan to a valid interval string: XmlConvert.ToString(new - # TimeSpan(hours, minutes, secconds)) + # TimeSpan(hours, minutes, seconds)) # @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, 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 @@ -64,14 +64,14 @@ def list_by_service(resource_group_name, service_name, aggregation, filter:nil, # zero. The value should be in ISO 8601 format # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to # convert TimSpan to a valid interval string: XmlConvert.ToString(new - # TimeSpan(hours, minutes, secconds)) + # TimeSpan(hours, minutes, seconds)) # @param custom_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, 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 # @@ -90,27 +90,21 @@ def list_by_service_with_http_info(resource_group_name, service_name, aggregatio # zero. The value should be in ISO 8601 format # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to # convert TimSpan to a valid interval string: XmlConvert.ToString(new - # TimeSpan(hours, minutes, secconds)) + # TimeSpan(hours, minutes, seconds)) # @param [Hash{String => String}] 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, 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 @@ -259,19 +252,19 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # zero. The value should be in ISO 8601 format # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to # convert TimSpan to a valid interval string: XmlConvert.ToString(new - # TimeSpan(hours, minutes, secconds)) + # TimeSpan(hours, minutes, seconds)) # @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_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..dde42d1539 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) @@ -374,7 +359,7 @@ def create_or_update_async(resource_group_name, service_name, sid, parameters, c end # - # Updates the details of a subscription specificied by its identifier. + # Updates the details of a 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. @@ -387,13 +372,13 @@ 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 # - # Updates the details of a subscription specificied by its identifier. + # Updates the details of a 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. @@ -407,12 +392,12 @@ 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 # - # Updates the details of a subscription specificied by its identifier. + # Updates the details of a 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. @@ -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 7066adcf1a..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.1" + 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..08f2fcf3f2 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 @@ -31,7 +31,7 @@ class ApiManagementServiceManageDeploymentsParameters # @return [VirtualNetworkConfiguration] Virtual network configuration. attr_accessor :vpn_configuration - # @return [VirtualNetworkType] The type of VPN in which API Managemet + # @return [VirtualNetworkType] The type of VPN in which API Management # 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 @@ -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..e0bd9f3833 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 @@ -69,7 +69,7 @@ class ApiManagementServiceResource < Resource # Management service, like disabling TLS 1.0. attr_accessor :custom_properties - # @return [VirtualNetworkType] The type of VPN in which API Managemet + # @return [VirtualNetworkType] The type of VPN in which API Management # 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 @@ -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..7579e5be3c 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 @@ -69,7 +69,7 @@ class ApiManagementServiceUpdateParameters # Management service, like disabling TLS 1.0. attr_accessor :custom_properties - # @return [VirtualNetworkType] The type of VPN in which API Managemet + # @return [VirtualNetworkType] The type of VPN in which API Management # 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 @@ -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..745bbacafa 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 @@ -14,7 +14,7 @@ class GroupContract # @return [String] Uniquely identifies the group within the current API # Management service instance. The value is a valid relative URL in the - # format of /groups/{groupid} where {groupid} is a group identifier. + # format of /groups/{groupId} where {groupId} is a group identifier. attr_accessor :id # @return [String] Group name. @@ -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..cbcc506d95 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 @@ -22,7 +22,7 @@ class ReportRecordContract # attr_accessor :timestamp - # @return [Integer] Length of agregation period. + # @return [Integer] Length of aggregation period. attr_accessor :interval # @return [String] Country to which this record data is related. @@ -54,13 +54,13 @@ class ReportRecordContract # /subscriptions/{subscriptionId} attr_accessor :subscription_id - # @return [Integer] Number of succesful calls. This includes calls + # @return [Integer] Number of successful 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 + # This includes calls returning HttpStatusCode.Unauthorized and # HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests attr_accessor :call_count_blocked @@ -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 456714c79c..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 @@ -29,22 +29,12 @@ class Resource attr_accessor :tags - # @return [String] the name of the resource group of the resource. - def resource_group - unless self.id.nil? - groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/) - groups.captures[0].strip if groups - end - end - - # # Mapper for Resource class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -52,7 +42,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -61,7 +50,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -69,7 +57,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -78,7 +65,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -86,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..bb57c28884 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 @@ -17,7 +17,7 @@ class SubscriptionCreateParameters attr_accessor :user_id # @return [String] Product (product id path) for which subscription is - # being created in form /products/{productid} + # being created in form /products/{productId} attr_accessor :product_id # @return [String] Subscription name. @@ -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..3156c387a7 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) @@ -336,7 +322,7 @@ def update_async(resource_group_name, service_name, prop_id, parameters, if_matc end # - # Deletes specific property from the the API Management service instance. + # Deletes specific property from 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. @@ -349,13 +335,13 @@ 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 # - # Deletes specific property from the the API Management service instance. + # Deletes specific property from 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. @@ -368,12 +354,12 @@ 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 # - # Deletes specific property from the the API Management service instance. + # Deletes specific property from 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. @@ -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..4b4c89a151 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 @@ -37,14 +37,14 @@ def initialize(client) # zero. The value should be in ISO 8601 format # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to # convert TimSpan to a valid interval string: XmlConvert.ToString(new - # TimeSpan(hours, minutes, secconds)) + # TimeSpan(hours, minutes, seconds)) # @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, 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 @@ -64,14 +64,14 @@ def list_by_service(resource_group_name, service_name, aggregation, filter:nil, # zero. The value should be in ISO 8601 format # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to # convert TimSpan to a valid interval string: XmlConvert.ToString(new - # TimeSpan(hours, minutes, secconds)) + # TimeSpan(hours, minutes, seconds)) # @param custom_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, 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 # @@ -90,27 +90,21 @@ def list_by_service_with_http_info(resource_group_name, service_name, aggregatio # zero. The value should be in ISO 8601 format # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to # convert TimSpan to a valid interval string: XmlConvert.ToString(new - # TimeSpan(hours, minutes, secconds)) + # TimeSpan(hours, minutes, seconds)) # @param [Hash{String => String}] 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, 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 @@ -259,19 +252,19 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # zero. The value should be in ISO 8601 format # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to # convert TimSpan to a valid interval string: XmlConvert.ToString(new - # TimeSpan(hours, minutes, secconds)) + # TimeSpan(hours, minutes, seconds)) # @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_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..c4857629e3 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) @@ -381,7 +365,7 @@ def create_or_update_async(resource_group_name, service_name, sid, parameters, c end # - # Updates the details of a subscription specificied by its identifier. + # Updates the details of a 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. @@ -395,13 +379,13 @@ 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 # - # Updates the details of a subscription specificied by its identifier. + # Updates the details of a 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. @@ -416,12 +400,12 @@ 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 # - # Updates the details of a subscription specificied by its identifier. + # Updates the details of a 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. @@ -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..ddadb8737c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management.rb @@ -0,0 +1,303 @@ +# encoding: 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 :ApiManagementServiceSkus, '2018-01-01/generated/azure_mgmt_api_management/api_management_service_skus.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 :CertificateInformation, '2018-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb' + autoload :ErrorFieldContract, '2018-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb' + autoload :CertificateConfiguration, '2018-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb' + autoload :ErrorResponse, '2018-01-01/generated/azure_mgmt_api_management/models/error_response.rb' + autoload :HostnameConfiguration, '2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb' + autoload :PolicyCollection, '2018-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb' + autoload :VirtualNetworkConfiguration, '2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb' + autoload :PolicySnippetsCollection, '2018-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb' + autoload :ApiManagementServiceSkuProperties, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb' + autoload :RegionListResult, '2018-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb' + autoload :AdditionalLocation, '2018-01-01/generated/azure_mgmt_api_management/models/additional_location.rb' + autoload :ApiExportResult, '2018-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb' + autoload :ApiManagementServiceBackupRestoreParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb' + autoload :ResourceSkuCapacity, '2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb' + autoload :ResourceSkuResult, '2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb' + autoload :ApiCollection, '2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb' + autoload :ResourceSkuResults, '2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb' + autoload :ApiCreateOrUpdateParameter, '2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb' + autoload :ErrorResponseBody, '2018-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb' + autoload :OAuth2AuthenticationSettingsContract, '2018-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb' + autoload :OpenIdAuthenticationSettingsContract, '2018-01-01/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.rb' + autoload :PropertyUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb' + autoload :SubscriptionKeyParameterNamesContract, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb' + autoload :PolicySnippetContract, '2018-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb' + autoload :ApiRevisionContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb' + autoload :RegionContract, '2018-01-01/generated/azure_mgmt_api_management/models/region_contract.rb' + autoload :ApiRevisionInfoContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb' + autoload :Resource, '2018-01-01/generated/azure_mgmt_api_management/models/resource.rb' + autoload :ApiReleaseCollection, '2018-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb' + autoload :ApiVersionSetContractDetails, '2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb' + autoload :OperationCollection, '2018-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb' + autoload :PropertyEntityBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb' + autoload :RepresentationContract, '2018-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb' + autoload :ApiManagementServiceBaseProperties, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb' + autoload :ResponseContract, '2018-01-01/generated/azure_mgmt_api_management/models/response_contract.rb' + autoload :ApiManagementServiceIdentity, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb' + autoload :OperationUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb' + autoload :SchemaCollection, '2018-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb' + autoload :ApimResource, '2018-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb' + autoload :IssueCollection, '2018-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb' + autoload :ApiVersionSetUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb' + autoload :IssueContractBaseProperties, '2018-01-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb' + autoload :ApiManagementServiceListResult, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb' + autoload :IssueCommentCollection, '2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb' + autoload :ApiManagementServiceGetSsoTokenResult, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb' + autoload :IssueAttachmentCollection, '2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb' + autoload :ApiManagementServiceCheckNameAvailabilityParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb' + autoload :LoggerCollection, '2018-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb' + autoload :ApiManagementServiceNameAvailabilityResult, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb' + autoload :DiagnosticCollection, '2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb' + autoload :ApiManagementServiceApplyNetworkConfigurationParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb' + autoload :RequestReportCollection, '2018-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb' + autoload :ApiManagementServiceUploadCertificateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb' + autoload :RequestReportRecordContract, '2018-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb' + autoload :HostnameConfigurationOld, '2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb' + autoload :TagResourceContract, '2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb' + autoload :ApiManagementServiceUpdateHostnameParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb' + autoload :ReportCollection, '2018-01-01/generated/azure_mgmt_api_management/models/report_collection.rb' + autoload :OperationDisplay, '2018-01-01/generated/azure_mgmt_api_management/models/operation_display.rb' + autoload :ReportRecordContract, '2018-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb' + autoload :Operation, '2018-01-01/generated/azure_mgmt_api_management/models/operation.rb' + autoload :QuotaCounterValueContract, '2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb' + autoload :OperationListResult, '2018-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb' + autoload :AuthorizationServerContractBaseProperties, '2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb' + autoload :EmailTemplateParametersContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb' + autoload :X509CertificateName, '2018-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb' + autoload :ApiVersionSetEntityBase, '2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb' + autoload :BackendProperties, '2018-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb' + autoload :EmailTemplateCollection, '2018-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb' + autoload :BackendProxyContract, '2018-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb' + autoload :EmailTemplateUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb' + autoload :BackendBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb' + autoload :GroupContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb' + autoload :BackendCollection, '2018-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb' + autoload :ApiVersionSetCollection, '2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb' + autoload :QuotaCounterContract, '2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb' + autoload :GroupCollection, '2018-01-01/generated/azure_mgmt_api_management/models/group_collection.rb' + autoload :CertificateCollection, '2018-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb' + autoload :GroupCreateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb' + autoload :ResourceSku, '2018-01-01/generated/azure_mgmt_api_management/models/resource_sku.rb' + autoload :GroupUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb' + autoload :ApiCreateOrUpdatePropertiesWsdlSelector, '2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb' + autoload :UserIdentityContract, '2018-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb' + autoload :AuthenticationSettingsContract, '2018-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb' + autoload :UserEntityBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb' + autoload :ApiRevisionCollection, '2018-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb' + autoload :CurrentUserIdentity, '2018-01-01/generated/azure_mgmt_api_management/models/current_user_identity.rb' + autoload :TagDescriptionCollection, '2018-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb' + autoload :UserCollection, '2018-01-01/generated/azure_mgmt_api_management/models/user_collection.rb' + autoload :RequestContract, '2018-01-01/generated/azure_mgmt_api_management/models/request_contract.rb' + autoload :UserUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb' + autoload :AccessInformationUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb' + autoload :IdentityProviderList, '2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb' + autoload :IssueUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/issue_update_contract.rb' + autoload :IdentityProviderUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb' + autoload :DeployConfigurationParameters, '2018-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb' + autoload :IdentityProviderBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb' + autoload :SubscriptionCreateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb' + autoload :LoggerUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb' + autoload :OperationTagResourceContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb' + autoload :RecipientsContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb' + autoload :TagResourceCollection, '2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb' + autoload :UserTokenResult, '2018-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb' + autoload :AuthorizationServerCollection, '2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb' + autoload :NotificationCollection, '2018-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb' + autoload :BackendAuthorizationHeaderCredentials, '2018-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb' + autoload :UserTokenParameters, '2018-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb' + autoload :BackendCredentialsContract, '2018-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb' + autoload :RecipientUserCollection, '2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb' + autoload :QuotaCounterCollection, '2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb' + autoload :UserIdentityCollection, '2018-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb' + autoload :QuotaCounterValueContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb' + autoload :RecipientEmailCollection, '2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb' + autoload :AccessInformationContract, '2018-01-01/generated/azure_mgmt_api_management/models/access_information_contract.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 :TagCreateUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb' + autoload :UserCreateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb' + autoload :SubscriptionUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb' + autoload :OpenIdConnectProviderCollection, '2018-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb' + autoload :TagTagResourceContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb' + autoload :OpenidConnectProviderUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb' + autoload :TokenBodyParameterContract, '2018-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb' + autoload :GenerateSsoUrlResult, '2018-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb' + autoload :BackendTlsProperties, '2018-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb' + autoload :TermsOfServiceProperties, '2018-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb' + autoload :CertificateCreateOrUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb' + autoload :TenantConfigurationSyncStateContract, '2018-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb' + autoload :TagDescriptionCreateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb' + autoload :SubscriptionsDelegationSettingsProperties, '2018-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb' + autoload :TagCollection, '2018-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb' + autoload :RegistrationDelegationSettingsProperties, '2018-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb' + autoload :ProductCollection, '2018-01-01/generated/azure_mgmt_api_management/models/product_collection.rb' + autoload :SaveConfigurationParameter, '2018-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb' + autoload :BackendUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb' + autoload :ProductUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb' + autoload :OperationEntityBaseContract, '2018-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb' + autoload :OperationResultContract, '2018-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb' + autoload :BackendServiceFabricClusterProperties, '2018-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb' + autoload :SubscriptionCollection, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb' + autoload :ProductEntityBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb' + autoload :OperationResultLogItemContract, '2018-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb' + autoload :ApiUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb' + autoload :PropertyCollection, '2018-01-01/generated/azure_mgmt_api_management/models/property_collection.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 :BearerTokenSendingMethods, '2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.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 :SkuType, '2018-01-01/generated/azure_mgmt_api_management/models/sku_type.rb' + autoload :ResourceSkuCapacityScaleType, '2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb' + autoload :HostnameType, '2018-01-01/generated/azure_mgmt_api_management/models/hostname_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..211cf8d973 --- /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 associated 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 associated 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 associated 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 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 [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 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 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 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 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 associated 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 associated 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 associated 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 associated 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..cf2c066aaf --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue.rb @@ -0,0 +1,831 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest 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 associated 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 associated 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 associated 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 + + # + # Updates an existing issue 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 issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param parameters [IssueUpdateContract] Update 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. + # + # + def update(resource_group_name, service_name, api_id, issue_id, parameters, if_match = nil, custom_headers = nil) + response = update_async(resource_group_name, service_name, api_id, issue_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates an existing issue 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 issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param parameters [IssueUpdateContract] Update 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 update_with_http_info(resource_group_name, service_name, api_id, issue_id, parameters, if_match = nil, custom_headers = nil) + update_async(resource_group_name, service_name, api_id, issue_id, parameters, if_match, custom_headers).value! + end + + # + # Updates an existing issue 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 issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param parameters [IssueUpdateContract] Update 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 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::IssueUpdateContract.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(: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 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 associated 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 associated 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 associated 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 associated 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..d89003dcf6 --- /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 associated 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 associated 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 associated 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 associated 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 associated 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 associated 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 associated 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..fe25587b16 --- /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 associated 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 associated 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 associated 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 associated 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 associated 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 associated 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 associated 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..690241dde7 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb @@ -0,0 +1,367 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest 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 [ApiManagementServiceSkus] api_management_service_skus + attr_reader :api_management_service_skus + + # @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_skus = ApiManagementServiceSkus.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_management_service_skus.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service_skus.rb new file mode 100644 index 0000000000..fa606637a9 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service_skus.rb @@ -0,0 +1,239 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest 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 ApiManagementServiceSkus + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiManagementServiceSkus 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 available SKUs for API Management service + # + # Gets all available SKU for a given 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 [Array] operation results. + # + def list_available_service_skus(resource_group_name, service_name, custom_headers = nil) + first_page = list_available_service_skus_as_lazy(resource_group_name, service_name, custom_headers) + first_page.get_all_items + end + + # + # Gets available SKUs for API Management service + # + # Gets all available SKU for a given 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 list_available_service_skus_with_http_info(resource_group_name, service_name, custom_headers = nil) + list_available_service_skus_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets available SKUs for API Management service + # + # Gets all available SKU for a given 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 list_available_service_skus_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}/skus' + + request_url = @base_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::ResourceSkuResults.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 available SKUs for API Management service + # + # Gets all available SKU for a given API Management service + # + # @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 [ResourceSkuResults] operation results. + # + def list_available_service_skus_next(next_page_link, custom_headers = nil) + response = list_available_service_skus_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets available SKUs for API Management service + # + # Gets all available SKU for a given API Management service + # + # @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_available_service_skus_next_with_http_info(next_page_link, custom_headers = nil) + list_available_service_skus_next_async(next_page_link, custom_headers).value! + end + + # + # Gets available SKUs for API Management service + # + # Gets all available SKU for a given API Management service + # + # @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_available_service_skus_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::ResourceSkuResults.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 available SKUs for API Management service + # + # Gets all available SKU for a given 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 [ResourceSkuResults] which provide lazy access to pages of the + # response. + # + def list_available_service_skus_as_lazy(resource_group_name, service_name, custom_headers = nil) + response = list_available_service_skus_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_available_service_skus_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..61d95f77a9 --- /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 associated 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 associated 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 associated 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 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 [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 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 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 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 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 associated 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 associated 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 associated 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 associated 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..24ec380996 --- /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 Management + # 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..cbd88fcea0 --- /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 Management + # 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..e1d83c3cf3 --- /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 Management + # 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..61392b4726 --- /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,71 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest 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 + + # @return [OpenIdAuthenticationSettingsContract] OpenID Connect + # Authentication Settings + attr_accessor :openid + + # @return [Boolean] Specifies whether subscription key is required during + # call to this API, true - API is included into closed products only, + # false - API is included into open products alone, null - there is a mix + # of products. + attr_accessor :subscription_key_required + + + # + # 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' + } + }, + openid: { + required: false, + serialized_name: 'openid', + type: { + name: 'Composite', + class_name: 'OpenIdAuthenticationSettingsContract' + } + }, + subscription_key_required: { + required: false, + serialized_name: 'subscriptionKeyRequired', + 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/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..c1747db127 --- /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 Reconnect 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..2008a0519f --- /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 partition. + 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/bearer_token_sending_methods.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.rb new file mode 100644 index 0000000000..128892a965 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.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 BearerTokenSendingMethods + # + module BearerTokenSendingMethods + 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..7932c0c461 --- /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/current_user_identity.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/current_user_identity.rb new file mode 100644 index 0000000000..a10b28cc07 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/current_user_identity.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 + # + # Model object. + # + # + class CurrentUserIdentity + + include MsRestAzure + + # @return [String] API Management service user id. + attr_accessor :id + + + # + # Mapper for CurrentUserIdentity class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CurrentUserIdentity', + type: { + name: 'Composite', + class_name: 'CurrentUserIdentity', + model_properties: { + 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/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..e8fd7fe04a --- /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 [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 API the issue was + # created for. + attr_accessor :api_id + + # @return [String] The issue title. + attr_accessor :title + + # @return [String] Text describing the issue. + attr_accessor :description + + # @return [String] A resource identifier for the user created the issue. + attr_accessor :user_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' + } + }, + created_date: { + required: false, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + state: { + required: false, + serialized_name: 'properties.state', + type: { + name: 'String' + } + }, + api_id: { + required: false, + serialized_name: 'properties.apiId', + type: { + name: 'String' + } + }, + title: { + required: true, + serialized_name: 'properties.title', + type: { + name: 'String' + } + }, + description: { + required: true, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + 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_base_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb new file mode 100644 index 0000000000..8fd19636a1 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.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 + # + # Issue contract Base Properties. + # + class IssueContractBaseProperties + + include MsRestAzure + + # @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 API the issue was + # created for. + attr_accessor :api_id + + + # + # Mapper for IssueContractBaseProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IssueContractBaseProperties', + type: { + name: 'Composite', + class_name: 'IssueContractBaseProperties', + model_properties: { + created_date: { + required: false, + serialized_name: 'createdDate', + type: { + name: 'DateTime' + } + }, + state: { + required: false, + serialized_name: 'state', + type: { + name: 'String' + } + }, + api_id: { + required: false, + serialized_name: '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/issue_update_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_update_contract.rb new file mode 100644 index 0000000000..5242fc04fc --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_update_contract.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 + # + # Issue update Parameters. + # + class IssueUpdateContract + + include MsRestAzure + + # @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 API the issue was + # created for. + attr_accessor :api_id + + # @return [String] The issue title. + attr_accessor :title + + # @return [String] Text describing the issue. + attr_accessor :description + + # @return [String] A resource identifier for the user created the issue. + attr_accessor :user_id + + + # + # Mapper for IssueUpdateContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IssueUpdateContract', + type: { + name: 'Composite', + class_name: 'IssueUpdateContract', + model_properties: { + created_date: { + required: false, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + state: { + required: false, + serialized_name: 'properties.state', + type: { + name: 'String' + } + }, + api_id: { + required: false, + serialized_name: 'properties.apiId', + type: { + name: 'String' + } + }, + title: { + required: false, + serialized_name: 'properties.title', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + 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/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_authentication_settings_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.rb new file mode 100644 index 0000000000..9b8122eebd --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.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 + # + # API OAuth2 Authentication settings details. + # + class OpenIdAuthenticationSettingsContract + + include MsRestAzure + + # @return [String] OAuth authorization server identifier. + attr_accessor :openid_provider_id + + # @return [Array] How to send token to the + # server. + attr_accessor :bearer_token_sending_methods + + + # + # Mapper for OpenIdAuthenticationSettingsContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OpenIdAuthenticationSettingsContract', + type: { + name: 'Composite', + class_name: 'OpenIdAuthenticationSettingsContract', + model_properties: { + openid_provider_id: { + required: false, + serialized_name: 'openidProviderId', + type: { + name: 'String' + } + }, + bearer_token_sending_methods: { + required: false, + serialized_name: 'bearerTokenSendingMethods', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'BearerTokenSendingMethodsElementType', + 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..21ab2da0d7 --- /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 aggregation 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 successful 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.Unauthorized 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..044b16f529 --- /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 fulfilled + # 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/resource_sku.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku.rb new file mode 100644 index 0000000000..d1db5f80c7 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku.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 + # + # Describes an available API Management SKU. + # + class ResourceSku + + include MsRestAzure + + # @return [SkuType] Name of the Sku. Possible values include: + # 'Developer', 'Standard', 'Premium', 'Basic' + attr_accessor :name + + + # + # Mapper for ResourceSku class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ResourceSku', + type: { + name: 'Composite', + class_name: 'ResourceSku', + model_properties: { + name: { + required: false, + 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/resource_sku_capacity.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb new file mode 100644 index 0000000000..bafd7d43da --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.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 + # + # Describes scaling information of a SKU. + # + class ResourceSkuCapacity + + include MsRestAzure + + # @return [Integer] The minimum capacity. + attr_accessor :minimum + + # @return [Integer] The maximum capacity that can be set. + attr_accessor :maximum + + # @return [Integer] The default capacity. + attr_accessor :default + + # @return [ResourceSkuCapacityScaleType] The scale type applicable to the + # sku. Possible values include: 'automatic', 'manual', 'none' + attr_accessor :scale_type + + + # + # Mapper for ResourceSkuCapacity class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ResourceSkuCapacity', + type: { + name: 'Composite', + class_name: 'ResourceSkuCapacity', + model_properties: { + minimum: { + required: false, + read_only: true, + serialized_name: 'minimum', + type: { + name: 'Number' + } + }, + maximum: { + required: false, + read_only: true, + serialized_name: 'maximum', + type: { + name: 'Number' + } + }, + default: { + required: false, + read_only: true, + serialized_name: 'default', + type: { + name: 'Number' + } + }, + scale_type: { + required: false, + read_only: true, + serialized_name: 'scaleType', + type: { + name: 'Enum', + module: 'ResourceSkuCapacityScaleType' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb new file mode 100644 index 0000000000..7f5d943aae --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_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 ResourceSkuCapacityScaleType + # + module ResourceSkuCapacityScaleType + Automatic = "automatic" + Manual = "manual" + None = "none" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb new file mode 100644 index 0000000000..69e3d36fff --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.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 + # + # Describes an available API Management service SKU. + # + class ResourceSkuResult + + include MsRestAzure + + # @return [String] The type of resource the SKU applies to. + attr_accessor :resource_type + + # @return [ResourceSku] Specifies API Management SKU. + attr_accessor :sku + + # @return [ResourceSkuCapacity] Specifies the number of API Management + # units. + attr_accessor :capacity + + + # + # Mapper for ResourceSkuResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ResourceSkuResult', + type: { + name: 'Composite', + class_name: 'ResourceSkuResult', + model_properties: { + resource_type: { + required: false, + read_only: true, + serialized_name: 'resourceType', + type: { + name: 'String' + } + }, + sku: { + required: false, + read_only: true, + serialized_name: 'sku', + type: { + name: 'Composite', + class_name: 'ResourceSku' + } + }, + capacity: { + required: false, + read_only: true, + serialized_name: 'capacity', + type: { + name: 'Composite', + class_name: 'ResourceSkuCapacity' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb new file mode 100644 index 0000000000..eff0af3534 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.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 API Management service SKUs operation response. + # + class ResourceSkuResults + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] The list of skus available for the + # service. + attr_accessor :value + + # @return [String] The uri to fetch the next page of API Management + # service Skus. + 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 [ResourceSkuResults] 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 ResourceSkuResults class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ResourceSkuResults', + type: { + name: 'Composite', + class_name: 'ResourceSkuResults', + model_properties: { + value: { + required: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ResourceSkuResultElementType', + type: { + name: 'Composite', + class_name: 'ResourceSkuResult' + } + } + } + }, + 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/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..e429a043d5 --- /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..d2fdaa9511 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_contract.rb @@ -0,0 +1,164 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest 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, + 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..e24452efae --- /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,143 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest 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, + 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..0cfd1b6d72 --- /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,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 + # + # 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, + 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..cfe984f347 --- /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,130 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest 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, + 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..2c46656871 --- /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 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 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 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..4088a37a3a --- /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, seconds)) + # @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, seconds)) + # @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, seconds)) + # @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, seconds)) + # @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..f6f73c3ca9 --- /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 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 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 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 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 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 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..ece04aa2d5 --- /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 description 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 description 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 description 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..18b903314f --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user.rb @@ -0,0 +1,1140 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest 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 + + # + # Returns calling user identity information. + # + # @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 [CurrentUserIdentity] operation results. + # + def get_identity(resource_group_name, service_name, custom_headers = nil) + response = get_identity_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Returns calling user identity information. + # + # @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_identity_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_identity_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Returns calling user identity information. + # + # @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_identity_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}/identity' + + request_url = @base_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 MsRest::HttpOperationError.new(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::CurrentUserIdentity.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 [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..4d67313944 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 '2017-03-01/generated/azure_mgmt_api_management' +require '2018-01-01/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 '2018-06-01-preview/generated/azure_mgmt_api_management' require '2016-07-07/generated/azure_mgmt_api_management' -require '2017-03-01/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..bf3618c5bb 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,12 @@ module Azure::ApiManagement::Profiles::Latest module Mgmt + UserGroup = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserGroup + UserSubscription = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserSubscription + UserIdentities = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserIdentities + ApiVersionSet = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiVersionSet + ApiExport = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiExport + 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 +34,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,20 +56,105 @@ 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 - UserGroup = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserGroup - UserSubscription = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserSubscription - UserIdentities = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserIdentities - ApiVersionSet = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiVersionSet - ApiExport = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiExport module Models + SaveConfigurationParameter = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter + OpenidConnectProviderUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderUpdateContract + BackendProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties + QuotaCounterCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection + DeployConfigurationParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters + TermsOfServiceProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TermsOfServiceProperties + ApiEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract + 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 + 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 @@ -187,103 +277,13 @@ module Models QuotaCounterValueContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContract UserCreateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCreateParameters OpenIdConnectProviderCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenIdConnectProviderCollection - SaveConfigurationParameter = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter - OpenidConnectProviderUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderUpdateContract - BackendProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties - QuotaCounterCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection - DeployConfigurationParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters - TermsOfServiceProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TermsOfServiceProperties - ApiEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract - 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 :user_group, :user_subscription, :user_identities, :api_version_set, :api_export, :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, :configurable, :base_url, :options, :model_classes def initialize(options = {}) if options.is_a?(Hash) && options.length == 0 @@ -303,6 +303,12 @@ def initialize(options = {}) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @user_group = @client_0.user_group + @user_subscription = @client_0.user_subscription + @user_identities = @client_0.user_identities + @api_version_set = @client_0.api_version_set + @api_export = @client_0.api_export + @group = @client_0.group @policy = @client_0.policy @policy_snippets = @client_0.policy_snippets @regions = @client_0.regions @@ -325,7 +331,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,18 +353,13 @@ 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 - @user_group = @client_0.user_group - @user_subscription = @client_0.user_subscription - @user_identities = @client_0.user_identities - @api_version_set = @client_0.api_version_set - @api_export = @client_0.api_export @model_classes = ModelClasses.new end @@ -380,641 +380,641 @@ def method_missing(method, *args) end class ModelClasses - def api_management_service_list_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceListResult + def save_configuration_parameter + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter end - def error_field_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorFieldContract + def openid_connect_provider_update_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderUpdateContract end - def api_management_service_get_sso_token_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceGetSsoTokenResult + def backend_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties end - def error_response - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponse + def quota_counter_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection end - def api_management_service_check_name_availability_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceCheckNameAvailabilityParameters + def deploy_configuration_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters end - def policy_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyCollection + def terms_of_service_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TermsOfServiceProperties end - def api_management_service_name_availability_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceNameAvailabilityResult + def api_entity_base_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract end - def policy_snippets_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicySnippetsCollection + def quota_counter_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterContract end - def api_management_service_apply_network_configuration_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceApplyNetworkConfigurationParameters + def issue_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection end - def region_list_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionListResult + def subscriptions_delegation_settings_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionsDelegationSettingsProperties end - def api_management_service_upload_certificate_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUploadCertificateParameters + def tag_resource_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract end - def api_export_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiExportResult + def registration_delegation_settings_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegistrationDelegationSettingsProperties end - def hostname_configuration_old - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameConfigurationOld + def backend_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendBaseParameters end - def certificate_information - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateInformation + def quota_counter_value_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContractProperties end - def certificate_configuration - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateConfiguration + def parameter_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ParameterContract end - def api_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCollection + def product_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductUpdateParameters end - def hostname_configuration - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameConfiguration + def authorization_server_contract_base_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContractBaseProperties end - def api_create_or_update_parameter - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCreateOrUpdateParameter + def property_entity_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyEntityBaseParameters end - def virtual_network_configuration - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkConfiguration + def sampling_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingSettings end - def oauth2_authentication_settings_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OAuth2AuthenticationSettingsContract + def subscription_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionCollection end - def api_management_service_sku_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceSkuProperties + def property_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyUpdateParameters end - def subscription_key_parameter_names_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionKeyParameterNamesContract + def policy_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContract end - def additional_location - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AdditionalLocation + def api_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContractProperties end - def api_revision_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionContract + def api_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContract end - def api_management_service_backup_restore_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceBackupRestoreParameters + def api_release_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseContract end - def api_revision_info_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionInfoContract + def operation_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationContract end - def api_management_service_base_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceBaseProperties + def schema_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaContract end - def api_release_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseCollection + def issue_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueContract end - def api_management_service_identity - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceIdentity + def issue_comment_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentContract end - def operation_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationCollection + def issue_attachment_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentContract end - def access_information_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AccessInformationContract + def diagnostic_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticContract end - def representation_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RepresentationContract + def product_tag_resource_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductTagResourceContractProperties end - def apim_resource - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApimResource + def api_tag_resource_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiTagResourceContractProperties end - def response_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ResponseContract + def product_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductContract end - def tag_description_create_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionCreateParameters + def authorization_server_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContract end - def operation_update_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationUpdateContract + def authorization_server_update_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerUpdateContract end - def error_response_body - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponseBody + def backend_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendContract end - def schema_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaCollection + def backend_reconnect_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendReconnectContract end - def user_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserUpdateParameters + def certificate_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateContract end - def property_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyCollection + def api_management_service_resource + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceResource end - def user_token_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserTokenResult + def api_management_service_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateParameters end - def policy_snippet_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicySnippetContract + def email_template_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateContract end - def user_token_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserTokenParameters + def group_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupContract end - def region_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionContract + def user_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserContract end - def body_diagnostic_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BodyDiagnosticSettings + def identity_provider_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderContract end - def resource - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Resource + def logger_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract end - def pipeline_diagnostic_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PipelineDiagnosticSettings + def notification_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationContract end - def api_version_set_contract_details - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContractDetails + def recipient_user_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserContract end - def user_identity_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserIdentityCollection + def recipient_email_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailContract end - def tag_description_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionCollection + def openid_connect_provider_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderContract end - def product_entity_base_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductEntityBaseParameters + def portal_signin_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSigninSettings end - def api_management_service_update_hostname_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateHostnameParameters + def portal_signup_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSignupSettings end - def operation_tag_resource_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationTagResourceContractProperties + def portal_delegation_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalDelegationSettings end - def operation_display - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationDisplay + def subscription_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionContract end - def tag_tag_resource_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagTagResourceContractProperties + def property_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyContract end - def operation - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation + def tag_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagContract end - def tag_resource_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceCollection + def tag_description_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionContract end - def operation_list_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationListResult + def api_version_set_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContract end - def product_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductCollection + def policy_content_format + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContentFormat end - def email_template_parameters_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateParametersContractProperties + def protocol + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Protocol end - def authorization_server_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerCollection + def content_format + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ContentFormat end - def tag_create_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagCreateUpdateParameters + def soap_api_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType end - def token_body_parameter_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TokenBodyParameterContract + def api_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiType end - def email_template_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateCollection + def sampling_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType end - def backend_authorization_header_credentials - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendAuthorizationHeaderCredentials + def always_log + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AlwaysLog end - def email_template_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateUpdateParameters + def product_state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState end - def backend_service_fabric_cluster_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendServiceFabricClusterProperties + def grant_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType end - def group_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupContractProperties + def authorization_method + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod end - def backend_credentials_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendCredentialsContract + def client_authentication_method + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod end - def tag_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagCollection + def bearer_token_sending_method + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod end - def backend_tls_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendTlsProperties + def backend_protocol + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol end - def group_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupCollection + def hostname_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType end - def operation_result_log_item_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationResultLogItemContract + def sku_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType end - def group_create_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupCreateParameters + def virtual_network_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkType end - def backend_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendUpdateParameters + def name_availability_reason + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NameAvailabilityReason end - def group_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupUpdateParameters + def group_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupType end - def access_information_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AccessInformationUpdateParameters + def confirmation + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Confirmation end - def user_identity_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserIdentityContract + def user_state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserState end - def certificate_create_or_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateCreateOrUpdateParameters + def identity_provider_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderType end - def user_entity_base_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserEntityBaseParameters + def logger_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerType end - def api_create_or_update_properties_wsdl_selector - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCreateOrUpdatePropertiesWsdlSelector + def connectivity_status_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusType end - def subscription_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionUpdateParameters + def subscription_state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState end - def authentication_settings_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthenticationSettingsContract + def async_operation_status + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus end - def user_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCollection + def key_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::KeyType end - def api_revision_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionCollection + def versioning_scheme + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VersioningScheme end - def subscription_create_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionCreateParameters + def template_name + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TemplateName end - def api_version_set_entity_base - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetEntityBase + def notification_name + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationName end - def identity_provider_list - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderList + def policy_scope_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyScopeContract end - def request_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestContract + def export_format + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ExportFormat end - def identity_provider_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderUpdateParameters + def state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State end - def api_version_set_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetCollection + def api_management_service_list_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceListResult end - def identity_provider_base_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters + def error_field_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorFieldContract end - def issue_comment_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentCollection + def api_management_service_get_sso_token_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceGetSsoTokenResult end - def request_report_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportCollection + def error_response + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponse end - def http_message_diagnostic - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HttpMessageDiagnostic + def api_management_service_check_name_availability_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceCheckNameAvailabilityParameters end - def logger_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection + def policy_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyCollection end - def diagnostic_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticCollection + def api_management_service_name_availability_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceNameAvailabilityResult end - def logger_update_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract + def policy_snippets_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicySnippetsCollection end - def generate_sso_url_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GenerateSsoUrlResult + def api_management_service_apply_network_configuration_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceApplyNetworkConfigurationParameters end - def recipients_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientsContractProperties + def region_list_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionListResult end - def tenant_configuration_sync_state_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TenantConfigurationSyncStateContract + def api_management_service_upload_certificate_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUploadCertificateParameters end - def request_report_record_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportRecordContract + def api_export_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiExportResult end - def operation_result_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationResultContract + def hostname_configuration_old + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameConfigurationOld end - def notification_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection + def certificate_information + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateInformation end - def x509_certificate_name - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::X509CertificateName + def certificate_configuration + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateConfiguration end - def report_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection + def api_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCollection end - def backend_proxy_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProxyContract + def hostname_configuration + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameConfiguration end - def recipient_user_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserCollection + def api_create_or_update_parameter + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCreateOrUpdateParameter end - def backend_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendCollection + def virtual_network_configuration + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkConfiguration end - def report_record_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract + def oauth2_authentication_settings_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OAuth2AuthenticationSettingsContract end - def certificate_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateCollection + def api_management_service_sku_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceSkuProperties end - def recipient_email_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailCollection + def subscription_key_parameter_names_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionKeyParameterNamesContract end - def api_update_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiUpdateContract + def additional_location + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AdditionalLocation end - def connectivity_status_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusContract + def api_revision_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionContract end - def api_version_set_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetUpdateParameters + def api_management_service_backup_restore_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceBackupRestoreParameters end - def network_status_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContract + def api_revision_info_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionInfoContract end - def operation_entity_base_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract + def api_management_service_base_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceBaseProperties end - def network_status_contract_by_location - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContractByLocation + def api_release_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseCollection end - def issue_attachment_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentCollection + def api_management_service_identity + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceIdentity end - def quota_counter_value_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContract + def operation_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationCollection end - def user_create_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCreateParameters + def access_information_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AccessInformationContract end - def open_id_connect_provider_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenIdConnectProviderCollection + def representation_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RepresentationContract end - def save_configuration_parameter - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter + def apim_resource + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApimResource end - def openid_connect_provider_update_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderUpdateContract + def response_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ResponseContract end - def backend_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties + def tag_description_create_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionCreateParameters end - def quota_counter_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection + def operation_update_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationUpdateContract end - def deploy_configuration_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters + def error_response_body + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponseBody end - def terms_of_service_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TermsOfServiceProperties + def schema_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaCollection end - def api_entity_base_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract + def user_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserUpdateParameters end - def quota_counter_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterContract + def property_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyCollection end - def issue_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection + def user_token_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserTokenResult end - def subscriptions_delegation_settings_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionsDelegationSettingsProperties + def policy_snippet_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicySnippetContract end - def tag_resource_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract + def user_token_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserTokenParameters end - def registration_delegation_settings_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegistrationDelegationSettingsProperties + def region_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionContract end - def backend_base_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendBaseParameters + def body_diagnostic_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BodyDiagnosticSettings end - def quota_counter_value_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContractProperties + def resource + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Resource end - def parameter_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ParameterContract + def pipeline_diagnostic_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PipelineDiagnosticSettings end - def product_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductUpdateParameters + def api_version_set_contract_details + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContractDetails end - def authorization_server_contract_base_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContractBaseProperties + def user_identity_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserIdentityCollection end - def property_entity_base_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyEntityBaseParameters + def tag_description_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionCollection end - def sampling_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingSettings + def product_entity_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductEntityBaseParameters end - def subscription_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionCollection + def api_management_service_update_hostname_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateHostnameParameters end - def property_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyUpdateParameters + def operation_tag_resource_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationTagResourceContractProperties end - def policy_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContract + def operation_display + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationDisplay end - def api_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContractProperties + def tag_tag_resource_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagTagResourceContractProperties end - def api_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContract + def operation + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation end - def api_release_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseContract + def tag_resource_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceCollection end - def operation_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationContract + def operation_list_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationListResult end - def schema_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaContract + def product_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductCollection end - def issue_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueContract + def email_template_parameters_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateParametersContractProperties end - def issue_comment_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentContract + def authorization_server_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerCollection end - def issue_attachment_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentContract + def tag_create_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagCreateUpdateParameters end - def diagnostic_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticContract + def token_body_parameter_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TokenBodyParameterContract end - def product_tag_resource_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductTagResourceContractProperties + def email_template_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateCollection end - def api_tag_resource_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiTagResourceContractProperties + def backend_authorization_header_credentials + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendAuthorizationHeaderCredentials end - def product_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductContract + def email_template_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateUpdateParameters end - def authorization_server_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContract + def backend_service_fabric_cluster_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendServiceFabricClusterProperties end - def authorization_server_update_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerUpdateContract + def group_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupContractProperties end - def backend_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendContract + def backend_credentials_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendCredentialsContract end - def backend_reconnect_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendReconnectContract + def tag_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagCollection end - def certificate_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateContract + def backend_tls_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendTlsProperties end - def api_management_service_resource - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceResource + def group_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupCollection end - def api_management_service_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateParameters + def operation_result_log_item_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationResultLogItemContract end - def email_template_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateContract + def group_create_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupCreateParameters end - def group_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupContract + def backend_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendUpdateParameters end - def user_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserContract + def group_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupUpdateParameters end - def identity_provider_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderContract + def access_information_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AccessInformationUpdateParameters end - def logger_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract + def user_identity_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserIdentityContract end - def notification_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationContract + def certificate_create_or_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateCreateOrUpdateParameters end - def recipient_user_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserContract + def user_entity_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserEntityBaseParameters end - def recipient_email_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailContract + def api_create_or_update_properties_wsdl_selector + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiCreateOrUpdatePropertiesWsdlSelector end - def openid_connect_provider_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderContract + def subscription_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionUpdateParameters end - def portal_signin_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSigninSettings + def authentication_settings_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthenticationSettingsContract end - def portal_signup_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSignupSettings + def user_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCollection end - def portal_delegation_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalDelegationSettings + def api_revision_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionCollection end - def subscription_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionContract + def subscription_create_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionCreateParameters end - def property_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyContract + def api_version_set_entity_base + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetEntityBase end - def tag_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagContract + def identity_provider_list + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderList end - def tag_description_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionContract + def request_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestContract end - def api_version_set_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContract + def identity_provider_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderUpdateParameters end - def policy_content_format - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContentFormat + def api_version_set_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetCollection end - def protocol - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Protocol + def identity_provider_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters end - def content_format - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ContentFormat + def issue_comment_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentCollection end - def soap_api_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType + def request_report_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportCollection end - def api_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiType + def http_message_diagnostic + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HttpMessageDiagnostic end - def state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State + def logger_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection end - def sampling_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType + def diagnostic_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticCollection end - def always_log - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AlwaysLog + def logger_update_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract end - def product_state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState + def generate_sso_url_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GenerateSsoUrlResult end - def grant_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType + def recipients_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientsContractProperties end - def authorization_method - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod + def tenant_configuration_sync_state_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TenantConfigurationSyncStateContract end - def client_authentication_method - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod + def request_report_record_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportRecordContract end - def bearer_token_sending_method - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod + def operation_result_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationResultContract end - def backend_protocol - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol + def notification_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection end - def hostname_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType + def x509_certificate_name + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::X509CertificateName end - def sku_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType + def report_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection end - def virtual_network_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkType + def backend_proxy_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProxyContract end - def name_availability_reason - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NameAvailabilityReason + def recipient_user_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserCollection end - def group_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupType + def backend_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendCollection end - def confirmation - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Confirmation + def report_record_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract end - def user_state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserState + def certificate_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateCollection end - def identity_provider_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderType + def recipient_email_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailCollection end - def logger_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerType + def api_update_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiUpdateContract end - def connectivity_status_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusType + def connectivity_status_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusContract end - def subscription_state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState + def api_version_set_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetUpdateParameters end - def async_operation_status - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus + def network_status_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContract end - def key_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::KeyType + def operation_entity_base_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract end - def versioning_scheme - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VersioningScheme + def network_status_contract_by_location + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContractByLocation end - def template_name - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TemplateName + def issue_attachment_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentCollection end - def notification_name - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationName + def quota_counter_value_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContract end - def policy_scope_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyScopeContract + def user_create_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCreateParameters end - def export_format - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ExportFormat + def open_id_connect_provider_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenIdConnectProviderCollection end end end