diff --git a/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb b/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb index ddbf58e578..a3952bafaa 100644 --- a/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb +++ b/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb @@ -39,12 +39,12 @@ module Mgmt SignInSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::SignInSettings SignUpSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::SignUpSettings DelegationSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::DelegationSettings - Product = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Product Policy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Policy - ProductApi = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ProductApi + Product = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Product + ProductGroup = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ProductGroup ProductSubscriptions = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ProductSubscriptions + ProductApi = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ProductApi ProductPolicy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ProductPolicy - ProductGroup = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ProductGroup Property = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Property QuotaByCounterKeys = Azure::ApiManagement::Mgmt::V2018_06_01_preview::QuotaByCounterKeys QuotaByPeriodKeys = Azure::ApiManagement::Mgmt::V2018_06_01_preview::QuotaByPeriodKeys @@ -116,9 +116,9 @@ module Models TagDescriptionCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionCollection ApiVersionSetContractDetails = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContractDetails ProductEntityBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductEntityBaseParameters - OperationTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationTagResourceContractProperties - TagTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagTagResourceContractProperties ApiManagementServiceUpdateHostnameParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateHostnameParameters + TagTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagTagResourceContractProperties + TagResourceCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceCollection ProductCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductCollection OperationDisplay = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationDisplay AuthorizationServerCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerCollection @@ -152,49 +152,49 @@ module Models IdentityProviderList = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderList 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 + OperationTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationTagResourceContractProperties + IdentityProviderBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters IssueCommentCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentCollection - TagResourceCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceCollection Operation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation + HttpMessageDiagnostic = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HttpMessageDiagnostic + ApiVersionSetCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetCollection + LoggerUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract LoggerCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection RequestReportCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportCollection - IdentityProviderBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters + TenantConfigurationSyncStateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TenantConfigurationSyncStateContract GenerateSsoUrlResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GenerateSsoUrlResult DiagnosticCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticCollection - HttpMessageDiagnostic = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HttpMessageDiagnostic + NotificationCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection RequestReportRecordContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportRecordContract RecipientsContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientsContractProperties - LoggerUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract + BackendProxyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProxyContract X509CertificateName = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::X509CertificateName OperationResultContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationResultContract - TenantConfigurationSyncStateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TenantConfigurationSyncStateContract + ReportRecordContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract RecipientUserCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserCollection ReportCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection - NotificationCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection + ConnectivityStatusContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusContract RecipientEmailCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailCollection BackendCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendCollection - BackendProxyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProxyContract + OperationEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract ApiVersionSetUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetUpdateParameters ApiUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiUpdateContract - ReportRecordContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract + QuotaCounterValueContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContract NetworkStatusContractByLocation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContractByLocation NetworkStatusContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContract - ConnectivityStatusContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusContract + SaveConfigurationParameter = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter UserCreateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCreateParameters IssueAttachmentCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentCollection - OperationEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract + QuotaCounterCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection OpenidConnectProviderUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderUpdateContract OpenIdConnectProviderCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenIdConnectProviderCollection - QuotaCounterValueContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContract + ApiEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract DeployConfigurationParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters - BackendProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties - SaveConfigurationParameter = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter QuotaCounterContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterContract - TermsOfServiceProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TermsOfServiceProperties - QuotaCounterCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection - TagResourceContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract IssueCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection - ApiEntityBaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract + TagResourceContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract + TermsOfServiceProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TermsOfServiceProperties + BackendProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties QuotaCounterValueContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContractProperties RegistrationDelegationSettingsProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegistrationDelegationSettingsProperties SubscriptionsDelegationSettingsProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionsDelegationSettingsProperties @@ -281,7 +281,7 @@ module Models end class ApiManagementManagementClass - attr_reader :group, :subscription, :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, :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, :policy, :product_api, :product_subscriptions, :product_policy, :product_group, :property, :quota_by_counter_keys, :quota_by_period_keys, :reports, :tag_resource, :tag_description, :operation_operations, :tenant_access, :tenant_access_git, :tenant_configuration, :user, :user_subscription, :user_group, :api_version_set, :user_identities, :api_export, :tag, :logger, :certificate, :configurable, :base_url, :options, :model_classes + attr_reader :group, :subscription, :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, :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, :policy, :product, :product_group, :product_subscriptions, :product_api, :product_policy, :property, :quota_by_counter_keys, :quota_by_period_keys, :reports, :tag_resource, :tag_description, :operation_operations, :tenant_access, :tenant_access_git, :tenant_configuration, :user, :user_subscription, :user_group, :api_version_set, :user_identities, :api_export, :tag, :logger, :certificate, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -323,12 +323,12 @@ def initialize(configurable, base_url=nil, options=nil) @sign_in_settings = @client_0.sign_in_settings @sign_up_settings = @client_0.sign_up_settings @delegation_settings = @client_0.delegation_settings - @product = @client_0.product @policy = @client_0.policy - @product_api = @client_0.product_api + @product = @client_0.product + @product_group = @client_0.product_group @product_subscriptions = @client_0.product_subscriptions + @product_api = @client_0.product_api @product_policy = @client_0.product_policy - @product_group = @client_0.product_group @property = @client_0.property @quota_by_counter_keys = @client_0.quota_by_counter_keys @quota_by_period_keys = @client_0.quota_by_period_keys @@ -516,14 +516,14 @@ def api_version_set_contract_details def product_entity_base_parameters Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductEntityBaseParameters end - def operation_tag_resource_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationTagResourceContractProperties + def api_management_service_update_hostname_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateHostnameParameters end def tag_tag_resource_contract_properties Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagTagResourceContractProperties end - def api_management_service_update_hostname_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateHostnameParameters + def tag_resource_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceCollection end def product_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductCollection @@ -624,26 +624,35 @@ def request_contract def identity_provider_update_parameters Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderUpdateParameters end - def api_version_set_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetCollection + def operation_tag_resource_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationTagResourceContractProperties + end + def identity_provider_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters end def issue_comment_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentCollection end - def tag_resource_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceCollection - end def operation Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation end + def http_message_diagnostic + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HttpMessageDiagnostic + end + def api_version_set_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetCollection + end + def logger_update_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract + end def logger_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerCollection end def request_report_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportCollection end - def identity_provider_base_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderBaseParameters + def tenant_configuration_sync_state_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TenantConfigurationSyncStateContract end def generate_sso_url_result Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GenerateSsoUrlResult @@ -651,8 +660,8 @@ def generate_sso_url_result def diagnostic_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticCollection end - def http_message_diagnostic - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HttpMessageDiagnostic + def notification_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection end def request_report_record_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RequestReportRecordContract @@ -660,8 +669,8 @@ def request_report_record_contract def recipients_contract_properties Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientsContractProperties end - def logger_update_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerUpdateContract + def backend_proxy_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProxyContract end def x509_certificate_name Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::X509CertificateName @@ -669,8 +678,8 @@ def x509_certificate_name def operation_result_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationResultContract end - def tenant_configuration_sync_state_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TenantConfigurationSyncStateContract + def report_record_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract end def recipient_user_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserCollection @@ -678,8 +687,8 @@ def recipient_user_collection def report_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportCollection end - def notification_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationCollection + def connectivity_status_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusContract end def recipient_email_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailCollection @@ -687,8 +696,8 @@ def recipient_email_collection def backend_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendCollection end - def backend_proxy_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProxyContract + def operation_entity_base_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract end def api_version_set_update_parameters Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetUpdateParameters @@ -696,8 +705,8 @@ def api_version_set_update_parameters def api_update_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiUpdateContract end - def report_record_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ReportRecordContract + def quota_counter_value_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContract end def network_status_contract_by_location Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContractByLocation @@ -705,8 +714,8 @@ def network_status_contract_by_location def network_status_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NetworkStatusContract end - def connectivity_status_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusContract + def save_configuration_parameter + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter end def user_create_parameters Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserCreateParameters @@ -714,8 +723,8 @@ def user_create_parameters def issue_attachment_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentCollection end - def operation_entity_base_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationEntityBaseContract + def quota_counter_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection end def openid_connect_provider_update_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderUpdateContract @@ -723,35 +732,26 @@ def openid_connect_provider_update_contract def open_id_connect_provider_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenIdConnectProviderCollection end - def quota_counter_value_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContract + def api_entity_base_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiEntityBaseContract end def deploy_configuration_parameters Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DeployConfigurationParameters end - def backend_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties - end - def save_configuration_parameter - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SaveConfigurationParameter - end def quota_counter_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterContract end - def terms_of_service_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TermsOfServiceProperties - end - def quota_counter_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterCollection + def issue_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection end def tag_resource_contract Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract end - def issue_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection + 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 backend_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProperties end def quota_counter_value_contract_properties Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContractProperties diff --git a/azure_sdk/lib/latest/modules/automation_profile_module.rb b/azure_sdk/lib/latest/modules/automation_profile_module.rb index 1696580ac6..8aff49bf7d 100644 --- a/azure_sdk/lib/latest/modules/automation_profile_module.rb +++ b/azure_sdk/lib/latest/modules/automation_profile_module.rb @@ -7,6 +7,7 @@ module Azure::Profiles::Latest module Automation module Mgmt + CertificateOperations = Azure::Automation::Mgmt::V2015_10_31::CertificateOperations ConnectionOperations = Azure::Automation::Mgmt::V2015_10_31::ConnectionOperations ConnectionTypeOperations = Azure::Automation::Mgmt::V2015_10_31::ConnectionTypeOperations CredentialOperations = Azure::Automation::Mgmt::V2015_10_31::CredentialOperations @@ -38,7 +39,6 @@ module Mgmt AutomationAccountOperations = Azure::Automation::Mgmt::V2015_10_31::AutomationAccountOperations StatisticsOperations = Azure::Automation::Mgmt::V2015_10_31::StatisticsOperations Keys = Azure::Automation::Mgmt::V2015_10_31::Keys - CertificateOperations = Azure::Automation::Mgmt::V2015_10_31::CertificateOperations module Models Job = Azure::Automation::Mgmt::V2015_10_31::Models::Job @@ -142,37 +142,37 @@ module Models RunbookCreateOrUpdateDraftParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftParameters RunbookCreateOrUpdateDraftProperties = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties Credential = Azure::Automation::Mgmt::V2015_10_31::Models::Credential - DscCompilationJob = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob + Connection = Azure::Automation::Mgmt::V2015_10_31::Models::Connection CertificateCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters DscNode = Azure::Automation::Mgmt::V2015_10_31::Models::DscNode - DscNodeConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration + DscCompilationJob = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob DscConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration AutomationAccount = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccount - Schedule = Azure::Automation::Mgmt::V2015_10_31::Models::Schedule + DscNodeConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration ModuleModel = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel Runbook = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook - SkuNameEnum = Azure::Automation::Mgmt::V2015_10_31::Models::SkuNameEnum Certificate = Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + Variable = Azure::Automation::Mgmt::V2015_10_31::Models::Variable Webhook = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook + SkuNameEnum = Azure::Automation::Mgmt::V2015_10_31::Models::SkuNameEnum + Schedule = Azure::Automation::Mgmt::V2015_10_31::Models::Schedule + AutomationKeyName = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName AutomationKeyPermissions = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyPermissions + JobProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState AutomationAccountState = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountState - Variable = Azure::Automation::Mgmt::V2015_10_31::Models::Variable JobStreamType = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamType - Connection = Azure::Automation::Mgmt::V2015_10_31::Models::Connection - JobStatus = Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus - AutomationKeyName = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName ContentSourceType = Azure::Automation::Mgmt::V2015_10_31::Models::ContentSourceType - JobProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState - DscConfigurationState = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState + DscConfigurationProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationProvisioningState + JobStatus = Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus 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 + ModuleProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleProvisioningState + DscConfigurationState = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState 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 - ScheduleFrequency = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleFrequency ScheduleDay = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay + RunbookTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum + ScheduleFrequency = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleFrequency Usage = Azure::Automation::Mgmt::V2015_10_31::Models::Usage Sku = Azure::Automation::Mgmt::V2015_10_31::Models::Sku ErrorResponse = Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse @@ -182,7 +182,7 @@ module Models end class AutomationManagementClass - attr_reader :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, :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, :usages, :automation_account_operations, :statistics_operations, :keys, :certificate_operations, :configurable, :base_url, :options, :model_classes + attr_reader :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, :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, :usages, :automation_account_operations, :statistics_operations, :keys, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -192,6 +192,7 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @certificate_operations = @client_0.certificate_operations @connection_operations = @client_0.connection_operations @connection_type_operations = @client_0.connection_type_operations @credential_operations = @client_0.credential_operations @@ -223,7 +224,6 @@ def initialize(configurable, base_url=nil, options=nil) @automation_account_operations = @client_0.automation_account_operations @statistics_operations = @client_0.statistics_operations @keys = @client_0.keys - @certificate_operations = @client_0.certificate_operations @model_classes = ModelClasses.new end @@ -545,8 +545,8 @@ def runbook_create_or_update_draft_properties def credential Azure::Automation::Mgmt::V2015_10_31::Models::Credential end - def dsc_compilation_job - Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob + def connection + Azure::Automation::Mgmt::V2015_10_31::Models::Connection end def certificate_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters @@ -554,8 +554,8 @@ def certificate_create_or_update_parameters 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 dsc_compilation_job + Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob end def dsc_configuration Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration @@ -563,8 +563,8 @@ def dsc_configuration def automation_account Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccount end - def schedule - Azure::Automation::Mgmt::V2015_10_31::Models::Schedule + def dsc_node_configuration + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration end def module_model Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel @@ -572,44 +572,44 @@ def module_model def runbook Azure::Automation::Mgmt::V2015_10_31::Models::Runbook end - def sku_name_enum - Azure::Automation::Mgmt::V2015_10_31::Models::SkuNameEnum - end def certificate Azure::Automation::Mgmt::V2015_10_31::Models::Certificate end + def variable + Azure::Automation::Mgmt::V2015_10_31::Models::Variable + end def webhook Azure::Automation::Mgmt::V2015_10_31::Models::Webhook end + def sku_name_enum + Azure::Automation::Mgmt::V2015_10_31::Models::SkuNameEnum + end + def schedule + Azure::Automation::Mgmt::V2015_10_31::Models::Schedule + end + def automation_key_name + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName + end def automation_key_permissions Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyPermissions end + def job_provisioning_state + Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState + end def automation_account_state Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountState end - def variable - Azure::Automation::Mgmt::V2015_10_31::Models::Variable - end def job_stream_type Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamType end - def connection - Azure::Automation::Mgmt::V2015_10_31::Models::Connection - end - def job_status - Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus - end - def automation_key_name - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName - end def content_source_type Azure::Automation::Mgmt::V2015_10_31::Models::ContentSourceType end - def job_provisioning_state - Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState + def dsc_configuration_provisioning_state + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationProvisioningState end - def dsc_configuration_state - Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState + def job_status + Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus end def agent_registration_key_name Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName @@ -617,11 +617,11 @@ def agent_registration_key_name 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 + def module_provisioning_state + Azure::Automation::Mgmt::V2015_10_31::Models::ModuleProvisioningState end - def runbook_type_enum - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum + def dsc_configuration_state + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState end def runbook_state Azure::Automation::Mgmt::V2015_10_31::Models::RunbookState @@ -629,15 +629,15 @@ def runbook_state 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 + def schedule_day + Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay + end + def runbook_type_enum + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum end def schedule_frequency Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleFrequency end - def schedule_day - Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay - end def usage Azure::Automation::Mgmt::V2015_10_31::Models::Usage end diff --git a/azure_sdk/lib/latest/modules/batch_profile_module.rb b/azure_sdk/lib/latest/modules/batch_profile_module.rb index 903356eb48..49ca2fc344 100644 --- a/azure_sdk/lib/latest/modules/batch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/batch_profile_module.rb @@ -9,13 +9,14 @@ module Batch module Mgmt Location = Azure::Batch::Mgmt::V2017_09_01::Location Operations = Azure::Batch::Mgmt::V2017_09_01::Operations + CertificateOperations = Azure::Batch::Mgmt::V2017_09_01::CertificateOperations BatchAccountOperations = Azure::Batch::Mgmt::V2017_09_01::BatchAccountOperations ApplicationPackageOperations = Azure::Batch::Mgmt::V2017_09_01::ApplicationPackageOperations ApplicationOperations = Azure::Batch::Mgmt::V2017_09_01::ApplicationOperations PoolOperations = Azure::Batch::Mgmt::V2017_09_01::PoolOperations - CertificateOperations = Azure::Batch::Mgmt::V2017_09_01::CertificateOperations module Models + CheckNameAvailabilityParameters = Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityParameters 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 @@ -51,23 +52,23 @@ module Models PackageState = Azure::Batch::Mgmt::V2017_09_01::Models::PackageState PoolAllocationMode = Azure::Batch::Mgmt::V2017_09_01::Models::PoolAllocationMode AccountKeyType = Azure::Batch::Mgmt::V2017_09_01::Models::AccountKeyType - PoolProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::PoolProvisioningState Certificate = Azure::Batch::Mgmt::V2017_09_01::Models::Certificate + CertificateCreateOrUpdateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters CertificateProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateProvisioningState - StorageAccountType = Azure::Batch::Mgmt::V2017_09_01::Models::StorageAccountType + PoolProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::PoolProvisioningState AllocationState = Azure::Batch::Mgmt::V2017_09_01::Models::AllocationState CertificateFormat = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateFormat - InboundEndpointProtocol = Azure::Batch::Mgmt::V2017_09_01::Models::InboundEndpointProtocol + StorageAccountType = Azure::Batch::Mgmt::V2017_09_01::Models::StorageAccountType ComputeNodeDeallocationOption = Azure::Batch::Mgmt::V2017_09_01::Models::ComputeNodeDeallocationOption - CertificateCreateOrUpdateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters + InterNodeCommunicationState = Azure::Batch::Mgmt::V2017_09_01::Models::InterNodeCommunicationState CachingType = Azure::Batch::Mgmt::V2017_09_01::Models::CachingType NetworkSecurityGroupRuleAccess = Azure::Batch::Mgmt::V2017_09_01::Models::NetworkSecurityGroupRuleAccess ComputeNodeFillType = Azure::Batch::Mgmt::V2017_09_01::Models::ComputeNodeFillType - InterNodeCommunicationState = Azure::Batch::Mgmt::V2017_09_01::Models::InterNodeCommunicationState - AutoUserScope = Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserScope + ElevationLevel = Azure::Batch::Mgmt::V2017_09_01::Models::ElevationLevel + InboundEndpointProtocol = Azure::Batch::Mgmt::V2017_09_01::Models::InboundEndpointProtocol CertificateStoreLocation = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateStoreLocation CertificateVisibility = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateVisibility - ElevationLevel = Azure::Batch::Mgmt::V2017_09_01::Models::ElevationLevel + AutoUserScope = Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserScope NameAvailabilityReason = Azure::Batch::Mgmt::V2017_09_01::Models::NameAvailabilityReason Resource = Azure::Batch::Mgmt::V2017_09_01::Models::Resource OperationDisplay = Azure::Batch::Mgmt::V2017_09_01::Models::OperationDisplay @@ -86,19 +87,18 @@ module Models BatchAccountUpdateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountUpdateParameters BatchAccountRegenerateKeyParameters = Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountRegenerateKeyParameters ActivateApplicationPackageParameters = Azure::Batch::Mgmt::V2017_09_01::Models::ActivateApplicationPackageParameters - AutoScaleRunError = Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleRunError ProxyResource = Azure::Batch::Mgmt::V2017_09_01::Models::ProxyResource - ListApplicationsResult = Azure::Batch::Mgmt::V2017_09_01::Models::ListApplicationsResult ApplicationPackage = Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackage - NetworkSecurityGroupRule = Azure::Batch::Mgmt::V2017_09_01::Models::NetworkSecurityGroupRule + AutoScaleRunError = Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleRunError + ListApplicationsResult = Azure::Batch::Mgmt::V2017_09_01::Models::ListApplicationsResult + AutoScaleRun = Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleRun BatchLocationQuota = Azure::Batch::Mgmt::V2017_09_01::Models::BatchLocationQuota + NetworkSecurityGroupRule = Azure::Batch::Mgmt::V2017_09_01::Models::NetworkSecurityGroupRule DeleteCertificateError = Azure::Batch::Mgmt::V2017_09_01::Models::DeleteCertificateError - AutoScaleRun = Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleRun - CheckNameAvailabilityParameters = Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityParameters end class BatchManagementClass - attr_reader :location, :operations, :batch_account_operations, :application_package_operations, :application_operations, :pool_operations, :certificate_operations, :configurable, :base_url, :options, :model_classes + attr_reader :location, :operations, :certificate_operations, :batch_account_operations, :application_package_operations, :application_operations, :pool_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -110,11 +110,11 @@ def initialize(configurable, base_url=nil, options=nil) add_telemetry(@client_0) @location = @client_0.location @operations = @client_0.operations + @certificate_operations = @client_0.certificate_operations @batch_account_operations = @client_0.batch_account_operations @application_package_operations = @client_0.application_package_operations @application_operations = @client_0.application_operations @pool_operations = @client_0.pool_operations - @certificate_operations = @client_0.certificate_operations @model_classes = ModelClasses.new end @@ -133,6 +133,9 @@ def method_missing(method, *args) end class ModelClasses + def check_name_availability_parameters + Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityParameters + end def task_scheduling_policy Azure::Batch::Mgmt::V2017_09_01::Models::TaskSchedulingPolicy end @@ -238,17 +241,17 @@ def pool_allocation_mode def account_key_type Azure::Batch::Mgmt::V2017_09_01::Models::AccountKeyType end - def pool_provisioning_state - Azure::Batch::Mgmt::V2017_09_01::Models::PoolProvisioningState - 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 certificate_provisioning_state Azure::Batch::Mgmt::V2017_09_01::Models::CertificateProvisioningState end - def storage_account_type - Azure::Batch::Mgmt::V2017_09_01::Models::StorageAccountType + def pool_provisioning_state + Azure::Batch::Mgmt::V2017_09_01::Models::PoolProvisioningState end def allocation_state Azure::Batch::Mgmt::V2017_09_01::Models::AllocationState @@ -256,14 +259,14 @@ def allocation_state def certificate_format Azure::Batch::Mgmt::V2017_09_01::Models::CertificateFormat end - def inbound_endpoint_protocol - Azure::Batch::Mgmt::V2017_09_01::Models::InboundEndpointProtocol + def storage_account_type + Azure::Batch::Mgmt::V2017_09_01::Models::StorageAccountType end def compute_node_deallocation_option Azure::Batch::Mgmt::V2017_09_01::Models::ComputeNodeDeallocationOption end - def certificate_create_or_update_parameters - Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters + def inter_node_communication_state + Azure::Batch::Mgmt::V2017_09_01::Models::InterNodeCommunicationState end def caching_type Azure::Batch::Mgmt::V2017_09_01::Models::CachingType @@ -274,11 +277,11 @@ def network_security_group_rule_access def compute_node_fill_type Azure::Batch::Mgmt::V2017_09_01::Models::ComputeNodeFillType end - def inter_node_communication_state - Azure::Batch::Mgmt::V2017_09_01::Models::InterNodeCommunicationState + def elevation_level + Azure::Batch::Mgmt::V2017_09_01::Models::ElevationLevel end - def auto_user_scope - Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserScope + def inbound_endpoint_protocol + Azure::Batch::Mgmt::V2017_09_01::Models::InboundEndpointProtocol end def certificate_store_location Azure::Batch::Mgmt::V2017_09_01::Models::CertificateStoreLocation @@ -286,8 +289,8 @@ def certificate_store_location def certificate_visibility Azure::Batch::Mgmt::V2017_09_01::Models::CertificateVisibility end - def elevation_level - Azure::Batch::Mgmt::V2017_09_01::Models::ElevationLevel + def auto_user_scope + Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserScope end def name_availability_reason Azure::Batch::Mgmt::V2017_09_01::Models::NameAvailabilityReason @@ -343,33 +346,30 @@ def batch_account_regenerate_key_parameters def activate_application_package_parameters Azure::Batch::Mgmt::V2017_09_01::Models::ActivateApplicationPackageParameters end - def auto_scale_run_error - Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleRunError - end def proxy_resource Azure::Batch::Mgmt::V2017_09_01::Models::ProxyResource end - def list_applications_result - Azure::Batch::Mgmt::V2017_09_01::Models::ListApplicationsResult - end def application_package Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackage end - def network_security_group_rule - Azure::Batch::Mgmt::V2017_09_01::Models::NetworkSecurityGroupRule + def auto_scale_run_error + Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleRunError + end + def list_applications_result + Azure::Batch::Mgmt::V2017_09_01::Models::ListApplicationsResult + end + def auto_scale_run + Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleRun end def batch_location_quota Azure::Batch::Mgmt::V2017_09_01::Models::BatchLocationQuota end + def network_security_group_rule + Azure::Batch::Mgmt::V2017_09_01::Models::NetworkSecurityGroupRule + end def delete_certificate_error Azure::Batch::Mgmt::V2017_09_01::Models::DeleteCertificateError end - def auto_scale_run - Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleRun - end - def check_name_availability_parameters - Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityParameters - end end end end diff --git a/azure_sdk/lib/latest/modules/billing_profile_module.rb b/azure_sdk/lib/latest/modules/billing_profile_module.rb index 91abf658cd..a9b798eeee 100644 --- a/azure_sdk/lib/latest/modules/billing_profile_module.rb +++ b/azure_sdk/lib/latest/modules/billing_profile_module.rb @@ -7,10 +7,10 @@ module Azure::Profiles::Latest module Billing module Mgmt + Operations = Azure::Billing::Mgmt::V2018_03_01_preview::Operations EnrollmentAccounts = Azure::Billing::Mgmt::V2018_03_01_preview::EnrollmentAccounts BillingPeriods = Azure::Billing::Mgmt::V2018_03_01_preview::BillingPeriods Invoices = Azure::Billing::Mgmt::V2018_03_01_preview::Invoices - Operations = Azure::Billing::Mgmt::V2018_03_01_preview::Operations module Models ErrorDetails = Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorDetails @@ -29,7 +29,7 @@ module Models end class BillingManagementClass - attr_reader :enrollment_accounts, :billing_periods, :invoices, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :enrollment_accounts, :billing_periods, :invoices, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -39,10 +39,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 @enrollment_accounts = @client_0.enrollment_accounts @billing_periods = @client_0.billing_periods @invoices = @client_0.invoices - @operations = @client_0.operations @model_classes = ModelClasses.new end diff --git a/azure_sdk/lib/latest/modules/cdn_profile_module.rb b/azure_sdk/lib/latest/modules/cdn_profile_module.rb index ccb1bcc48e..40d53f49c8 100644 --- a/azure_sdk/lib/latest/modules/cdn_profile_module.rb +++ b/azure_sdk/lib/latest/modules/cdn_profile_module.rb @@ -7,15 +7,16 @@ module Azure::Profiles::Latest module CDN module Mgmt + Operations = Azure::CDN::Mgmt::V2017_10_12::Operations 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 EdgeNodes = Azure::CDN::Mgmt::V2017_10_12::EdgeNodes - Operations = Azure::CDN::Mgmt::V2017_10_12::Operations module Models + 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 UrlPathConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters @@ -33,32 +34,32 @@ module Models 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 - ValidateCustomDomainInput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput - IpAddressGroup = Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup - ProxyResource = Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource Origin = Azure::CDN::Mgmt::V2017_10_12::Models::Origin + PurgeParameters = Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters + ValidateCustomDomainOutput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput + EdgeNode = Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode ProfileResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileResourceState OptimizationType = Azure::CDN::Mgmt::V2017_10_12::Models::OptimizationType - EdgeNode = Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode + EndpointResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState QueryStringCachingBehavior = Azure::CDN::Mgmt::V2017_10_12::Models::QueryStringCachingBehavior TrackedResource = Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource - EndpointResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState - CustomDomainResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState - GeoFilterActions = Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilterActions OriginResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::OriginResourceState - CustomHttpsProvisioningState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState + ProxyResource = Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource + GeoFilterActions = Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilterActions CustomHttpsProvisioningSubstate = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate + CustomDomainResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState + CustomHttpsProvisioningState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState CustomDomain = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain 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 ResourceType = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType + Operation = Azure::CDN::Mgmt::V2017_10_12::Models::Operation SkuName = Azure::CDN::Mgmt::V2017_10_12::Models::SkuName 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 Sku = Azure::CDN::Mgmt::V2017_10_12::Models::Sku + SsoUri = Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri LoadParameters = Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters ErrorResponse = Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse DeepCreatedOrigin = Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin @@ -68,17 +69,16 @@ module Models DeliveryRuleAction = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction ProfileUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters DeliveryRule = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule - SsoUri = Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri - CustomDomainParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters EndpointUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters - CustomDomainListResult = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult + CustomDomainParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters EdgenodeResult = Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult - ValidateCustomDomainOutput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput - CheckNameAvailabilityInput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput + ValidateCustomDomainInput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput + IpAddressGroup = Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup + CustomDomainListResult = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult end class CDNManagementClass - attr_reader :endpoints, :profiles, :origins, :custom_domains, :resource_usage_operations, :edge_nodes, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :endpoints, :profiles, :origins, :custom_domains, :resource_usage_operations, :edge_nodes, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -88,13 +88,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 @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 @edge_nodes = @client_0.edge_nodes - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -113,6 +113,9 @@ def method_missing(method, *args) end class ModelClasses + def check_name_availability_input + Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput + end def delivery_rule_condition Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCondition end @@ -164,17 +167,17 @@ def delivery_rule_url_file_extension_condition def delivery_rule_cache_expiration_action Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCacheExpirationAction end - def validate_custom_domain_input - Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput + def origin + Azure::CDN::Mgmt::V2017_10_12::Models::Origin end - def ip_address_group - Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup + def purge_parameters + Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters end - def proxy_resource - Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource + def validate_custom_domain_output + Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput end - def origin - Azure::CDN::Mgmt::V2017_10_12::Models::Origin + def edge_node + Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode end def profile_resource_state Azure::CDN::Mgmt::V2017_10_12::Models::ProfileResourceState @@ -182,8 +185,8 @@ def profile_resource_state def optimization_type Azure::CDN::Mgmt::V2017_10_12::Models::OptimizationType end - def edge_node - Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode + def endpoint_resource_state + Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState end def query_string_caching_behavior Azure::CDN::Mgmt::V2017_10_12::Models::QueryStringCachingBehavior @@ -191,24 +194,24 @@ def query_string_caching_behavior def tracked_resource Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource end - def endpoint_resource_state - Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState + def origin_resource_state + Azure::CDN::Mgmt::V2017_10_12::Models::OriginResourceState end - def custom_domain_resource_state - Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState + def proxy_resource + Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource end def geo_filter_actions Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilterActions end - def origin_resource_state - Azure::CDN::Mgmt::V2017_10_12::Models::OriginResourceState + def custom_https_provisioning_substate + Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate + end + def custom_domain_resource_state + Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState end def custom_https_provisioning_state Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState end - def custom_https_provisioning_substate - Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate - end def custom_domain Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain end @@ -218,12 +221,12 @@ def resource def operation_display Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay end - def operation - Azure::CDN::Mgmt::V2017_10_12::Models::Operation - end def resource_type Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType end + def operation + Azure::CDN::Mgmt::V2017_10_12::Models::Operation + end def sku_name Azure::CDN::Mgmt::V2017_10_12::Models::SkuName end @@ -236,12 +239,12 @@ def origin_list_result def profile_list_result Azure::CDN::Mgmt::V2017_10_12::Models::ProfileListResult end - def purge_parameters - Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters - end def sku Azure::CDN::Mgmt::V2017_10_12::Models::Sku end + def sso_uri + Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri + end def load_parameters Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters end @@ -269,26 +272,23 @@ def profile_update_parameters def delivery_rule Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule end - def sso_uri - Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri - end - def custom_domain_parameters - Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters - end def endpoint_update_parameters Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters end - def custom_domain_list_result - Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult + def custom_domain_parameters + Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters end def edgenode_result Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult end - def validate_custom_domain_output - Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput + def validate_custom_domain_input + Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput end - def check_name_availability_input - Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput + def ip_address_group + Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup + end + def custom_domain_list_result + Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult 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 b1b5038e19..244abd4cfc 100644 --- a/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb @@ -7,10 +7,10 @@ module Azure::Profiles::Latest module CognitiveServices module Mgmt + 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 - Operations = Azure::CognitiveServices::Mgmt::V2017_04_18::Operations module Models SkuTier = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier @@ -29,10 +29,10 @@ module Models CognitiveServicesAccountListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountListResult OperationEntity = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntity RegenerateKeyParameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::RegenerateKeyParameters - Sku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku + 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 - OperationEntityListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntityListResult + Sku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku 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 @@ -43,13 +43,13 @@ module Models UsagesResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UsagesResult CognitiveServicesResourceAndSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesResourceAndSku KeyName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName - UnitType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType Error = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error QuotaUsageStatus = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::QuotaUsageStatus + UnitType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType end class CognitiveServicesManagementClass - attr_reader :resource_skus, :accounts, :check_sku_availability, :operations, :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,10 +59,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 @resource_skus = @client_0.resource_skus @accounts = @client_0.accounts @check_sku_availability = @client_0.check_sku_availability - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -129,8 +129,8 @@ def operation_entity def regenerate_key_parameters Azure::CognitiveServices::Mgmt::V2017_04_18::Models::RegenerateKeyParameters end - def sku - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku + def operation_entity_list_result + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntityListResult end def cognitive_services_account_enumerate_skus_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountEnumerateSkusResult @@ -138,8 +138,8 @@ def cognitive_services_account_enumerate_skus_result def check_sku_availability_parameter Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityParameter end - def operation_entity_list_result - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntityListResult + def sku + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku end def check_sku_availability_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResult @@ -171,15 +171,15 @@ def cognitive_services_resource_and_sku def key_name Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName end - def unit_type - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType - end def error Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error end def quota_usage_status Azure::CognitiveServices::Mgmt::V2017_04_18::Models::QuotaUsageStatus end + def unit_type + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType + 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 93f561162e..2314d80603 100644 --- a/azure_sdk/lib/latest/modules/compute_profile_module.rb +++ b/azure_sdk/lib/latest/modules/compute_profile_module.rb @@ -30,6 +30,7 @@ module Mgmt GalleryImageVersions = Azure::Compute::Mgmt::V2018_06_01::GalleryImageVersions module Models + ResourceSkuLocationInfo = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuLocationInfo 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 @@ -40,7 +41,6 @@ module Models ResourceSkuRestrictionsReasonCode = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsReasonCode ResourceSkuCapacity = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapacity ResourceSkuCosts = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCosts - ResourceSkuLocationInfo = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuLocationInfo OperationStatusResponse = Azure::Compute::Mgmt::V2017_12_01::Models::OperationStatusResponse ComputeLongRunningOperationProperties = Azure::Compute::Mgmt::V2017_12_01::Models::ComputeLongRunningOperationProperties ComputeOperationValue = Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationValue @@ -112,7 +112,7 @@ module Models KeyVaultKeyReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultKeyReference Sku = Azure::Compute::Mgmt::V2018_06_01::Models::Sku VirtualHardDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualHardDisk - SshConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration + NetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile KeyVaultAndSecretReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultAndSecretReference DiagnosticsProfile = Azure::Compute::Mgmt::V2018_06_01::Models::DiagnosticsProfile SourceVault = Azure::Compute::Mgmt::V2018_06_01::Models::SourceVault @@ -217,7 +217,7 @@ module Models VirtualMachineScaleSetPublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfiguration GalleryImageVersionPublishingProfile = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionPublishingProfile VirtualMachineScaleSetUpdatePublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration - NetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile + GalleryDataDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage GalleryImageVersion = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersion VirtualMachineScaleSetDataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetDataDisk StorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::StorageProfile @@ -226,31 +226,31 @@ module Models VirtualMachineScaleSetUpdateStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateStorageProfile VirtualMachineSizeTypes = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeTypes RunCommandDocument = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocument - DiskCreateOptionTypes = Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOptionTypes + SshConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings OperatingSystemTypes = Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemTypes Gallery = Azure::Compute::Mgmt::V2018_06_01::Models::Gallery GalleryImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImage - ProtocolTypes = Azure::Compute::Mgmt::V2018_06_01::Models::ProtocolTypes + DiskCreateOptionTypes = Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOptionTypes GalleryOSDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryOSDiskImage - GalleryDataDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage + PassNames = Azure::Compute::Mgmt::V2018_06_01::Models::PassNames ComponentNames = Azure::Compute::Mgmt::V2018_06_01::Models::ComponentNames AvailabilitySetSkuTypes = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetSkuTypes Snapshot = Azure::Compute::Mgmt::V2018_06_01::Models::Snapshot ResourceIdentityType = Azure::Compute::Mgmt::V2018_06_01::Models::ResourceIdentityType StorageAccountTypes = Azure::Compute::Mgmt::V2018_06_01::Models::StorageAccountTypes - PassNames = Azure::Compute::Mgmt::V2018_06_01::Models::PassNames + UpgradeMode = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeMode OperatingSystemStateTypes = Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemStateTypes SettingNames = Azure::Compute::Mgmt::V2018_06_01::Models::SettingNames - RollingUpgradeActionType = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeActionType + ProtocolTypes = Azure::Compute::Mgmt::V2018_06_01::Models::ProtocolTypes CachingTypes = Azure::Compute::Mgmt::V2018_06_01::Models::CachingTypes MaintenanceOperationResultCodeTypes = Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceOperationResultCodeTypes - UpgradeMode = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeMode + VirtualMachineScaleSetSkuScaleType = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuScaleType RollingUpgradeStatusCode = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeStatusCode + RollingUpgradeActionType = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeActionType DiskCreateOption = Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOption AccessLevel = Azure::Compute::Mgmt::V2018_06_01::Models::AccessLevel IPVersion = Azure::Compute::Mgmt::V2018_06_01::Models::IPVersion - VirtualMachineScaleSetSkuScaleType = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuScaleType DiffDiskOptions = Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskOptions AggregatedReplicationState = Azure::Compute::Mgmt::V2018_06_01::Models::AggregatedReplicationState ReplicationState = Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationState @@ -335,6 +335,9 @@ def method_missing(method, *args) end class ModelClasses + def resource_sku_location_info + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuLocationInfo + end def resource_sku_capabilities Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapabilities end @@ -365,9 +368,6 @@ def resource_sku_capacity def resource_sku_costs Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCosts end - 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 @@ -581,8 +581,8 @@ def sku def virtual_hard_disk Azure::Compute::Mgmt::V2018_06_01::Models::VirtualHardDisk end - def ssh_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration + def network_profile + Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile end def key_vault_and_secret_reference Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultAndSecretReference @@ -896,8 +896,8 @@ def gallery_image_version_publishing_profile def virtual_machine_scale_set_update_public_ipaddress_configuration Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration end - def network_profile - Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile + def gallery_data_disk_image + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage end def gallery_image_version Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersion @@ -923,8 +923,8 @@ def virtual_machine_size_types def run_command_document Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocument end - def disk_create_option_types - Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOptionTypes + def ssh_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration end def virtual_machine_scale_set_public_ipaddress_configuration_dns_settings Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings @@ -938,14 +938,14 @@ def gallery def gallery_image Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImage end - def protocol_types - Azure::Compute::Mgmt::V2018_06_01::Models::ProtocolTypes + def disk_create_option_types + Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOptionTypes end def gallery_osdisk_image Azure::Compute::Mgmt::V2018_06_01::Models::GalleryOSDiskImage end - def gallery_data_disk_image - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage + def pass_names + Azure::Compute::Mgmt::V2018_06_01::Models::PassNames end def component_names Azure::Compute::Mgmt::V2018_06_01::Models::ComponentNames @@ -962,8 +962,8 @@ def resource_identity_type def storage_account_types Azure::Compute::Mgmt::V2018_06_01::Models::StorageAccountTypes end - def pass_names - Azure::Compute::Mgmt::V2018_06_01::Models::PassNames + def upgrade_mode + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeMode end def operating_system_state_types Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemStateTypes @@ -971,8 +971,8 @@ def operating_system_state_types def setting_names Azure::Compute::Mgmt::V2018_06_01::Models::SettingNames end - def rolling_upgrade_action_type - Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeActionType + def protocol_types + Azure::Compute::Mgmt::V2018_06_01::Models::ProtocolTypes end def caching_types Azure::Compute::Mgmt::V2018_06_01::Models::CachingTypes @@ -980,12 +980,15 @@ def caching_types def maintenance_operation_result_code_types Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceOperationResultCodeTypes end - def upgrade_mode - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeMode + def virtual_machine_scale_set_sku_scale_type + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuScaleType 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 disk_create_option Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOption end @@ -995,9 +998,6 @@ def access_level def ipversion Azure::Compute::Mgmt::V2018_06_01::Models::IPVersion end - def virtual_machine_scale_set_sku_scale_type - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuScaleType - end def diff_disk_options Azure::Compute::Mgmt::V2018_06_01::Models::DiffDiskOptions end diff --git a/azure_sdk/lib/latest/modules/consumption_profile_module.rb b/azure_sdk/lib/latest/modules/consumption_profile_module.rb index 486307ead2..e949d37505 100644 --- a/azure_sdk/lib/latest/modules/consumption_profile_module.rb +++ b/azure_sdk/lib/latest/modules/consumption_profile_module.rb @@ -7,6 +7,7 @@ module Azure::Profiles::Latest module Consumption 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 Forecasts = Azure::Consumption::Mgmt::V2018_06_30::Forecasts @@ -18,7 +19,6 @@ module Mgmt ReservationsSummaries = Azure::Consumption::Mgmt::V2018_06_30::ReservationsSummaries ReservationsDetails = Azure::Consumption::Mgmt::V2018_06_30::ReservationsDetails ReservationRecommendations = Azure::Consumption::Mgmt::V2018_06_30::ReservationRecommendations - Budgets = Azure::Consumption::Mgmt::V2018_06_30::Budgets module Models MeterDetails = Azure::Consumption::Mgmt::V2018_06_30::Models::MeterDetails @@ -36,16 +36,16 @@ module Models QueryOptions = Azure::Consumption::Mgmt::V2018_06_30::Models::QueryOptions PriceSheetProperties = Azure::Consumption::Mgmt::V2018_06_30::Models::PriceSheetProperties ReservationRecommendationsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationRecommendationsListResult + ReservationSummariesListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummariesListResult ForecastPropertiesConfidenceLevelsItem = Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastPropertiesConfidenceLevelsItem - ResourceAttributes = Azure::Consumption::Mgmt::V2018_06_30::Models::ResourceAttributes ReservationDetailsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetailsListResult - ReservationSummariesListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummariesListResult ForecastsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastsListResult UsageDetail = Azure::Consumption::Mgmt::V2018_06_30::Models::UsageDetail Marketplace = Azure::Consumption::Mgmt::V2018_06_30::Models::Marketplace Balance = Azure::Consumption::Mgmt::V2018_06_30::Models::Balance + ResourceAttributes = Azure::Consumption::Mgmt::V2018_06_30::Models::ResourceAttributes ReservationSummary = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummary - ReservationDetail = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetail + TagsResult = Azure::Consumption::Mgmt::V2018_06_30::Models::TagsResult Budget = Azure::Consumption::Mgmt::V2018_06_30::Models::Budget CostTag = Azure::Consumption::Mgmt::V2018_06_30::Models::CostTag PriceSheetResult = Azure::Consumption::Mgmt::V2018_06_30::Models::PriceSheetResult @@ -55,13 +55,13 @@ module Models ErrorDetails = Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorDetails TimeGrainType = Azure::Consumption::Mgmt::V2018_06_30::Models::TimeGrainType Grain = Azure::Consumption::Mgmt::V2018_06_30::Models::Grain - TagsResult = Azure::Consumption::Mgmt::V2018_06_30::Models::TagsResult + ChargeType = Azure::Consumption::Mgmt::V2018_06_30::Models::ChargeType Resource = Azure::Consumption::Mgmt::V2018_06_30::Models::Resource Bound = Azure::Consumption::Mgmt::V2018_06_30::Models::Bound - ChargeType = Azure::Consumption::Mgmt::V2018_06_30::Models::ChargeType - OperatorType = Azure::Consumption::Mgmt::V2018_06_30::Models::OperatorType Datagrain = Azure::Consumption::Mgmt::V2018_06_30::Models::Datagrain + OperatorType = Azure::Consumption::Mgmt::V2018_06_30::Models::OperatorType OperationDisplay = Azure::Consumption::Mgmt::V2018_06_30::Models::OperationDisplay + ReservationDetail = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetail Operation = Azure::Consumption::Mgmt::V2018_06_30::Models::Operation OperationListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::OperationListResult Tag = Azure::Consumption::Mgmt::V2018_06_30::Models::Tag @@ -70,7 +70,7 @@ module Models end class ConsumptionManagementClass - attr_reader :price_sheet, :cost_tags, :forecasts, :operations, :tags, :usage_details, :marketplaces, :balances, :reservations_summaries, :reservations_details, :reservation_recommendations, :budgets, :configurable, :base_url, :options, :model_classes + attr_reader :budgets, :price_sheet, :cost_tags, :forecasts, :operations, :tags, :usage_details, :marketplaces, :balances, :reservations_summaries, :reservations_details, :reservation_recommendations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -80,6 +80,7 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @budgets = @client_0.budgets @price_sheet = @client_0.price_sheet @cost_tags = @client_0.cost_tags @forecasts = @client_0.forecasts @@ -91,7 +92,6 @@ def initialize(configurable, base_url=nil, options=nil) @reservations_summaries = @client_0.reservations_summaries @reservations_details = @client_0.reservations_details @reservation_recommendations = @client_0.reservation_recommendations - @budgets = @client_0.budgets @model_classes = ModelClasses.new end @@ -155,18 +155,15 @@ def price_sheet_properties def reservation_recommendations_list_result Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationRecommendationsListResult end + def reservation_summaries_list_result + Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummariesListResult + end def forecast_properties_confidence_levels_item Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastPropertiesConfidenceLevelsItem end - def resource_attributes - Azure::Consumption::Mgmt::V2018_06_30::Models::ResourceAttributes - end def reservation_details_list_result Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetailsListResult end - def reservation_summaries_list_result - Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummariesListResult - end def forecasts_list_result Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastsListResult end @@ -179,11 +176,14 @@ def marketplace def balance Azure::Consumption::Mgmt::V2018_06_30::Models::Balance end + def resource_attributes + Azure::Consumption::Mgmt::V2018_06_30::Models::ResourceAttributes + 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 tags_result + Azure::Consumption::Mgmt::V2018_06_30::Models::TagsResult end def budget Azure::Consumption::Mgmt::V2018_06_30::Models::Budget @@ -212,8 +212,8 @@ def time_grain_type def grain Azure::Consumption::Mgmt::V2018_06_30::Models::Grain end - def tags_result - Azure::Consumption::Mgmt::V2018_06_30::Models::TagsResult + def charge_type + Azure::Consumption::Mgmt::V2018_06_30::Models::ChargeType end def resource Azure::Consumption::Mgmt::V2018_06_30::Models::Resource @@ -221,18 +221,18 @@ def resource def bound Azure::Consumption::Mgmt::V2018_06_30::Models::Bound end - def charge_type - Azure::Consumption::Mgmt::V2018_06_30::Models::ChargeType + def datagrain + Azure::Consumption::Mgmt::V2018_06_30::Models::Datagrain end def operator_type Azure::Consumption::Mgmt::V2018_06_30::Models::OperatorType end - def datagrain - Azure::Consumption::Mgmt::V2018_06_30::Models::Datagrain - end def operation_display Azure::Consumption::Mgmt::V2018_06_30::Models::OperationDisplay end + def reservation_detail + Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetail + end def operation Azure::Consumption::Mgmt::V2018_06_30::Models::Operation end diff --git a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb index f8ff75d715..e9551b067d 100644 --- a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb @@ -8,15 +8,16 @@ module Azure::Profiles::Latest module ContainerInstance module Mgmt Operations = Azure::ContainerInstance::Mgmt::V2018_06_01::Operations + ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerGroupUsage ContainerOperations = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerOperations ContainerGroups = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerGroups - ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerGroupUsage module Models Port = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Port IpAddress = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::IpAddress EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::EnvironmentVariable ContainerGroupPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupPropertiesInstanceView + Event = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event ResourceRequests = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequests ContainerGroupDiagnostics = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupDiagnostics ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequirements @@ -25,13 +26,12 @@ module Models Container = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Container GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::GitRepoVolume ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ImageRegistryCredential - ContainerState = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerState OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationDisplay - Event = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event - Operation = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceLimits - OperationListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationListResult + Operation = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult + OperationListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationListResult + ContainerState = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerState Volume = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Volume ContainerProbe = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerProbe ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPropertiesInstanceView @@ -56,7 +56,7 @@ module Models end class ContainerInstanceManagementClass - attr_reader :operations, :container_operations, :container_groups, :container_group_usage, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :container_group_usage, :container_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 @@ -67,9 +67,9 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @operations = @client_0.operations + @container_group_usage = @client_0.container_group_usage @container_operations = @client_0.container_operations @container_groups = @client_0.container_groups - @container_group_usage = @client_0.container_group_usage @model_classes = ModelClasses.new end @@ -100,6 +100,9 @@ def environment_variable def container_group_properties_instance_view Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupPropertiesInstanceView end + def event + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event + end def resource_requests Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequests end @@ -124,26 +127,23 @@ def git_repo_volume def image_registry_credential Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ImageRegistryCredential end - def container_state - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerState - end def operation_display Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationDisplay end - def event - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event + def resource_limits + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceLimits end def operation Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation end - def resource_limits - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceLimits + def container_group_list_result + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult end def operation_list_result Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationListResult end - def container_group_list_result - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult + def container_state + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerState end def volume Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Volume diff --git a/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb b/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb index 2226b78471..72b50cb8ca 100644 --- a/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb @@ -7,12 +7,13 @@ module Azure::Profiles::Latest module ContainerRegistry module Mgmt + Operations = Azure::ContainerRegistry::Mgmt::V2017_10_01::Operations Registries = Azure::ContainerRegistry::Mgmt::V2017_10_01::Registries Replications = Azure::ContainerRegistry::Mgmt::V2017_10_01::Replications Webhooks = Azure::ContainerRegistry::Mgmt::V2017_10_01::Webhooks - Operations = Azure::ContainerRegistry::Mgmt::V2017_10_01::Operations module Models + 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 RegenerateCredentialParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegenerateCredentialParameters @@ -24,27 +25,27 @@ module Models EventListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventListResult RegistryListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListResult RegistryUsage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsage - Request = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request Actor = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Actor OperationServiceSpecificationDefinition = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationServiceSpecificationDefinition RegistryListCredentialsResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListCredentialsResult + EventContent = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventContent + Request = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request EventRequestMessage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventRequestMessage - QuarantinePolicy = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::QuarantinePolicy WebhookUpdateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookUpdateParameters 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 + QuarantinePolicy = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::QuarantinePolicy + ImportMode = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportMode WebhookListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookListResult Replication = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Replication - ImportMode = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportMode - PasswordName = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PasswordName - ProvisioningState = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ProvisioningState - Event = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event - RegistryUpdateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUpdateParameters RegistryUsageUnit = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageUnit + Registry = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Registry + ProvisioningState = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ProvisioningState + StorageAccountProperties = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::StorageAccountProperties + PasswordName = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PasswordName + WebhookStatus = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookStatus PolicyStatus = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PolicyStatus TrustPolicyType = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::TrustPolicyType - WebhookStatus = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookStatus + Event = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event WebhookAction = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookAction SkuTier = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuTier Webhook = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Webhook @@ -63,12 +64,11 @@ module Models OperationDefinition = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationDefinition ReplicationUpdateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationUpdateParameters ReplicationListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationListResult - StorageAccountProperties = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::StorageAccountProperties Source = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Source end class ContainerRegistryManagementClass - attr_reader :registries, :replications, :webhooks, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :registries, :replications, :webhooks, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -78,10 +78,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 @registries = @client_0.registries @replications = @client_0.replications @webhooks = @client_0.webhooks - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -100,6 +100,9 @@ def method_missing(method, *args) end class ModelClasses + def registry_update_parameters + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUpdateParameters + end def webhook_create_parameters Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookCreateParameters end @@ -133,9 +136,6 @@ def registry_list_result def registry_usage Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsage end - def request - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request - end def actor Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Actor end @@ -145,23 +145,26 @@ def operation_service_specification_definition 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 request + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request + end def event_request_message Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventRequestMessage end - def quarantine_policy - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::QuarantinePolicy - end def webhook_update_parameters Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookUpdateParameters end def event_response_message Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventResponseMessage end - def registry - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Registry + def quarantine_policy + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::QuarantinePolicy end - def event_content - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventContent + def import_mode + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportMode end def webhook_list_result Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookListResult @@ -169,23 +172,23 @@ def webhook_list_result def replication Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Replication end - def import_mode - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportMode + def registry_usage_unit + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageUnit end - def password_name - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PasswordName + def registry + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Registry end def provisioning_state Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ProvisioningState end - def event - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event + def storage_account_properties + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::StorageAccountProperties end - def registry_update_parameters - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUpdateParameters + 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 webhook_status + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookStatus end def policy_status Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PolicyStatus @@ -193,8 +196,8 @@ def policy_status def trust_policy_type Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::TrustPolicyType end - def webhook_status - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookStatus + def event + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event end def webhook_action Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookAction @@ -250,9 +253,6 @@ def replication_update_parameters def replication_list_result Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationListResult end - def storage_account_properties - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::StorageAccountProperties - end def source Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Source end diff --git a/azure_sdk/lib/latest/modules/containerservice_profile_module.rb b/azure_sdk/lib/latest/modules/containerservice_profile_module.rb index 5cc055f7e6..2c8f74f0a2 100644 --- a/azure_sdk/lib/latest/modules/containerservice_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerservice_profile_module.rb @@ -7,8 +7,8 @@ module Azure::Profiles::Latest module ContainerService module Mgmt - ManagedClusters = Azure::ContainerService::Mgmt::V2018_03_31::ManagedClusters Operations = Azure::ContainerService::Mgmt::V2018_03_31::Operations + ManagedClusters = Azure::ContainerService::Mgmt::V2018_03_31::ManagedClusters ContainerServices = Azure::ContainerService::Mgmt::V2017_09_30::ContainerServices module Models @@ -23,8 +23,8 @@ module Models 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 - OperationListResult = Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult ContainerServiceLinuxProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceLinuxProfile + OperationListResult = Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult ContainerServiceVMDiagnostics = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceVMDiagnostics ContainerServiceDiagnosticsProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceDiagnosticsProfile ContainerServiceMasterProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceMasterProfile @@ -45,13 +45,13 @@ module Models ManagedClusterPoolUpgradeProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterPoolUpgradeProfile NetworkPlugin = Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPlugin NetworkPolicy = Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPolicy + 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 - OrchestratorVersionProfile = Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorVersionProfile end class ContainerServiceManagementClass - attr_reader :managed_clusters, :operations, :container_services, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :managed_clusters, :container_services, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -67,8 +67,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) - @managed_clusters = @client_1.managed_clusters @operations = @client_1.operations + @managed_clusters = @client_1.managed_clusters @client_2 = Azure::ContainerService::Mgmt::V2017_09_30::ContainerServiceClient.new(configurable.credentials, base_url, options) if(@client_2.respond_to?(:subscription_id)) @@ -131,12 +131,12 @@ def container_service_ssh_configuration def container_service_service_principal_profile Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceServicePrincipalProfile end - def operation_list_result - Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult - end def container_service_linux_profile Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceLinuxProfile end + def operation_list_result + Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult + end def container_service_vmdiagnostics Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceVMDiagnostics end @@ -197,15 +197,15 @@ def network_plugin def network_policy Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPolicy 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 - def orchestrator_version_profile - Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorVersionProfile - 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 41e9d5ac28..17754cfe34 100644 --- a/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb +++ b/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb @@ -15,6 +15,7 @@ module ContentModerator Reviews = Azure::CognitiveServices::ContentModerator::V1_0::Reviews module Models + JobListResult = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult Face = Azure::CognitiveServices::ContentModerator::V1_0::Models::Face Error = Azure::CognitiveServices::ContentModerator::V1_0::Models::Error RefreshIndex = Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndex @@ -38,45 +39,44 @@ module Models JobId = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobId Image = Azure::CognitiveServices::ContentModerator::V1_0::Models::Image ImageListMetadata = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageListMetadata - Job = Azure::CognitiveServices::ContentModerator::V1_0::Models::Job Tag = Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag TranscriptModerationBodyItemTermsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItemTermsItem - MatchResponse = Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse - Frame = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frame APIError = Azure::CognitiveServices::ContentModerator::V1_0::Models::APIError - TermListMetadata = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermListMetadata - CreateVideoReviewsBodyItemVideoFramesItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemMetadataItem - RefreshIndexAdvancedInfoItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndexAdvancedInfoItem + MatchResponse = Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse TranscriptModerationBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItem - PII = Azure::CognitiveServices::ContentModerator::V1_0::Models::PII + RefreshIndexAdvancedInfoItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndexAdvancedInfoItem + TermListMetadata = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermListMetadata + Job = Azure::CognitiveServices::ContentModerator::V1_0::Models::Job CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemReviewerResultTagsItem - ClassificationCategory3 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory3 - CreateVideoReviewsBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem SSN = Azure::CognitiveServices::ContentModerator::V1_0::Models::SSN - CreateVideoReviewsBodyItemVideoFramesItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem - BodyMetadata = Azure::CognitiveServices::ContentModerator::V1_0::Models::BodyMetadata + Frame = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frame CreateVideoReviewsBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemMetadataItem - FoundFaces = Azure::CognitiveServices::ContentModerator::V1_0::Models::FoundFaces - ImageList = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList + ClassificationCategory3 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory3 + CreateVideoReviewsBodyItemVideoFramesItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemMetadataItem Match = Azure::CognitiveServices::ContentModerator::V1_0::Models::Match - KeyValuePair = Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair - VideoFrameBodyItemReviewerResultTagsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem + CreateVideoReviewsBodyItemVideoFramesItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem + PII = Azure::CognitiveServices::ContentModerator::V1_0::Models::PII + ImageList = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList + FoundFaces = Azure::CognitiveServices::ContentModerator::V1_0::Models::FoundFaces + CreateVideoReviewsBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem Body = Azure::CognitiveServices::ContentModerator::V1_0::Models::Body + BodyMetadata = Azure::CognitiveServices::ContentModerator::V1_0::Models::BodyMetadata Status = Azure::CognitiveServices::ContentModerator::V1_0::Models::Status - DetectedLanguage = Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedLanguage Screen = Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen - VideoFrameBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem - CreateReviewBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItemMetadataItem + KeyValuePair = Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair + VideoFrameBodyItemReviewerResultTagsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem VideoFrameBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItem - ImageUrl = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl - Phone = Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone + VideoFrameBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem + DetectedLanguage = Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedLanguage OCR = Azure::CognitiveServices::ContentModerator::V1_0::Models::OCR + ImageUrl = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl + CreateReviewBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItemMetadataItem + Content = Azure::CognitiveServices::ContentModerator::V1_0::Models::Content CreateReviewBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItem ClassificationCategory1 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory1 - Content = Azure::CognitiveServices::ContentModerator::V1_0::Models::Content TermList = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList AzureRegionBaseUrl = Azure::CognitiveServices::ContentModerator::V1_0::Models::AzureRegionBaseUrl - JobListResult = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult + Phone = Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone end class ContentModeratorDataClass @@ -115,6 +115,9 @@ def method_missing(method, *args) end class ModelClasses + def job_list_result + Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult + end def face Azure::CognitiveServices::ContentModerator::V1_0::Models::Face end @@ -184,122 +187,119 @@ def image def image_list_metadata Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageListMetadata end - def job - Azure::CognitiveServices::ContentModerator::V1_0::Models::Job - end def tag Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag end def transcript_moderation_body_item_terms_item Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItemTermsItem end - def match_response - Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse - end - def frame - Azure::CognitiveServices::ContentModerator::V1_0::Models::Frame - end def apierror Azure::CognitiveServices::ContentModerator::V1_0::Models::APIError end - def term_list_metadata - Azure::CognitiveServices::ContentModerator::V1_0::Models::TermListMetadata + def match_response + Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse end - def create_video_reviews_body_item_video_frames_item_metadata_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemMetadataItem + def transcript_moderation_body_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItem end def refresh_index_advanced_info_item Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndexAdvancedInfoItem end - def transcript_moderation_body_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItem + def term_list_metadata + Azure::CognitiveServices::ContentModerator::V1_0::Models::TermListMetadata end - def pii - Azure::CognitiveServices::ContentModerator::V1_0::Models::PII + def job + Azure::CognitiveServices::ContentModerator::V1_0::Models::Job end 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 - Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem - 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 - end - def body_metadata - Azure::CognitiveServices::ContentModerator::V1_0::Models::BodyMetadata + def frame + Azure::CognitiveServices::ContentModerator::V1_0::Models::Frame 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 + def classification_category3 + Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory3 end - def image_list - Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList + def create_video_reviews_body_item_video_frames_item_metadata_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItemMetadataItem end def match Azure::CognitiveServices::ContentModerator::V1_0::Models::Match end - def key_value_pair - Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair + def create_video_reviews_body_item_video_frames_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem end - def video_frame_body_item_reviewer_result_tags_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem + def pii + Azure::CognitiveServices::ContentModerator::V1_0::Models::PII + end + def image_list + Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList + end + def found_faces + Azure::CognitiveServices::ContentModerator::V1_0::Models::FoundFaces + end + def create_video_reviews_body_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem end def body Azure::CognitiveServices::ContentModerator::V1_0::Models::Body end + def body_metadata + Azure::CognitiveServices::ContentModerator::V1_0::Models::BodyMetadata + end def status Azure::CognitiveServices::ContentModerator::V1_0::Models::Status end - def detected_language - Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedLanguage - end def screen Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen end - def video_frame_body_item_metadata_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem + def key_value_pair + Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair end - def create_review_body_item_metadata_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItemMetadataItem + def video_frame_body_item_reviewer_result_tags_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem end def video_frame_body_item Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItem end - def image_url - Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl + def video_frame_body_item_metadata_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem end - def phone - Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone + def detected_language + Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedLanguage end def ocr Azure::CognitiveServices::ContentModerator::V1_0::Models::OCR end + def image_url + Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl + end + def create_review_body_item_metadata_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItemMetadataItem + end + def content + Azure::CognitiveServices::ContentModerator::V1_0::Models::Content + end def create_review_body_item Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItem end def classification_category1 Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory1 end - def content - Azure::CognitiveServices::ContentModerator::V1_0::Models::Content - end def term_list Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList end def azure_region_base_url Azure::CognitiveServices::ContentModerator::V1_0::Models::AzureRegionBaseUrl end - def job_list_result - Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult + def phone + Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone 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 10d2b61abb..fcd9b15aeb 100644 --- a/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb @@ -124,8 +124,8 @@ module Models LinkTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkTypes InstanceOperationType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InstanceOperationType CardinalityTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CardinalityTypes - RoleTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleTypes Status = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Status + RoleTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleTypes ProfileListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult PredictionModelLifeCycle = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelLifeCycle CanonicalPropertyValueType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalPropertyValueType @@ -472,12 +472,12 @@ def instance_operation_type def cardinality_types Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CardinalityTypes end - def role_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleTypes - end def status Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Status end + def role_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleTypes + end def profile_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult end diff --git a/azure_sdk/lib/latest/modules/customsearch_profile_module.rb b/azure_sdk/lib/latest/modules/customsearch_profile_module.rb index 676237e086..db6ce9c49a 100644 --- a/azure_sdk/lib/latest/modules/customsearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customsearch_profile_module.rb @@ -9,6 +9,7 @@ module CustomSearch CustomInstance = Azure::CognitiveServices::CustomSearch::V1_0::CustomInstance module Models + Thing = Azure::CognitiveServices::CustomSearch::V1_0::Models::Thing CreativeWork = Azure::CognitiveServices::CustomSearch::V1_0::Models::CreativeWork ErrorCode = Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorCode ErrorSubCode = Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorSubCode @@ -24,10 +25,9 @@ module Models WebWebAnswer = Azure::CognitiveServices::CustomSearch::V1_0::Models::WebWebAnswer SearchResponse = Azure::CognitiveServices::CustomSearch::V1_0::Models::SearchResponse SearchResultsAnswer = Azure::CognitiveServices::CustomSearch::V1_0::Models::SearchResultsAnswer - Identifiable = Azure::CognitiveServices::CustomSearch::V1_0::Models::Identifiable Error = Azure::CognitiveServices::CustomSearch::V1_0::Models::Error + Identifiable = Azure::CognitiveServices::CustomSearch::V1_0::Models::Identifiable Answer = Azure::CognitiveServices::CustomSearch::V1_0::Models::Answer - Thing = Azure::CognitiveServices::CustomSearch::V1_0::Models::Thing end class CustomSearchDataClass @@ -60,6 +60,9 @@ def method_missing(method, *args) end class ModelClasses + def thing + Azure::CognitiveServices::CustomSearch::V1_0::Models::Thing + end def creative_work Azure::CognitiveServices::CustomSearch::V1_0::Models::CreativeWork end @@ -105,18 +108,15 @@ def search_response def search_results_answer Azure::CognitiveServices::CustomSearch::V1_0::Models::SearchResultsAnswer end - def identifiable - Azure::CognitiveServices::CustomSearch::V1_0::Models::Identifiable - end def error Azure::CognitiveServices::CustomSearch::V1_0::Models::Error end + def identifiable + Azure::CognitiveServices::CustomSearch::V1_0::Models::Identifiable + end def answer Azure::CognitiveServices::CustomSearch::V1_0::Models::Answer end - def thing - Azure::CognitiveServices::CustomSearch::V1_0::Models::Thing - 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 0ce4e95697..037d042fee 100644 --- a/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb @@ -7,15 +7,16 @@ module Azure::Profiles::Latest module DataLakeAnalytics module Mgmt + ComputePolicies = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::ComputePolicies FirewallRules = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::FirewallRules Locations = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Locations Operations = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Operations Accounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Accounts StorageAccounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::StorageAccounts DataLakeStoreAccounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeStoreAccounts - ComputePolicies = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::ComputePolicies 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 NameAvailabilityInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::NameAvailabilityInformation @@ -63,11 +64,10 @@ module Models TierType = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::TierType DataLakeAnalyticsAccountStatus = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountStatus OperationOrigin = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationOrigin - CheckNameAvailabilityParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters end class DataLakeAnalyticsManagementClass - attr_reader :firewall_rules, :locations, :operations, :accounts, :storage_accounts, :data_lake_store_accounts, :compute_policies, :configurable, :base_url, :options, :model_classes + attr_reader :compute_policies, :firewall_rules, :locations, :operations, :accounts, :storage_accounts, :data_lake_store_accounts, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -77,13 +77,13 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @compute_policies = @client_0.compute_policies @firewall_rules = @client_0.firewall_rules @locations = @client_0.locations @operations = @client_0.operations @accounts = @client_0.accounts @storage_accounts = @client_0.storage_accounts @data_lake_store_accounts = @client_0.data_lake_store_accounts - @compute_policies = @client_0.compute_policies @model_classes = ModelClasses.new end @@ -102,6 +102,9 @@ 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 @@ -243,9 +246,6 @@ def data_lake_analytics_account_status def operation_origin Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationOrigin end - def check_name_availability_parameters - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters - end end end end diff --git a/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb b/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb index 0db64e864c..b6ee064f5c 100644 --- a/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb +++ b/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb @@ -7,14 +7,15 @@ module Azure::Profiles::Latest module DataLakeStore module Mgmt + 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 Accounts = Azure::DataLakeStore::Mgmt::V2016_11_01::Accounts - Operations = Azure::DataLakeStore::Mgmt::V2016_11_01::Operations module Models + CheckNameAvailabilityParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters SubscriptionState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubscriptionState EncryptionIdentity = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionIdentity CreateVirtualNetworkRuleWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateVirtualNetworkRuleWithAccountParameters @@ -61,11 +62,10 @@ module Models 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 - CheckNameAvailabilityParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters end class DataLakeStoreManagementClass - attr_reader :firewall_rules, :locations, :virtual_network_rules, :trusted_id_providers, :accounts, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :firewall_rules, :locations, :virtual_network_rules, :trusted_id_providers, :accounts, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -75,12 +75,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @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 @accounts = @client_0.accounts - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -99,6 +99,9 @@ def method_missing(method, *args) end class ModelClasses + def check_name_availability_parameters + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters + end def subscription_state Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubscriptionState end @@ -237,9 +240,6 @@ def tier_type def operation_origin Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationOrigin end - def check_name_availability_parameters - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters - end 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 324fc3abc2..afba20fc66 100644 --- a/azure_sdk/lib/latest/modules/devspaces_profile_module.rb +++ b/azure_sdk/lib/latest/modules/devspaces_profile_module.rb @@ -7,10 +7,11 @@ 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 + 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 @@ -27,11 +28,10 @@ module Models TrackedResource = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::TrackedResource ControllerConnectionDetailsList = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerConnectionDetailsList ControllerUpdateParameters = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerUpdateParameters - ResourceProviderOperationDisplay = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ResourceProviderOperationDisplay end class DevSpacesManagementClass - attr_reader :controllers, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :controllers, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -41,8 +41,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @controllers = @client_0.controllers @operations = @client_0.operations + @controllers = @client_0.controllers @model_classes = ModelClasses.new end @@ -61,6 +61,9 @@ def method_missing(method, *args) end class ModelClasses + def resource_provider_operation_display + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ResourceProviderOperationDisplay + end def orchestrator_specific_connection_details Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::OrchestratorSpecificConnectionDetails end @@ -109,9 +112,6 @@ def controller_connection_details_list def controller_update_parameters Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerUpdateParameters end - def resource_provider_operation_display - Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ResourceProviderOperationDisplay - end end end end diff --git a/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb b/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb index 44bc416a6b..0e485a72a9 100644 --- a/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb +++ b/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb @@ -9,29 +9,30 @@ module DevTestLabs module Mgmt VirtualMachines = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualMachines Disks = Azure::DevTestLabs::Mgmt::V2016_05_15::Disks - Operations = Azure::DevTestLabs::Mgmt::V2016_05_15::Operations + ProviderOperations = Azure::DevTestLabs::Mgmt::V2016_05_15::ProviderOperations Labs = Azure::DevTestLabs::Mgmt::V2016_05_15::Labs GlobalSchedules = Azure::DevTestLabs::Mgmt::V2016_05_15::GlobalSchedules + Operations = Azure::DevTestLabs::Mgmt::V2016_05_15::Operations ArtifactSources = Azure::DevTestLabs::Mgmt::V2016_05_15::ArtifactSources ArmTemplates = Azure::DevTestLabs::Mgmt::V2016_05_15::ArmTemplates Artifacts = Azure::DevTestLabs::Mgmt::V2016_05_15::Artifacts 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 - ProviderOperations = Azure::DevTestLabs::Mgmt::V2016_05_15::ProviderOperations - PolicySets = Azure::DevTestLabs::Mgmt::V2016_05_15::PolicySets NotificationChannels = Azure::DevTestLabs::Mgmt::V2016_05_15::NotificationChannels - ServiceRunners = Azure::DevTestLabs::Mgmt::V2016_05_15::ServiceRunners - Environments = Azure::DevTestLabs::Mgmt::V2016_05_15::Environments + PolicySets = Azure::DevTestLabs::Mgmt::V2016_05_15::PolicySets + GalleryImages = Azure::DevTestLabs::Mgmt::V2016_05_15::GalleryImages + Users = Azure::DevTestLabs::Mgmt::V2016_05_15::Users + Schedules = Azure::DevTestLabs::Mgmt::V2016_05_15::Schedules Secrets = Azure::DevTestLabs::Mgmt::V2016_05_15::Secrets VirtualMachineSchedules = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualMachineSchedules - Schedules = Azure::DevTestLabs::Mgmt::V2016_05_15::Schedules - Users = Azure::DevTestLabs::Mgmt::V2016_05_15::Users + Environments = Azure::DevTestLabs::Mgmt::V2016_05_15::Environments + ServiceRunners = Azure::DevTestLabs::Mgmt::V2016_05_15::ServiceRunners VirtualNetworks = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualNetworks Policies = Azure::DevTestLabs::Mgmt::V2016_05_15::Policies module Models + GenerateArmTemplateRequest = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GenerateArmTemplateRequest ComputeVmInstanceViewStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeVmInstanceViewStatus GenerateUploadUriParameter = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GenerateUploadUriParameter ComputeVmProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeVmProperties @@ -152,8 +153,8 @@ module Models PolicyEvaluatorType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyEvaluatorType PolicyStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyStatus HttpStatusCode = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HttpStatusCode - UserIdentity = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity Event = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Event + UserIdentity = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity Policy = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy Schedule = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule Port = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Port @@ -187,11 +188,10 @@ module Models 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 - GenerateArmTemplateRequest = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GenerateArmTemplateRequest end class DevTestLabsManagementClass - attr_reader :virtual_machines, :disks, :operations, :labs, :global_schedules, :artifact_sources, :arm_templates, :artifacts, :costs, :custom_images, :formulas, :gallery_images, :provider_operations, :policy_sets, :notification_channels, :service_runners, :environments, :secrets, :virtual_machine_schedules, :schedules, :users, :virtual_networks, :policies, :configurable, :base_url, :options, :model_classes + attr_reader :virtual_machines, :disks, :provider_operations, :labs, :global_schedules, :operations, :artifact_sources, :arm_templates, :artifacts, :costs, :custom_images, :formulas, :notification_channels, :policy_sets, :gallery_images, :users, :schedules, :secrets, :virtual_machine_schedules, :environments, :service_runners, :virtual_networks, :policies, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -203,25 +203,25 @@ def initialize(configurable, base_url=nil, options=nil) add_telemetry(@client_0) @virtual_machines = @client_0.virtual_machines @disks = @client_0.disks - @operations = @client_0.operations + @provider_operations = @client_0.provider_operations @labs = @client_0.labs @global_schedules = @client_0.global_schedules + @operations = @client_0.operations @artifact_sources = @client_0.artifact_sources @arm_templates = @client_0.arm_templates @artifacts = @client_0.artifacts @costs = @client_0.costs @custom_images = @client_0.custom_images @formulas = @client_0.formulas - @gallery_images = @client_0.gallery_images - @provider_operations = @client_0.provider_operations - @policy_sets = @client_0.policy_sets @notification_channels = @client_0.notification_channels - @service_runners = @client_0.service_runners - @environments = @client_0.environments + @policy_sets = @client_0.policy_sets + @gallery_images = @client_0.gallery_images + @users = @client_0.users + @schedules = @client_0.schedules @secrets = @client_0.secrets @virtual_machine_schedules = @client_0.virtual_machine_schedules - @schedules = @client_0.schedules - @users = @client_0.users + @environments = @client_0.environments + @service_runners = @client_0.service_runners @virtual_networks = @client_0.virtual_networks @policies = @client_0.policies @@ -242,6 +242,9 @@ def method_missing(method, *args) end class ModelClasses + def generate_arm_template_request + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GenerateArmTemplateRequest + end def compute_vm_instance_view_status Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeVmInstanceViewStatus end @@ -602,12 +605,12 @@ def policy_status def http_status_code Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HttpStatusCode end - def user_identity - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity - end def event Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Event end + def user_identity + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity + end def policy Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy end @@ -707,9 +710,6 @@ def parameter_info def compute_data_disk Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeDataDisk end - def generate_arm_template_request - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GenerateArmTemplateRequest - 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 c46b8b1058..9112329e1d 100644 --- a/azure_sdk/lib/latest/modules/dns_profile_module.rb +++ b/azure_sdk/lib/latest/modules/dns_profile_module.rb @@ -11,6 +11,7 @@ module Mgmt Zones = Azure::Dns::Mgmt::V2018_03_01_preview::Zones module Models + CaaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::CaaRecord ZoneType = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneType Resource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::Resource SubResource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SubResource @@ -33,7 +34,6 @@ module Models AzureEntityResource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::AzureEntityResource RecordType = Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordType ZoneUpdate = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneUpdate - CaaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::CaaRecord end class DnsManagementClass @@ -67,6 +67,9 @@ def method_missing(method, *args) end class ModelClasses + 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 @@ -133,9 +136,6 @@ def record_type 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 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 236ba7464b..4d46d6f60b 100644 --- a/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb @@ -33,7 +33,7 @@ module Models ContractualRulesAttribution = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesAttribution MediaObject = Azure::CognitiveServices::EntitySearch::V1_0::Models::MediaObject Error = Azure::CognitiveServices::EntitySearch::V1_0::Models::Error - CivicStructure = Azure::CognitiveServices::EntitySearch::V1_0::Models::CivicStructure + LocalBusiness = Azure::CognitiveServices::EntitySearch::V1_0::Models::LocalBusiness TouristAttraction = Azure::CognitiveServices::EntitySearch::V1_0::Models::TouristAttraction Airport = Azure::CognitiveServices::EntitySearch::V1_0::Models::Airport License = Azure::CognitiveServices::EntitySearch::V1_0::Models::License @@ -52,7 +52,7 @@ module Models EntityScenario = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityScenario AnswerType = Azure::CognitiveServices::EntitySearch::V1_0::Models::AnswerType ResponseFormat = Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat - LocalBusiness = Azure::CognitiveServices::EntitySearch::V1_0::Models::LocalBusiness + CivicStructure = Azure::CognitiveServices::EntitySearch::V1_0::Models::CivicStructure EntityType = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType ErrorResponse = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorResponse end @@ -159,8 +159,8 @@ def media_object def error Azure::CognitiveServices::EntitySearch::V1_0::Models::Error end - def civic_structure - Azure::CognitiveServices::EntitySearch::V1_0::Models::CivicStructure + def local_business + Azure::CognitiveServices::EntitySearch::V1_0::Models::LocalBusiness end def tourist_attraction Azure::CognitiveServices::EntitySearch::V1_0::Models::TouristAttraction @@ -216,8 +216,8 @@ def answer_type def response_format Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat end - def local_business - Azure::CognitiveServices::EntitySearch::V1_0::Models::LocalBusiness + def civic_structure + Azure::CognitiveServices::EntitySearch::V1_0::Models::CivicStructure end def entity_type Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType diff --git a/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb b/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb index ada63bfa52..a7810bfcc2 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 + 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 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 module Models TopicSharedAccessKeys = Azure::EventGrid::Mgmt::V2018_09_15_preview::Models::TopicSharedAccessKeys @@ -256,7 +256,7 @@ module Models end class EventGridManagementClass - attr_reader :domains, :domain_topics, :event_subscriptions, :topics, :topic_types, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :domains, :domain_topics, :event_subscriptions, :topics, :topic_types, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -266,12 +266,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @operations = @client_0.operations @domains = @client_0.domains @domain_topics = @client_0.domain_topics @event_subscriptions = @client_0.event_subscriptions @topics = @client_0.topics @topic_types = @client_0.topic_types - @operations = @client_0.operations @model_classes = ModelClasses.new end diff --git a/azure_sdk/lib/latest/modules/eventhub_profile_module.rb b/azure_sdk/lib/latest/modules/eventhub_profile_module.rb index 617801ec88..26e2d3813e 100644 --- a/azure_sdk/lib/latest/modules/eventhub_profile_module.rb +++ b/azure_sdk/lib/latest/modules/eventhub_profile_module.rb @@ -7,10 +7,10 @@ module Azure::Profiles::Latest module EventHub module Mgmt + Operations = Azure::EventHub::Mgmt::V2018_01_01_preview::Operations Clusters = Azure::EventHub::Mgmt::V2018_01_01_preview::Clusters Namespaces = Azure::EventHub::Mgmt::V2018_01_01_preview::Namespaces Configuration = Azure::EventHub::Mgmt::V2018_01_01_preview::Configuration - Operations = Azure::EventHub::Mgmt::V2018_01_01_preview::Operations module Models SkuName = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuName @@ -36,7 +36,7 @@ module Models end class EventHubManagementClass - attr_reader :clusters, :namespaces, :configuration, :operations, :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 @@ -46,10 +46,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @operations = @client_0.operations @clusters = @client_0.clusters @namespaces = @client_0.namespaces @configuration = @client_0.configuration - @operations = @client_0.operations @model_classes = ModelClasses.new end diff --git a/azure_sdk/lib/latest/modules/face_profile_module.rb b/azure_sdk/lib/latest/modules/face_profile_module.rb index 04e2a7245f..2f91f0850b 100644 --- a/azure_sdk/lib/latest/modules/face_profile_module.rb +++ b/azure_sdk/lib/latest/modules/face_profile_module.rb @@ -12,7 +12,8 @@ module Face PersonGroupOperations = Azure::CognitiveServices::Face::V1_0::PersonGroupOperations module Models - Gender = Azure::CognitiveServices::Face::V1_0::Models::Gender + GlassesType = Azure::CognitiveServices::Face::V1_0::Models::GlassesType + HairColorType = Azure::CognitiveServices::Face::V1_0::Models::HairColorType AccessoryType = Azure::CognitiveServices::Face::V1_0::Models::AccessoryType FindSimilarMatchMode = Azure::CognitiveServices::Face::V1_0::Models::FindSimilarMatchMode TrainingStatusType = Azure::CognitiveServices::Face::V1_0::Models::TrainingStatusType @@ -48,16 +49,15 @@ module Models ImageUrl = Azure::CognitiveServices::Face::V1_0::Models::ImageUrl UpdatePersonFaceRequest = Azure::CognitiveServices::Face::V1_0::Models::UpdatePersonFaceRequest DetectedFace = Azure::CognitiveServices::Face::V1_0::Models::DetectedFace - TrainingStatus = Azure::CognitiveServices::Face::V1_0::Models::TrainingStatus + Gender = Azure::CognitiveServices::Face::V1_0::Models::Gender Blur = Azure::CognitiveServices::Face::V1_0::Models::Blur - PersonGroup = Azure::CognitiveServices::Face::V1_0::Models::PersonGroup + TrainingStatus = Azure::CognitiveServices::Face::V1_0::Models::TrainingStatus FaceList = Azure::CognitiveServices::Face::V1_0::Models::FaceList - HairColorType = Azure::CognitiveServices::Face::V1_0::Models::HairColorType + PersonGroup = Azure::CognitiveServices::Face::V1_0::Models::PersonGroup Person = Azure::CognitiveServices::Face::V1_0::Models::Person - GlassesType = Azure::CognitiveServices::Face::V1_0::Models::GlassesType + BlurLevel = Azure::CognitiveServices::Face::V1_0::Models::BlurLevel ExposureLevel = Azure::CognitiveServices::Face::V1_0::Models::ExposureLevel NoiseLevel = Azure::CognitiveServices::Face::V1_0::Models::NoiseLevel - BlurLevel = Azure::CognitiveServices::Face::V1_0::Models::BlurLevel end class FaceDataClass @@ -93,8 +93,11 @@ def method_missing(method, *args) end class ModelClasses - def gender - Azure::CognitiveServices::Face::V1_0::Models::Gender + 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 @@ -201,26 +204,26 @@ def update_person_face_request def detected_face Azure::CognitiveServices::Face::V1_0::Models::DetectedFace end - def training_status - Azure::CognitiveServices::Face::V1_0::Models::TrainingStatus + def gender + Azure::CognitiveServices::Face::V1_0::Models::Gender end def blur Azure::CognitiveServices::Face::V1_0::Models::Blur end - def person_group - Azure::CognitiveServices::Face::V1_0::Models::PersonGroup + def training_status + Azure::CognitiveServices::Face::V1_0::Models::TrainingStatus end def face_list Azure::CognitiveServices::Face::V1_0::Models::FaceList end - def hair_color_type - Azure::CognitiveServices::Face::V1_0::Models::HairColorType + def person_group + Azure::CognitiveServices::Face::V1_0::Models::PersonGroup end def person Azure::CognitiveServices::Face::V1_0::Models::Person end - def glasses_type - Azure::CognitiveServices::Face::V1_0::Models::GlassesType + def blur_level + Azure::CognitiveServices::Face::V1_0::Models::BlurLevel end def exposure_level Azure::CognitiveServices::Face::V1_0::Models::ExposureLevel @@ -228,9 +231,6 @@ def exposure_level def noise_level Azure::CognitiveServices::Face::V1_0::Models::NoiseLevel end - def blur_level - Azure::CognitiveServices::Face::V1_0::Models::BlurLevel - end end end end diff --git a/azure_sdk/lib/latest/modules/features_profile_module.rb b/azure_sdk/lib/latest/modules/features_profile_module.rb index d1a8453c22..189d52eff9 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 Operation = Azure::Features::Mgmt::V2015_12_01::Models::Operation OperationListResult = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult - OperationDisplay = Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay end class FeaturesManagementClass @@ -48,6 +48,9 @@ def method_missing(method, *args) end class ModelClasses + def operation_display + Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay + end def operation Azure::Features::Mgmt::V2015_12_01::Models::Operation end @@ -63,9 +66,6 @@ def feature_operations_list_result def feature_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult end - def operation_display - Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay - 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 3bde91c947..244a98bc9c 100644 --- a/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb +++ b/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb @@ -14,6 +14,7 @@ module GraphRbac Users = Azure::GraphRbac::V1_6::Users module Models + DirectoryObjectListResult = Azure::GraphRbac::V1_6::Models::DirectoryObjectListResult UserBase = Azure::GraphRbac::V1_6::Models::UserBase AADObject = Azure::GraphRbac::V1_6::Models::AADObject RequiredResourceAccess = Azure::GraphRbac::V1_6::Models::RequiredResourceAccess @@ -55,7 +56,6 @@ module Models PasswordCredential = Azure::GraphRbac::V1_6::Models::PasswordCredential ServicePrincipalListResult = Azure::GraphRbac::V1_6::Models::ServicePrincipalListResult PasswordProfile = Azure::GraphRbac::V1_6::Models::PasswordProfile - DirectoryObjectListResult = Azure::GraphRbac::V1_6::Models::DirectoryObjectListResult end class GraphRbacDataClass @@ -93,6 +93,9 @@ def method_missing(method, *args) end class ModelClasses + def directory_object_list_result + Azure::GraphRbac::V1_6::Models::DirectoryObjectListResult + end def user_base Azure::GraphRbac::V1_6::Models::UserBase end @@ -216,9 +219,6 @@ def service_principal_list_result def password_profile Azure::GraphRbac::V1_6::Models::PasswordProfile end - def directory_object_list_result - Azure::GraphRbac::V1_6::Models::DirectoryObjectListResult - 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 8672db9989..a5b548a73c 100644 --- a/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb @@ -24,8 +24,8 @@ module Models ImageObject = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageObject Organization = Azure::CognitiveServices::ImageSearch::V1_0::Models::Organization Intangible = Azure::CognitiveServices::ImageSearch::V1_0::Models::Intangible - MediaObject = Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject Error = Azure::CognitiveServices::ImageSearch::V1_0::Models::Error + MediaObject = Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject StructuredValue = Azure::CognitiveServices::ImageSearch::V1_0::Models::StructuredValue Images = Azure::CognitiveServices::ImageSearch::V1_0::Models::Images RelatedSearchesModule = Azure::CognitiveServices::ImageSearch::V1_0::Models::RelatedSearchesModule @@ -144,12 +144,12 @@ def organization def intangible Azure::CognitiveServices::ImageSearch::V1_0::Models::Intangible end - def media_object - Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject - end def error Azure::CognitiveServices::ImageSearch::V1_0::Models::Error end + def media_object + Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject + end def structured_value Azure::CognitiveServices::ImageSearch::V1_0::Models::StructuredValue end diff --git a/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb b/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb index ffbd3c76b3..33e4c73cdd 100644 --- a/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb +++ b/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb @@ -7,8 +7,8 @@ module Azure::Profiles::Latest module IotCentral module Mgmt - Apps = Azure::IotCentral::Mgmt::V2018_09_01::Apps Operations = Azure::IotCentral::Mgmt::V2018_09_01::Operations + Apps = Azure::IotCentral::Mgmt::V2018_09_01::Apps module Models ErrorDetails = Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails @@ -27,7 +27,7 @@ module Models 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 diff --git a/azure_sdk/lib/latest/modules/iothub_profile_module.rb b/azure_sdk/lib/latest/modules/iothub_profile_module.rb index a9344afa6d..ea7d097a67 100644 --- a/azure_sdk/lib/latest/modules/iothub_profile_module.rb +++ b/azure_sdk/lib/latest/modules/iothub_profile_module.rb @@ -7,12 +7,13 @@ module Azure::Profiles::Latest module IotHub module Mgmt + Operations = Azure::IotHub::Mgmt::V2018_04_01::Operations IotHubResource = Azure::IotHub::Mgmt::V2018_04_01::IotHubResource ResourceProviderCommon = Azure::IotHub::Mgmt::V2018_04_01::ResourceProviderCommon Certificates = Azure::IotHub::Mgmt::V2018_04_01::Certificates - Operations = Azure::IotHub::Mgmt::V2018_04_01::Operations module Models + 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 @@ -89,11 +90,10 @@ module Models 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 end class IotHubManagementClass - attr_reader :iot_hub_resource, :resource_provider_common, :certificates, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :iot_hub_resource, :resource_provider_common, :certificates, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -103,10 +103,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 @iot_hub_resource = @client_0.iot_hub_resource @resource_provider_common = @client_0.resource_provider_common @certificates = @client_0.certificates - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -125,6 +125,9 @@ def method_missing(method, *args) end class ModelClasses + 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 @@ -353,9 +356,6 @@ def storage_endpoint_properties 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 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 f2230895ba..df3770b7fb 100644 --- a/azure_sdk/lib/latest/modules/keyvault_profile_module.rb +++ b/azure_sdk/lib/latest/modules/keyvault_profile_module.rb @@ -9,6 +9,7 @@ module Azure::Profiles::Latest module KeyVault module Models + 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 @@ -106,7 +107,6 @@ module Models 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 end class KeyVaultDataClass @@ -138,6 +138,9 @@ def method_missing(method, *args) end class ModelClasses + def backup_storage_result + Azure::KeyVault::V7_0::Models::BackupStorageResult + end def certificate_restore_parameters Azure::KeyVault::V7_0::Models::CertificateRestoreParameters end @@ -429,14 +432,11 @@ def deleted_sas_definition_list_result def storage_restore_parameters Azure::KeyVault::V7_0::Models::StorageRestoreParameters end - def backup_storage_result - Azure::KeyVault::V7_0::Models::BackupStorageResult - end end end module Mgmt - Vaults = Azure::KeyVault::Mgmt::V2018_02_14::Vaults Operations = Azure::KeyVault::Mgmt::V2018_02_14::Operations + Vaults = Azure::KeyVault::Mgmt::V2018_02_14::Vaults module Models Permissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::Permissions @@ -466,11 +466,11 @@ module Models Operation = Azure::KeyVault::Mgmt::V2018_02_14::Models::Operation StoragePermissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::StoragePermissions VirtualNetworkRule = Azure::KeyVault::Mgmt::V2018_02_14::Models::VirtualNetworkRule - AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyUpdateKind + Reason = Azure::KeyVault::Mgmt::V2018_02_14::Models::Reason 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 - Reason = Azure::KeyVault::Mgmt::V2018_02_14::Models::Reason + AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyUpdateKind IPRule = Azure::KeyVault::Mgmt::V2018_02_14::Models::IPRule NetworkRuleSet = Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleSet NetworkRuleBypassOptions = Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleBypassOptions @@ -478,7 +478,7 @@ module Models end class KeyVaultManagementClass - attr_reader :vaults, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :vaults, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -488,8 +488,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @vaults = @client_0.vaults @operations = @client_0.operations + @vaults = @client_0.vaults @model_classes = ModelClasses.new end @@ -589,8 +589,8 @@ def storage_permissions def virtual_network_rule Azure::KeyVault::Mgmt::V2018_02_14::Models::VirtualNetworkRule end - def access_policy_update_kind - Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyUpdateKind + def reason + Azure::KeyVault::Mgmt::V2018_02_14::Models::Reason end def create_mode Azure::KeyVault::Mgmt::V2018_02_14::Models::CreateMode @@ -601,8 +601,8 @@ def certificate_permissions def sku Azure::KeyVault::Mgmt::V2018_02_14::Models::Sku end - def reason - Azure::KeyVault::Mgmt::V2018_02_14::Models::Reason + def access_policy_update_kind + Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyUpdateKind end def iprule Azure::KeyVault::Mgmt::V2018_02_14::Models::IPRule diff --git a/azure_sdk/lib/latest/modules/links_profile_module.rb b/azure_sdk/lib/latest/modules/links_profile_module.rb index 32c6c0c1ee..b4436dca48 100644 --- a/azure_sdk/lib/latest/modules/links_profile_module.rb +++ b/azure_sdk/lib/latest/modules/links_profile_module.rb @@ -7,10 +7,11 @@ module Azure::Profiles::Latest module Links module Mgmt - ResourceLinks = Azure::Links::Mgmt::V2016_09_01::ResourceLinks Operations = Azure::Links::Mgmt::V2016_09_01::Operations + ResourceLinks = Azure::Links::Mgmt::V2016_09_01::ResourceLinks module Models + OperationDisplay = Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay Operation = Azure::Links::Mgmt::V2016_09_01::Models::Operation OperationListResult = Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult ResourceLinkResult = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkResult @@ -18,11 +19,10 @@ module Models ResourceLinkFilter = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink Filter = Azure::Links::Mgmt::V2016_09_01::Models::Filter - OperationDisplay = Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay end class LinksManagementClass - attr_reader :resource_links, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :resource_links, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -32,8 +32,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @resource_links = @client_0.resource_links @operations = @client_0.operations + @resource_links = @client_0.resource_links @model_classes = ModelClasses.new end @@ -52,6 +52,9 @@ def method_missing(method, *args) end class ModelClasses + def operation_display + Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay + end def operation Azure::Links::Mgmt::V2016_09_01::Models::Operation end @@ -73,9 +76,6 @@ def resource_link def filter Azure::Links::Mgmt::V2016_09_01::Models::Filter end - def operation_display - Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay - end end end end diff --git a/azure_sdk/lib/latest/modules/locks_profile_module.rb b/azure_sdk/lib/latest/modules/locks_profile_module.rb index be6d441742..175a6c7b5d 100644 --- a/azure_sdk/lib/latest/modules/locks_profile_module.rb +++ b/azure_sdk/lib/latest/modules/locks_profile_module.rb @@ -11,13 +11,13 @@ module Mgmt ManagementLocks = Azure::Locks::Mgmt::V2016_09_01::ManagementLocks module Models + OperationDisplay = Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay ManagementLockOwner = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner Operation = Azure::Locks::Mgmt::V2016_09_01::Models::Operation ManagementLockListResult = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult OperationListResult = Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult ManagementLockObject = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject LockLevel = Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel - OperationDisplay = Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay end class LocksManagementClass @@ -51,6 +51,9 @@ def method_missing(method, *args) end class ModelClasses + def operation_display + Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay + end def management_lock_owner Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner end @@ -69,9 +72,6 @@ def management_lock_object def lock_level Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel end - def operation_display - Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay - end 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 c3c587afbc..25ddbad93c 100644 --- a/azure_sdk/lib/latest/modules/logic_profile_module.rb +++ b/azure_sdk/lib/latest/modules/logic_profile_module.rb @@ -74,7 +74,7 @@ module Models CallbackUrl = Azure::Logic::Mgmt::V2016_06_01::Models::CallbackUrl X12AgreementContent = Azure::Logic::Mgmt::V2016_06_01::Models::X12AgreementContent IntegrationAccountSchemaListResult = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSchemaListResult - ContentHash = Azure::Logic::Mgmt::V2016_06_01::Models::ContentHash + EdifactValidationSettings = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactValidationSettings IntegrationAccountMapPropertiesParametersSchema = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMapPropertiesParametersSchema EdifactFramingSettings = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactFramingSettings IntegrationAccountMapListResult = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMapListResult @@ -102,24 +102,24 @@ module Models WorkflowTriggerHistoryFilter = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowTriggerHistoryFilter WorkflowRunListResult = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunListResult AgreementContent = Azure::Logic::Mgmt::V2016_06_01::Models::AgreementContent + ContentHash = Azure::Logic::Mgmt::V2016_06_01::Models::ContentHash AssemblyCollection = Azure::Logic::Mgmt::V2016_06_01::Models::AssemblyCollection ErrorInfo = Azure::Logic::Mgmt::V2016_06_01::Models::ErrorInfo - GenerateUpgradedDefinitionParameters = Azure::Logic::Mgmt::V2016_06_01::Models::GenerateUpgradedDefinitionParameters EdifactAgreementContent = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactAgreementContent IntegrationAccountAgreementListResult = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountAgreementListResult - GetCallbackUrlParameters = Azure::Logic::Mgmt::V2016_06_01::Models::GetCallbackUrlParameters + GenerateUpgradedDefinitionParameters = Azure::Logic::Mgmt::V2016_06_01::Models::GenerateUpgradedDefinitionParameters IntegrationAccountAgreementFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountAgreementFilter - IntegrationAccountSchemaFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSchemaFilter + GetCallbackUrlParameters = Azure::Logic::Mgmt::V2016_06_01::Models::GetCallbackUrlParameters KeyVaultKeyReferenceKeyVault = Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultKeyReferenceKeyVault - IntegrationAccountMapFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMapFilter + IntegrationAccountSchemaFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSchemaFilter WorkflowRunActionRepetitionDefinitionCollection = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunActionRepetitionDefinitionCollection - Expression = Azure::Logic::Mgmt::V2016_06_01::Models::Expression + IntegrationAccountMapFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMapFilter AS2AcknowledgementConnectionSettings = Azure::Logic::Mgmt::V2016_06_01::Models::AS2AcknowledgementConnectionSettings - IntegrationAccountCertificateListResult = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountCertificateListResult + Expression = Azure::Logic::Mgmt::V2016_06_01::Models::Expression AS2EnvelopeSettings = Azure::Logic::Mgmt::V2016_06_01::Models::AS2EnvelopeSettings - IntegrationAccountSessionFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionFilter + IntegrationAccountCertificateListResult = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountCertificateListResult ExpressionTraces = Azure::Logic::Mgmt::V2016_06_01::Models::ExpressionTraces - EdifactValidationSettings = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactValidationSettings + IntegrationAccountSessionFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionFilter IntegrationAccountSessionListResult = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionListResult BatchConfigurationCollection = Azure::Logic::Mgmt::V2016_06_01::Models::BatchConfigurationCollection OperationResultProperties = Azure::Logic::Mgmt::V2016_06_01::Models::OperationResultProperties @@ -388,8 +388,8 @@ def x12_agreement_content def integration_account_schema_list_result Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSchemaListResult end - def content_hash - Azure::Logic::Mgmt::V2016_06_01::Models::ContentHash + def edifact_validation_settings + Azure::Logic::Mgmt::V2016_06_01::Models::EdifactValidationSettings end def integration_account_map_properties_parameters_schema Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMapPropertiesParametersSchema @@ -472,59 +472,59 @@ def workflow_run_list_result def agreement_content Azure::Logic::Mgmt::V2016_06_01::Models::AgreementContent end + def content_hash + Azure::Logic::Mgmt::V2016_06_01::Models::ContentHash + end def assembly_collection Azure::Logic::Mgmt::V2016_06_01::Models::AssemblyCollection end def error_info Azure::Logic::Mgmt::V2016_06_01::Models::ErrorInfo end - def generate_upgraded_definition_parameters - Azure::Logic::Mgmt::V2016_06_01::Models::GenerateUpgradedDefinitionParameters - end def edifact_agreement_content Azure::Logic::Mgmt::V2016_06_01::Models::EdifactAgreementContent end def integration_account_agreement_list_result Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountAgreementListResult end - def get_callback_url_parameters - Azure::Logic::Mgmt::V2016_06_01::Models::GetCallbackUrlParameters + def generate_upgraded_definition_parameters + Azure::Logic::Mgmt::V2016_06_01::Models::GenerateUpgradedDefinitionParameters end def integration_account_agreement_filter Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountAgreementFilter end - def integration_account_schema_filter - Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSchemaFilter + def get_callback_url_parameters + Azure::Logic::Mgmt::V2016_06_01::Models::GetCallbackUrlParameters end def key_vault_key_reference_key_vault Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultKeyReferenceKeyVault end - def integration_account_map_filter - Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMapFilter + def integration_account_schema_filter + Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSchemaFilter end def workflow_run_action_repetition_definition_collection Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunActionRepetitionDefinitionCollection end - def expression - Azure::Logic::Mgmt::V2016_06_01::Models::Expression + def integration_account_map_filter + Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMapFilter end def as2_acknowledgement_connection_settings Azure::Logic::Mgmt::V2016_06_01::Models::AS2AcknowledgementConnectionSettings end - def integration_account_certificate_list_result - Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountCertificateListResult + def expression + Azure::Logic::Mgmt::V2016_06_01::Models::Expression end def as2_envelope_settings Azure::Logic::Mgmt::V2016_06_01::Models::AS2EnvelopeSettings end - def integration_account_session_filter - Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionFilter + def integration_account_certificate_list_result + Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountCertificateListResult end def expression_traces Azure::Logic::Mgmt::V2016_06_01::Models::ExpressionTraces end - def edifact_validation_settings - Azure::Logic::Mgmt::V2016_06_01::Models::EdifactValidationSettings + def integration_account_session_filter + Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionFilter end def integration_account_session_list_result Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionListResult diff --git a/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb b/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb index 56c1c9f092..7705bc8c96 100644 --- a/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb +++ b/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb @@ -11,6 +11,7 @@ module Mgmt WebServices = Azure::MachineLearning::Mgmt::V2017_01_01::WebServices module Models + ColumnType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnType AsyncOperationStatus = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AsyncOperationStatus OperationEntity = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntity InputPortType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::InputPortType @@ -50,7 +51,6 @@ module Models WebService = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebService WebServicePropertiesForGraph = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServicePropertiesForGraph DiagnosticsLevel = Azure::MachineLearning::Mgmt::V2017_01_01::Models::DiagnosticsLevel - ColumnType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnType end class MachineLearningManagementClass @@ -84,6 +84,9 @@ def method_missing(method, *args) end class ModelClasses + def column_type + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnType + end def async_operation_status Azure::MachineLearning::Mgmt::V2017_01_01::Models::AsyncOperationStatus end @@ -201,9 +204,6 @@ def web_service_properties_for_graph def diagnostics_level Azure::MachineLearning::Mgmt::V2017_01_01::Models::DiagnosticsLevel end - def column_type - Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnType - 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 f064436d24..732279fe8b 100644 --- a/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb +++ b/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb @@ -11,6 +11,7 @@ module Mgmt ApplicationDefinitions = Azure::ManagedApplications::Mgmt::V2018_06_01::ApplicationDefinitions module Models + ApplicationDefinition = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationDefinition ApplicationLockLevel = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationLockLevel ApplicationArtifactType = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationArtifactType GenericResource = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::GenericResource @@ -28,7 +29,6 @@ module Models Identity = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Identity ApplicationArtifact = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationArtifact ApplicationPatchable = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationPatchable - ApplicationDefinition = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationDefinition end class ManagedApplicationsManagementClass @@ -62,6 +62,9 @@ def method_missing(method, *args) end class ModelClasses + def application_definition + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationDefinition + end def application_lock_level Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationLockLevel end @@ -113,9 +116,6 @@ def application_artifact def application_patchable Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationPatchable end - def application_definition - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationDefinition - 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 3319d8a4c0..42fda4f4e5 100644 --- a/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb +++ b/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb @@ -11,12 +11,12 @@ module Mgmt UserAssignedIdentities = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::UserAssignedIdentities module Models + 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 Identity = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity - OperationDisplay = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationDisplay end class ManagedServiceIdentityManagementClass @@ -50,6 +50,9 @@ def method_missing(method, *args) end class ModelClasses + 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 @@ -65,9 +68,6 @@ def operation_list_result def identity Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity end - def operation_display - Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationDisplay - end 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 fe077cb068..4981006725 100644 --- a/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb +++ b/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb @@ -7,21 +7,21 @@ module Azure::Profiles::Latest module MarketplaceOrdering module Mgmt - MarketplaceAgreements = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceAgreements Operations = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Operations + MarketplaceAgreements = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceAgreements module Models + OperationDisplay = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay Operation = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Operation ErrorResponse = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponse OperationListResult = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationListResult 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 - OperationDisplay = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay 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,6 +51,9 @@ def method_missing(method, *args) end class ModelClasses + def operation_display + Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay + end def operation Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Operation end @@ -69,9 +72,6 @@ def error_response_error def agreement_terms Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::AgreementTerms end - def operation_display - Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay - end end end end diff --git a/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb b/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb index f60dfef4a6..74da846ef9 100644 --- a/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb @@ -23,6 +23,7 @@ module Mgmt 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 @@ -91,7 +92,7 @@ module Models ContentKeyPolicyRestriction = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestriction StreamingEndpointAccessControl = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointAccessControl ContentKeyPolicyRestrictionTokenKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestrictionTokenKey - 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 JobErrorDetail = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorDetail LiveEventListResult = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventListResult @@ -177,46 +178,45 @@ module Models AssetStorageEncryptionFormat = Azure::MediaServices::Mgmt::V2018_07_01::Models::AssetStorageEncryptionFormat Image = Azure::MediaServices::Mgmt::V2018_07_01::Models::Image ContentKeyPolicyPlayReadyUnknownOutputPassingOption = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyUnknownOutputPassingOption - ContentKeyPolicyPlayReadyLicenseType = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyLicenseType ContentKeyPolicyFairPlayRentalAndLeaseKeyType = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyFairPlayRentalAndLeaseKeyType AacAudioProfile = Azure::MediaServices::Mgmt::V2018_07_01::Models::AacAudioProfile + ContentKeyPolicyRestrictionTokenType = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestrictionTokenType LiveEvent = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEvent DeinterlaceParity = Azure::MediaServices::Mgmt::V2018_07_01::Models::DeinterlaceParity StretchMode = Azure::MediaServices::Mgmt::V2018_07_01::Models::StretchMode Rotation = Azure::MediaServices::Mgmt::V2018_07_01::Models::Rotation - DeinterlaceMode = Azure::MediaServices::Mgmt::V2018_07_01::Models::DeinterlaceMode Format = Azure::MediaServices::Mgmt::V2018_07_01::Models::Format - ContentKeyPolicyRestrictionTokenType = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestrictionTokenType - EntropyMode = Azure::MediaServices::Mgmt::V2018_07_01::Models::EntropyMode - H264Complexity = Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Complexity + MetricAggregationType = Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricAggregationType H264VideoProfile = Azure::MediaServices::Mgmt::V2018_07_01::Models::H264VideoProfile + DeinterlaceMode = Azure::MediaServices::Mgmt::V2018_07_01::Models::DeinterlaceMode + H264Complexity = Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Complexity + ContentKeyPolicyPlayReadyLicenseType = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyLicenseType ContentKeyPolicyPlayReadyContentType = Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentType - MetricAggregationType = Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricAggregationType - 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 + EncoderNamedPreset = Azure::MediaServices::Mgmt::V2018_07_01::Models::EncoderNamedPreset + AkamaiAccessControl = Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiAccessControl + EntropyMode = Azure::MediaServices::Mgmt::V2018_07_01::Models::EntropyMode AkamaiSignatureHeaderAuthenticationKey = Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiSignatureHeaderAuthenticationKey - ListPathsResponse = Azure::MediaServices::Mgmt::V2018_07_01::Models::ListPathsResponse - JobErrorCategory = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCategory + JobErrorCode = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCode + InsightsType = Azure::MediaServices::Mgmt::V2018_07_01::Models::InsightsType JobRetry = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobRetry Priority = Azure::MediaServices::Mgmt::V2018_07_01::Models::Priority - JobErrorCode = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCode - StreamingLocatorContentKeyType = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorContentKeyType + TrackPropertyCompareOperation = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCompareOperation + JobErrorCategory = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCategory StreamingPolicyStreamingProtocol = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyStreamingProtocol TrackPropertyType = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyType - TrackPropertyCompareOperation = Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCompareOperation - LiveEventInputProtocol = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInputProtocol + LiveOutputResourceState = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveOutputResourceState + StreamingLocatorContentKeyType = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorContentKeyType LiveEventEncodingType = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEncodingType EncryptionScheme = Azure::MediaServices::Mgmt::V2018_07_01::Models::EncryptionScheme - LiveOutputResourceState = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveOutputResourceState - StreamingEndpointResourceState = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointResourceState - LiveEventResourceState = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventResourceState StreamOptionsFlag = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamOptionsFlag + LiveEventInputProtocol = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInputProtocol + LiveEventResourceState = Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventResourceState + StreamingEndpointResourceState = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointResourceState Location = Azure::MediaServices::Mgmt::V2018_07_01::Models::Location StorageAccountType = Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccountType StorageAccount = Azure::MediaServices::Mgmt::V2018_07_01::Models::StorageAccount JobState = Azure::MediaServices::Mgmt::V2018_07_01::Models::JobState - CheckNameAvailabilityInput = Azure::MediaServices::Mgmt::V2018_07_01::Models::CheckNameAvailabilityInput end class MediaServicesManagementClass @@ -262,6 +262,9 @@ 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 @@ -466,8 +469,8 @@ def streaming_endpoint_access_control def content_key_policy_restriction_token_key Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestrictionTokenKey end - def akamai_access_control - Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiAccessControl + def list_paths_response + Azure::MediaServices::Mgmt::V2018_07_01::Models::ListPathsResponse end def output_file Azure::MediaServices::Mgmt::V2018_07_01::Models::OutputFile @@ -724,15 +727,15 @@ def image def content_key_policy_play_ready_unknown_output_passing_option Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyUnknownOutputPassingOption end - def content_key_policy_play_ready_license_type - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyLicenseType - end 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 end + def content_key_policy_restriction_token_type + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestrictionTokenType + end def live_event Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEvent end @@ -745,47 +748,47 @@ def stretch_mode def rotation Azure::MediaServices::Mgmt::V2018_07_01::Models::Rotation end - def deinterlace_mode - Azure::MediaServices::Mgmt::V2018_07_01::Models::DeinterlaceMode - end def format Azure::MediaServices::Mgmt::V2018_07_01::Models::Format end - def content_key_policy_restriction_token_type - Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyRestrictionTokenType + def metric_aggregation_type + Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricAggregationType end - def entropy_mode - Azure::MediaServices::Mgmt::V2018_07_01::Models::EntropyMode + def h264_video_profile + Azure::MediaServices::Mgmt::V2018_07_01::Models::H264VideoProfile + end + def deinterlace_mode + Azure::MediaServices::Mgmt::V2018_07_01::Models::DeinterlaceMode end def h264_complexity Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Complexity end - def h264_video_profile - Azure::MediaServices::Mgmt::V2018_07_01::Models::H264VideoProfile + def content_key_policy_play_ready_license_type + Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyLicenseType end def content_key_policy_play_ready_content_type Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyContentType end - def metric_aggregation_type - Azure::MediaServices::Mgmt::V2018_07_01::Models::MetricAggregationType + def on_error_type + Azure::MediaServices::Mgmt::V2018_07_01::Models::OnErrorType end def encoder_named_preset Azure::MediaServices::Mgmt::V2018_07_01::Models::EncoderNamedPreset end - def insights_type - Azure::MediaServices::Mgmt::V2018_07_01::Models::InsightsType + def akamai_access_control + Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiAccessControl end - def on_error_type - Azure::MediaServices::Mgmt::V2018_07_01::Models::OnErrorType + def entropy_mode + Azure::MediaServices::Mgmt::V2018_07_01::Models::EntropyMode end def akamai_signature_header_authentication_key Azure::MediaServices::Mgmt::V2018_07_01::Models::AkamaiSignatureHeaderAuthenticationKey end - def list_paths_response - Azure::MediaServices::Mgmt::V2018_07_01::Models::ListPathsResponse + 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 insights_type + Azure::MediaServices::Mgmt::V2018_07_01::Models::InsightsType end def job_retry Azure::MediaServices::Mgmt::V2018_07_01::Models::JobRetry @@ -793,11 +796,11 @@ def job_retry def priority Azure::MediaServices::Mgmt::V2018_07_01::Models::Priority end - def job_error_code - Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCode + def track_property_compare_operation + Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCompareOperation end - def streaming_locator_content_key_type - Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorContentKeyType + def job_error_category + Azure::MediaServices::Mgmt::V2018_07_01::Models::JobErrorCategory end def streaming_policy_streaming_protocol Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyStreamingProtocol @@ -805,11 +808,11 @@ def streaming_policy_streaming_protocol def track_property_type Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyType end - def track_property_compare_operation - Azure::MediaServices::Mgmt::V2018_07_01::Models::TrackPropertyCompareOperation + 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 streaming_locator_content_key_type + Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorContentKeyType end def live_event_encoding_type Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventEncodingType @@ -817,17 +820,17 @@ def live_event_encoding_type def encryption_scheme Azure::MediaServices::Mgmt::V2018_07_01::Models::EncryptionScheme end - def live_output_resource_state - Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveOutputResourceState + 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 + def live_event_input_protocol + Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventInputProtocol end 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 + def streaming_endpoint_resource_state + Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingEndpointResourceState end def location Azure::MediaServices::Mgmt::V2018_07_01::Models::Location @@ -841,9 +844,6 @@ def storage_account def job_state Azure::MediaServices::Mgmt::V2018_07_01::Models::JobState end - def check_name_availability_input - Azure::MediaServices::Mgmt::V2018_07_01::Models::CheckNameAvailabilityInput - 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 89efeee24e..fbc759c0c6 100644 --- a/azure_sdk/lib/latest/modules/monitor_profile_module.rb +++ b/azure_sdk/lib/latest/modules/monitor_profile_module.rb @@ -7,11 +7,11 @@ module Azure::Profiles::Latest module Monitor module Mgmt + Operations = Azure::Monitor::Mgmt::V2015_04_01::Operations ActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::ActivityLogs AutoscaleSettings = Azure::Monitor::Mgmt::V2015_04_01::AutoscaleSettings EventCategories = Azure::Monitor::Mgmt::V2015_04_01::EventCategories TenantActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::TenantActivityLogs - Operations = Azure::Monitor::Mgmt::V2015_04_01::Operations AlertRules = Azure::Monitor::Mgmt::V2016_03_01::AlertRules AlertRuleIncidents = Azure::Monitor::Mgmt::V2016_03_01::AlertRuleIncidents LogProfiles = Azure::Monitor::Mgmt::V2016_03_01::LogProfiles @@ -21,12 +21,13 @@ module Mgmt 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 + MetricAlertsStatus = Azure::Monitor::Mgmt::V2018_03_01::MetricAlertsStatus ActionGroups = Azure::Monitor::Mgmt::V2018_03_01::ActionGroups MetricAlerts = Azure::Monitor::Mgmt::V2018_03_01::MetricAlerts - MetricAlertsStatus = Azure::Monitor::Mgmt::V2018_03_01::MetricAlertsStatus ScheduledQueryRules = Azure::Monitor::Mgmt::V2018_04_16::ScheduledQueryRules module Models + ScaleCapacity = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity AutoscaleNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification ScaleAction = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleAction ScaleRule = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRule @@ -54,7 +55,6 @@ module Models 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 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 @@ -87,10 +87,10 @@ module Models CategoryType = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType RetentionPolicy = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy ProxyOnlyResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource - LogSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings - DiagnosticSettingsCategoryResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection MetricSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings + LogSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings DiagnosticSettingsResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection + DiagnosticSettingsCategoryResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection DiagnosticSettingsCategoryResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource DiagnosticSettingsResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource Baseline = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Baseline @@ -136,6 +136,7 @@ module Models ReceiverStatus = Azure::Monitor::Mgmt::V2018_03_01::Models::ReceiverStatus ActionGroupList = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupList ActionGroupResource = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupResource + Schedule = Azure::Monitor::Mgmt::V2018_04_16::Models::Schedule Action = Azure::Monitor::Mgmt::V2018_04_16::Models::Action Resource = Azure::Monitor::Mgmt::V2018_04_16::Models::Resource ProvisioningState = Azure::Monitor::Mgmt::V2018_04_16::Models::ProvisioningState @@ -152,12 +153,11 @@ module Models 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 - Schedule = Azure::Monitor::Mgmt::V2018_04_16::Models::Schedule Source = Azure::Monitor::Mgmt::V2018_04_16::Models::Source end class MonitorManagementClass - attr_reader :activity_logs, :autoscale_settings, :event_categories, :tenant_activity_logs, :operations, :alert_rules, :alert_rule_incidents, :log_profiles, :activity_log_alerts, :diagnostic_settings_operations, :diagnostic_settings_category_operations, :metric_baseline, :metric_definitions, :metrics, :action_groups, :metric_alerts, :metric_alerts_status, :scheduled_query_rules, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :activity_logs, :autoscale_settings, :event_categories, :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_status, :action_groups, :metric_alerts, :scheduled_query_rules, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -167,11 +167,11 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @operations = @client_0.operations @activity_logs = @client_0.activity_logs @autoscale_settings = @client_0.autoscale_settings @event_categories = @client_0.event_categories @tenant_activity_logs = @client_0.tenant_activity_logs - @operations = @client_0.operations @client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options) if(@client_1.respond_to?(:subscription_id)) @@ -217,9 +217,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_6.subscription_id = configurable.subscription_id end add_telemetry(@client_6) + @metric_alerts_status = @client_6.metric_alerts_status @action_groups = @client_6.action_groups @metric_alerts = @client_6.metric_alerts - @metric_alerts_status = @client_6.metric_alerts_status @client_7 = Azure::Monitor::Mgmt::V2018_04_16::MonitorClient.new(configurable.credentials, base_url, options) if(@client_7.respond_to?(:subscription_id)) @@ -259,6 +259,9 @@ def method_missing(method, *args) end class ModelClasses + def scale_capacity + Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity + end def autoscale_notification Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification end @@ -340,9 +343,6 @@ def email_notification def webhook_notification Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification end - def scale_capacity - Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity - end def rule_condition Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition end @@ -439,18 +439,18 @@ def retention_policy def proxy_only_resource Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource end - def log_settings - Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings - end - def diagnostic_settings_category_resource_collection - Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection - end def metric_settings Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings end + def log_settings + Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings + end def diagnostic_settings_resource_collection Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection end + def diagnostic_settings_category_resource_collection + Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection + end def diagnostic_settings_category_resource Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource end @@ -586,6 +586,9 @@ def action_group_list def action_group_resource Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupResource end + def schedule + Azure::Monitor::Mgmt::V2018_04_16::Models::Schedule + end def action Azure::Monitor::Mgmt::V2018_04_16::Models::Action end @@ -634,9 +637,6 @@ def metric_trigger_type def alert_severity Azure::Monitor::Mgmt::V2018_04_16::Models::AlertSeverity end - def schedule - Azure::Monitor::Mgmt::V2018_04_16::Models::Schedule - end def source Azure::Monitor::Mgmt::V2018_04_16::Models::Source end diff --git a/azure_sdk/lib/latest/modules/network_profile_module.rb b/azure_sdk/lib/latest/modules/network_profile_module.rb index d2163cef43..f133bae7dc 100644 --- a/azure_sdk/lib/latest/modules/network_profile_module.rb +++ b/azure_sdk/lib/latest/modules/network_profile_module.rb @@ -245,13 +245,13 @@ module Models GatewayRouteListResult = Azure::Network::Mgmt::V2018_08_01::Models::GatewayRouteListResult LoadBalancerProbeListResult = Azure::Network::Mgmt::V2018_08_01::Models::LoadBalancerProbeListResult BgpPeerStatusListResult = Azure::Network::Mgmt::V2018_08_01::Models::BgpPeerStatusListResult - VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayListResult + Error = Azure::Network::Mgmt::V2018_08_01::Models::Error ErrorDetails = Azure::Network::Mgmt::V2018_08_01::Models::ErrorDetails ApplicationGatewayBackendHealthHttpSettings = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayBackendHealthHttpSettings ApplicationGatewayBackendHealth = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayBackendHealth AzureAsyncOperationResult = Azure::Network::Mgmt::V2018_08_01::Models::AzureAsyncOperationResult - Error = Azure::Network::Mgmt::V2018_08_01::Models::Error - GatewayRoute = Azure::Network::Mgmt::V2018_08_01::Models::GatewayRoute + ApplicationGatewaySslPolicy = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPolicy + VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayListResult NetworkInterfaceLoadBalancerListResult = Azure::Network::Mgmt::V2018_08_01::Models::NetworkInterfaceLoadBalancerListResult BgpSettings = Azure::Network::Mgmt::V2018_08_01::Models::BgpSettings EffectiveNetworkSecurityGroupAssociation = Azure::Network::Mgmt::V2018_08_01::Models::EffectiveNetworkSecurityGroupAssociation @@ -380,67 +380,67 @@ module Models ApplicationGatewayAuthenticationCertificate = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayAuthenticationCertificate Resource = Azure::Network::Mgmt::V2018_08_01::Models::Resource ApplicationGatewaySslCertificate = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslCertificate - ApplicationGatewayFrontendIPConfiguration = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFrontendIPConfiguration ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFrontendPort + ApplicationGatewayHttpListener = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayHttpListener ApplicationGatewayPathRule = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayPathRule ApplicationGatewayProbe = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayProbe - ApplicationGatewayHttpListener = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayHttpListener ApplicationGatewayRequestRoutingRule = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRequestRoutingRule - ApplicationGatewaySslPolicy = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPolicy + ApplicationGatewayFrontendIPConfiguration = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFrontendIPConfiguration + ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayUrlPathMap ApplicationGatewayFirewallRuleGroup = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFirewallRuleGroup ApplicationGatewayFirewallRuleSet = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFirewallRuleSet - ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayUrlPathMap - RouteFilterRuleListResult = Azure::Network::Mgmt::V2018_08_01::Models::RouteFilterRuleListResult - ApplicationGatewayRedirectConfiguration = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRedirectConfiguration ApplicationGatewayAvailableSslOptions = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayAvailableSslOptions + RouteFilterRuleListResult = Azure::Network::Mgmt::V2018_08_01::Models::RouteFilterRuleListResult + EndpointServiceResult = Azure::Network::Mgmt::V2018_08_01::Models::EndpointServiceResult + ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitAuthorization RouteFilterRule = Azure::Network::Mgmt::V2018_08_01::Models::RouteFilterRule ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitPeering - Availability = Azure::Network::Mgmt::V2018_08_01::Models::Availability + ApplicationGatewayRedirectConfiguration = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRedirectConfiguration ApplicationGatewaySslPredefinedPolicy = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPredefinedPolicy - EndpointServiceResult = Azure::Network::Mgmt::V2018_08_01::Models::EndpointServiceResult + ApplicationGateway = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGateway FrontendIPConfiguration = Azure::Network::Mgmt::V2018_08_01::Models::FrontendIPConfiguration LoadBalancingRule = Azure::Network::Mgmt::V2018_08_01::Models::LoadBalancingRule Probe = Azure::Network::Mgmt::V2018_08_01::Models::Probe RouteFilter = Azure::Network::Mgmt::V2018_08_01::Models::RouteFilter - ApplicationGateway = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGateway + Availability = Azure::Network::Mgmt::V2018_08_01::Models::Availability ExpressRouteServiceProvider = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteServiceProvider - InboundNatPool = Azure::Network::Mgmt::V2018_08_01::Models::InboundNatPool + GatewayRoute = Azure::Network::Mgmt::V2018_08_01::Models::GatewayRoute NetworkWatcher = Azure::Network::Mgmt::V2018_08_01::Models::NetworkWatcher ExpressRouteCircuit = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuit - ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitAuthorization BgpServiceCommunity = Azure::Network::Mgmt::V2018_08_01::Models::BgpServiceCommunity + PatchRouteFilterRule = Azure::Network::Mgmt::V2018_08_01::Models::PatchRouteFilterRule LoadBalancer = Azure::Network::Mgmt::V2018_08_01::Models::LoadBalancer VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayIPConfiguration NetworkProfile = Azure::Network::Mgmt::V2018_08_01::Models::NetworkProfile VpnClientRevokedCertificate = Azure::Network::Mgmt::V2018_08_01::Models::VpnClientRevokedCertificate VirtualNetworkGateway = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGateway LocalNetworkGateway = Azure::Network::Mgmt::V2018_08_01::Models::LocalNetworkGateway - PatchRouteFilterRule = Azure::Network::Mgmt::V2018_08_01::Models::PatchRouteFilterRule - VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnection + VirtualNetwork = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetwork + InboundNatPool = Azure::Network::Mgmt::V2018_08_01::Models::InboundNatPool VirtualNetworkGatewayConnectionListEntity = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnectionListEntity VirtualNetworkPeering = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkPeering ApplicationGatewayBackendHealthServerHealth = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayBackendHealthServerHealth ApplicationGatewayProtocol = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayProtocol - PatchRouteFilter = Azure::Network::Mgmt::V2018_08_01::Models::PatchRouteFilter + VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnection ApplicationGatewayTier = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayTier ApplicationGatewaySkuName = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySkuName - VirtualNetwork = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetwork ApplicationGatewaySslPolicyName = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPolicyName + ApplicationGatewaySslCipherSuite = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslCipherSuite VpnClientRootCertificate = Azure::Network::Mgmt::V2018_08_01::Models::VpnClientRootCertificate - ApplicationGatewayRequestRoutingRuleType = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRequestRoutingRuleType + PatchRouteFilter = Azure::Network::Mgmt::V2018_08_01::Models::PatchRouteFilter ApplicationGatewayCookieBasedAffinity = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayCookieBasedAffinity IPVersion = Azure::Network::Mgmt::V2018_08_01::Models::IPVersion ApplicationGatewayRedirectType = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRedirectType - ApplicationGatewaySslCipherSuite = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslCipherSuite + ApplicationGatewayOperationalState = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayOperationalState ApplicationGatewaySslProtocol = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslProtocol ApplicationGatewaySslPolicyType = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPolicyType - ApplicationGatewayOperationalState = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayOperationalState - ApplicationGatewayFirewallMode = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFirewallMode - AuthorizationUseStatus = Azure::Network::Mgmt::V2018_08_01::Models::AuthorizationUseStatus ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState + ApplicationGatewayFirewallMode = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFirewallMode + ApplicationGatewayRequestRoutingRuleType = Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRequestRoutingRuleType + ExpressRouteCircuitPeeringState = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitPeeringState Access = Azure::Network::Mgmt::V2018_08_01::Models::Access ExpressRouteCircuitSkuFamily = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitSkuFamily - ExpressRouteCircuitPeeringState = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitPeeringState + AuthorizationUseStatus = Azure::Network::Mgmt::V2018_08_01::Models::AuthorizationUseStatus ExpressRouteCircuitSkuTier = Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitSkuTier LoadDistribution = Azure::Network::Mgmt::V2018_08_01::Models::LoadDistribution ServiceProviderProvisioningState = Azure::Network::Mgmt::V2018_08_01::Models::ServiceProviderProvisioningState @@ -460,26 +460,26 @@ module Models ConnectionStatus = Azure::Network::Mgmt::V2018_08_01::Models::ConnectionStatus Origin = Azure::Network::Mgmt::V2018_08_01::Models::Origin IssueType = Azure::Network::Mgmt::V2018_08_01::Models::IssueType - VirtualNetworkPeeringState = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkPeeringState Protocol = Azure::Network::Mgmt::V2018_08_01::Models::Protocol + ConnectionState = Azure::Network::Mgmt::V2018_08_01::Models::ConnectionState EvaluationState = Azure::Network::Mgmt::V2018_08_01::Models::EvaluationState - VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewaySkuName + VirtualNetworkPeeringState = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkPeeringState VirtualNetworkGatewayType = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayType - ConnectionState = Azure::Network::Mgmt::V2018_08_01::Models::ConnectionState - BgpPeerState = Azure::Network::Mgmt::V2018_08_01::Models::BgpPeerState + VpnType = Azure::Network::Mgmt::V2018_08_01::Models::VpnType + VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewaySkuName VirtualNetworkGatewaySkuTier = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewaySkuTier VpnClientProtocol = Azure::Network::Mgmt::V2018_08_01::Models::VpnClientProtocol - VpnType = Azure::Network::Mgmt::V2018_08_01::Models::VpnType - IpsecIntegrity = Azure::Network::Mgmt::V2018_08_01::Models::IpsecIntegrity IpsecEncryption = Azure::Network::Mgmt::V2018_08_01::Models::IpsecEncryption - IkeIntegrity = Azure::Network::Mgmt::V2018_08_01::Models::IkeIntegrity + IpsecIntegrity = Azure::Network::Mgmt::V2018_08_01::Models::IpsecIntegrity IkeEncryption = Azure::Network::Mgmt::V2018_08_01::Models::IkeEncryption - PfsGroup = Azure::Network::Mgmt::V2018_08_01::Models::PfsGroup + IkeIntegrity = Azure::Network::Mgmt::V2018_08_01::Models::IkeIntegrity DhGroup = Azure::Network::Mgmt::V2018_08_01::Models::DhGroup + PfsGroup = Azure::Network::Mgmt::V2018_08_01::Models::PfsGroup + AuthenticationMethod = Azure::Network::Mgmt::V2018_08_01::Models::AuthenticationMethod VirtualNetworkGatewayConnectionStatus = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnectionStatus VirtualNetworkGatewayConnectionType = Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnectionType + BgpPeerState = Azure::Network::Mgmt::V2018_08_01::Models::BgpPeerState ProcessorArchitecture = Azure::Network::Mgmt::V2018_08_01::Models::ProcessorArchitecture - AuthenticationMethod = Azure::Network::Mgmt::V2018_08_01::Models::AuthenticationMethod Container = Azure::Network::Mgmt::V2018_08_01::Models::Container end @@ -1094,8 +1094,8 @@ def load_balancer_probe_list_result def bgp_peer_status_list_result Azure::Network::Mgmt::V2018_08_01::Models::BgpPeerStatusListResult end - def virtual_network_gateway_list_result - Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayListResult + def error + Azure::Network::Mgmt::V2018_08_01::Models::Error end def error_details Azure::Network::Mgmt::V2018_08_01::Models::ErrorDetails @@ -1109,11 +1109,11 @@ def application_gateway_backend_health def azure_async_operation_result Azure::Network::Mgmt::V2018_08_01::Models::AzureAsyncOperationResult end - def error - Azure::Network::Mgmt::V2018_08_01::Models::Error + def application_gateway_ssl_policy + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPolicy end - def gateway_route - Azure::Network::Mgmt::V2018_08_01::Models::GatewayRoute + def virtual_network_gateway_list_result + Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayListResult end def network_interface_load_balancer_list_result Azure::Network::Mgmt::V2018_08_01::Models::NetworkInterfaceLoadBalancerListResult @@ -1499,26 +1499,26 @@ def resource def application_gateway_ssl_certificate Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslCertificate end - def application_gateway_frontend_ipconfiguration - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFrontendIPConfiguration - end def application_gateway_frontend_port Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFrontendPort end + def application_gateway_http_listener + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayHttpListener + end def application_gateway_path_rule Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayPathRule end def application_gateway_probe Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayProbe end - def application_gateway_http_listener - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayHttpListener - end def application_gateway_request_routing_rule Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRequestRoutingRule end - def application_gateway_ssl_policy - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPolicy + def application_gateway_frontend_ipconfiguration + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFrontendIPConfiguration + end + def application_gateway_url_path_map + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayUrlPathMap end def application_gateway_firewall_rule_group Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFirewallRuleGroup @@ -1526,17 +1526,17 @@ def application_gateway_firewall_rule_group def application_gateway_firewall_rule_set Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFirewallRuleSet end - def application_gateway_url_path_map - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayUrlPathMap + def application_gateway_available_ssl_options + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayAvailableSslOptions end def route_filter_rule_list_result Azure::Network::Mgmt::V2018_08_01::Models::RouteFilterRuleListResult end - def application_gateway_redirect_configuration - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRedirectConfiguration + def endpoint_service_result + Azure::Network::Mgmt::V2018_08_01::Models::EndpointServiceResult end - def application_gateway_available_ssl_options - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayAvailableSslOptions + def express_route_circuit_authorization + Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitAuthorization end def route_filter_rule Azure::Network::Mgmt::V2018_08_01::Models::RouteFilterRule @@ -1544,14 +1544,14 @@ def route_filter_rule def express_route_circuit_peering Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitPeering end - def availability - Azure::Network::Mgmt::V2018_08_01::Models::Availability + def application_gateway_redirect_configuration + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRedirectConfiguration end def application_gateway_ssl_predefined_policy Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPredefinedPolicy end - def endpoint_service_result - Azure::Network::Mgmt::V2018_08_01::Models::EndpointServiceResult + def application_gateway + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGateway end def frontend_ipconfiguration Azure::Network::Mgmt::V2018_08_01::Models::FrontendIPConfiguration @@ -1565,14 +1565,14 @@ def probe def route_filter Azure::Network::Mgmt::V2018_08_01::Models::RouteFilter end - def application_gateway - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGateway + def availability + Azure::Network::Mgmt::V2018_08_01::Models::Availability end def express_route_service_provider Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteServiceProvider end - def inbound_nat_pool - Azure::Network::Mgmt::V2018_08_01::Models::InboundNatPool + def gateway_route + Azure::Network::Mgmt::V2018_08_01::Models::GatewayRoute end def network_watcher Azure::Network::Mgmt::V2018_08_01::Models::NetworkWatcher @@ -1580,12 +1580,12 @@ def network_watcher def express_route_circuit Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuit end - def express_route_circuit_authorization - Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitAuthorization - end def bgp_service_community Azure::Network::Mgmt::V2018_08_01::Models::BgpServiceCommunity end + def patch_route_filter_rule + Azure::Network::Mgmt::V2018_08_01::Models::PatchRouteFilterRule + end def load_balancer Azure::Network::Mgmt::V2018_08_01::Models::LoadBalancer end @@ -1604,11 +1604,11 @@ def virtual_network_gateway def local_network_gateway Azure::Network::Mgmt::V2018_08_01::Models::LocalNetworkGateway end - def patch_route_filter_rule - Azure::Network::Mgmt::V2018_08_01::Models::PatchRouteFilterRule + def virtual_network + Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetwork end - def virtual_network_gateway_connection - Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnection + def inbound_nat_pool + Azure::Network::Mgmt::V2018_08_01::Models::InboundNatPool end def virtual_network_gateway_connection_list_entity Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnectionListEntity @@ -1622,8 +1622,8 @@ def application_gateway_backend_health_server_health def application_gateway_protocol Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayProtocol end - def patch_route_filter - Azure::Network::Mgmt::V2018_08_01::Models::PatchRouteFilter + def virtual_network_gateway_connection + Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnection end def application_gateway_tier Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayTier @@ -1631,17 +1631,17 @@ def application_gateway_tier def application_gateway_sku_name Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySkuName end - def virtual_network - Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetwork - end def application_gateway_ssl_policy_name Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPolicyName end + def application_gateway_ssl_cipher_suite + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslCipherSuite + end def vpn_client_root_certificate Azure::Network::Mgmt::V2018_08_01::Models::VpnClientRootCertificate end - def application_gateway_request_routing_rule_type - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRequestRoutingRuleType + def patch_route_filter + Azure::Network::Mgmt::V2018_08_01::Models::PatchRouteFilter end def application_gateway_cookie_based_affinity Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayCookieBasedAffinity @@ -1652,8 +1652,8 @@ def ipversion def application_gateway_redirect_type Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRedirectType end - def application_gateway_ssl_cipher_suite - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslCipherSuite + def application_gateway_operational_state + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayOperationalState end def application_gateway_ssl_protocol Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslProtocol @@ -1661,17 +1661,17 @@ def application_gateway_ssl_protocol def application_gateway_ssl_policy_type Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewaySslPolicyType end - def application_gateway_operational_state - Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayOperationalState + def express_route_circuit_peering_advertised_public_prefix_state + Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState end def application_gateway_firewall_mode Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayFirewallMode end - def authorization_use_status - Azure::Network::Mgmt::V2018_08_01::Models::AuthorizationUseStatus + def application_gateway_request_routing_rule_type + Azure::Network::Mgmt::V2018_08_01::Models::ApplicationGatewayRequestRoutingRuleType end - def express_route_circuit_peering_advertised_public_prefix_state - Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState + def express_route_circuit_peering_state + Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitPeeringState end def access Azure::Network::Mgmt::V2018_08_01::Models::Access @@ -1679,8 +1679,8 @@ def access def express_route_circuit_sku_family Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitSkuFamily end - def express_route_circuit_peering_state - Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitPeeringState + def authorization_use_status + Azure::Network::Mgmt::V2018_08_01::Models::AuthorizationUseStatus end def express_route_circuit_sku_tier Azure::Network::Mgmt::V2018_08_01::Models::ExpressRouteCircuitSkuTier @@ -1739,26 +1739,26 @@ def origin def issue_type Azure::Network::Mgmt::V2018_08_01::Models::IssueType end - def virtual_network_peering_state - Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkPeeringState - end def protocol Azure::Network::Mgmt::V2018_08_01::Models::Protocol end + def connection_state + Azure::Network::Mgmt::V2018_08_01::Models::ConnectionState + end def evaluation_state Azure::Network::Mgmt::V2018_08_01::Models::EvaluationState end - def virtual_network_gateway_sku_name - Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewaySkuName + def virtual_network_peering_state + Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkPeeringState end def virtual_network_gateway_type Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayType end - def connection_state - Azure::Network::Mgmt::V2018_08_01::Models::ConnectionState + def vpn_type + Azure::Network::Mgmt::V2018_08_01::Models::VpnType end - def bgp_peer_state - Azure::Network::Mgmt::V2018_08_01::Models::BgpPeerState + def virtual_network_gateway_sku_name + Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewaySkuName end def virtual_network_gateway_sku_tier Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewaySkuTier @@ -1766,26 +1766,26 @@ def virtual_network_gateway_sku_tier def vpn_client_protocol Azure::Network::Mgmt::V2018_08_01::Models::VpnClientProtocol end - def vpn_type - Azure::Network::Mgmt::V2018_08_01::Models::VpnType + def ipsec_encryption + Azure::Network::Mgmt::V2018_08_01::Models::IpsecEncryption end def ipsec_integrity Azure::Network::Mgmt::V2018_08_01::Models::IpsecIntegrity end - def ipsec_encryption - Azure::Network::Mgmt::V2018_08_01::Models::IpsecEncryption + def ike_encryption + Azure::Network::Mgmt::V2018_08_01::Models::IkeEncryption end def ike_integrity Azure::Network::Mgmt::V2018_08_01::Models::IkeIntegrity end - def ike_encryption - Azure::Network::Mgmt::V2018_08_01::Models::IkeEncryption + def dh_group + Azure::Network::Mgmt::V2018_08_01::Models::DhGroup end def pfs_group Azure::Network::Mgmt::V2018_08_01::Models::PfsGroup end - def dh_group - Azure::Network::Mgmt::V2018_08_01::Models::DhGroup + def authentication_method + Azure::Network::Mgmt::V2018_08_01::Models::AuthenticationMethod end def virtual_network_gateway_connection_status Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnectionStatus @@ -1793,12 +1793,12 @@ def virtual_network_gateway_connection_status def virtual_network_gateway_connection_type Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkGatewayConnectionType end + def bgp_peer_state + Azure::Network::Mgmt::V2018_08_01::Models::BgpPeerState + end def processor_architecture Azure::Network::Mgmt::V2018_08_01::Models::ProcessorArchitecture end - def authentication_method - Azure::Network::Mgmt::V2018_08_01::Models::AuthenticationMethod - end def container Azure::Network::Mgmt::V2018_08_01::Models::Container end diff --git a/azure_sdk/lib/latest/modules/newssearch_profile_module.rb b/azure_sdk/lib/latest/modules/newssearch_profile_module.rb index 19587dd60b..a812c403aa 100644 --- a/azure_sdk/lib/latest/modules/newssearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/newssearch_profile_module.rb @@ -13,11 +13,11 @@ module Models News = Azure::CognitiveServices::NewsSearch::V1_0::Models::News NewsTopic = Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsTopic ResponseBase = Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase - Article = Azure::CognitiveServices::NewsSearch::V1_0::Models::Article - VideoObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject - Query = Azure::CognitiveServices::NewsSearch::V1_0::Models::Query TrendingTopics = Azure::CognitiveServices::NewsSearch::V1_0::Models::TrendingTopics + Query = Azure::CognitiveServices::NewsSearch::V1_0::Models::Query + Article = Azure::CognitiveServices::NewsSearch::V1_0::Models::Article Response = Azure::CognitiveServices::NewsSearch::V1_0::Models::Response + VideoObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject SearchResultsAnswer = Azure::CognitiveServices::NewsSearch::V1_0::Models::SearchResultsAnswer Identifiable = Azure::CognitiveServices::NewsSearch::V1_0::Models::Identifiable Answer = Azure::CognitiveServices::NewsSearch::V1_0::Models::Answer @@ -77,21 +77,21 @@ def news_topic def response_base Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase end - def article - Azure::CognitiveServices::NewsSearch::V1_0::Models::Article - end - def video_object - Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject + def trending_topics + Azure::CognitiveServices::NewsSearch::V1_0::Models::TrendingTopics end def query Azure::CognitiveServices::NewsSearch::V1_0::Models::Query end - def trending_topics - Azure::CognitiveServices::NewsSearch::V1_0::Models::TrendingTopics + def article + Azure::CognitiveServices::NewsSearch::V1_0::Models::Article end def response Azure::CognitiveServices::NewsSearch::V1_0::Models::Response end + def video_object + Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject + end def search_results_answer Azure::CognitiveServices::NewsSearch::V1_0::Models::SearchResultsAnswer end diff --git a/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb b/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb index 0bfe81d29b..1ff2ca0012 100644 --- a/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb +++ b/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb @@ -7,9 +7,9 @@ module Azure::Profiles::Latest module NotificationHubs module Mgmt + Operations = Azure::NotificationHubs::Mgmt::V2017_04_01::Operations Namespaces = Azure::NotificationHubs::Mgmt::V2017_04_01::Namespaces NotificationHubs = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubs - Operations = Azure::NotificationHubs::Mgmt::V2017_04_01::Operations module Models Resource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource @@ -49,7 +49,7 @@ module Models end class NotificationHubsManagementClass - attr_reader :namespaces, :notification_hubs, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :namespaces, :notification_hubs, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -59,9 +59,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @operations = @client_0.operations @namespaces = @client_0.namespaces @notification_hubs = @client_0.notification_hubs - @operations = @client_0.operations @model_classes = ModelClasses.new end diff --git a/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb b/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb index 186c2b1556..920a96c918 100644 --- a/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb @@ -9,10 +9,10 @@ module OperationalInsights module Mgmt StorageInsights = Azure::OperationalInsights::Mgmt::V2015_03_20::StorageInsights SavedSearches = Azure::OperationalInsights::Mgmt::V2015_03_20::SavedSearches + Operations = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Operations LinkedServices = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::LinkedServices DataSources = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::DataSources Workspaces = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Workspaces - Operations = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Operations module Models Tag = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::Tag @@ -25,6 +25,7 @@ module Models SearchMetadataSchema = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchMetadataSchema StorageInsightStatus = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightStatus SavedSearch = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearch + SavedSearchesListResult = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearchesListResult SearchResultsResponse = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchResultsResponse StorageInsightListResult = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightListResult SearchSort = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSort @@ -34,11 +35,10 @@ module Models 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 - SavedSearchesListResult = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearchesListResult - StorageInsight = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsight WorkspacePurgeStatusResponse = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeStatusResponse - StorageInsightState = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightState + 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 DataSource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSource SkuNameEnum = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::SkuNameEnum @@ -66,7 +66,7 @@ module Models end class OperationalInsightsManagementClass - attr_reader :storage_insights, :saved_searches, :linked_services, :data_sources, :workspaces, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :storage_insights, :saved_searches, :operations, :linked_services, :data_sources, :workspaces, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -84,10 +84,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) + @operations = @client_1.operations @linked_services = @client_1.linked_services @data_sources = @client_1.data_sources @workspaces = @client_1.workspaces - @operations = @client_1.operations @model_classes = ModelClasses.new end @@ -138,6 +138,9 @@ def storage_insight_status def saved_search Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearch end + def saved_searches_list_result + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearchesListResult + end def search_results_response Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchResultsResponse end @@ -165,21 +168,18 @@ def workspace_purge_response def search_metadata Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchMetadata end - def saved_searches_list_result - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearchesListResult + 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 workspace_purge_status_response - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeStatusResponse + def search_sort_enum + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSortEnum end def storage_insight_state Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightState end - def search_sort_enum - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSortEnum - end def purge_state Azure::OperationalInsights::Mgmt::V2015_03_20::Models::PurgeState end diff --git a/azure_sdk/lib/latest/modules/policy_profile_module.rb b/azure_sdk/lib/latest/modules/policy_profile_module.rb index 54cc040e24..6477839b2e 100644 --- a/azure_sdk/lib/latest/modules/policy_profile_module.rb +++ b/azure_sdk/lib/latest/modules/policy_profile_module.rb @@ -7,11 +7,12 @@ module Azure::Profiles::Latest module Policy module Mgmt - PolicyDefinitions = Azure::Policy::Mgmt::V2018_03_01::PolicyDefinitions PolicyAssignments = Azure::Policy::Mgmt::V2018_03_01::PolicyAssignments + PolicyDefinitions = Azure::Policy::Mgmt::V2018_03_01::PolicyDefinitions PolicySetDefinitions = Azure::Policy::Mgmt::V2018_03_01::PolicySetDefinitions module Models + PolicyDefinitionReference = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionReference PolicySetDefinition = Azure::Policy::Mgmt::V2018_03_01::Models::PolicySetDefinition ErrorResponse = Azure::Policy::Mgmt::V2018_03_01::Models::ErrorResponse PolicySetDefinitionListResult = Azure::Policy::Mgmt::V2018_03_01::Models::PolicySetDefinitionListResult @@ -22,11 +23,10 @@ module Models PolicyDefinitionListResult = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionListResult 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 end class PolicyManagementClass - attr_reader :policy_definitions, :policy_assignments, :policy_set_definitions, :configurable, :base_url, :options, :model_classes + attr_reader :policy_assignments, :policy_definitions, :policy_set_definitions, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -36,8 +36,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 @policy_set_definitions = @client_0.policy_set_definitions @model_classes = ModelClasses.new @@ -57,6 +57,9 @@ def method_missing(method, *args) end class ModelClasses + def policy_definition_reference + Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionReference + end def policy_set_definition Azure::Policy::Mgmt::V2018_03_01::Models::PolicySetDefinition end @@ -87,9 +90,6 @@ def policy_type 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 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 23452bdecb..98519f159c 100644 --- a/azure_sdk/lib/latest/modules/policyinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/policyinsights_profile_module.rb @@ -7,8 +7,8 @@ module Azure::Profiles::Latest module PolicyInsights module Mgmt - PolicyStates = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyStates 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 @@ -17,21 +17,21 @@ module Models PolicyEventsQueryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEventsQueryResults Summary = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Summary QueryFailure = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailure - OperationDisplay = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay + SummarizeResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummarizeResults PolicyStatesQueryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesQueryResults PolicyEvent = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent + OperationDisplay = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay PolicyState = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyState - OperationsListResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationsListResults Operation = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Operation - SummarizeResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummarizeResults - SummaryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummaryResults QueryFailureError = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailureError - QueryOptions = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions + OperationsListResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationsListResults PolicyStatesResource = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesResource + SummaryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummaryResults + QueryOptions = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions end class PolicyInsightsManagementClass - attr_reader :policy_states, :policy_events, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :policy_events, :policy_states, :operations, :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) - @policy_states = @client_0.policy_states @policy_events = @client_0.policy_events + @policy_states = @client_0.policy_states @operations = @client_0.operations @model_classes = ModelClasses.new @@ -77,8 +77,8 @@ def summary def query_failure Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailure end - def operation_display - Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay + def summarize_results + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummarizeResults end def policy_states_query_results Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesQueryResults @@ -86,30 +86,30 @@ def policy_states_query_results def policy_event Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent end + def operation_display + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay + end def policy_state Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyState end - def operations_list_results - Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationsListResults - end def operation Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Operation end - def summarize_results - Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummarizeResults - 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 query_options - Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions + def operations_list_results + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationsListResults end def policy_states_resource Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesResource end + def summary_results + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummaryResults + 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 7bb3158594..fd481c892b 100644 --- a/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb +++ b/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb @@ -7,10 +7,11 @@ module Azure::Profiles::Latest module PowerBiEmbedded module Mgmt - Workspaces = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Workspaces WorkspaceCollections = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::WorkspaceCollections + Workspaces = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Workspaces module Models + WorkspaceCollection = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection WorkspaceCollectionAccessKey = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKey CreateWorkspaceCollectionRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CreateWorkspaceCollectionRequest Display = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Display @@ -18,22 +19,21 @@ module Models AzureSku = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AzureSku Workspace = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Workspace CheckNameRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest - OperationList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList - CheckNameResponse = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameResponse WorkspaceList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceList - MigrateWorkspaceCollectionRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::MigrateWorkspaceCollectionRequest + CheckNameResponse = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameResponse WorkspaceCollectionList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionList - AccessKeyName = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AccessKeyName + 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 Operation = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Operation Error = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error + OperationList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList WorkspaceCollectionAccessKeys = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKeys - WorkspaceCollection = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection end class PowerBiEmbeddedManagementClass - attr_reader :workspaces, :workspace_collections, :configurable, :base_url, :options, :model_classes + attr_reader :workspace_collections, :workspaces, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -43,8 +43,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @workspaces = @client_0.workspaces @workspace_collections = @client_0.workspace_collections + @workspaces = @client_0.workspaces @model_classes = ModelClasses.new end @@ -63,6 +63,9 @@ def method_missing(method, *args) end class ModelClasses + def workspace_collection + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection + end def workspace_collection_access_key Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKey end @@ -84,27 +87,24 @@ def workspace def check_name_request Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest end - def operation_list - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList + 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_list - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceList + 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 workspace_collection_list - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionList + 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 error_detail - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::ErrorDetail - end def check_name_reason Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameReason end @@ -114,12 +114,12 @@ def operation def error Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error end + def operation_list + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList + end def workspace_collection_access_keys Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKeys end - def workspace_collection - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection - end 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 758ee53eab..afae13f825 100644 --- a/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb @@ -7,13 +7,13 @@ module Azure::Profiles::Latest module RecoveryServices module Mgmt + Operations = Azure::RecoveryServices::Mgmt::V2016_06_01::Operations VaultExtendedInfoOperations = Azure::RecoveryServices::Mgmt::V2016_06_01::VaultExtendedInfoOperations - Vaults = Azure::RecoveryServices::Mgmt::V2016_06_01::Vaults + ReplicationUsages = Azure::RecoveryServices::Mgmt::V2016_06_01::ReplicationUsages 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 - Operations = Azure::RecoveryServices::Mgmt::V2016_06_01::Operations + Vaults = Azure::RecoveryServices::Mgmt::V2016_06_01::Vaults module Models ClientDiscoveryValueForSingleApi = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryValueForSingleApi @@ -53,7 +53,7 @@ module Models end class RecoveryServicesManagementClass - attr_reader :vault_extended_info_operations, :vaults, :usages, :vault_certificates, :registered_identities, :replication_usages, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :vault_extended_info_operations, :replication_usages, :usages, :vault_certificates, :registered_identities, :vaults, :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) + @operations = @client_0.operations @vault_extended_info_operations = @client_0.vault_extended_info_operations - @vaults = @client_0.vaults + @replication_usages = @client_0.replication_usages @usages = @client_0.usages @vault_certificates = @client_0.vault_certificates @registered_identities = @client_0.registered_identities - @replication_usages = @client_0.replication_usages - @operations = @client_0.operations + @vaults = @client_0.vaults @model_classes = ModelClasses.new end diff --git a/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb b/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb index eb9d154da5..5764330e50 100644 --- a/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb @@ -8,6 +8,7 @@ module Azure::Profiles::Latest module RecoveryServicesBackup module Mgmt Operations = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Operations + BackupOperationStatuses = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupOperationStatuses ProtectionPolicies = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionPolicies ProtectionPolicyOperationResults = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionPolicyOperationResults ProtectionPolicyOperationStatuses = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionPolicyOperationStatuses @@ -32,7 +33,6 @@ module Mgmt JobCancellations = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::JobCancellations JobOperationResults = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::JobOperationResults BackupOperationResults = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupOperationResults - BackupOperationStatuses = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupOperationStatuses ProtectionIntentOperations = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::ProtectionIntentOperations BackupStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::BackupStatus FeatureSupport = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::FeatureSupport @@ -46,12 +46,12 @@ module Mgmt Jobs = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Jobs module Models + 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 ClientDiscoveryResponse = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryResponse - ClientDiscoveryForLogSpecification = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForLogSpecification StorageType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::StorageType OperationStatus = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatus AzureWorkloadContainerExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadContainerExtendedInfo @@ -150,9 +150,9 @@ module Models OperationStatusProvisionILRExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusProvisionILRExtendedInfo ProtectableContainerResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResource BackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupRequest - ProtectionContainerResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResourceList - ProtectionContainerResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource ProtectableContainerResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResourceList + ProtectionContainerResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource + ProtectionContainerResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResourceList RecoveryPointResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResource RecoveryPointResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResourceList RestoreRequestResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestoreRequestResource @@ -187,22 +187,22 @@ module Models AzureWorkloadJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobTaskDetails DailyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionSchedule AzureWorkloadJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobExtendedInfo - ValidateOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationRequest + RetentionDuration = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration DailyRetentionFormat = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionFormat MabJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobTaskDetails MabErrorInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabErrorInfo AzureIaaSVMJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobTaskDetails AzureStorageJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobTaskDetails - RetentionDuration = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration + ValidateOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationRequest AzureVMResourceFeatureSupportResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportResponse ProtectedItemQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemQueryObject ProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntent PreValidateEnableBackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupRequest AzureVmWorkloadProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItemExtendedInfo - BackupManagementUsageList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList + ProtectionPolicyQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject BackupStatusRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusRequest BackupManagementUsage = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsage - ProtectionPolicyQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject + BackupManagementUsageList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList BMSBackupSummariesQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BMSBackupSummariesQueryObject AzureIaaSVMProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItemExtendedInfo AzureIaaSVMJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobExtendedInfo @@ -325,7 +325,7 @@ module Models end class RecoveryServicesBackupManagementClass - attr_reader :operations, :protection_policies, :protection_policy_operation_results, :protection_policy_operation_statuses, :backup_protectable_items, :backup_protection_containers, :security_pins, :backup_resource_storage_configs, :backup_resource_vault_configs, :backup_engines, :protection_container_refresh_operation_results, :protectable_containers, :protection_containers, :backup_workload_items, :protection_container_operation_results, :protected_items, :backups, :protected_item_operation_results, :protected_item_operation_statuses, :recovery_points, :item_level_recovery_connections, :restores, :job_cancellations, :job_operation_results, :backup_operation_results, :backup_operation_statuses, :protection_intent_operations, :backup_status, :feature_support, :backup_jobs, :job_details, :export_jobs_operation_results, :backup_policies, :backup_protected_items, :backup_usage_summaries, :operation, :jobs, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :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, :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, :protection_intent_operations, :backup_status, :feature_support, :backup_jobs, :job_details, :export_jobs_operation_results, :backup_policies, :backup_protected_items, :backup_usage_summaries, :operation, :jobs, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -342,6 +342,7 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) + @backup_operation_statuses = @client_1.backup_operation_statuses @protection_policies = @client_1.protection_policies @protection_policy_operation_results = @client_1.protection_policy_operation_results @protection_policy_operation_statuses = @client_1.protection_policy_operation_statuses @@ -366,7 +367,6 @@ def initialize(configurable, base_url=nil, options=nil) @job_cancellations = @client_1.job_cancellations @job_operation_results = @client_1.job_operation_results @backup_operation_results = @client_1.backup_operation_results - @backup_operation_statuses = @client_1.backup_operation_statuses @client_2 = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) if(@client_2.respond_to?(:subscription_id)) @@ -406,6 +406,9 @@ def method_missing(method, *args) end class ModelClasses + 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 @@ -421,9 +424,6 @@ def client_discovery_for_properties def client_discovery_response Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryResponse end - def client_discovery_for_log_specification - Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForLogSpecification - end def storage_type Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::StorageType end @@ -718,14 +718,14 @@ def protectable_container_resource def backup_request Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupRequest end - def protection_container_resource_list - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResourceList + def protectable_container_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResourceList end def protection_container_resource Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource end - def protectable_container_resource_list - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResourceList + 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 @@ -829,8 +829,8 @@ def daily_retention_schedule def azure_workload_job_extended_info Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobExtendedInfo end - def validate_operation_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationRequest + def retention_duration + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration end def daily_retention_format Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionFormat @@ -847,8 +847,8 @@ def azure_iaa_svmjob_task_details def azure_storage_job_task_details Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobTaskDetails end - def retention_duration - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration + def validate_operation_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationRequest end def azure_vmresource_feature_support_response Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportResponse @@ -865,8 +865,8 @@ def pre_validate_enable_backup_request def azure_vm_workload_protected_item_extended_info Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItemExtendedInfo end - def backup_management_usage_list - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList + def protection_policy_query_object + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject end def backup_status_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusRequest @@ -874,8 +874,8 @@ def backup_status_request def backup_management_usage Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsage end - def protection_policy_query_object - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject + def backup_management_usage_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList end def bmsbackup_summaries_query_object Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BMSBackupSummariesQueryObject diff --git a/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb b/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb index 206b2ed5a4..d127aa75e4 100644 --- a/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb @@ -234,8 +234,8 @@ module Models 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 - Alert = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Alert RoleAssignment = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RoleAssignment + Alert = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Alert AutomationRunbookTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AutomationRunbookTaskDetails AzureFabricCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureFabricCreationInput AsrJobDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AsrJobDetails @@ -258,15 +258,15 @@ module Models HyperVReplicaAzurePolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzurePolicyInput HyperVReplicaAzureFailoverProviderInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureFailoverProviderInput HyperVReplicaAzureReprotectInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReprotectInput - Event = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event HyperVReplicaAzureUpdateReplicationProtectedItemInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureUpdateReplicationProtectedItemInput + HyperVReplicaAzureReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReplicationDetails 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 HyperVReplicaBlueReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBlueReplicationDetails - HyperVReplicaAzureReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReplicationDetails + Event = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event HyperVReplicaPolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaPolicyInput HyperVReplicaPolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaPolicyDetails HyperVSiteDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVSiteDetails @@ -328,30 +328,30 @@ module Models VmmToVmmNetworkMappingSettings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmToVmmNetworkMappingSettings VmmDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmDetails VmmToVmmUpdateNetworkMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmToVmmUpdateNetworkMappingInput - VmmVirtualMachineDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmVirtualMachineDetails + VmNicUpdatesTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmNicUpdatesTaskDetails VMwareCbtPolicyCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareCbtPolicyCreationInput VmmToVmmCreateNetworkMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmToVmmCreateNetworkMappingInput VmwareCbtPolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmwareCbtPolicyDetails - VMwareV2FabricCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareV2FabricCreationInput + VMwareDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareDetails VMwareV2FabricSpecificDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareV2FabricSpecificDetails VMwareVirtualMachineDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareVirtualMachineDetails AgentAutoUpdateStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AgentAutoUpdateStatus SetMultiVmSyncStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SetMultiVmSyncStatus - VMwareDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareDetails Policy = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Policy - MultiVmGroupCreateOption = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmGroupCreateOption RecoveryPointSyncType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPointSyncType + MultiVmGroupCreateOption = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmGroupCreateOption Network = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Network + RecoveryPlanGroupType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanGroupType + VmmVirtualMachineDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmVirtualMachineDetails PossibleOperationsDirections = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PossibleOperationsDirections - VmNicUpdatesTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmNicUpdatesTaskDetails - DisableProtectionReason = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DisableProtectionReason + ReplicationProtectedItemOperation = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProtectedItemOperation FailoverDeploymentModel = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FailoverDeploymentModel - RecoveryPlanGroupType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanGroupType - AgentVersionStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AgentVersionStatus + DisableProtectionReason = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DisableProtectionReason + VMwareV2FabricCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareV2FabricCreationInput PresenceStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PresenceStatus - MultiVmSyncStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmSyncStatus + AgentVersionStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AgentVersionStatus HealthErrorCategory = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HealthErrorCategory - ReplicationProtectedItemOperation = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProtectedItemOperation + 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 @@ -1038,12 +1038,12 @@ def a2_aupdate_container_mapping_input def a2_aupdate_replication_protected_item_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AUpdateReplicationProtectedItemInput end - def alert - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Alert - end def role_assignment Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RoleAssignment end + def alert + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Alert + end def automation_runbook_task_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AutomationRunbookTaskDetails end @@ -1110,12 +1110,12 @@ def hyper_vreplica_azure_failover_provider_input def hyper_vreplica_azure_reprotect_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReprotectInput end - def event - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event - end def hyper_vreplica_azure_update_replication_protected_item_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureUpdateReplicationProtectedItemInput end + def hyper_vreplica_azure_replication_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReplicationDetails + end def hyper_vreplica_base_policy_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBasePolicyDetails end @@ -1134,8 +1134,8 @@ def hyper_vreplica_blue_policy_input def hyper_vreplica_blue_replication_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaBlueReplicationDetails end - def hyper_vreplica_azure_replication_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureReplicationDetails + def event + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event end def hyper_vreplica_policy_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaPolicyInput @@ -1320,8 +1320,8 @@ def vmm_details def vmm_to_vmm_update_network_mapping_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmToVmmUpdateNetworkMappingInput end - def vmm_virtual_machine_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmVirtualMachineDetails + def vm_nic_updates_task_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmNicUpdatesTaskDetails end def vmware_cbt_policy_creation_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareCbtPolicyCreationInput @@ -1332,8 +1332,8 @@ def vmm_to_vmm_create_network_mapping_input def vmware_cbt_policy_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmwareCbtPolicyDetails end - def vmware_v2_fabric_creation_input - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareV2FabricCreationInput + def vmware_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareDetails end def vmware_v2_fabric_specific_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareV2FabricSpecificDetails @@ -1347,50 +1347,50 @@ def agent_auto_update_status def set_multi_vm_sync_status Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SetMultiVmSyncStatus end - def vmware_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareDetails - end def policy Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Policy end - def multi_vm_group_create_option - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmGroupCreateOption - end def recovery_point_sync_type Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPointSyncType end + def multi_vm_group_create_option + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmGroupCreateOption + end def network Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Network end + def recovery_plan_group_type + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanGroupType + end + def vmm_virtual_machine_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmmVirtualMachineDetails + end def possible_operations_directions Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PossibleOperationsDirections end - def vm_nic_updates_task_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VmNicUpdatesTaskDetails - end - def disable_protection_reason - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DisableProtectionReason + def replication_protected_item_operation + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProtectedItemOperation end def failover_deployment_model Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FailoverDeploymentModel end - def recovery_plan_group_type - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanGroupType + def disable_protection_reason + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DisableProtectionReason end - def agent_version_status - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AgentVersionStatus + def vmware_v2_fabric_creation_input + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VMwareV2FabricCreationInput end def presence_status Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PresenceStatus end - def multi_vm_sync_status - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmSyncStatus + def agent_version_status + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AgentVersionStatus end def health_error_category Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HealthErrorCategory end - def replication_protected_item_operation - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProtectedItemOperation + def multi_vm_sync_status + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmSyncStatus end def a2_arp_recovery_point_type Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2ARpRecoveryPointType diff --git a/azure_sdk/lib/latest/modules/redis_profile_module.rb b/azure_sdk/lib/latest/modules/redis_profile_module.rb index e018a92abe..e245e1aaa3 100644 --- a/azure_sdk/lib/latest/modules/redis_profile_module.rb +++ b/azure_sdk/lib/latest/modules/redis_profile_module.rb @@ -7,13 +7,14 @@ module Azure::Profiles::Latest module Redis module Mgmt - FirewallRules = Azure::Redis::Mgmt::V2018_03_01::FirewallRules Operations = Azure::Redis::Mgmt::V2018_03_01::Operations + FirewallRules = Azure::Redis::Mgmt::V2018_03_01::FirewallRules + LinkedServer = Azure::Redis::Mgmt::V2018_03_01::LinkedServer Redis = Azure::Redis::Mgmt::V2018_03_01::Redis PatchSchedules = Azure::Redis::Mgmt::V2018_03_01::PatchSchedules - LinkedServer = Azure::Redis::Mgmt::V2018_03_01::LinkedServer module Models + CheckNameAvailabilityParameters = Azure::Redis::Mgmt::V2018_03_01::Models::CheckNameAvailabilityParameters Resource = Azure::Redis::Mgmt::V2018_03_01::Models::Resource ProvisioningState = Azure::Redis::Mgmt::V2018_03_01::Models::ProvisioningState OperationDisplay = Azure::Redis::Mgmt::V2018_03_01::Models::OperationDisplay @@ -51,11 +52,10 @@ module Models TrackedResource = Azure::Redis::Mgmt::V2018_03_01::Models::TrackedResource ProxyResource = Azure::Redis::Mgmt::V2018_03_01::Models::ProxyResource ReplicationRole = Azure::Redis::Mgmt::V2018_03_01::Models::ReplicationRole - CheckNameAvailabilityParameters = Azure::Redis::Mgmt::V2018_03_01::Models::CheckNameAvailabilityParameters end class RedisManagementClass - attr_reader :firewall_rules, :operations, :redis, :patch_schedules, :linked_server, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :firewall_rules, :linked_server, :redis, :patch_schedules, :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) - @firewall_rules = @client_0.firewall_rules @operations = @client_0.operations + @firewall_rules = @client_0.firewall_rules + @linked_server = @client_0.linked_server @redis = @client_0.redis @patch_schedules = @client_0.patch_schedules - @linked_server = @client_0.linked_server @model_classes = ModelClasses.new end @@ -88,6 +88,9 @@ def method_missing(method, *args) end class ModelClasses + def check_name_availability_parameters + Azure::Redis::Mgmt::V2018_03_01::Models::CheckNameAvailabilityParameters + end def resource Azure::Redis::Mgmt::V2018_03_01::Models::Resource end @@ -199,9 +202,6 @@ def proxy_resource def replication_role Azure::Redis::Mgmt::V2018_03_01::Models::ReplicationRole end - def check_name_availability_parameters - Azure::Redis::Mgmt::V2018_03_01::Models::CheckNameAvailabilityParameters - 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 1241bb2f11..78eb337073 100644 --- a/azure_sdk/lib/latest/modules/relay_profile_module.rb +++ b/azure_sdk/lib/latest/modules/relay_profile_module.rb @@ -7,32 +7,32 @@ module Azure::Profiles::Latest module Relay module Mgmt + Operations = Azure::Relay::Mgmt::V2017_04_01::Operations Namespaces = Azure::Relay::Mgmt::V2017_04_01::Namespaces HybridConnections = Azure::Relay::Mgmt::V2017_04_01::HybridConnections WCFRelays = Azure::Relay::Mgmt::V2017_04_01::WCFRelays - Operations = Azure::Relay::Mgmt::V2017_04_01::Operations module Models Resource = Azure::Relay::Mgmt::V2017_04_01::Models::Resource KeyType = Azure::Relay::Mgmt::V2017_04_01::Models::KeyType + RelayNamespaceListResult = Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult OperationDisplay = Azure::Relay::Mgmt::V2017_04_01::Models::OperationDisplay CheckNameAvailability = Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailability HybridConnectionListResult = Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnectionListResult WcfRelaysListResult = Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelaysListResult - OperationListResult = Azure::Relay::Mgmt::V2017_04_01::Models::OperationListResult - AuthorizationRuleListResult = Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult - RelayNamespaceListResult = Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult - RegenerateAccessKeyParameters = Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters AccessKeys = Azure::Relay::Mgmt::V2017_04_01::Models::AccessKeys + RegenerateAccessKeyParameters = Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters + OperationListResult = Azure::Relay::Mgmt::V2017_04_01::Models::OperationListResult + Operation = Azure::Relay::Mgmt::V2017_04_01::Models::Operation WcfRelay = Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay - ResourceNamespacePatch = Azure::Relay::Mgmt::V2017_04_01::Models::ResourceNamespacePatch + RelayUpdateParameters = Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters AuthorizationRule = Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRule Relaytype = Azure::Relay::Mgmt::V2017_04_01::Models::Relaytype - RelayUpdateParameters = Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters - CheckNameAvailabilityResult = Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult + ResourceNamespacePatch = Azure::Relay::Mgmt::V2017_04_01::Models::ResourceNamespacePatch + AuthorizationRuleListResult = Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult RelayNamespace = Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespace ProvisioningStateEnum = Azure::Relay::Mgmt::V2017_04_01::Models::ProvisioningStateEnum - Operation = Azure::Relay::Mgmt::V2017_04_01::Models::Operation + CheckNameAvailabilityResult = Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult AccessRights = Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights UnavailableReason = Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason SkuTier = Azure::Relay::Mgmt::V2017_04_01::Models::SkuTier @@ -43,7 +43,7 @@ module Models end class RelayManagementClass - attr_reader :namespaces, :hybrid_connections, :wcfrelays, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :namespaces, :hybrid_connections, :wcfrelays, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -53,10 +53,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @operations = @client_0.operations @namespaces = @client_0.namespaces @hybrid_connections = @client_0.hybrid_connections @wcfrelays = @client_0.wcfrelays - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -81,6 +81,9 @@ def resource def key_type Azure::Relay::Mgmt::V2017_04_01::Models::KeyType end + 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 @@ -93,26 +96,23 @@ def hybrid_connection_list_result def wcf_relays_list_result Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelaysListResult 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 relay_namespace_list_result - Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult + def access_keys + Azure::Relay::Mgmt::V2017_04_01::Models::AccessKeys end def regenerate_access_key_parameters Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters end - def access_keys - Azure::Relay::Mgmt::V2017_04_01::Models::AccessKeys + def operation_list_result + Azure::Relay::Mgmt::V2017_04_01::Models::OperationListResult + end + def operation + Azure::Relay::Mgmt::V2017_04_01::Models::Operation end def wcf_relay Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay end - def resource_namespace_patch - Azure::Relay::Mgmt::V2017_04_01::Models::ResourceNamespacePatch + def relay_update_parameters + Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters end def authorization_rule Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRule @@ -120,11 +120,11 @@ def authorization_rule def relaytype Azure::Relay::Mgmt::V2017_04_01::Models::Relaytype end - def relay_update_parameters - Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters + def resource_namespace_patch + Azure::Relay::Mgmt::V2017_04_01::Models::ResourceNamespacePatch end - def check_name_availability_result - Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult + def authorization_rule_list_result + Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult end def relay_namespace Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespace @@ -132,8 +132,8 @@ def relay_namespace def provisioning_state_enum Azure::Relay::Mgmt::V2017_04_01::Models::ProvisioningStateEnum end - def operation - Azure::Relay::Mgmt::V2017_04_01::Models::Operation + def check_name_availability_result + Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult end def access_rights Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights diff --git a/azure_sdk/lib/latest/modules/resources_profile_module.rb b/azure_sdk/lib/latest/modules/resources_profile_module.rb index 08076d0916..c1c4bffc7b 100644 --- a/azure_sdk/lib/latest/modules/resources_profile_module.rb +++ b/azure_sdk/lib/latest/modules/resources_profile_module.rb @@ -7,13 +7,13 @@ module Azure::Profiles::Latest module Resources module Mgmt + Operations = Azure::Resources::Mgmt::V2018_05_01::Operations Deployments = Azure::Resources::Mgmt::V2018_05_01::Deployments Providers = Azure::Resources::Mgmt::V2018_05_01::Providers ResourceGroups = Azure::Resources::Mgmt::V2018_05_01::ResourceGroups Tags = Azure::Resources::Mgmt::V2018_05_01::Tags - DeploymentOperations = Azure::Resources::Mgmt::V2018_05_01::DeploymentOperations Resources = Azure::Resources::Mgmt::V2018_05_01::Resources - Operations = Azure::Resources::Mgmt::V2018_05_01::Operations + DeploymentOperations = Azure::Resources::Mgmt::V2018_05_01::DeploymentOperations module Models GenericResourceFilter = Azure::Resources::Mgmt::V2018_05_01::Models::GenericResourceFilter @@ -30,12 +30,12 @@ module Models Provider = Azure::Resources::Mgmt::V2018_05_01::Models::Provider ResourceGroupListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupListResult 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 - DeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended + ExportTemplateRequest = Azure::Resources::Mgmt::V2018_05_01::Models::ExportTemplateRequest + Dependency = Azure::Resources::Mgmt::V2018_05_01::Models::Dependency TagCount = Azure::Resources::Mgmt::V2018_05_01::Models::TagCount ProviderListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult + DeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended ResourceGroupFilter = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter TagDetails = Azure::Resources::Mgmt::V2018_05_01::Models::TagDetails TagValue = Azure::Resources::Mgmt::V2018_05_01::Models::TagValue @@ -73,7 +73,7 @@ module Models end class ResourcesManagementClass - attr_reader :deployments, :providers, :resource_groups, :tags, :deployment_operations, :resources, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :deployments, :providers, :resource_groups, :tags, :resources, :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,13 +83,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 @deployments = @client_0.deployments @providers = @client_0.providers @resource_groups = @client_0.resource_groups @tags = @client_0.tags - @deployment_operations = @client_0.deployment_operations @resources = @client_0.resources - @operations = @client_0.operations + @deployment_operations = @client_0.deployment_operations @model_classes = ModelClasses.new end @@ -150,17 +150,14 @@ def resource_group_list_result def resources_move_info Azure::Resources::Mgmt::V2018_05_01::Models::ResourcesMoveInfo end - def dependency - Azure::Resources::Mgmt::V2018_05_01::Models::Dependency + def deployment_properties_extended + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended end def export_template_request Azure::Resources::Mgmt::V2018_05_01::Models::ExportTemplateRequest end - def deployment_extended - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended - end - def deployment_properties_extended - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended + def dependency + Azure::Resources::Mgmt::V2018_05_01::Models::Dependency end def tag_count Azure::Resources::Mgmt::V2018_05_01::Models::TagCount @@ -168,6 +165,9 @@ def tag_count def provider_list_result Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult end + def deployment_extended + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended + end def resource_group_filter Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter end diff --git a/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb b/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb index 580e5c80af..242eb63a73 100644 --- a/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb +++ b/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb @@ -7,9 +7,9 @@ module Azure::Profiles::Latest module ResourcesManagement module Mgmt + ManagementGroups = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::ManagementGroups ManagementGroupSubscriptions = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::ManagementGroupSubscriptions Entities = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Entities - ManagementGroups = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::ManagementGroups Operations = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Operations module Models @@ -17,33 +17,33 @@ module Models Type = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Type Operation = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Operation OperationListResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationListResult - 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 EntityInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityInfo - OperationDisplayProperties = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationDisplayProperties TenantBackfillStatusResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::TenantBackfillStatusResult - ManagementGroupListResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupListResult + EntityListResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityListResult + OperationResults = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationResults CheckNameAvailabilityResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult EntityHierarchyItem = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityHierarchyItem - ManagementGroupDetails = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupDetails + PatchManagementGroupRequest = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::PatchManagementGroupRequest ManagementGroup = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroup 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 CreateManagementGroupRequest = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupRequest ManagementGroupChildInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupChildInfo - CreateParentGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateParentGroupInfo + ManagementGroupListResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupListResult CheckNameAvailabilityRequest = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityRequest - ManagementGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupInfo - PatchManagementGroupRequest = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::PatchManagementGroupRequest - EntityListResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityListResult + ManagementGroupDetails = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupDetails Reason = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Reason + CreateParentGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateParentGroupInfo + ManagementGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupInfo Status = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Status ErrorResponse = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorResponse end class ResourcesManagementManagementClass - attr_reader :management_group_subscriptions, :entities, :management_groups, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :management_groups, :management_group_subscriptions, :entities, :operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -53,9 +53,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @management_groups = @client_0.management_groups @management_group_subscriptions = @client_0.management_group_subscriptions @entities = @client_0.entities - @management_groups = @client_0.management_groups @operations = @client_0.operations @model_classes = ModelClasses.new @@ -87,8 +87,8 @@ def operation def operation_list_result Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationListResult end - def operation_results - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationResults + def operation_display_properties + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationDisplayProperties end def entity_parent_group_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityParentGroupInfo @@ -96,14 +96,14 @@ def entity_parent_group_info def entity_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityInfo end - def operation_display_properties - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationDisplayProperties - end def tenant_backfill_status_result Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::TenantBackfillStatusResult end - def management_group_list_result - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupListResult + def entity_list_result + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityListResult + end + def operation_results + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationResults end def check_name_availability_result Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult @@ -111,8 +111,8 @@ def check_name_availability_result def entity_hierarchy_item Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityHierarchyItem end - def management_group_details - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupDetails + def patch_management_group_request + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::PatchManagementGroupRequest end def management_group Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroup @@ -132,24 +132,24 @@ def create_management_group_request def management_group_child_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupChildInfo end - def create_parent_group_info - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateParentGroupInfo + def management_group_list_result + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupListResult end def check_name_availability_request Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityRequest end - def management_group_info - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupInfo - end - def patch_management_group_request - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::PatchManagementGroupRequest - end - def entity_list_result - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityListResult + def management_group_details + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupDetails end def reason Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Reason end + def create_parent_group_info + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateParentGroupInfo + end + 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 diff --git a/azure_sdk/lib/latest/modules/scheduler_profile_module.rb b/azure_sdk/lib/latest/modules/scheduler_profile_module.rb index df5100af69..b9a11b7bc9 100644 --- a/azure_sdk/lib/latest/modules/scheduler_profile_module.rb +++ b/azure_sdk/lib/latest/modules/scheduler_profile_module.rb @@ -11,6 +11,7 @@ module Mgmt JobCollections = Azure::Scheduler::Mgmt::V2016_03_01::JobCollections module Models + JobListResult = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult RetryPolicy = Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryPolicy JobState = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobState JobRecurrence = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrence @@ -30,21 +31,21 @@ module Models JobStatus = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStatus JobHistoryFilter = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryFilter JobMaxRecurrence = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobMaxRecurrence - JobErrorAction = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobErrorAction JobStateFilter = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStateFilter JobRecurrenceScheduleMonthlyOccurrence = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrenceScheduleMonthlyOccurrence ServiceBusMessage = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusMessage + JobErrorAction = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobErrorAction JobCollectionListResult = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionListResult ServiceBusAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusAuthentication 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 + OAuthAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::OAuthAuthentication SkuDefinition = Azure::Scheduler::Mgmt::V2016_03_01::Models::SkuDefinition JobCollectionState = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionState - BasicAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication RetryType = Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryType JobScheduleDay = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobScheduleDay - OAuthAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::OAuthAuthentication + BasicAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication 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 @@ -54,7 +55,6 @@ module Models JobActionType = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobActionType Sku = Azure::Scheduler::Mgmt::V2016_03_01::Models::Sku JobProperties = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobProperties - JobListResult = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult end class SchedulerManagementClass @@ -88,6 +88,9 @@ def method_missing(method, *args) end class ModelClasses + def job_list_result + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult + end def retry_policy Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryPolicy end @@ -145,9 +148,6 @@ def job_history_filter def job_max_recurrence Azure::Scheduler::Mgmt::V2016_03_01::Models::JobMaxRecurrence end - def job_error_action - Azure::Scheduler::Mgmt::V2016_03_01::Models::JobErrorAction - end def job_state_filter Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStateFilter end @@ -157,6 +157,9 @@ def job_recurrence_schedule_monthly_occurrence def service_bus_message Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusMessage end + def job_error_action + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobErrorAction + end def job_collection_list_result Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionListResult end @@ -172,23 +175,23 @@ def service_bus_topic_message def client_cert_authentication Azure::Scheduler::Mgmt::V2016_03_01::Models::ClientCertAuthentication end + def oauth_authentication + Azure::Scheduler::Mgmt::V2016_03_01::Models::OAuthAuthentication + 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 basic_authentication - Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication - end def retry_type Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryType end def job_schedule_day Azure::Scheduler::Mgmt::V2016_03_01::Models::JobScheduleDay end - def oauth_authentication - Azure::Scheduler::Mgmt::V2016_03_01::Models::OAuthAuthentication + def basic_authentication + Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication end def job_execution_status Azure::Scheduler::Mgmt::V2016_03_01::Models::JobExecutionStatus @@ -217,9 +220,6 @@ def sku def job_properties Azure::Scheduler::Mgmt::V2016_03_01::Models::JobProperties end - def job_list_result - Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult - 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 f188a22c66..e0e2b2d130 100644 --- a/azure_sdk/lib/latest/modules/search_profile_module.rb +++ b/azure_sdk/lib/latest/modules/search_profile_module.rb @@ -7,12 +7,13 @@ module Azure::Profiles::Latest module Search module Mgmt + Operations = Azure::Search::Mgmt::V2015_08_19::Operations Services = Azure::Search::Mgmt::V2015_08_19::Services AdminKeys = Azure::Search::Mgmt::V2015_08_19::AdminKeys QueryKeys = Azure::Search::Mgmt::V2015_08_19::QueryKeys - Operations = Azure::Search::Mgmt::V2015_08_19::Operations module Models + CheckNameAvailabilityInput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput CheckNameAvailabilityOutput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput SkuName = Azure::Search::Mgmt::V2015_08_19::Models::SkuName Resource = Azure::Search::Mgmt::V2015_08_19::Models::Resource @@ -30,11 +31,10 @@ module Models AdminKeyKind = Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyKind SearchServiceStatus = Azure::Search::Mgmt::V2015_08_19::Models::SearchServiceStatus Identity = Azure::Search::Mgmt::V2015_08_19::Models::Identity - CheckNameAvailabilityInput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput end class SearchManagementClass - attr_reader :services, :admin_keys, :query_keys, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :services, :admin_keys, :query_keys, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -44,10 +44,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 @services = @client_0.services @admin_keys = @client_0.admin_keys @query_keys = @client_0.query_keys - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -66,6 +66,9 @@ def method_missing(method, *args) end class ModelClasses + 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 @@ -117,9 +120,6 @@ def search_service_status def identity Azure::Search::Mgmt::V2015_08_19::Models::Identity end - def check_name_availability_input - Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput - end end end end diff --git a/azure_sdk/lib/latest/modules/security_profile_module.rb b/azure_sdk/lib/latest/modules/security_profile_module.rb index ebb0774a5f..b1bc802508 100644 --- a/azure_sdk/lib/latest/modules/security_profile_module.rb +++ b/azure_sdk/lib/latest/modules/security_profile_module.rb @@ -7,13 +7,14 @@ module Azure::Profiles::Latest module Security module Mgmt + WorkspaceSettings = Azure::Security::Mgmt::V2017_08_01_preview::WorkspaceSettings AutoProvisioningSettings = Azure::Security::Mgmt::V2017_08_01_preview::AutoProvisioningSettings Compliances = Azure::Security::Mgmt::V2017_08_01_preview::Compliances Pricings = Azure::Security::Mgmt::V2017_08_01_preview::Pricings SecurityContacts = Azure::Security::Mgmt::V2017_08_01_preview::SecurityContacts - WorkspaceSettings = Azure::Security::Mgmt::V2017_08_01_preview::WorkspaceSettings module Models + AlertsToAdmins = Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertsToAdmins PricingTier = Azure::Security::Mgmt::V2017_08_01_preview::Models::PricingTier AutoProvision = Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvision Resource = Azure::Security::Mgmt::V2017_08_01_preview::Models::Resource @@ -29,11 +30,10 @@ module Models AutoProvisioningSetting = Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvisioningSetting Compliance = Azure::Security::Mgmt::V2017_08_01_preview::Models::Compliance AlertNotifications = Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertNotifications - AlertsToAdmins = Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertsToAdmins end class SecurityManagementClass - attr_reader :auto_provisioning_settings, :compliances, :pricings, :security_contacts, :workspace_settings, :configurable, :base_url, :options, :model_classes + attr_reader :workspace_settings, :auto_provisioning_settings, :compliances, :pricings, :security_contacts, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -43,11 +43,11 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @workspace_settings = @client_0.workspace_settings @auto_provisioning_settings = @client_0.auto_provisioning_settings @compliances = @client_0.compliances @pricings = @client_0.pricings @security_contacts = @client_0.security_contacts - @workspace_settings = @client_0.workspace_settings @model_classes = ModelClasses.new end @@ -66,6 +66,9 @@ def method_missing(method, *args) end class ModelClasses + def alerts_to_admins + Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertsToAdmins + end def pricing_tier Azure::Security::Mgmt::V2017_08_01_preview::Models::PricingTier end @@ -111,9 +114,6 @@ def compliance def alert_notifications Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertNotifications end - def alerts_to_admins - Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertsToAdmins - end end end end diff --git a/azure_sdk/lib/latest/modules/servicebus_profile_module.rb b/azure_sdk/lib/latest/modules/servicebus_profile_module.rb index c80e6f4be0..de1010e33f 100644 --- a/azure_sdk/lib/latest/modules/servicebus_profile_module.rb +++ b/azure_sdk/lib/latest/modules/servicebus_profile_module.rb @@ -32,37 +32,37 @@ module Models PremiumMessagingRegionsListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsListResult ArmDisasterRecoveryListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult SBSubscriptionListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscriptionListResult + OperationDisplay = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay SBAuthorizationRuleListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRuleListResult CheckNameAvailability = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailability + PremiumMessagingRegionsProperties = Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsProperties MessageCountDetails = Azure::ServiceBus::Mgmt::V2017_04_01::Models::MessageCountDetails - OperationDisplay = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay - SBNamespaceListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceListResult AccessKeys = Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys - CaptureDescription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CaptureDescription + SBNamespaceListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceListResult OperationListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationListResult - PremiumMessagingRegionsProperties = Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsProperties + Operation = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation EventHubListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::EventHubListResult AuthorizationRuleProperties = Azure::ServiceBus::Mgmt::V2017_04_01::Models::AuthorizationRuleProperties CheckNameAvailabilityResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult - Operation = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation + CorrelationFilter = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CorrelationFilter 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 + CaptureDescription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CaptureDescription RegenerateAccessKeyParameters = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters ResourceNamespacePatch = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ResourceNamespacePatch SBNamespaceUpdateParameters = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceUpdateParameters SBAuthorizationRule = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule - RuleListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RuleListResult Action = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action + SBNamespace = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace SBSubscription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscription Rule = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Rule SBQueue = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueue - SBTopic = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic - SBNamespace = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace + RuleListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RuleListResult + Eventhub = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub ArmDisasterRecovery = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecovery 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 + SBTopic = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic ProvisioningStateDR = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR MigrationConfigProperties = Azure::ServiceBus::Mgmt::V2017_04_01::Models::MigrationConfigProperties FilterType = Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType @@ -150,32 +150,32 @@ def arm_disaster_recovery_list_result def sbsubscription_list_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscriptionListResult end + def operation_display + Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay + end 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 premium_messaging_regions_properties + Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsProperties + end def message_count_details Azure::ServiceBus::Mgmt::V2017_04_01::Models::MessageCountDetails end - def operation_display - Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay - end - def sbnamespace_list_result - Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceListResult - end def access_keys Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys end - def capture_description - Azure::ServiceBus::Mgmt::V2017_04_01::Models::CaptureDescription + 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 premium_messaging_regions_properties - Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsProperties + def operation + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation end def event_hub_list_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::EventHubListResult @@ -186,8 +186,8 @@ def authorization_rule_properties def check_name_availability_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult end - def operation - Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation + def correlation_filter + Azure::ServiceBus::Mgmt::V2017_04_01::Models::CorrelationFilter end def sql_filter Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlFilter @@ -195,8 +195,8 @@ 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 + def capture_description + Azure::ServiceBus::Mgmt::V2017_04_01::Models::CaptureDescription end def regenerate_access_key_parameters Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters @@ -210,12 +210,12 @@ def sbnamespace_update_parameters def sbauthorization_rule Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule end - def rule_list_result - Azure::ServiceBus::Mgmt::V2017_04_01::Models::RuleListResult - end def action Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action end + def sbnamespace + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace + end def sbsubscription Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscription end @@ -225,11 +225,11 @@ def rule def sbqueue Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueue end - def sbtopic - Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic + def rule_list_result + Azure::ServiceBus::Mgmt::V2017_04_01::Models::RuleListResult end - def sbnamespace - Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace + def eventhub + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub end def arm_disaster_recovery Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecovery @@ -240,8 +240,8 @@ def sql_rule_action def premium_messaging_regions Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegions end - def eventhub - Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub + def sbtopic + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic end def provisioning_state_dr Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR diff --git a/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb b/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb index 7c8027648b..ba9135df47 100644 --- a/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb +++ b/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb @@ -11,9 +11,9 @@ module Mgmt 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 + 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 @@ -26,26 +26,27 @@ module Models PartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::PartitionSchemeDescription 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 ApplicationUpgradePolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationUpgradePolicy 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 UniformInt64RangePartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::UniformInt64RangePartitionSchemeDescription SingletonPartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SingletonPartitionSchemeDescription - ApplicationTypeResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResource VersionResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::VersionResource - ApplicationResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResource + ApplicationTypeResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResource ApplicationResourceUpdate = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceUpdate - ServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceProperties + ApplicationResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResource ServiceResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResource + ApplicationResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceList + ServiceResourceUpdate = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceUpdate ServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceUpdateProperties 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 - StatefulServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties StatefulServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceProperties + ServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceProperties + StatefulServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties ProxyResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource + SettingsParameterDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsParameterDescription ApplicationHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy SettingsSectionDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsSectionDescription Cluster = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Cluster @@ -76,11 +77,10 @@ module Models ClientCertificateThumbprint = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateThumbprint ClusterUpgradeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradeDeltaHealthPolicy ClusterVersionDetails = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterVersionDetails - SettingsParameterDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsParameterDescription end class ServiceFabricManagementClass - attr_reader :application_type, :service, :version, :application, :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 @@ -100,9 +100,9 @@ def initialize(configurable, base_url=nil, options=nil) @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 @@ -153,9 +153,6 @@ def rolling_upgrade_monitoring_policy def application_type_resource_list Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResourceList end - def application_resource_list - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceList - end def application_upgrade_policy Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationUpgradePolicy end @@ -174,24 +171,27 @@ def uniform_int64_range_partition_scheme_description def singleton_partition_scheme_description Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SingletonPartitionSchemeDescription end - def application_type_resource - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResource - end def version_resource Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::VersionResource end - def application_resource - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResource + def application_type_resource + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResource end def application_resource_update Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceUpdate end - def service_properties - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceProperties + def application_resource + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResource end def service_resource Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResource end + def application_resource_list + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceList + end + def service_resource_update + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceUpdate + end def service_update_properties Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceUpdateProperties end @@ -201,18 +201,21 @@ def stateless_service_properties def stateless_service_update_properties Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceUpdateProperties end - def service_resource_update - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceUpdate + def stateful_service_properties + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceProperties + end + def service_properties + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceProperties end def stateful_service_update_properties Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties end - def stateful_service_properties - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceProperties - end def proxy_resource Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource end + def settings_parameter_description + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsParameterDescription + end def application_health_policy Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy end @@ -303,9 +306,6 @@ def cluster_upgrade_delta_health_policy 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 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 90526ca4d4..2b1aab3c41 100644 --- a/azure_sdk/lib/latest/modules/signalr_profile_module.rb +++ b/azure_sdk/lib/latest/modules/signalr_profile_module.rb @@ -7,9 +7,9 @@ module Azure::Profiles::Latest module Signalr module Mgmt + Operations = Azure::Signalr::Mgmt::V2018_03_01_preview::Operations Usages = Azure::Signalr::Mgmt::V2018_03_01_preview::Usages SignalR = Azure::Signalr::Mgmt::V2018_03_01_preview::SignalR - Operations = Azure::Signalr::Mgmt::V2018_03_01_preview::Operations module Models Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource @@ -29,18 +29,18 @@ module Models SignalRCreateOrUpdateProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties SignalRKeys = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties + TrackedResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource NameAvailability = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability - SignalRUsage = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage SignalRUpdateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters SignalRUsageName = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName - SignalRResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource + SignalRUsage = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage SignalRCreateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateParameters - TrackedResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource SignalRSkuTier = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRSkuTier + SignalRResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource end class SignalrManagementClass - attr_reader :usages, :signal_r, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :usages, :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) + @operations = @client_0.operations @usages = @client_0.usages @signal_r = @client_0.signal_r - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -122,30 +122,30 @@ def signal_rkeys def operation_properties Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties end + def tracked_resource + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource + 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 signal_rupdate_parameters Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters end def signal_rusage_name Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsageName end - def signal_rresource - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource + def signal_rusage + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUsage end def signal_rcreate_parameters Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateParameters end - def tracked_resource - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource - end def signal_rsku_tier Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRSkuTier end + def signal_rresource + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource + 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 2461820597..4169ff5add 100644 --- a/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb +++ b/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb @@ -16,8 +16,8 @@ module Models Mode = Azure::CognitiveServices::SpellCheck::V1_0::Models::Mode ErrorResponse = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse SpellCheck = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck - ResponseBase = Azure::CognitiveServices::SpellCheck::V1_0::Models::ResponseBase Response = Azure::CognitiveServices::SpellCheck::V1_0::Models::Response + ResponseBase = Azure::CognitiveServices::SpellCheck::V1_0::Models::ResponseBase ActionType = Azure::CognitiveServices::SpellCheck::V1_0::Models::ActionType Identifiable = Azure::CognitiveServices::SpellCheck::V1_0::Models::Identifiable Error = Azure::CognitiveServices::SpellCheck::V1_0::Models::Error @@ -77,12 +77,12 @@ def error_response def spell_check Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck end - def response_base - Azure::CognitiveServices::SpellCheck::V1_0::Models::ResponseBase - end def response Azure::CognitiveServices::SpellCheck::V1_0::Models::Response end + def response_base + Azure::CognitiveServices::SpellCheck::V1_0::Models::ResponseBase + end def action_type Azure::CognitiveServices::SpellCheck::V1_0::Models::ActionType end diff --git a/azure_sdk/lib/latest/modules/sql_profile_module.rb b/azure_sdk/lib/latest/modules/sql_profile_module.rb index 74704f3337..9453d0fc50 100644 --- a/azure_sdk/lib/latest/modules/sql_profile_module.rb +++ b/azure_sdk/lib/latest/modules/sql_profile_module.rb @@ -36,6 +36,7 @@ module Mgmt DatabaseTableAuditingPolicies = Azure::SQL::Mgmt::V2014_04_01::DatabaseTableAuditingPolicies DatabaseUsages = Azure::SQL::Mgmt::V2014_04_01::DatabaseUsages ServerUsages = Azure::SQL::Mgmt::V2014_04_01::ServerUsages + SubscriptionUsages = Azure::SQL::Mgmt::V2015_05_01_preview::SubscriptionUsages FirewallRules = Azure::SQL::Mgmt::V2015_05_01_preview::FirewallRules ServerAdvisors = Azure::SQL::Mgmt::V2015_05_01_preview::ServerAdvisors DatabaseAdvisors = Azure::SQL::Mgmt::V2015_05_01_preview::DatabaseAdvisors @@ -51,7 +52,7 @@ module Mgmt 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 - SubscriptionUsages = Azure::SQL::Mgmt::V2015_05_01_preview::SubscriptionUsages + 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 ManagedDatabases = Azure::SQL::Mgmt::V2017_03_01_preview::ManagedDatabases @@ -59,9 +60,9 @@ module Mgmt BackupLongTermRetentionPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::BackupLongTermRetentionPolicies ServerAutomaticTuningOperations = Azure::SQL::Mgmt::V2017_03_01_preview::ServerAutomaticTuningOperations SensitivityLabels = Azure::SQL::Mgmt::V2017_03_01_preview::SensitivityLabels - ServerSecurityAlertPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::ServerSecurityAlertPolicies - Jobs = Azure::SQL::Mgmt::V2017_03_01_preview::Jobs + DataWarehouseUserActivitiesOperations = Azure::SQL::Mgmt::V2017_03_01_preview::DataWarehouseUserActivitiesOperations ServerDnsAliases = Azure::SQL::Mgmt::V2017_03_01_preview::ServerDnsAliases + ServerSecurityAlertPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::ServerSecurityAlertPolicies RestorePoints = Azure::SQL::Mgmt::V2017_03_01_preview::RestorePoints ExtendedDatabaseBlobAuditingPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::ExtendedDatabaseBlobAuditingPolicies ExtendedServerBlobAuditingPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::ExtendedServerBlobAuditingPolicies @@ -69,13 +70,12 @@ module Mgmt DatabaseBlobAuditingPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::DatabaseBlobAuditingPolicies DatabaseVulnerabilityAssessmentRuleBaselines = Azure::SQL::Mgmt::V2017_03_01_preview::DatabaseVulnerabilityAssessmentRuleBaselines DatabaseVulnerabilityAssessments = Azure::SQL::Mgmt::V2017_03_01_preview::DatabaseVulnerabilityAssessments + Jobs = Azure::SQL::Mgmt::V2017_03_01_preview::Jobs JobAgents = Azure::SQL::Mgmt::V2017_03_01_preview::JobAgents JobCredentials = Azure::SQL::Mgmt::V2017_03_01_preview::JobCredentials - DataWarehouseUserActivitiesOperations = Azure::SQL::Mgmt::V2017_03_01_preview::DataWarehouseUserActivitiesOperations JobExecutions = Azure::SQL::Mgmt::V2017_03_01_preview::JobExecutions JobStepExecutions = Azure::SQL::Mgmt::V2017_03_01_preview::JobStepExecutions JobTargetExecutions = Azure::SQL::Mgmt::V2017_03_01_preview::JobTargetExecutions - JobTargetGroups = Azure::SQL::Mgmt::V2017_03_01_preview::JobTargetGroups ElasticPoolOperations = Azure::SQL::Mgmt::V2017_10_01_preview::ElasticPoolOperations DatabaseVulnerabilityAssessmentScans = Azure::SQL::Mgmt::V2017_10_01_preview::DatabaseVulnerabilityAssessmentScans InstanceFailoverGroups = Azure::SQL::Mgmt::V2017_10_01_preview::InstanceFailoverGroups @@ -88,6 +88,7 @@ module Mgmt Capabilities = Azure::SQL::Mgmt::V2017_10_01_preview::Capabilities module Models + TransparentDataEncryptionActivity = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivity ElasticPoolActivity = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolActivity DatabaseTableAuditingPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseTableAuditingPolicy ServerTableAuditingPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicy @@ -167,17 +168,17 @@ module Models OperationImpact = Azure::SQL::Mgmt::V2014_04_01::Models::OperationImpact MetricDefinitionListResult = Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinitionListResult MetricAvailability = Azure::SQL::Mgmt::V2014_04_01::Models::MetricAvailability - BackupLongTermRetentionPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyListResult QueryMetric = Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetric + BackupLongTermRetentionPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyListResult ServiceTierAdvisorListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisorListResult QueryInterval = Azure::SQL::Mgmt::V2014_04_01::Models::QueryInterval RecoverableDatabaseListResult = Azure::SQL::Mgmt::V2014_04_01::Models::RecoverableDatabaseListResult - QueryStatistic = Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic Metric = Azure::SQL::Mgmt::V2014_04_01::Models::Metric DatabaseTableAuditingPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseTableAuditingPolicyListResult TopQueries = Azure::SQL::Mgmt::V2014_04_01::Models::TopQueries ElasticPoolDtuCapability = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDtuCapability AdvisorListResult = Azure::SQL::Mgmt::V2014_04_01::Models::AdvisorListResult + QueryStatistic = Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic QueryStatisticListResult = Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatisticListResult BackupLongTermRetentionVault = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionVault TopQueriesListResult = Azure::SQL::Mgmt::V2014_04_01::Models::TopQueriesListResult @@ -200,7 +201,7 @@ module Models ServerCommunicationLink = Azure::SQL::Mgmt::V2014_04_01::Models::ServerCommunicationLink ServiceObjective = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjective ElasticPoolDatabaseActivity = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDatabaseActivity - TransparentDataEncryptionActivity = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivity + SyncAgentState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentState AdvisorStatus = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AdvisorStatus AutoExecuteStatus = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatus SyncGroupLogType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupLogType @@ -279,7 +280,7 @@ module Models 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 - SyncAgentState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentState + JobListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult JobSchedule = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobSchedule JobStepAction = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepAction ManagedDatabaseUpdate = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseUpdate @@ -348,7 +349,6 @@ module Models 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 - JobListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult CapabilityStatus = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityStatus PerformanceLevelUnit = Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelUnit SampleName = Azure::SQL::Mgmt::V2017_10_01_preview::Models::SampleName @@ -419,7 +419,7 @@ module Models 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, :replication_links, :recommended_elastic_pools, :server_azure_adadministrators, :service_objectives, :server_communication_links, :elastic_pool_database_activities, :elastic_pool_activities, :transparent_data_encryptions, :service_tier_advisors, :server_table_auditing_policies, :transparent_data_encryption_activities, :database_connection_policies, :database_table_auditing_policies, :database_usages, :server_usages, :firewall_rules, :server_advisors, :database_advisors, :servers, :operations, :virtual_network_rules, :database_recommended_actions, :database_automatic_tuning_operations, :encryption_protectors, :failover_groups, :managed_instances, :server_keys, :sync_agents, :sync_groups, :sync_members, :subscription_usages, :job_versions, :long_term_retention_backups, :managed_databases, :job_steps, :backup_long_term_retention_policies, :server_automatic_tuning_operations, :sensitivity_labels, :server_security_alert_policies, :jobs, :server_dns_aliases, :restore_points, :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, :job_agents, :job_credentials, :data_warehouse_user_activities_operations, :job_executions, :job_step_executions, :job_target_executions, :job_target_groups, :elastic_pool_operations, :database_vulnerability_assessment_scans, :instance_failover_groups, :backup_short_term_retention_policies, :tde_certificates, :managed_instance_tde_certificates, :databases, :elastic_pools, :database_operations, :capabilities, :configurable, :base_url, :options, :model_classes + attr_reader :backup_long_term_retention_vaults, :recoverable_databases, :restorable_dropped_databases, :server_connection_policies, :database_threat_detection_policies, :data_masking_policies, :data_masking_rules, :transparent_data_encryption_configurations, :extensions, :disaster_recovery_configurations, :geo_backup_policies, :queries, :query_statistics, :query_texts, :replication_links, :recommended_elastic_pools, :server_azure_adadministrators, :service_objectives, :server_communication_links, :elastic_pool_database_activities, :elastic_pool_activities, :transparent_data_encryptions, :service_tier_advisors, :server_table_auditing_policies, :transparent_data_encryption_activities, :database_connection_policies, :database_table_auditing_policies, :database_usages, :server_usages, :subscription_usages, :firewall_rules, :server_advisors, :database_advisors, :servers, :operations, :virtual_network_rules, :database_recommended_actions, :database_automatic_tuning_operations, :encryption_protectors, :failover_groups, :managed_instances, :server_keys, :sync_agents, :sync_groups, :sync_members, :job_target_groups, :job_versions, :long_term_retention_backups, :managed_databases, :job_steps, :backup_long_term_retention_policies, :server_automatic_tuning_operations, :sensitivity_labels, :data_warehouse_user_activities_operations, :server_dns_aliases, :server_security_alert_policies, :restore_points, :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, :jobs, :job_agents, :job_credentials, :job_executions, :job_step_executions, :job_target_executions, :elastic_pool_operations, :database_vulnerability_assessment_scans, :instance_failover_groups, :backup_short_term_retention_policies, :tde_certificates, :managed_instance_tde_certificates, :databases, :elastic_pools, :database_operations, :capabilities, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -464,6 +464,7 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) + @subscription_usages = @client_1.subscription_usages @firewall_rules = @client_1.firewall_rules @server_advisors = @client_1.server_advisors @database_advisors = @client_1.database_advisors @@ -479,13 +480,13 @@ def initialize(configurable, base_url=nil, options=nil) @sync_agents = @client_1.sync_agents @sync_groups = @client_1.sync_groups @sync_members = @client_1.sync_members - @subscription_usages = @client_1.subscription_usages @client_2 = Azure::SQL::Mgmt::V2017_03_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) if(@client_2.respond_to?(:subscription_id)) @client_2.subscription_id = configurable.subscription_id end add_telemetry(@client_2) + @job_target_groups = @client_2.job_target_groups @job_versions = @client_2.job_versions @long_term_retention_backups = @client_2.long_term_retention_backups @managed_databases = @client_2.managed_databases @@ -493,9 +494,9 @@ def initialize(configurable, base_url=nil, options=nil) @backup_long_term_retention_policies = @client_2.backup_long_term_retention_policies @server_automatic_tuning_operations = @client_2.server_automatic_tuning_operations @sensitivity_labels = @client_2.sensitivity_labels - @server_security_alert_policies = @client_2.server_security_alert_policies - @jobs = @client_2.jobs + @data_warehouse_user_activities_operations = @client_2.data_warehouse_user_activities_operations @server_dns_aliases = @client_2.server_dns_aliases + @server_security_alert_policies = @client_2.server_security_alert_policies @restore_points = @client_2.restore_points @extended_database_blob_auditing_policies = @client_2.extended_database_blob_auditing_policies @extended_server_blob_auditing_policies = @client_2.extended_server_blob_auditing_policies @@ -503,13 +504,12 @@ def initialize(configurable, base_url=nil, options=nil) @database_blob_auditing_policies = @client_2.database_blob_auditing_policies @database_vulnerability_assessment_rule_baselines = @client_2.database_vulnerability_assessment_rule_baselines @database_vulnerability_assessments = @client_2.database_vulnerability_assessments + @jobs = @client_2.jobs @job_agents = @client_2.job_agents @job_credentials = @client_2.job_credentials - @data_warehouse_user_activities_operations = @client_2.data_warehouse_user_activities_operations @job_executions = @client_2.job_executions @job_step_executions = @client_2.job_step_executions @job_target_executions = @client_2.job_target_executions - @job_target_groups = @client_2.job_target_groups @client_3 = Azure::SQL::Mgmt::V2017_10_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) if(@client_3.respond_to?(:subscription_id)) @@ -550,6 +550,9 @@ def method_missing(method, *args) end class ModelClasses + 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 @@ -787,12 +790,12 @@ def metric_definition_list_result def metric_availability Azure::SQL::Mgmt::V2014_04_01::Models::MetricAvailability end - def backup_long_term_retention_policy_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyListResult - end def query_metric Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetric end + def backup_long_term_retention_policy_list_result + Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyListResult + end def service_tier_advisor_list_result Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisorListResult end @@ -802,9 +805,6 @@ def query_interval 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 - end def metric Azure::SQL::Mgmt::V2014_04_01::Models::Metric end @@ -820,6 +820,9 @@ def elastic_pool_dtu_capability def advisor_list_result Azure::SQL::Mgmt::V2014_04_01::Models::AdvisorListResult end + def query_statistic + Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic + end def query_statistic_list_result Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatisticListResult end @@ -886,8 +889,8 @@ def service_objective def elastic_pool_database_activity Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDatabaseActivity end - def transparent_data_encryption_activity - Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivity + def sync_agent_state + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentState end def advisor_status Azure::SQL::Mgmt::V2015_05_01_preview::Models::AdvisorStatus @@ -1123,8 +1126,8 @@ def failover_group_replication_role def identity_type Azure::SQL::Mgmt::V2015_05_01_preview::Models::IdentityType end - def sync_agent_state - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentState + def job_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult end def job_schedule Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobSchedule @@ -1330,9 +1333,6 @@ def automatic_tuning_option_mode_desired def automatic_tuning_option_mode_actual Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningOptionModeActual end - def job_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult - end def capability_status Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityStatus end diff --git a/azure_sdk/lib/latest/modules/storage_profile_module.rb b/azure_sdk/lib/latest/modules/storage_profile_module.rb index 807fbcd787..1da1ce6e82 100644 --- a/azure_sdk/lib/latest/modules/storage_profile_module.rb +++ b/azure_sdk/lib/latest/modules/storage_profile_module.rb @@ -7,15 +7,16 @@ module Azure::Profiles::Latest module Storage module Mgmt + Operations = Azure::Storage::Mgmt::V2018_07_01::Operations StorageAccounts = Azure::Storage::Mgmt::V2018_07_01::StorageAccounts Skus = Azure::Storage::Mgmt::V2018_07_01::Skus Usages = Azure::Storage::Mgmt::V2018_07_01::Usages BlobContainers = Azure::Storage::Mgmt::V2018_07_01::BlobContainers - Operations = Azure::Storage::Mgmt::V2018_07_01::Operations module Models ManagementPoliciesRulesSetParameter = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ManagementPoliciesRulesSetParameter StorageAccountManagementPolicies = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountManagementPolicies + LeaseDuration = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseDuration ProvisioningState = Azure::Storage::Mgmt::V2018_07_01::Models::ProvisioningState StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountCheckNameAvailabilityParameters StorageAccountKey = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountKey @@ -33,13 +34,13 @@ module Models SkuTier = Azure::Storage::Mgmt::V2018_07_01::Models::SkuTier 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 Reason = Azure::Storage::Mgmt::V2018_07_01::Models::Reason - AccountStatus = Azure::Storage::Mgmt::V2018_07_01::Models::AccountStatus + KeyPermission = Azure::Storage::Mgmt::V2018_07_01::Models::KeyPermission State = Azure::Storage::Mgmt::V2018_07_01::Models::State + AccessTier = Azure::Storage::Mgmt::V2018_07_01::Models::AccessTier UsageUnit = Azure::Storage::Mgmt::V2018_07_01::Models::UsageUnit UsageName = Azure::Storage::Mgmt::V2018_07_01::Models::UsageName - KeyPermission = Azure::Storage::Mgmt::V2018_07_01::Models::KeyPermission + AccountStatus = Azure::Storage::Mgmt::V2018_07_01::Models::AccountStatus StorageAccountCreateParameters = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountCreateParameters Permissions = Azure::Storage::Mgmt::V2018_07_01::Models::Permissions StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountUpdateParameters @@ -68,20 +69,20 @@ module Models ListContainerItem = Azure::Storage::Mgmt::V2018_07_01::Models::ListContainerItem BlobContainer = Azure::Storage::Mgmt::V2018_07_01::Models::BlobContainer Usage = Azure::Storage::Mgmt::V2018_07_01::Models::Usage - Bypass = Azure::Storage::Mgmt::V2018_07_01::Models::Bypass + Action = Azure::Storage::Mgmt::V2018_07_01::Models::Action ReasonCode = Azure::Storage::Mgmt::V2018_07_01::Models::ReasonCode SkuName = Azure::Storage::Mgmt::V2018_07_01::Models::SkuName ImmutabilityPolicy = Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicy - Action = Azure::Storage::Mgmt::V2018_07_01::Models::Action + DefaultAction = Azure::Storage::Mgmt::V2018_07_01::Models::DefaultAction SignedResourceTypes = Azure::Storage::Mgmt::V2018_07_01::Models::SignedResourceTypes KeySource = Azure::Storage::Mgmt::V2018_07_01::Models::KeySource - SignedResource = Azure::Storage::Mgmt::V2018_07_01::Models::SignedResource + Bypass = Azure::Storage::Mgmt::V2018_07_01::Models::Bypass Sku = Azure::Storage::Mgmt::V2018_07_01::Models::Sku Services = Azure::Storage::Mgmt::V2018_07_01::Models::Services HttpProtocol = Azure::Storage::Mgmt::V2018_07_01::Models::HttpProtocol - LeaseDuration = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseDuration + SignedResource = Azure::Storage::Mgmt::V2018_07_01::Models::SignedResource PublicAccess = Azure::Storage::Mgmt::V2018_07_01::Models::PublicAccess - DefaultAction = Azure::Storage::Mgmt::V2018_07_01::Models::DefaultAction + LeaseStatus = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseStatus LeaseState = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseState TrackedResource = Azure::Storage::Mgmt::V2018_07_01::Models::TrackedResource ImmutabilityPolicyState = Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyState @@ -90,11 +91,10 @@ module Models AzureEntityResource = Azure::Storage::Mgmt::V2018_07_01::Models::AzureEntityResource ProxyResource = Azure::Storage::Mgmt::V2018_07_01::Models::ProxyResource ImmutabilityPolicyUpdateType = Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyUpdateType - LeaseStatus = Azure::Storage::Mgmt::V2018_07_01::Models::LeaseStatus end class StorageManagementClass - attr_reader :storage_accounts, :skus, :usages, :blob_containers, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :storage_accounts, :skus, :usages, :blob_containers, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -110,11 +110,11 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) + @operations = @client_1.operations @storage_accounts = @client_1.storage_accounts @skus = @client_1.skus @usages = @client_1.usages @blob_containers = @client_1.blob_containers - @operations = @client_1.operations @model_classes = ModelClasses.new end @@ -141,6 +141,9 @@ def management_policies_rules_set_parameter def storage_account_management_policies Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountManagementPolicies end + def lease_duration + Azure::Storage::Mgmt::V2018_07_01::Models::LeaseDuration + end def provisioning_state Azure::Storage::Mgmt::V2018_07_01::Models::ProvisioningState end @@ -192,26 +195,26 @@ def kind def virtual_network_rule Azure::Storage::Mgmt::V2018_07_01::Models::VirtualNetworkRule end - def access_tier - Azure::Storage::Mgmt::V2018_07_01::Models::AccessTier - end def reason Azure::Storage::Mgmt::V2018_07_01::Models::Reason end - def account_status - Azure::Storage::Mgmt::V2018_07_01::Models::AccountStatus + def key_permission + Azure::Storage::Mgmt::V2018_07_01::Models::KeyPermission end def state Azure::Storage::Mgmt::V2018_07_01::Models::State end + def access_tier + Azure::Storage::Mgmt::V2018_07_01::Models::AccessTier + end def usage_unit Azure::Storage::Mgmt::V2018_07_01::Models::UsageUnit end def usage_name Azure::Storage::Mgmt::V2018_07_01::Models::UsageName end - def key_permission - Azure::Storage::Mgmt::V2018_07_01::Models::KeyPermission + def account_status + Azure::Storage::Mgmt::V2018_07_01::Models::AccountStatus end def storage_account_create_parameters Azure::Storage::Mgmt::V2018_07_01::Models::StorageAccountCreateParameters @@ -297,8 +300,8 @@ def blob_container def usage Azure::Storage::Mgmt::V2018_07_01::Models::Usage end - def bypass - Azure::Storage::Mgmt::V2018_07_01::Models::Bypass + def action + Azure::Storage::Mgmt::V2018_07_01::Models::Action end def reason_code Azure::Storage::Mgmt::V2018_07_01::Models::ReasonCode @@ -309,8 +312,8 @@ def sku_name def immutability_policy Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicy end - def action - Azure::Storage::Mgmt::V2018_07_01::Models::Action + def default_action + Azure::Storage::Mgmt::V2018_07_01::Models::DefaultAction end def signed_resource_types Azure::Storage::Mgmt::V2018_07_01::Models::SignedResourceTypes @@ -318,8 +321,8 @@ def signed_resource_types def key_source Azure::Storage::Mgmt::V2018_07_01::Models::KeySource end - def signed_resource - Azure::Storage::Mgmt::V2018_07_01::Models::SignedResource + def bypass + Azure::Storage::Mgmt::V2018_07_01::Models::Bypass end def sku Azure::Storage::Mgmt::V2018_07_01::Models::Sku @@ -330,14 +333,14 @@ def services def http_protocol Azure::Storage::Mgmt::V2018_07_01::Models::HttpProtocol end - def lease_duration - Azure::Storage::Mgmt::V2018_07_01::Models::LeaseDuration + def signed_resource + Azure::Storage::Mgmt::V2018_07_01::Models::SignedResource end def public_access Azure::Storage::Mgmt::V2018_07_01::Models::PublicAccess end - def default_action - Azure::Storage::Mgmt::V2018_07_01::Models::DefaultAction + def lease_status + Azure::Storage::Mgmt::V2018_07_01::Models::LeaseStatus end def lease_state Azure::Storage::Mgmt::V2018_07_01::Models::LeaseState @@ -363,9 +366,6 @@ def proxy_resource def immutability_policy_update_type Azure::Storage::Mgmt::V2018_07_01::Models::ImmutabilityPolicyUpdateType end - def lease_status - Azure::Storage::Mgmt::V2018_07_01::Models::LeaseStatus - end 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 eecd531c34..dd9b323a8f 100644 --- a/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb +++ b/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb @@ -25,6 +25,7 @@ module Mgmt Jobs = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Jobs module Models + EncryptionAlgorithm = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionAlgorithm DayOfWeek = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DayOfWeek BackupType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupType BackupPolicyCreationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyCreationType @@ -131,16 +132,16 @@ module Models 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 - DeviceRolloverDetails = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceRolloverDetails Time = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Time - ManagerPatch = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerPatch + DeviceRolloverDetails = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceRolloverDetails + DimensionFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DimensionFilter MetricAvailablity = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricAvailablity + ManagerPatch = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerPatch AvailableProviderOperationDisplay = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperationDisplay - DimensionFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DimensionFilter - MetricData = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricData + BackupPolicyList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyList ChapSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ChapSettings + MetricData = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricData SecondaryDNSSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecondaryDNSSettings - BackupPolicyList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyList DeviceList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceList MetricDimension = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDimension VolumeList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeList @@ -183,7 +184,6 @@ module Models 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 - EncryptionAlgorithm = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionAlgorithm end class StorSimple8000SeriesManagementClass @@ -231,6 +231,9 @@ def method_missing(method, *args) end class ModelClasses + def encryption_algorithm + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionAlgorithm + end def day_of_week Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DayOfWeek end @@ -549,36 +552,36 @@ def security_settings_patch def manager_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerList end - def device_rollover_details - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceRolloverDetails - end def time Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Time end - def manager_patch - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerPatch + def device_rollover_details + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceRolloverDetails + end + def dimension_filter + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DimensionFilter end def metric_availablity Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricAvailablity end + def manager_patch + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerPatch + end def available_provider_operation_display Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperationDisplay end - def dimension_filter - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DimensionFilter - end - def metric_data - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricData + def backup_policy_list + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyList end def chap_settings Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ChapSettings end + def metric_data + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricData + end def secondary_dnssettings Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecondaryDNSSettings end - def backup_policy_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyList - end def device_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceList end @@ -705,9 +708,6 @@ def scheduled_backup_status 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 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 35b204876f..29566430ae 100644 --- a/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb @@ -7,13 +7,13 @@ module Azure::Profiles::Latest module StreamAnalytics module Mgmt - Subscriptions = Azure::StreamAnalytics::Mgmt::V2016_03_01::Subscriptions + 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 - Operations = Azure::StreamAnalytics::Mgmt::V2016_03_01::Operations + Subscriptions = Azure::StreamAnalytics::Mgmt::V2016_03_01::Subscriptions module Models AzureMachineLearningWebServiceInputColumn = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceInputColumn @@ -45,53 +45,53 @@ module Models FunctionListResult = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionListResult Function = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Function StreamingJob = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamingJob - Output = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Output + JavaScriptFunctionBinding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionBinding 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 Diagnostics = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Diagnostics JsonSerialization = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonSerialization Transformation = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Transformation - AzureDataLakeStoreOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureDataLakeStoreOutputDataSource + Output = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Output CsvSerialization = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::CsvSerialization - EventHubDataSourceProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubDataSourceProperties - JavaScriptFunctionBinding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionBinding + AzureDataLakeStoreOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureDataLakeStoreOutputDataSource + 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 - PowerBIOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::PowerBIOutputDataSource - DocumentDbOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DocumentDbOutputDataSource - AzureSqlDatabaseOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureSqlDatabaseOutputDataSource ServiceBusQueueOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ServiceBusQueueOutputDataSource - AzureTableOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureTableOutputDataSource + EventHubDataSourceProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubDataSourceProperties + AzureSqlDatabaseOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureSqlDatabaseOutputDataSource + EventHubOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubOutputDataSource + DocumentDbOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DocumentDbOutputDataSource BlobOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobOutputDataSource OperationDisplay = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationDisplay - ReferenceInputProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ReferenceInputProperties + AzureTableOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureTableOutputDataSource 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 - EventHubOutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubOutputDataSource + ReferenceInputProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ReferenceInputProperties + 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 - OutputStartMode = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputStartMode + 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 + 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 + OutputStartMode = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputStartMode EventsOutOfOrderPolicy = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventsOutOfOrderPolicy - OutputErrorPolicy = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputErrorPolicy SkuName = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SkuName - Encoding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding + JsonOutputSerializationFormat = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonOutputSerializationFormat UdfType = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::UdfType + Encoding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding Sku = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Sku ErrorResponse = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ErrorResponse end class StreamAnalyticsManagementClass - attr_reader :subscriptions, :streaming_jobs, :inputs, :outputs, :transformations, :functions, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :streaming_jobs, :inputs, :outputs, :transformations, :functions, :subscriptions, :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) - @subscriptions = @client_0.subscriptions + @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 - @operations = @client_0.operations + @subscriptions = @client_0.subscriptions @model_classes = ModelClasses.new end @@ -213,8 +213,8 @@ def function def streaming_job Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamingJob end - def output - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Output + def java_script_function_binding + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionBinding end def azure_machine_learning_web_service_function_binding Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceFunctionBinding @@ -234,17 +234,17 @@ def json_serialization def transformation Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Transformation end - def azure_data_lake_store_output_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureDataLakeStoreOutputDataSource + def output + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Output end def csv_serialization Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::CsvSerialization end - def event_hub_data_source_properties - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubDataSourceProperties + def azure_data_lake_store_output_data_source + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureDataLakeStoreOutputDataSource end - def java_script_function_binding - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionBinding + def power_bioutput_data_source + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::PowerBIOutputDataSource end def resource Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Resource @@ -252,20 +252,20 @@ def resource def service_bus_topic_output_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ServiceBusTopicOutputDataSource end - def power_bioutput_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::PowerBIOutputDataSource + def service_bus_queue_output_data_source + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ServiceBusQueueOutputDataSource end - def document_db_output_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DocumentDbOutputDataSource + def event_hub_data_source_properties + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubDataSourceProperties end def azure_sql_database_output_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureSqlDatabaseOutputDataSource end - def service_bus_queue_output_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ServiceBusQueueOutputDataSource + def event_hub_output_data_source + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubOutputDataSource end - def azure_table_output_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureTableOutputDataSource + def document_db_output_data_source + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DocumentDbOutputDataSource end def blob_output_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobOutputDataSource @@ -273,8 +273,8 @@ def blob_output_data_source def operation_display Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationDisplay end - def reference_input_properties - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ReferenceInputProperties + def azure_table_output_data_source + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureTableOutputDataSource end def operation Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Operation @@ -294,11 +294,11 @@ def event_hub_stream_input_data_source def blob_stream_input_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobStreamInputDataSource end - def stream_input_properties - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamInputProperties + def reference_input_properties + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ReferenceInputProperties end - def event_hub_output_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubOutputDataSource + 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 @@ -306,36 +306,36 @@ def java_script_function_retrieve_default_definition_parameters def subscription_quota Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubscriptionQuota end - def output_start_mode - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputStartMode + 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 end - def io_thub_stream_input_data_source - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::IoTHubStreamInputDataSource + def output_error_policy + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputErrorPolicy end def compatibility_level Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::CompatibilityLevel end - def json_output_serialization_format - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonOutputSerializationFormat + 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 end - def output_error_policy - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputErrorPolicy - end def sku_name Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SkuName end - def encoding - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding + def json_output_serialization_format + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonOutputSerializationFormat end def udf_type Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::UdfType end + def encoding + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding + end def sku Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Sku end diff --git a/azure_sdk/lib/latest/modules/web_profile_module.rb b/azure_sdk/lib/latest/modules/web_profile_module.rb index 049e6299fe..d2edcd71e7 100644 --- a/azure_sdk/lib/latest/modules/web_profile_module.rb +++ b/azure_sdk/lib/latest/modules/web_profile_module.rb @@ -23,6 +23,7 @@ module Mgmt ResourceHealthMetadataOperations = Azure::Web::Mgmt::V2018_02_01::ResourceHealthMetadataOperations module Models + Experiments = Azure::Web::Mgmt::V2018_02_01::Models::Experiments DataSource = Azure::Web::Mgmt::V2018_02_01::Models::DataSource SiteMachineKey = Azure::Web::Mgmt::V2018_02_01::Models::SiteMachineKey ResponseMetaData = Azure::Web::Mgmt::V2018_02_01::Models::ResponseMetaData @@ -57,7 +58,7 @@ module Models NameValuePair = Azure::Web::Mgmt::V2018_02_01::Models::NameValuePair StackMinorVersion = Azure::Web::Mgmt::V2018_02_01::Models::StackMinorVersion AutoHealTriggers = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealTriggers - DiagnosticMetricSet = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSet + ResourceMetricName = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricName DetectorAbnormalTimePeriod = Azure::Web::Mgmt::V2018_02_01::Models::DetectorAbnormalTimePeriod ConnStringInfo = Azure::Web::Mgmt::V2018_02_01::Models::ConnStringInfo AppServiceCertificateOrder = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder @@ -66,13 +67,13 @@ module Models CorsSettings = Azure::Web::Mgmt::V2018_02_01::Models::CorsSettings DiagnosticMetricSample = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSample ReissueCertificateOrderRequest = Azure::Web::Mgmt::V2018_02_01::Models::ReissueCertificateOrderRequest - RenewCertificateOrderRequest = Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest - Experiments = Azure::Web::Mgmt::V2018_02_01::Models::Experiments + DiagnosticMetricSet = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSet + 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 HybridConnection = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnection - VnetRoute = Azure::Web::Mgmt::V2018_02_01::Models::VnetRoute + ResourceMetricDefinition = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinition AppServiceCertificateResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource HybridConnectionKey = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionKey AppServiceCertificateOrderPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderPatchResource @@ -80,32 +81,32 @@ module Models CertificateEmail = Azure::Web::Mgmt::V2018_02_01::Models::CertificateEmail CertificateOrderAction = Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderAction AnalysisDefinition = Azure::Web::Mgmt::V2018_02_01::Models::AnalysisDefinition - DetectorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponse + RenewCertificateOrderRequest = Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest Site = Azure::Web::Mgmt::V2018_02_01::Models::Site AppServicePlan = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlan - ResourceMetricDefinition = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinition + TopLevelDomain = Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomain PushSettings = Azure::Web::Mgmt::V2018_02_01::Models::PushSettings DeletedSite = Azure::Web::Mgmt::V2018_02_01::Models::DeletedSite DiagnosticAnalysis = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis - DiagnosticCategory = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory Identifier = Azure::Web::Mgmt::V2018_02_01::Models::Identifier + DiagnosticDetectorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse DetectorDefinition = Azure::Web::Mgmt::V2018_02_01::Models::DetectorDefinition RecommendationRule = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationRule - VnetParameters = Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters + DetectorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponse CertificatePatchResource = Azure::Web::Mgmt::V2018_02_01::Models::CertificatePatchResource - GeoRegion = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion - DiagnosticDetectorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse + DiagnosticCategory = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory + PremierAddOnOffer = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOffer Recommendation = Azure::Web::Mgmt::V2018_02_01::Models::Recommendation 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 - PremierAddOnOffer = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOffer + BillingMeter = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter + GeoRegion = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion + DeletedAppRestoreRequest = Azure::Web::Mgmt::V2018_02_01::Models::DeletedAppRestoreRequest SourceControl = Azure::Web::Mgmt::V2018_02_01::Models::SourceControl - PrivateAccess = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccess + VnetParameters = Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters VnetValidationTestFailure = Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationTestFailure Operation = Azure::Web::Mgmt::V2018_02_01::Models::Operation - BillingMeter = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter + 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 @@ -116,14 +117,14 @@ module Models WebJob = Azure::Web::Mgmt::V2018_02_01::Models::WebJob ManagedServiceIdentityType = Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentityType LogSpecification = Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification - DeletedAppRestoreRequest = Azure::Web::Mgmt::V2018_02_01::Models::DeletedAppRestoreRequest + SiteConfigurationSnapshotInfo = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo ServiceSpecification = Azure::Web::Mgmt::V2018_02_01::Models::ServiceSpecification - SiteInstance = Azure::Web::Mgmt::V2018_02_01::Models::SiteInstance + PrivateAccess = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccess 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 + 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 @@ -132,30 +133,30 @@ module Models TriggeredJobHistory = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistory RouteType = Azure::Web::Mgmt::V2018_02_01::Models::RouteType ResourceHealthMetadata = Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadata - AutoHealActionType = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType + AzureStoragePropertyDictionaryResource = Azure::Web::Mgmt::V2018_02_01::Models::AzureStoragePropertyDictionaryResource ConnectionStringType = Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringType PremierAddOnPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnPatchResource - SiteConfigurationSnapshotInfo = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo + ManagedPipelineMode = Azure::Web::Mgmt::V2018_02_01::Models::ManagedPipelineMode SiteExtensionInfo = Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfo - SwiftVirtualNetwork = Azure::Web::Mgmt::V2018_02_01::Models::SwiftVirtualNetwork + SiteInstance = Azure::Web::Mgmt::V2018_02_01::Models::SiteInstance CertificateProductType = Azure::Web::Mgmt::V2018_02_01::Models::CertificateProductType KeyVaultSecretStatus = Azure::Web::Mgmt::V2018_02_01::Models::KeyVaultSecretStatus - CertificateOrderActionType = Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderActionType - SiteAvailabilityState = Azure::Web::Mgmt::V2018_02_01::Models::SiteAvailabilityState + UsageState = Azure::Web::Mgmt::V2018_02_01::Models::UsageState Certificate = Azure::Web::Mgmt::V2018_02_01::Models::Certificate + AutoHealActionType = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType HostNameType = Azure::Web::Mgmt::V2018_02_01::Models::HostNameType ScmType = Azure::Web::Mgmt::V2018_02_01::Models::ScmType - ManagedPipelineMode = Azure::Web::Mgmt::V2018_02_01::Models::ManagedPipelineMode + 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 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 - NotificationLevel = Azure::Web::Mgmt::V2018_02_01::Models::NotificationLevel + ResourceScopeType = Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType + SiteAvailabilityState = Azure::Web::Mgmt::V2018_02_01::Models::SiteAvailabilityState StatusOptions = Azure::Web::Mgmt::V2018_02_01::Models::StatusOptions HostingEnvironmentStatus = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentStatus SiteConfigResource = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResource - ComputeModeOptions = Azure::Web::Mgmt::V2018_02_01::Models::ComputeModeOptions + SwiftVirtualNetwork = Azure::Web::Mgmt::V2018_02_01::Models::SwiftVirtualNetwork WorkerSizeOptions = Azure::Web::Mgmt::V2018_02_01::Models::WorkerSizeOptions CertificateOrderStatus = Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderStatus ProvisioningState = Azure::Web::Mgmt::V2018_02_01::Models::ProvisioningState @@ -163,10 +164,10 @@ module Models AzureResourceType = Azure::Web::Mgmt::V2018_02_01::Models::AzureResourceType CustomHostNameDnsRecordType = Azure::Web::Mgmt::V2018_02_01::Models::CustomHostNameDnsRecordType FtpsState = Azure::Web::Mgmt::V2018_02_01::Models::FtpsState - DomainStatus = Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus + AppServicePlanRestrictions = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions InAvailabilityReasonType = Azure::Web::Mgmt::V2018_02_01::Models::InAvailabilityReasonType InternalLoadBalancingMode = Azure::Web::Mgmt::V2018_02_01::Models::InternalLoadBalancingMode - IssueType = Azure::Web::Mgmt::V2018_02_01::Models::IssueType + ComputeModeOptions = Azure::Web::Mgmt::V2018_02_01::Models::ComputeModeOptions 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 @@ -184,24 +185,26 @@ module Models 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 - MSDeployProvisioningState = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployProvisioningState + NotificationLevel = Azure::Web::Mgmt::V2018_02_01::Models::NotificationLevel Channels = Azure::Web::Mgmt::V2018_02_01::Models::Channels - AppServicePlanRestrictions = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions + PublicCertificateLocation = Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateLocation UnauthenticatedClientAction = Azure::Web::Mgmt::V2018_02_01::Models::UnauthenticatedClientAction CheckNameResourceTypes = Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes - ValidateResourceTypes = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResourceTypes + IssueType = Azure::Web::Mgmt::V2018_02_01::Models::IssueType SiteExtensionType = Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionType TriggeredWebJobStatus = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJobStatus LogLevel = Azure::Web::Mgmt::V2018_02_01::Models::LogLevel SnapshotRestoreRequest = Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRestoreRequest SolutionType = Azure::Web::Mgmt::V2018_02_01::Models::SolutionType FrequencyUnit = Azure::Web::Mgmt::V2018_02_01::Models::FrequencyUnit - ResourceScopeType = Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType + BackupRestoreOperationType = Azure::Web::Mgmt::V2018_02_01::Models::BackupRestoreOperationType ContinuousWebJobStatus = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus WebJobType = Azure::Web::Mgmt::V2018_02_01::Models::WebJobType PublishingProfileFormat = Azure::Web::Mgmt::V2018_02_01::Models::PublishingProfileFormat DnsVerificationTestResult = Azure::Web::Mgmt::V2018_02_01::Models::DnsVerificationTestResult + ValidateResourceTypes = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResourceTypes 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 Contact = Azure::Web::Mgmt::V2018_02_01::Models::Contact BuiltInAuthenticationProvider = Azure::Web::Mgmt::V2018_02_01::Models::BuiltInAuthenticationProvider @@ -209,9 +212,7 @@ module Models SkuName = Azure::Web::Mgmt::V2018_02_01::Models::SkuName BackupItemStatus = Azure::Web::Mgmt::V2018_02_01::Models::BackupItemStatus DatabaseType = Azure::Web::Mgmt::V2018_02_01::Models::DatabaseType - BackupRestoreOperationType = Azure::Web::Mgmt::V2018_02_01::Models::BackupRestoreOperationType AccessControlEntryAction = Azure::Web::Mgmt::V2018_02_01::Models::AccessControlEntryAction - PublicCertificateLocation = Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateLocation Dimension = Azure::Web::Mgmt::V2018_02_01::Models::Dimension MetricSpecification = Azure::Web::Mgmt::V2018_02_01::Models::MetricSpecification Usage = Azure::Web::Mgmt::V2018_02_01::Models::Usage @@ -285,9 +286,9 @@ module Models 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 - ManagedServiceIdentity = Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity AppServiceCertificate = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificate AzureStorageInfoValue = Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageInfoValue + ManagedServiceIdentity = Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity DomainAvailablilityCheckResult = Azure::Web::Mgmt::V2018_02_01::Models::DomainAvailablilityCheckResult DomainControlCenterSsoRequest = Azure::Web::Mgmt::V2018_02_01::Models::DomainControlCenterSsoRequest DomainPurchaseConsent = Azure::Web::Mgmt::V2018_02_01::Models::DomainPurchaseConsent @@ -358,7 +359,6 @@ module Models DeletedWebAppCollection = Azure::Web::Mgmt::V2018_02_01::Models::DeletedWebAppCollection ResourceNameAvailability = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability AbnormalTimePeriod = Azure::Web::Mgmt::V2018_02_01::Models::AbnormalTimePeriod - ResourceMetricName = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricName end class WebManagementClass @@ -404,6 +404,9 @@ def method_missing(method, *args) end class ModelClasses + def experiments + Azure::Web::Mgmt::V2018_02_01::Models::Experiments + end def data_source Azure::Web::Mgmt::V2018_02_01::Models::DataSource end @@ -506,8 +509,8 @@ def stack_minor_version 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 + 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 @@ -533,11 +536,11 @@ def diagnostic_metric_sample def reissue_certificate_order_request Azure::Web::Mgmt::V2018_02_01::Models::ReissueCertificateOrderRequest end - def renew_certificate_order_request - Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest + def diagnostic_metric_set + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSet end - def experiments - Azure::Web::Mgmt::V2018_02_01::Models::Experiments + def vnet_route + Azure::Web::Mgmt::V2018_02_01::Models::VnetRoute end def vnet_info Azure::Web::Mgmt::V2018_02_01::Models::VnetInfo @@ -551,8 +554,8 @@ def user def hybrid_connection Azure::Web::Mgmt::V2018_02_01::Models::HybridConnection end - def vnet_route - Azure::Web::Mgmt::V2018_02_01::Models::VnetRoute + def resource_metric_definition + Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinition end def app_service_certificate_resource Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource @@ -575,8 +578,8 @@ def certificate_order_action def analysis_definition Azure::Web::Mgmt::V2018_02_01::Models::AnalysisDefinition end - def detector_response - Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponse + def renew_certificate_order_request + Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest end def site Azure::Web::Mgmt::V2018_02_01::Models::Site @@ -584,8 +587,8 @@ def site def app_service_plan Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlan end - def resource_metric_definition - Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinition + def top_level_domain + Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomain end def push_settings Azure::Web::Mgmt::V2018_02_01::Models::PushSettings @@ -596,29 +599,29 @@ def deleted_site def diagnostic_analysis Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis end - def diagnostic_category - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory - end def identifier Azure::Web::Mgmt::V2018_02_01::Models::Identifier end + def diagnostic_detector_response + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse + end def detector_definition Azure::Web::Mgmt::V2018_02_01::Models::DetectorDefinition end def recommendation_rule Azure::Web::Mgmt::V2018_02_01::Models::RecommendationRule end - def vnet_parameters - Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters + def detector_response + Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponse end def certificate_patch_resource Azure::Web::Mgmt::V2018_02_01::Models::CertificatePatchResource end - def geo_region - Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion + def diagnostic_category + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory end - def diagnostic_detector_response - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse + def premier_add_on_offer + Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOffer end def recommendation Azure::Web::Mgmt::V2018_02_01::Models::Recommendation @@ -629,20 +632,20 @@ def domain_ownership_identifier 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 + def billing_meter + Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter end - def azure_storage_property_dictionary_resource - Azure::Web::Mgmt::V2018_02_01::Models::AzureStoragePropertyDictionaryResource + def geo_region + Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion end - def premier_add_on_offer - Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOffer + def deleted_app_restore_request + Azure::Web::Mgmt::V2018_02_01::Models::DeletedAppRestoreRequest end def source_control Azure::Web::Mgmt::V2018_02_01::Models::SourceControl end - def private_access - Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccess + def vnet_parameters + Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters end def vnet_validation_test_failure Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationTestFailure @@ -650,8 +653,8 @@ def vnet_validation_test_failure def operation Azure::Web::Mgmt::V2018_02_01::Models::Operation end - def billing_meter - Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter + def slot_config_names_resource + Azure::Web::Mgmt::V2018_02_01::Models::SlotConfigNamesResource end def slot_difference Azure::Web::Mgmt::V2018_02_01::Models::SlotDifference @@ -683,14 +686,14 @@ def managed_service_identity_type def log_specification Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification end - def deleted_app_restore_request - Azure::Web::Mgmt::V2018_02_01::Models::DeletedAppRestoreRequest + def site_configuration_snapshot_info + Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo end def service_specification Azure::Web::Mgmt::V2018_02_01::Models::ServiceSpecification end - def site_instance - Azure::Web::Mgmt::V2018_02_01::Models::SiteInstance + def private_access + Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccess end def site_logs_config Azure::Web::Mgmt::V2018_02_01::Models::SiteLogsConfig @@ -704,8 +707,8 @@ def site_php_error_log_flag def site_source_control Azure::Web::Mgmt::V2018_02_01::Models::SiteSourceControl end - def slot_config_names_resource - Azure::Web::Mgmt::V2018_02_01::Models::SlotConfigNamesResource + def certificate_order_action_type + Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderActionType end def ip_filter_tag Azure::Web::Mgmt::V2018_02_01::Models::IpFilterTag @@ -731,8 +734,8 @@ def route_type def resource_health_metadata Azure::Web::Mgmt::V2018_02_01::Models::ResourceHealthMetadata end - def auto_heal_action_type - Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType + def azure_storage_property_dictionary_resource + Azure::Web::Mgmt::V2018_02_01::Models::AzureStoragePropertyDictionaryResource end def connection_string_type Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringType @@ -740,14 +743,14 @@ def connection_string_type def premier_add_on_patch_resource Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnPatchResource end - def site_configuration_snapshot_info - Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo + def managed_pipeline_mode + Azure::Web::Mgmt::V2018_02_01::Models::ManagedPipelineMode end def site_extension_info Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfo end - def swift_virtual_network - Azure::Web::Mgmt::V2018_02_01::Models::SwiftVirtualNetwork + def site_instance + Azure::Web::Mgmt::V2018_02_01::Models::SiteInstance end def certificate_product_type Azure::Web::Mgmt::V2018_02_01::Models::CertificateProductType @@ -755,23 +758,23 @@ def certificate_product_type def key_vault_secret_status Azure::Web::Mgmt::V2018_02_01::Models::KeyVaultSecretStatus end - def certificate_order_action_type - Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderActionType - end - def site_availability_state - Azure::Web::Mgmt::V2018_02_01::Models::SiteAvailabilityState + def usage_state + Azure::Web::Mgmt::V2018_02_01::Models::UsageState end def certificate Azure::Web::Mgmt::V2018_02_01::Models::Certificate end + def auto_heal_action_type + Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType + end def host_name_type Azure::Web::Mgmt::V2018_02_01::Models::HostNameType end def scm_type Azure::Web::Mgmt::V2018_02_01::Models::ScmType end - def managed_pipeline_mode - Azure::Web::Mgmt::V2018_02_01::Models::ManagedPipelineMode + def domain_status + Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus end def dns_type Azure::Web::Mgmt::V2018_02_01::Models::DnsType @@ -785,11 +788,11 @@ def ssl_state def host_type Azure::Web::Mgmt::V2018_02_01::Models::HostType end - def usage_state - Azure::Web::Mgmt::V2018_02_01::Models::UsageState + def resource_scope_type + Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType end - def notification_level - Azure::Web::Mgmt::V2018_02_01::Models::NotificationLevel + def site_availability_state + Azure::Web::Mgmt::V2018_02_01::Models::SiteAvailabilityState end def status_options Azure::Web::Mgmt::V2018_02_01::Models::StatusOptions @@ -800,8 +803,8 @@ def hosting_environment_status def site_config_resource Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResource end - def compute_mode_options - Azure::Web::Mgmt::V2018_02_01::Models::ComputeModeOptions + def swift_virtual_network + Azure::Web::Mgmt::V2018_02_01::Models::SwiftVirtualNetwork end def worker_size_options Azure::Web::Mgmt::V2018_02_01::Models::WorkerSizeOptions @@ -824,8 +827,8 @@ def custom_host_name_dns_record_type def ftps_state Azure::Web::Mgmt::V2018_02_01::Models::FtpsState end - def domain_status - Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus + def app_service_plan_restrictions + Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions end def in_availability_reason_type Azure::Web::Mgmt::V2018_02_01::Models::InAvailabilityReasonType @@ -833,8 +836,8 @@ def in_availability_reason_type def internal_load_balancing_mode Azure::Web::Mgmt::V2018_02_01::Models::InternalLoadBalancingMode end - def issue_type - Azure::Web::Mgmt::V2018_02_01::Models::IssueType + def compute_mode_options + Azure::Web::Mgmt::V2018_02_01::Models::ComputeModeOptions end def app_service_environment_collection Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentCollection @@ -887,14 +890,14 @@ def app_service_plan_patch_resource def hybrid_connection_limits Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionLimits end - def msdeploy_provisioning_state - Azure::Web::Mgmt::V2018_02_01::Models::MSDeployProvisioningState + def notification_level + Azure::Web::Mgmt::V2018_02_01::Models::NotificationLevel end def channels Azure::Web::Mgmt::V2018_02_01::Models::Channels end - def app_service_plan_restrictions - Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions + def public_certificate_location + Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateLocation end def unauthenticated_client_action Azure::Web::Mgmt::V2018_02_01::Models::UnauthenticatedClientAction @@ -902,8 +905,8 @@ def unauthenticated_client_action def check_name_resource_types Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes end - def validate_resource_types - Azure::Web::Mgmt::V2018_02_01::Models::ValidateResourceTypes + def issue_type + Azure::Web::Mgmt::V2018_02_01::Models::IssueType end def site_extension_type Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionType @@ -923,8 +926,8 @@ def solution_type def frequency_unit Azure::Web::Mgmt::V2018_02_01::Models::FrequencyUnit end - def resource_scope_type - Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType + def backup_restore_operation_type + Azure::Web::Mgmt::V2018_02_01::Models::BackupRestoreOperationType end def continuous_web_job_status Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus @@ -938,9 +941,15 @@ def publishing_profile_format def dns_verification_test_result Azure::Web::Mgmt::V2018_02_01::Models::DnsVerificationTestResult end + def validate_resource_types + Azure::Web::Mgmt::V2018_02_01::Models::ValidateResourceTypes + end def msdeploy_log_entry_type Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntryType end + def msdeploy_provisioning_state + Azure::Web::Mgmt::V2018_02_01::Models::MSDeployProvisioningState + end def my_sql_migration_type Azure::Web::Mgmt::V2018_02_01::Models::MySqlMigrationType end @@ -962,15 +971,9 @@ def backup_item_status def database_type Azure::Web::Mgmt::V2018_02_01::Models::DatabaseType end - def backup_restore_operation_type - Azure::Web::Mgmt::V2018_02_01::Models::BackupRestoreOperationType - end def access_control_entry_action Azure::Web::Mgmt::V2018_02_01::Models::AccessControlEntryAction end - def public_certificate_location - Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateLocation - end def dimension Azure::Web::Mgmt::V2018_02_01::Models::Dimension end @@ -1190,15 +1193,15 @@ def snapshot_recovery_source def site_seal_request Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest end - def managed_service_identity - Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity - end def app_service_certificate Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificate end def azure_storage_info_value Azure::Web::Mgmt::V2018_02_01::Models::AzureStorageInfoValue end + def managed_service_identity + Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity + end def domain_availablility_check_result Azure::Web::Mgmt::V2018_02_01::Models::DomainAvailablilityCheckResult end @@ -1409,9 +1412,6 @@ def resource_name_availability def abnormal_time_period Azure::Web::Mgmt::V2018_02_01::Models::AbnormalTimePeriod end - def resource_metric_name - Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricName - end end end end diff --git a/azure_sdk/lib/latest/modules/websearch_profile_module.rb b/azure_sdk/lib/latest/modules/websearch_profile_module.rb index b3900e0b76..a2fdf3798f 100644 --- a/azure_sdk/lib/latest/modules/websearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/websearch_profile_module.rb @@ -14,14 +14,14 @@ module Models Videos = Azure::CognitiveServices::WebSearch::V1_0::Models::Videos AnswerType = Azure::CognitiveServices::WebSearch::V1_0::Models::AnswerType NewsArticle = Azure::CognitiveServices::WebSearch::V1_0::Models::NewsArticle - News = Azure::CognitiveServices::WebSearch::V1_0::Models::News Response = Azure::CognitiveServices::WebSearch::V1_0::Models::Response + News = Azure::CognitiveServices::WebSearch::V1_0::Models::News ResponseBase = Azure::CognitiveServices::WebSearch::V1_0::Models::ResponseBase QueryContext = Azure::CognitiveServices::WebSearch::V1_0::Models::QueryContext VideoObject = Azure::CognitiveServices::WebSearch::V1_0::Models::VideoObject - RankingRankingItem = Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem - RankingRankingGroup = Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingGroup + Query = Azure::CognitiveServices::WebSearch::V1_0::Models::Query RankingRankingResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingResponse + RankingRankingItem = Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem SearchResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResponse Computation = Azure::CognitiveServices::WebSearch::V1_0::Models::Computation Identifiable = Azure::CognitiveServices::WebSearch::V1_0::Models::Identifiable @@ -33,14 +33,14 @@ module Models WebPage = Azure::CognitiveServices::WebSearch::V1_0::Models::WebPage WebWebGrouping = Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebGrouping TimeZone = Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZone - Query = Azure::CognitiveServices::WebSearch::V1_0::Models::Query - WebMetaTag = Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag + SafeSearch = Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch + RankingRankingGroup = Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingGroup SpellSuggestions = Azure::CognitiveServices::WebSearch::V1_0::Models::SpellSuggestions WebWebAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebAnswer Article = Azure::CognitiveServices::WebSearch::V1_0::Models::Article ErrorCode = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorCode RelatedSearchesRelatedSearchAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::RelatedSearchesRelatedSearchAnswer - SafeSearch = Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch + WebMetaTag = Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag TextFormat = Azure::CognitiveServices::WebSearch::V1_0::Models::TextFormat ErrorSubCode = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorSubCode ErrorResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorResponse @@ -48,8 +48,8 @@ module Models ImageObject = Azure::CognitiveServices::WebSearch::V1_0::Models::ImageObject Places = Azure::CognitiveServices::WebSearch::V1_0::Models::Places Intangible = Azure::CognitiveServices::WebSearch::V1_0::Models::Intangible - MediaObject = Azure::CognitiveServices::WebSearch::V1_0::Models::MediaObject Error = Azure::CognitiveServices::WebSearch::V1_0::Models::Error + MediaObject = Azure::CognitiveServices::WebSearch::V1_0::Models::MediaObject end class WebSearchDataClass @@ -97,12 +97,12 @@ def answer_type def news_article Azure::CognitiveServices::WebSearch::V1_0::Models::NewsArticle end - def news - Azure::CognitiveServices::WebSearch::V1_0::Models::News - end def response Azure::CognitiveServices::WebSearch::V1_0::Models::Response end + def news + Azure::CognitiveServices::WebSearch::V1_0::Models::News + end def response_base Azure::CognitiveServices::WebSearch::V1_0::Models::ResponseBase end @@ -112,15 +112,15 @@ def query_context def video_object Azure::CognitiveServices::WebSearch::V1_0::Models::VideoObject end - def ranking_ranking_item - Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem - end - def ranking_ranking_group - Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingGroup + def query + Azure::CognitiveServices::WebSearch::V1_0::Models::Query end def ranking_ranking_response Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingResponse end + def ranking_ranking_item + Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem + end def search_response Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResponse end @@ -154,11 +154,11 @@ def web_web_grouping def time_zone Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZone end - def query - Azure::CognitiveServices::WebSearch::V1_0::Models::Query + def safe_search + Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch end - def web_meta_tag - Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag + def ranking_ranking_group + Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingGroup end def spell_suggestions Azure::CognitiveServices::WebSearch::V1_0::Models::SpellSuggestions @@ -175,8 +175,8 @@ def error_code def related_searches_related_search_answer Azure::CognitiveServices::WebSearch::V1_0::Models::RelatedSearchesRelatedSearchAnswer end - def safe_search - Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch + def web_meta_tag + Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag end def text_format Azure::CognitiveServices::WebSearch::V1_0::Models::TextFormat @@ -199,12 +199,12 @@ def places def intangible Azure::CognitiveServices::WebSearch::V1_0::Models::Intangible end - def media_object - Azure::CognitiveServices::WebSearch::V1_0::Models::MediaObject - end def error Azure::CognitiveServices::WebSearch::V1_0::Models::Error end + def media_object + Azure::CognitiveServices::WebSearch::V1_0::Models::MediaObject + 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 b9f1f65840..6c7c83cd37 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 @@ -18,6 +18,7 @@ module Mgmt VirtualMachineScaleSetVMs = Azure::Compute::Mgmt::V2016_03_30::VirtualMachineScaleSetVMs module Models + 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 @@ -118,7 +119,6 @@ module Models 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 end class ComputeManagementClass @@ -159,6 +159,9 @@ def method_missing(method, *args) end class ModelClasses + def network_profile + Azure::Compute::Mgmt::V2016_03_30::Models::NetworkProfile + end def diagnostics_profile Azure::Compute::Mgmt::V2016_03_30::Models::DiagnosticsProfile end @@ -459,9 +462,6 @@ def vault_certificate def osprofile Azure::Compute::Mgmt::V2016_03_30::Models::OSProfile end - def network_profile - Azure::Compute::Mgmt::V2016_03_30::Models::NetworkProfile - 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 9699702a9b..1a8f74bacb 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 @@ -19,10 +19,10 @@ 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 - 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 + CnameRecord = Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord ZoneListResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult - ZoneDeleteResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult TxtRecord = Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord NsRecord = Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord SoaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord @@ -90,18 +90,18 @@ def ptr_record def srv_record Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord end - def cname_record - Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord + def zone_delete_result + Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult end def record_set Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet end + def cname_record + Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord + end def zone_list_result Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult end - def zone_delete_result - Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult - end def txt_record Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord 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 1fd5c1063d..45dc82f0df 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 Operation = Azure::Features::Mgmt::V2015_12_01::Models::Operation OperationListResult = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult - OperationDisplay = Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay end class FeaturesManagementClass @@ -48,6 +48,9 @@ def method_missing(method, *args) end class ModelClasses + def operation_display + Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay + end def operation Azure::Features::Mgmt::V2015_12_01::Models::Operation end @@ -63,9 +66,6 @@ def feature_operations_list_result def feature_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult end - def operation_display - Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay - 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 060cc39542..963b151852 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 @@ -65,8 +65,8 @@ module Models BackupKeyResult = Azure::KeyVault::V2016_10_01::Models::BackupKeyResult SecretItem = Azure::KeyVault::V2016_10_01::Models::SecretItem BackupSecretResult = Azure::KeyVault::V2016_10_01::Models::BackupSecretResult - SecretProperties = Azure::KeyVault::V2016_10_01::Models::SecretProperties Error = Azure::KeyVault::V2016_10_01::Models::Error + SecretProperties = Azure::KeyVault::V2016_10_01::Models::SecretProperties PendingCertificateSigningRequestResult = Azure::KeyVault::V2016_10_01::Models::PendingCertificateSigningRequestResult CertificateBundle = Azure::KeyVault::V2016_10_01::Models::CertificateBundle StorageAccountAttributes = Azure::KeyVault::V2016_10_01::Models::StorageAccountAttributes @@ -295,12 +295,12 @@ def secret_item def backup_secret_result Azure::KeyVault::V2016_10_01::Models::BackupSecretResult end - def secret_properties - Azure::KeyVault::V2016_10_01::Models::SecretProperties - end def error Azure::KeyVault::V2016_10_01::Models::Error end + def secret_properties + Azure::KeyVault::V2016_10_01::Models::SecretProperties + end def pending_certificate_signing_request_result Azure::KeyVault::V2016_10_01::Models::PendingCertificateSigningRequestResult end @@ -391,8 +391,8 @@ def json_web_key_signature_algorithm end end module Mgmt - Vaults = Azure::KeyVault::Mgmt::V2016_10_01::Vaults Operations = Azure::KeyVault::Mgmt::V2016_10_01::Operations + Vaults = Azure::KeyVault::Mgmt::V2016_10_01::Vaults module Models Permissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions @@ -412,24 +412,24 @@ module Models VaultPatchProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchProperties CheckNameAvailabilityResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::CheckNameAvailabilityResult VaultPatchParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchParameters - LogSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification + AccessPolicyEntry = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry DeletedVaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties ServiceSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::ServiceSpecification - AccessPolicyEntry = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry + LogSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification SkuName = Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName Vault = Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault SecretPermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::SecretPermissions 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 - AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind + 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 - Reason = Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason end class KeyVaultManagementClass - attr_reader :vaults, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :vaults, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -439,8 +439,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @vaults = @client_0.vaults @operations = @client_0.operations + @vaults = @client_0.vaults @model_classes = ModelClasses.new end @@ -510,8 +510,8 @@ def check_name_availability_result def vault_patch_parameters Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchParameters end - def log_specification - Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification + def access_policy_entry + Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry end def deleted_vault_properties Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties @@ -519,8 +519,8 @@ def deleted_vault_properties def service_specification Azure::KeyVault::Mgmt::V2016_10_01::Models::ServiceSpecification end - def access_policy_entry - Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry + def log_specification + Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification end def sku_name Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName @@ -540,18 +540,18 @@ def storage_permissions def certificate_permissions Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions end - def access_policy_update_kind - Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind + 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 reason - Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason - 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 a8d8957bb6..c854930966 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 @@ -7,10 +7,11 @@ module Azure::Profiles::V2017_03_09 module Links module Mgmt - ResourceLinks = Azure::Links::Mgmt::V2016_09_01::ResourceLinks Operations = Azure::Links::Mgmt::V2016_09_01::Operations + ResourceLinks = Azure::Links::Mgmt::V2016_09_01::ResourceLinks module Models + OperationDisplay = Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay Operation = Azure::Links::Mgmt::V2016_09_01::Models::Operation OperationListResult = Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult ResourceLinkResult = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkResult @@ -18,11 +19,10 @@ module Models ResourceLinkFilter = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink Filter = Azure::Links::Mgmt::V2016_09_01::Models::Filter - OperationDisplay = Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay end class LinksManagementClass - attr_reader :resource_links, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :resource_links, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -32,8 +32,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @resource_links = @client_0.resource_links @operations = @client_0.operations + @resource_links = @client_0.resource_links @model_classes = ModelClasses.new end @@ -52,6 +52,9 @@ def method_missing(method, *args) end class ModelClasses + def operation_display + Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay + end def operation Azure::Links::Mgmt::V2016_09_01::Models::Operation end @@ -73,9 +76,6 @@ def resource_link def filter Azure::Links::Mgmt::V2016_09_01::Models::Filter end - def operation_display - Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay - end end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb index 44b879f9e8..1dd59375c2 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 @@ -68,35 +68,35 @@ module Models ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitAuthorization ApplicationGatewayBackendHttpSettings = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendHttpSettings ApplicationGatewayBackendAddressPool = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddressPool - 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 ExpressRouteCircuit = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuit - ApplicationGatewayPathRule = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayPathRule + ExpressRouteServiceProvider = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProvider ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeering OutboundNatRule = Azure::Network::Mgmt::V2015_06_15::Models::OutboundNatRule IPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::IPConfiguration IPAllocationMethod = Azure::Network::Mgmt::V2015_06_15::Models::IPAllocationMethod NetworkInterfaceIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceIPConfiguration VirtualNetwork = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetwork - VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayIPConfiguration + ApplicationGatewayPathRule = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayPathRule VpnClientRootCertificate = Azure::Network::Mgmt::V2015_06_15::Models::VpnClientRootCertificate VpnClientRevokedCertificate = Azure::Network::Mgmt::V2015_06_15::Models::VpnClientRevokedCertificate - LoadBalancer = Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancer + VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayIPConfiguration 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 ApplicationGatewayHttpListener = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayHttpListener - ApplicationGatewayProtocol = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProtocol + LoadBalancer = Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancer ApplicationGatewayProbe = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProbe ApplicationGatewaySkuName = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySkuName ApplicationGatewayTier = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayTier SecurityRuleAccess = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleAccess SecurityRuleDirection = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleDirection TransportProtocol = Azure::Network::Mgmt::V2015_06_15::Models::TransportProtocol - FrontendIPConfiguration = Azure::Network::Mgmt::V2015_06_15::Models::FrontendIPConfiguration ApplicationGatewayRequestRoutingRuleType = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayRequestRoutingRuleType + ApplicationGatewayProtocol = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProtocol RouteNextHopType = Azure::Network::Mgmt::V2015_06_15::Models::RouteNextHopType SecurityRuleProtocol = Azure::Network::Mgmt::V2015_06_15::Models::SecurityRuleProtocol AuthorizationUseStatus = Azure::Network::Mgmt::V2015_06_15::Models::AuthorizationUseStatus @@ -317,8 +317,8 @@ def application_gateway_backend_http_settings def application_gateway_backend_address_pool Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddressPool end - def express_route_service_provider - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProvider + def frontend_ipconfiguration + Azure::Network::Mgmt::V2015_06_15::Models::FrontendIPConfiguration end def load_balancing_rule Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancingRule @@ -332,8 +332,8 @@ def inbound_nat_pool def express_route_circuit Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuit end - def application_gateway_path_rule - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayPathRule + def express_route_service_provider + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProvider end def express_route_circuit_peering Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeering @@ -353,8 +353,8 @@ def network_interface_ipconfiguration def virtual_network Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetwork end - def virtual_network_gateway_ipconfiguration - Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayIPConfiguration + def application_gateway_path_rule + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayPathRule end def vpn_client_root_certificate Azure::Network::Mgmt::V2015_06_15::Models::VpnClientRootCertificate @@ -362,8 +362,8 @@ def vpn_client_root_certificate def vpn_client_revoked_certificate Azure::Network::Mgmt::V2015_06_15::Models::VpnClientRevokedCertificate end - def load_balancer - Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancer + def virtual_network_gateway_ipconfiguration + Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayIPConfiguration end def virtual_network_gateway Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGateway @@ -377,8 +377,8 @@ def virtual_network_gateway_connection def application_gateway_http_listener Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayHttpListener end - def application_gateway_protocol - Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProtocol + def load_balancer + Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancer end def application_gateway_probe Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProbe @@ -398,12 +398,12 @@ def security_rule_direction def transport_protocol Azure::Network::Mgmt::V2015_06_15::Models::TransportProtocol end - def frontend_ipconfiguration - Azure::Network::Mgmt::V2015_06_15::Models::FrontendIPConfiguration - end def application_gateway_request_routing_rule_type Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayRequestRoutingRuleType end + def application_gateway_protocol + Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayProtocol + end def route_next_hop_type Azure::Network::Mgmt::V2015_06_15::Models::RouteNextHopType 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 734edd59a4..97f6ea3e16 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 @@ -11,8 +11,8 @@ module Mgmt Providers = Azure::Resources::Mgmt::V2016_02_01::Providers ResourceGroups = Azure::Resources::Mgmt::V2016_02_01::ResourceGroups Tags = Azure::Resources::Mgmt::V2016_02_01::Tags - DeploymentOperations = Azure::Resources::Mgmt::V2016_02_01::DeploymentOperations Resources = Azure::Resources::Mgmt::V2016_02_01::Resources + DeploymentOperations = Azure::Resources::Mgmt::V2016_02_01::DeploymentOperations module Models GenericResourceFilter = Azure::Resources::Mgmt::V2016_02_01::Models::GenericResourceFilter @@ -24,10 +24,11 @@ module Models 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 + Dependency = Azure::Resources::Mgmt::V2016_02_01::Models::Dependency 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 DeploymentExtended = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtended TagCount = Azure::Resources::Mgmt::V2016_02_01::Models::TagCount @@ -37,7 +38,7 @@ module Models TagDetails = Azure::Resources::Mgmt::V2016_02_01::Models::TagDetails DeploymentProperties = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentProperties TagsListResult = Azure::Resources::Mgmt::V2016_02_01::Models::TagsListResult - DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentPropertiesExtended + AliasPathType = Azure::Resources::Mgmt::V2016_02_01::Models::AliasPathType TargetResource = Azure::Resources::Mgmt::V2016_02_01::Models::TargetResource BasicDependency = Azure::Resources::Mgmt::V2016_02_01::Models::BasicDependency HttpMessage = Azure::Resources::Mgmt::V2016_02_01::Models::HttpMessage @@ -47,7 +48,6 @@ module Models DeploymentOperation = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentOperation DeploymentExportResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExportResult DeploymentOperationsListResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentOperationsListResult - 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 @@ -64,7 +64,7 @@ module Models end class ResourcesManagementClass - attr_reader :deployments, :providers, :resource_groups, :tags, :deployment_operations, :resources, :configurable, :base_url, :options, :model_classes + attr_reader :deployments, :providers, :resource_groups, :tags, :resources, :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,8 +78,8 @@ def initialize(configurable, base_url=nil, options=nil) @providers = @client_0.providers @resource_groups = @client_0.resource_groups @tags = @client_0.tags - @deployment_operations = @client_0.deployment_operations @resources = @client_0.resources + @deployment_operations = @client_0.deployment_operations @model_classes = ModelClasses.new end @@ -125,6 +125,9 @@ def resource_group def alias_type Azure::Resources::Mgmt::V2016_02_01::Models::AliasType end + def dependency + Azure::Resources::Mgmt::V2016_02_01::Models::Dependency + end def provider Azure::Resources::Mgmt::V2016_02_01::Models::Provider end @@ -134,8 +137,8 @@ def resource_group_list_result 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 @@ -164,8 +167,8 @@ def deployment_properties def tags_list_result Azure::Resources::Mgmt::V2016_02_01::Models::TagsListResult end - def deployment_properties_extended - Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentPropertiesExtended + def alias_path_type + Azure::Resources::Mgmt::V2016_02_01::Models::AliasPathType end def target_resource Azure::Resources::Mgmt::V2016_02_01::Models::TargetResource @@ -194,9 +197,6 @@ def deployment_export_result def deployment_operations_list_result Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentOperationsListResult end - def alias_path_type - Azure::Resources::Mgmt::V2016_02_01::Models::AliasPathType - end def resource_provider_operation_display_properties Azure::Resources::Mgmt::V2016_02_01::Models::ResourceProviderOperationDisplayProperties 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 3d44440141..7c9e8c0bb7 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,8 +7,8 @@ module Azure::Profiles::V2017_03_09 module Storage module Mgmt - UsageOperations = Azure::Storage::Mgmt::V2016_01_01::UsageOperations StorageAccounts = Azure::Storage::Mgmt::V2016_01_01::StorageAccounts + UsageOperations = Azure::Storage::Mgmt::V2016_01_01::UsageOperations module Models StorageAccountCreateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters @@ -21,7 +21,7 @@ module Models 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 CustomDomain = Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain EncryptionServices = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices @@ -29,20 +29,20 @@ module Models StorageAccount = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount Usage = Azure::Storage::Mgmt::V2016_01_01::Models::Usage SkuTier = Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier - Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason + AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier SkuName = Azure::Storage::Mgmt::V2016_01_01::Models::SkuName - StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters + Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason Kind = Azure::Storage::Mgmt::V2016_01_01::Models::Kind AccountStatus = Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus - AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier - UsageUnit = Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit + KeyPermission = Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission + Encryption = Azure::Storage::Mgmt::V2016_01_01::Models::Encryption Sku = Azure::Storage::Mgmt::V2016_01_01::Models::Sku UsageName = Azure::Storage::Mgmt::V2016_01_01::Models::UsageName - KeyPermission = Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission + UsageUnit = Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit end class StorageManagementClass - attr_reader :usage_operations, :storage_accounts, :configurable, :base_url, :options, :model_classes + attr_reader :storage_accounts, :usage_operations, :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) - @usage_operations = @client_0.usage_operations @storage_accounts = @client_0.storage_accounts + @usage_operations = @client_0.usage_operations @model_classes = ModelClasses.new end @@ -102,8 +102,8 @@ def encryption_service def storage_account_list_keys_result Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult end - def encryption - Azure::Storage::Mgmt::V2016_01_01::Models::Encryption + def storage_account_regenerate_key_parameters + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters end def endpoints Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints @@ -126,14 +126,14 @@ def usage def sku_tier Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier end - def reason - Azure::Storage::Mgmt::V2016_01_01::Models::Reason + def access_tier + Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier end def sku_name Azure::Storage::Mgmt::V2016_01_01::Models::SkuName end - def storage_account_regenerate_key_parameters - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters + def reason + Azure::Storage::Mgmt::V2016_01_01::Models::Reason end def kind Azure::Storage::Mgmt::V2016_01_01::Models::Kind @@ -141,11 +141,11 @@ def kind def account_status Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus end - def access_tier - Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + def key_permission + Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission end - def usage_unit - Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit + def encryption + Azure::Storage::Mgmt::V2016_01_01::Models::Encryption end def sku Azure::Storage::Mgmt::V2016_01_01::Models::Sku @@ -153,8 +153,8 @@ def sku def usage_name Azure::Storage::Mgmt::V2016_01_01::Models::UsageName end - def key_permission - Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission + def usage_unit + Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit 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 4726bc6af2..3c5710c0c4 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 @@ -25,6 +25,7 @@ module Mgmt VirtualMachineRunCommands = Azure::Compute::Mgmt::V2017_03_30::VirtualMachineRunCommands module Models + NetworkProfile = Azure::Compute::Mgmt::V2017_03_30::Models::NetworkProfile KeyVaultAndSecretReference = Azure::Compute::Mgmt::V2017_03_30::Models::KeyVaultAndSecretReference DiagnosticsProfile = Azure::Compute::Mgmt::V2017_03_30::Models::DiagnosticsProfile SourceVault = Azure::Compute::Mgmt::V2017_03_30::Models::SourceVault @@ -193,7 +194,6 @@ module Models VirtualMachineScaleSetPublicIPAddressConfiguration = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetPublicIPAddressConfiguration OSProfile = Azure::Compute::Mgmt::V2017_03_30::Models::OSProfile VirtualMachineScaleSetUpdatePublicIPAddressConfiguration = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration - NetworkProfile = Azure::Compute::Mgmt::V2017_03_30::Models::NetworkProfile end class ComputeManagementClass @@ -241,6 +241,9 @@ def method_missing(method, *args) end class ModelClasses + def network_profile + Azure::Compute::Mgmt::V2017_03_30::Models::NetworkProfile + end def key_vault_and_secret_reference Azure::Compute::Mgmt::V2017_03_30::Models::KeyVaultAndSecretReference end @@ -745,9 +748,6 @@ def osprofile def virtual_machine_scale_set_update_public_ipaddress_configuration Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration end - def network_profile - Azure::Compute::Mgmt::V2017_03_30::Models::NetworkProfile - 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 5702f19cdb..f1aacc7d8c 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 @@ -19,10 +19,10 @@ 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 - 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 + CnameRecord = Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord ZoneListResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult - ZoneDeleteResult = Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult TxtRecord = Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord NsRecord = Azure::Dns::Mgmt::V2016_04_01::Models::NsRecord SoaRecord = Azure::Dns::Mgmt::V2016_04_01::Models::SoaRecord @@ -90,18 +90,18 @@ def ptr_record def srv_record Azure::Dns::Mgmt::V2016_04_01::Models::SrvRecord end - def cname_record - Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord + def zone_delete_result + Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult end def record_set Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet end + def cname_record + Azure::Dns::Mgmt::V2016_04_01::Models::CnameRecord + end def zone_list_result Azure::Dns::Mgmt::V2016_04_01::Models::ZoneListResult end - def zone_delete_result - Azure::Dns::Mgmt::V2016_04_01::Models::ZoneDeleteResult - end def txt_record Azure::Dns::Mgmt::V2016_04_01::Models::TxtRecord 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 bf21241f68..249acff709 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 @@ -65,8 +65,8 @@ module Models BackupKeyResult = Azure::KeyVault::V2016_10_01::Models::BackupKeyResult SecretItem = Azure::KeyVault::V2016_10_01::Models::SecretItem BackupSecretResult = Azure::KeyVault::V2016_10_01::Models::BackupSecretResult - SecretProperties = Azure::KeyVault::V2016_10_01::Models::SecretProperties Error = Azure::KeyVault::V2016_10_01::Models::Error + SecretProperties = Azure::KeyVault::V2016_10_01::Models::SecretProperties PendingCertificateSigningRequestResult = Azure::KeyVault::V2016_10_01::Models::PendingCertificateSigningRequestResult CertificateBundle = Azure::KeyVault::V2016_10_01::Models::CertificateBundle StorageAccountAttributes = Azure::KeyVault::V2016_10_01::Models::StorageAccountAttributes @@ -295,12 +295,12 @@ def secret_item def backup_secret_result Azure::KeyVault::V2016_10_01::Models::BackupSecretResult end - def secret_properties - Azure::KeyVault::V2016_10_01::Models::SecretProperties - end def error Azure::KeyVault::V2016_10_01::Models::Error end + def secret_properties + Azure::KeyVault::V2016_10_01::Models::SecretProperties + end def pending_certificate_signing_request_result Azure::KeyVault::V2016_10_01::Models::PendingCertificateSigningRequestResult end @@ -391,8 +391,8 @@ def json_web_key_signature_algorithm end end module Mgmt - Vaults = Azure::KeyVault::Mgmt::V2016_10_01::Vaults Operations = Azure::KeyVault::Mgmt::V2016_10_01::Operations + Vaults = Azure::KeyVault::Mgmt::V2016_10_01::Vaults module Models Permissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions @@ -412,24 +412,24 @@ module Models VaultPatchProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchProperties CheckNameAvailabilityResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::CheckNameAvailabilityResult VaultPatchParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchParameters - LogSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification + AccessPolicyEntry = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry DeletedVaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties ServiceSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::ServiceSpecification - AccessPolicyEntry = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry + LogSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification SkuName = Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName Vault = Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault SecretPermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::SecretPermissions 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 - AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind + 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 - Reason = Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason end class KeyVaultManagementClass - attr_reader :vaults, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :vaults, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -439,8 +439,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @vaults = @client_0.vaults @operations = @client_0.operations + @vaults = @client_0.vaults @model_classes = ModelClasses.new end @@ -510,8 +510,8 @@ def check_name_availability_result def vault_patch_parameters Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchParameters end - def log_specification - Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification + def access_policy_entry + Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry end def deleted_vault_properties Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties @@ -519,8 +519,8 @@ def deleted_vault_properties def service_specification Azure::KeyVault::Mgmt::V2016_10_01::Models::ServiceSpecification end - def access_policy_entry - Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry + def log_specification + Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification end def sku_name Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName @@ -540,18 +540,18 @@ def storage_permissions def certificate_permissions Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions end - def access_policy_update_kind - Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind + 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 reason - Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason - end end end end diff --git a/azure_sdk/lib/v2018_03_01/modules/locks_profile_module.rb b/azure_sdk/lib/v2018_03_01/modules/locks_profile_module.rb index c7e24cfc18..970e0b4e60 100644 --- a/azure_sdk/lib/v2018_03_01/modules/locks_profile_module.rb +++ b/azure_sdk/lib/v2018_03_01/modules/locks_profile_module.rb @@ -11,13 +11,13 @@ module Mgmt ManagementLocks = Azure::Locks::Mgmt::V2016_09_01::ManagementLocks module Models + OperationDisplay = Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay ManagementLockOwner = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner Operation = Azure::Locks::Mgmt::V2016_09_01::Models::Operation ManagementLockListResult = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult OperationListResult = Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult ManagementLockObject = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject LockLevel = Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel - OperationDisplay = Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay end class LocksManagementClass @@ -51,6 +51,9 @@ def method_missing(method, *args) end class ModelClasses + def operation_display + Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay + end def management_lock_owner Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner end @@ -69,9 +72,6 @@ def management_lock_object def lock_level Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel end - def operation_display - Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay - 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 487aafb222..04d6ff4f05 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 @@ -88,10 +88,10 @@ module Models InboundNatRuleListResult = Azure::Network::Mgmt::V2017_10_01::Models::InboundNatRuleListResult 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 Error = Azure::Network::Mgmt::V2017_10_01::Models::Error + LoadBalancerFrontendIPConfigurationListResult = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerFrontendIPConfigurationListResult IpsecPolicy = Azure::Network::Mgmt::V2017_10_01::Models::IpsecPolicy - LoadBalancerLoadBalancingRuleListResult = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerLoadBalancingRuleListResult + 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 VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayListResult @@ -119,22 +119,20 @@ module Models ApplicationGatewayFirewallRuleGroup = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRuleGroup NetworkSecurityGroupListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkSecurityGroupListResult SecurityRuleListResult = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleListResult - GatewayRouteListResult = Azure::Network::Mgmt::V2017_10_01::Models::GatewayRouteListResult AddressSpace = Azure::Network::Mgmt::V2017_10_01::Models::AddressSpace + NetworkWatcherListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcherListResult ApplicationGatewayAvailableWafRuleSetsResult = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult TopologyParameters = Azure::Network::Mgmt::V2017_10_01::Models::TopologyParameters - NetworkWatcherListResult = Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcherListResult DnsNameAvailabilityResult = Azure::Network::Mgmt::V2017_10_01::Models::DnsNameAvailabilityResult - ApplicationSecurityGroupListResult = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationSecurityGroupListResult - EndpointServicesListResult = Azure::Network::Mgmt::V2017_10_01::Models::EndpointServicesListResult Dimension = Azure::Network::Mgmt::V2017_10_01::Models::Dimension + ApplicationSecurityGroupListResult = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationSecurityGroupListResult + LoadBalancerLoadBalancingRuleListResult = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerLoadBalancingRuleListResult AuthorizationListResult = Azure::Network::Mgmt::V2017_10_01::Models::AuthorizationListResult + Topology = Azure::Network::Mgmt::V2017_10_01::Models::Topology Usage = Azure::Network::Mgmt::V2017_10_01::Models::Usage VerificationIPFlowParameters = Azure::Network::Mgmt::V2017_10_01::Models::VerificationIPFlowParameters - Topology = Azure::Network::Mgmt::V2017_10_01::Models::Topology - MetricSpecification = Azure::Network::Mgmt::V2017_10_01::Models::MetricSpecification - BgpServiceCommunityListResult = Azure::Network::Mgmt::V2017_10_01::Models::BgpServiceCommunityListResult VerificationIPFlowResult = Azure::Network::Mgmt::V2017_10_01::Models::VerificationIPFlowResult + MetricSpecification = Azure::Network::Mgmt::V2017_10_01::Models::MetricSpecification Ipv6ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2017_10_01::Models::Ipv6ExpressRouteCircuitPeeringConfig NextHopParameters = Azure::Network::Mgmt::V2017_10_01::Models::NextHopParameters ExpressRouteCircuitSku = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitSku @@ -142,18 +140,20 @@ module Models RouteListResult = Azure::Network::Mgmt::V2017_10_01::Models::RouteListResult SecurityGroupViewParameters = Azure::Network::Mgmt::V2017_10_01::Models::SecurityGroupViewParameters ExpressRouteCircuitsArpTableListResult = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitsArpTableListResult - NetworkInterfaceAssociation = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceAssociation + EndpointServicesListResult = Azure::Network::Mgmt::V2017_10_01::Models::EndpointServicesListResult ExpressRouteCircuitsRoutesTableListResult = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitsRoutesTableListResult - SubnetAssociation = Azure::Network::Mgmt::V2017_10_01::Models::SubnetAssociation + NetworkInterfaceAssociation = Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceAssociation ExpressRouteCircuitsRoutesTableSummaryListResult = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitsRoutesTableSummaryListResult - SecurityRuleAssociations = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleAssociations + SubnetAssociation = Azure::Network::Mgmt::V2017_10_01::Models::SubnetAssociation + BgpServiceCommunityListResult = Azure::Network::Mgmt::V2017_10_01::Models::BgpServiceCommunityListResult + SecurityGroupNetworkInterface = Azure::Network::Mgmt::V2017_10_01::Models::SecurityGroupNetworkInterface ExpressRouteServiceProviderListResult = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteServiceProviderListResult 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 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 + 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 PacketCaptureListResult = Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureListResult @@ -230,53 +230,53 @@ module Models Resource = Azure::Network::Mgmt::V2017_10_01::Models::Resource ApplicationGatewaySslCertificate = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslCertificate ApplicationGatewayAuthenticationCertificate = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAuthenticationCertificate + PacketCaptureParameters = Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureParameters + ApplicationGatewayFrontendIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendIPConfiguration ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendPort - PacketCapture = Azure::Network::Mgmt::V2017_10_01::Models::PacketCapture - ApplicationGatewayPathRule = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayPathRule ApplicationGatewayHttpListener = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayHttpListener - ApplicationGatewayFrontendIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendIPConfiguration + SecurityRuleAssociations = Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleAssociations ExpressRouteServiceProviderBandwidthsOffered = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteServiceProviderBandwidthsOffered - SecurityGroupNetworkInterface = Azure::Network::Mgmt::V2017_10_01::Models::SecurityGroupNetworkInterface - ApplicationGatewayRedirectConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRedirectConfiguration - ApplicationGatewayProbe = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProbe ApplicationGatewayRequestRoutingRule = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRequestRoutingRule - ApplicationGatewayFirewallRuleSet = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRuleSet - ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayUrlPathMap + ApplicationGatewayPathRule = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayPathRule + ApplicationGatewayProbe = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProbe ApplicationGateway = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGateway - EndpointServiceResult = Azure::Network::Mgmt::V2017_10_01::Models::EndpointServiceResult - ApplicationGatewayAvailableSslOptions = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableSslOptions + ApplicationGatewayRedirectConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRedirectConfiguration + ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayUrlPathMap ApplicationGatewaySslPredefinedPolicy = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPredefinedPolicy - ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeering - ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitAuthorization + ApplicationGatewayFirewallRuleSet = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRuleSet + ApplicationGatewayAvailableSslOptions = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableSslOptions RouteFilterRule = Azure::Network::Mgmt::V2017_10_01::Models::RouteFilterRule - ExpressRouteServiceProvider = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteServiceProvider - RouteFilter = Azure::Network::Mgmt::V2017_10_01::Models::RouteFilter + EndpointServiceResult = Azure::Network::Mgmt::V2017_10_01::Models::EndpointServiceResult + ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitAuthorization ExpressRouteCircuit = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuit - Probe = Azure::Network::Mgmt::V2017_10_01::Models::Probe - FrontendIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::FrontendIPConfiguration + ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeering + RouteFilter = Azure::Network::Mgmt::V2017_10_01::Models::RouteFilter LoadBalancingRule = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancingRule - LoadBalancer = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancer - InboundNatPool = Azure::Network::Mgmt::V2017_10_01::Models::InboundNatPool + ExpressRouteServiceProvider = Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteServiceProvider + FrontendIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::FrontendIPConfiguration OutboundNatRule = Azure::Network::Mgmt::V2017_10_01::Models::OutboundNatRule - PatchRouteFilter = Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilter - NetworkWatcher = Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcher + Probe = Azure::Network::Mgmt::V2017_10_01::Models::Probe + InboundNatPool = Azure::Network::Mgmt::V2017_10_01::Models::InboundNatPool PatchRouteFilterRule = Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilterRule - VirtualNetwork = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetwork - BgpServiceCommunity = Azure::Network::Mgmt::V2017_10_01::Models::BgpServiceCommunity + LoadBalancer = Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancer + NetworkWatcher = Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcher VirtualNetworkPeering = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkPeering - VpnClientRevokedCertificate = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRevokedCertificate - VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayIPConfiguration + PatchRouteFilter = Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilter + BgpServiceCommunity = Azure::Network::Mgmt::V2017_10_01::Models::BgpServiceCommunity VpnClientRootCertificate = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRootCertificate - VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnection - VirtualNetworkGateway = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGateway + VirtualNetwork = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetwork + VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayIPConfiguration LocalNetworkGateway = Azure::Network::Mgmt::V2017_10_01::Models::LocalNetworkGateway - ApplicationGatewayCookieBasedAffinity = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayCookieBasedAffinity + VpnClientRevokedCertificate = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRevokedCertificate + VirtualNetworkGateway = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGateway + ApplicationGatewayProtocol = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProtocol + VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnection VirtualNetworkGatewayConnectionListEntity = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionListEntity IPVersion = Azure::Network::Mgmt::V2017_10_01::Models::IPVersion - ApplicationGatewayTier = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayTier + 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 - ApplicationGatewayProtocol = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProtocol + ApplicationGatewayTier = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayTier ApplicationGatewaySslProtocol = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslProtocol ApplicationGatewaySslPolicyType = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPolicyType ApplicationGatewaySslPolicyName = Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPolicyName @@ -309,28 +309,28 @@ module Models PcError = Azure::Network::Mgmt::V2017_10_01::Models::PcError Origin = Azure::Network::Mgmt::V2017_10_01::Models::Origin IssueType = Azure::Network::Mgmt::V2017_10_01::Models::IssueType - Severity = Azure::Network::Mgmt::V2017_10_01::Models::Severity Protocol = Azure::Network::Mgmt::V2017_10_01::Models::Protocol + 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 ConnectionStatus = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionStatus - ConnectionState = Azure::Network::Mgmt::V2017_10_01::Models::ConnectionState + VpnType = Azure::Network::Mgmt::V2017_10_01::Models::VpnType VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySkuName VirtualNetworkGatewaySkuTier = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewaySkuTier VirtualNetworkGatewayType = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayType - VpnType = Azure::Network::Mgmt::V2017_10_01::Models::VpnType + BgpPeerState = Azure::Network::Mgmt::V2017_10_01::Models::BgpPeerState ProcessorArchitecture = Azure::Network::Mgmt::V2017_10_01::Models::ProcessorArchitecture AuthenticationMethod = Azure::Network::Mgmt::V2017_10_01::Models::AuthenticationMethod VpnClientProtocol = Azure::Network::Mgmt::V2017_10_01::Models::VpnClientProtocol - BgpPeerState = Azure::Network::Mgmt::V2017_10_01::Models::BgpPeerState + 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 VirtualNetworkGatewayConnectionStatus = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionStatus - VirtualNetworkGatewayConnectionType = Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionType - DhGroup = Azure::Network::Mgmt::V2017_10_01::Models::DhGroup + IkeIntegrity = Azure::Network::Mgmt::V2017_10_01::Models::IkeIntegrity + Severity = Azure::Network::Mgmt::V2017_10_01::Models::Severity PfsGroup = Azure::Network::Mgmt::V2017_10_01::Models::PfsGroup IkeEncryption = Azure::Network::Mgmt::V2017_10_01::Models::IkeEncryption - IkeIntegrity = Azure::Network::Mgmt::V2017_10_01::Models::IkeIntegrity + DhGroup = Azure::Network::Mgmt::V2017_10_01::Models::DhGroup end class NetworkManagementClass @@ -533,17 +533,17 @@ def load_balancer_backend_address_pool_list_result def connection_reset_shared_key Azure::Network::Mgmt::V2017_10_01::Models::ConnectionResetSharedKey end - def load_balancer_frontend_ipconfiguration_list_result - Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerFrontendIPConfigurationListResult - end def error Azure::Network::Mgmt::V2017_10_01::Models::Error end + def load_balancer_frontend_ipconfiguration_list_result + Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerFrontendIPConfigurationListResult + end def ipsec_policy Azure::Network::Mgmt::V2017_10_01::Models::IpsecPolicy end - def load_balancer_load_balancing_rule_list_result - Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerLoadBalancingRuleListResult + def gateway_route_list_result + Azure::Network::Mgmt::V2017_10_01::Models::GatewayRouteListResult end def load_balancer_probe_list_result Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerProbeListResult @@ -626,54 +626,48 @@ def network_security_group_list_result def security_rule_list_result Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleListResult end - def gateway_route_list_result - Azure::Network::Mgmt::V2017_10_01::Models::GatewayRouteListResult - end def address_space Azure::Network::Mgmt::V2017_10_01::Models::AddressSpace end + def network_watcher_list_result + Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcherListResult + end def application_gateway_available_waf_rule_sets_result Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAvailableWafRuleSetsResult end def topology_parameters Azure::Network::Mgmt::V2017_10_01::Models::TopologyParameters end - def network_watcher_list_result - Azure::Network::Mgmt::V2017_10_01::Models::NetworkWatcherListResult - end def dns_name_availability_result Azure::Network::Mgmt::V2017_10_01::Models::DnsNameAvailabilityResult end + def dimension + Azure::Network::Mgmt::V2017_10_01::Models::Dimension + end def application_security_group_list_result Azure::Network::Mgmt::V2017_10_01::Models::ApplicationSecurityGroupListResult end - def endpoint_services_list_result - Azure::Network::Mgmt::V2017_10_01::Models::EndpointServicesListResult - end - def dimension - Azure::Network::Mgmt::V2017_10_01::Models::Dimension + def load_balancer_load_balancing_rule_list_result + Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancerLoadBalancingRuleListResult end def authorization_list_result Azure::Network::Mgmt::V2017_10_01::Models::AuthorizationListResult end + def topology + Azure::Network::Mgmt::V2017_10_01::Models::Topology + end def usage Azure::Network::Mgmt::V2017_10_01::Models::Usage end def verification_ipflow_parameters Azure::Network::Mgmt::V2017_10_01::Models::VerificationIPFlowParameters end - def topology - Azure::Network::Mgmt::V2017_10_01::Models::Topology + def verification_ipflow_result + Azure::Network::Mgmt::V2017_10_01::Models::VerificationIPFlowResult end def metric_specification Azure::Network::Mgmt::V2017_10_01::Models::MetricSpecification end - def bgp_service_community_list_result - Azure::Network::Mgmt::V2017_10_01::Models::BgpServiceCommunityListResult - end - def verification_ipflow_result - Azure::Network::Mgmt::V2017_10_01::Models::VerificationIPFlowResult - end def ipv6_express_route_circuit_peering_config Azure::Network::Mgmt::V2017_10_01::Models::Ipv6ExpressRouteCircuitPeeringConfig end @@ -695,20 +689,26 @@ def security_group_view_parameters def express_route_circuits_arp_table_list_result Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitsArpTableListResult end - def network_interface_association - Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceAssociation + def endpoint_services_list_result + Azure::Network::Mgmt::V2017_10_01::Models::EndpointServicesListResult end def express_route_circuits_routes_table_list_result Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitsRoutesTableListResult end - def subnet_association - Azure::Network::Mgmt::V2017_10_01::Models::SubnetAssociation + def network_interface_association + Azure::Network::Mgmt::V2017_10_01::Models::NetworkInterfaceAssociation end def express_route_circuits_routes_table_summary_list_result Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitsRoutesTableSummaryListResult end - def security_rule_associations - Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleAssociations + def subnet_association + Azure::Network::Mgmt::V2017_10_01::Models::SubnetAssociation + end + def bgp_service_community_list_result + Azure::Network::Mgmt::V2017_10_01::Models::BgpServiceCommunityListResult + end + def security_group_network_interface + Azure::Network::Mgmt::V2017_10_01::Models::SecurityGroupNetworkInterface end def express_route_service_provider_list_result Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteServiceProviderListResult @@ -728,8 +728,8 @@ def packet_capture_filter def virtual_network_gateway_list_connections_result Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayListConnectionsResult end - def packet_capture_parameters - Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureParameters + def packet_capture + Azure::Network::Mgmt::V2017_10_01::Models::PacketCapture end def virtual_network_gateway_connection_list_result Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionListResult @@ -959,128 +959,128 @@ def application_gateway_ssl_certificate def application_gateway_authentication_certificate Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayAuthenticationCertificate end - def application_gateway_frontend_port - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendPort + def packet_capture_parameters + Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureParameters end - def packet_capture - Azure::Network::Mgmt::V2017_10_01::Models::PacketCapture + def application_gateway_frontend_ipconfiguration + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendIPConfiguration 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_http_listener Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayHttpListener end - def application_gateway_frontend_ipconfiguration - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFrontendIPConfiguration + def security_rule_associations + Azure::Network::Mgmt::V2017_10_01::Models::SecurityRuleAssociations end def express_route_service_provider_bandwidths_offered Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteServiceProviderBandwidthsOffered end - def security_group_network_interface - Azure::Network::Mgmt::V2017_10_01::Models::SecurityGroupNetworkInterface + def application_gateway_request_routing_rule + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRequestRoutingRule end - def application_gateway_redirect_configuration - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayRedirectConfiguration + def application_gateway_path_rule + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayPathRule 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 + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGateway end - def application_gateway_firewall_rule_set - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayFirewallRuleSet + 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 end - def application_gateway - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGateway + def application_gateway_ssl_predefined_policy + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPredefinedPolicy end - def endpoint_service_result - Azure::Network::Mgmt::V2017_10_01::Models::EndpointServiceResult + 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 end - def application_gateway_ssl_predefined_policy - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslPredefinedPolicy + def route_filter_rule + Azure::Network::Mgmt::V2017_10_01::Models::RouteFilterRule end - def express_route_circuit_peering - Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuitPeering + 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 end - def route_filter_rule - Azure::Network::Mgmt::V2017_10_01::Models::RouteFilterRule + def express_route_circuit + Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuit end - def express_route_service_provider - Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteServiceProvider + 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 end - def express_route_circuit - Azure::Network::Mgmt::V2017_10_01::Models::ExpressRouteCircuit + def load_balancing_rule + Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancingRule end - def probe - Azure::Network::Mgmt::V2017_10_01::Models::Probe + 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 outbound_nat_rule + Azure::Network::Mgmt::V2017_10_01::Models::OutboundNatRule end - def load_balancer - Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancer + def probe + Azure::Network::Mgmt::V2017_10_01::Models::Probe end 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 patch_route_filter_rule + Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilterRule end - def patch_route_filter - Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilter + def load_balancer + Azure::Network::Mgmt::V2017_10_01::Models::LoadBalancer end 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 virtual_network_peering + Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkPeering end - def virtual_network - Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetwork + def patch_route_filter + Azure::Network::Mgmt::V2017_10_01::Models::PatchRouteFilter end 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 vpn_client_root_certificate + Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRootCertificate end - def vpn_client_revoked_certificate - Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRevokedCertificate + def virtual_network + Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetwork end 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 local_network_gateway + Azure::Network::Mgmt::V2017_10_01::Models::LocalNetworkGateway end - def virtual_network_gateway_connection - Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnection + def vpn_client_revoked_certificate + Azure::Network::Mgmt::V2017_10_01::Models::VpnClientRevokedCertificate end 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 application_gateway_protocol + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayProtocol end - def application_gateway_cookie_based_affinity - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayCookieBasedAffinity + def virtual_network_gateway_connection + Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnection end def virtual_network_gateway_connection_list_entity Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionListEntity @@ -1088,8 +1088,8 @@ def virtual_network_gateway_connection_list_entity def ipversion Azure::Network::Mgmt::V2017_10_01::Models::IPVersion end - def application_gateway_tier - Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayTier + def application_gateway_cookie_based_affinity + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayCookieBasedAffinity end def application_gateway_backend_health_server_health Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayBackendHealthServerHealth @@ -1097,8 +1097,8 @@ def application_gateway_backend_health_server_health 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 + def application_gateway_tier + Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewayTier end def application_gateway_ssl_protocol Azure::Network::Mgmt::V2017_10_01::Models::ApplicationGatewaySslProtocol @@ -1196,12 +1196,12 @@ def origin def issue_type Azure::Network::Mgmt::V2017_10_01::Models::IssueType end - def severity - Azure::Network::Mgmt::V2017_10_01::Models::Severity - end def protocol Azure::Network::Mgmt::V2017_10_01::Models::Protocol end + def connection_state + Azure::Network::Mgmt::V2017_10_01::Models::ConnectionState + end def evaluation_state Azure::Network::Mgmt::V2017_10_01::Models::EvaluationState end @@ -1211,8 +1211,8 @@ def virtual_network_peering_state def connection_status Azure::Network::Mgmt::V2017_10_01::Models::ConnectionStatus end - def connection_state - Azure::Network::Mgmt::V2017_10_01::Models::ConnectionState + 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 @@ -1223,8 +1223,8 @@ def virtual_network_gateway_sku_tier def virtual_network_gateway_type Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayType end - def vpn_type - Azure::Network::Mgmt::V2017_10_01::Models::VpnType + def bgp_peer_state + Azure::Network::Mgmt::V2017_10_01::Models::BgpPeerState end def processor_architecture Azure::Network::Mgmt::V2017_10_01::Models::ProcessorArchitecture @@ -1235,8 +1235,8 @@ def authentication_method def vpn_client_protocol Azure::Network::Mgmt::V2017_10_01::Models::VpnClientProtocol end - def bgp_peer_state - Azure::Network::Mgmt::V2017_10_01::Models::BgpPeerState + def virtual_network_gateway_connection_type + Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionType end def ipsec_encryption Azure::Network::Mgmt::V2017_10_01::Models::IpsecEncryption @@ -1247,11 +1247,11 @@ def ipsec_integrity def virtual_network_gateway_connection_status Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionStatus end - def virtual_network_gateway_connection_type - Azure::Network::Mgmt::V2017_10_01::Models::VirtualNetworkGatewayConnectionType + def ike_integrity + Azure::Network::Mgmt::V2017_10_01::Models::IkeIntegrity end - def dh_group - Azure::Network::Mgmt::V2017_10_01::Models::DhGroup + def severity + Azure::Network::Mgmt::V2017_10_01::Models::Severity end def pfs_group Azure::Network::Mgmt::V2017_10_01::Models::PfsGroup @@ -1259,8 +1259,8 @@ def pfs_group def ike_encryption Azure::Network::Mgmt::V2017_10_01::Models::IkeEncryption end - def ike_integrity - Azure::Network::Mgmt::V2017_10_01::Models::IkeIntegrity + def dh_group + Azure::Network::Mgmt::V2017_10_01::Models::DhGroup end end 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 43f922734a..2471cd9131 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 @@ -11,8 +11,8 @@ module Mgmt Providers = Azure::Resources::Mgmt::V2018_02_01::Providers ResourceGroups = Azure::Resources::Mgmt::V2018_02_01::ResourceGroups Tags = Azure::Resources::Mgmt::V2018_02_01::Tags - DeploymentOperations = Azure::Resources::Mgmt::V2018_02_01::DeploymentOperations Resources = Azure::Resources::Mgmt::V2018_02_01::Resources + DeploymentOperations = Azure::Resources::Mgmt::V2018_02_01::DeploymentOperations module Models GenericResourceFilter = Azure::Resources::Mgmt::V2018_02_01::Models::GenericResourceFilter @@ -28,15 +28,15 @@ 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 - ResourcesMoveInfo = Azure::Resources::Mgmt::V2018_02_01::Models::ResourcesMoveInfo + Dependency = Azure::Resources::Mgmt::V2018_02_01::Models::Dependency DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentPropertiesExtended ExportTemplateRequest = Azure::Resources::Mgmt::V2018_02_01::Models::ExportTemplateRequest + ResourcesMoveInfo = Azure::Resources::Mgmt::V2018_02_01::Models::ResourcesMoveInfo DeploymentExtended = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExtended - Dependency = Azure::Resources::Mgmt::V2018_02_01::Models::Dependency TagCount = Azure::Resources::Mgmt::V2018_02_01::Models::TagCount + ProviderListResult = Azure::Resources::Mgmt::V2018_02_01::Models::ProviderListResult TagValue = Azure::Resources::Mgmt::V2018_02_01::Models::TagValue ResourceGroupFilter = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceGroupFilter - ProviderListResult = Azure::Resources::Mgmt::V2018_02_01::Models::ProviderListResult TagDetails = Azure::Resources::Mgmt::V2018_02_01::Models::TagDetails DeploymentProperties = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentProperties TagsListResult = Azure::Resources::Mgmt::V2018_02_01::Models::TagsListResult @@ -48,13 +48,13 @@ module Models DeploymentOperationProperties = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentOperationProperties DeploymentExtendedFilter = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExtendedFilter DeploymentOperation = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentOperation - DeploymentExportResult = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExportResult + DeploymentOperationsListResult = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentOperationsListResult OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2018_02_01::Models::OnErrorDeploymentExtended ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2018_02_01::Models::ResourceProviderOperationDisplayProperties DebugSetting = Azure::Resources::Mgmt::V2018_02_01::Models::DebugSetting DeploymentListResult = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentListResult + DeploymentExportResult = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExportResult ProviderResourceType = Azure::Resources::Mgmt::V2018_02_01::Models::ProviderResourceType - DeploymentOperationsListResult = Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentOperationsListResult 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 @@ -68,7 +68,7 @@ module Models end class ResourcesManagementClass - attr_reader :deployments, :providers, :resource_groups, :tags, :deployment_operations, :resources, :configurable, :base_url, :options, :model_classes + attr_reader :deployments, :providers, :resource_groups, :tags, :resources, :deployment_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -82,8 +82,8 @@ def initialize(configurable, base_url=nil, options=nil) @providers = @client_0.providers @resource_groups = @client_0.resource_groups @tags = @client_0.tags - @deployment_operations = @client_0.deployment_operations @resources = @client_0.resources + @deployment_operations = @client_0.deployment_operations @model_classes = ModelClasses.new end @@ -141,8 +141,8 @@ def provider def resource_group_list_result Azure::Resources::Mgmt::V2018_02_01::Models::ResourceGroupListResult end - def resources_move_info - Azure::Resources::Mgmt::V2018_02_01::Models::ResourcesMoveInfo + def dependency + Azure::Resources::Mgmt::V2018_02_01::Models::Dependency end def deployment_properties_extended Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentPropertiesExtended @@ -150,24 +150,24 @@ def deployment_properties_extended def export_template_request Azure::Resources::Mgmt::V2018_02_01::Models::ExportTemplateRequest end + def resources_move_info + Azure::Resources::Mgmt::V2018_02_01::Models::ResourcesMoveInfo + end def deployment_extended Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExtended end - def dependency - Azure::Resources::Mgmt::V2018_02_01::Models::Dependency - end def tag_count Azure::Resources::Mgmt::V2018_02_01::Models::TagCount end + def provider_list_result + Azure::Resources::Mgmt::V2018_02_01::Models::ProviderListResult + end def tag_value Azure::Resources::Mgmt::V2018_02_01::Models::TagValue end def resource_group_filter Azure::Resources::Mgmt::V2018_02_01::Models::ResourceGroupFilter end - def provider_list_result - Azure::Resources::Mgmt::V2018_02_01::Models::ProviderListResult - end def tag_details Azure::Resources::Mgmt::V2018_02_01::Models::TagDetails end @@ -201,8 +201,8 @@ def deployment_extended_filter def deployment_operation Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentOperation end - def deployment_export_result - Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExportResult + def deployment_operations_list_result + Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentOperationsListResult end def on_error_deployment_extended Azure::Resources::Mgmt::V2018_02_01::Models::OnErrorDeploymentExtended @@ -216,12 +216,12 @@ def debug_setting def deployment_list_result Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentListResult end + def deployment_export_result + Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentExportResult + end def provider_resource_type Azure::Resources::Mgmt::V2018_02_01::Models::ProviderResourceType end - def deployment_operations_list_result - Azure::Resources::Mgmt::V2018_02_01::Models::DeploymentOperationsListResult - end def resource_group_export_result Azure::Resources::Mgmt::V2018_02_01::Models::ResourceGroupExportResult 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 e15b392d59..c445ca6425 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,8 +7,8 @@ module Azure::Profiles::V2018_03_01 module Storage module Mgmt - UsageOperations = Azure::Storage::Mgmt::V2016_01_01::UsageOperations StorageAccounts = Azure::Storage::Mgmt::V2016_01_01::StorageAccounts + UsageOperations = Azure::Storage::Mgmt::V2016_01_01::UsageOperations module Models StorageAccountCreateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters @@ -21,7 +21,7 @@ module Models 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 CustomDomain = Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain EncryptionServices = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices @@ -29,20 +29,20 @@ module Models StorageAccount = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount Usage = Azure::Storage::Mgmt::V2016_01_01::Models::Usage SkuTier = Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier - Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason + AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier SkuName = Azure::Storage::Mgmt::V2016_01_01::Models::SkuName - StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters + Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason Kind = Azure::Storage::Mgmt::V2016_01_01::Models::Kind AccountStatus = Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus - AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier - UsageUnit = Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit + KeyPermission = Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission + Encryption = Azure::Storage::Mgmt::V2016_01_01::Models::Encryption Sku = Azure::Storage::Mgmt::V2016_01_01::Models::Sku UsageName = Azure::Storage::Mgmt::V2016_01_01::Models::UsageName - KeyPermission = Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission + UsageUnit = Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit end class StorageManagementClass - attr_reader :usage_operations, :storage_accounts, :configurable, :base_url, :options, :model_classes + attr_reader :storage_accounts, :usage_operations, :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) - @usage_operations = @client_0.usage_operations @storage_accounts = @client_0.storage_accounts + @usage_operations = @client_0.usage_operations @model_classes = ModelClasses.new end @@ -102,8 +102,8 @@ def encryption_service def storage_account_list_keys_result Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult end - def encryption - Azure::Storage::Mgmt::V2016_01_01::Models::Encryption + def storage_account_regenerate_key_parameters + Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters end def endpoints Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints @@ -126,14 +126,14 @@ def usage def sku_tier Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier end - def reason - Azure::Storage::Mgmt::V2016_01_01::Models::Reason + def access_tier + Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier end def sku_name Azure::Storage::Mgmt::V2016_01_01::Models::SkuName end - def storage_account_regenerate_key_parameters - Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters + def reason + Azure::Storage::Mgmt::V2016_01_01::Models::Reason end def kind Azure::Storage::Mgmt::V2016_01_01::Models::Kind @@ -141,11 +141,11 @@ def kind def account_status Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus end - def access_tier - Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier + def key_permission + Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission end - def usage_unit - Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit + def encryption + Azure::Storage::Mgmt::V2016_01_01::Models::Encryption end def sku Azure::Storage::Mgmt::V2016_01_01::Models::Sku @@ -153,8 +153,8 @@ def sku def usage_name Azure::Storage::Mgmt::V2016_01_01::Models::UsageName end - def key_permission - Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission + def usage_unit + Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit end end end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb index 2569425ec9..11869277f1 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb @@ -39,8 +39,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ def list(resource_group_name, lab_name, artifact_source_name, expand:nil, filter # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value! end # @@ -84,7 +84,7 @@ def list_with_http_info(resource_group_name, lab_name, artifact_source_name, exp # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -93,7 +93,6 @@ def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -152,8 +151,8 @@ def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, # # @return [ArmTemplate] operation results. # - def get(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -171,8 +170,8 @@ def get(resource_group_name, lab_name, artifact_source_name, name, expand:nil, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! end # @@ -189,7 +188,7 @@ def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, artifact_source_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -199,7 +198,6 @@ def get_async(resource_group_name, lab_name, artifact_source_name, name, expand: request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -254,8 +252,8 @@ def get_async(resource_group_name, lab_name, artifact_source_name, name, expand: # # @return [ResponseWithContinuationArmTemplate] 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 @@ -269,8 +267,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 # @@ -283,12 +281,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 @@ -351,12 +348,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationArmTemplate] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb index 63d30dd9f4..96b579b6ea 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, t # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -89,7 +89,6 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +146,8 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o # # @return [ArtifactSource] operation results. # - def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -165,8 +164,8 @@ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! end # @@ -182,7 +181,7 @@ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -191,7 +190,6 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -248,8 +246,8 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni # # @return [ArtifactSource] operation results. # - def create_or_update(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! response.body unless response.nil? end @@ -265,8 +263,8 @@ def create_or_update(resource_group_name, lab_name, name, artifact_source, custo # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) - create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! end # @@ -281,7 +279,7 @@ def create_or_update_with_http_info(resource_group_name, lab_name, name, artifac # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, artifact_source, 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, 'lab_name is nil' if lab_name.nil? @@ -291,12 +289,13 @@ def create_or_update_async(resource_group_name, lab_name, name, artifact_source, 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::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSource.mapper() request_content = @client.serialize(request_mapper, artifact_source) @@ -363,8 +362,8 @@ def create_or_update_async(resource_group_name, lab_name, name, artifact_source, # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -379,8 +378,8 @@ def delete(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -394,7 +393,7 @@ def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -403,7 +402,6 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -451,8 +449,8 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [ArtifactSource] operation results. # - def update(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) - response = update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value! + def update(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! response.body unless response.nil? end @@ -469,8 +467,8 @@ def update(resource_group_name, lab_name, name, artifact_source, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) - update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) + update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! end # @@ -486,7 +484,7 @@ def update_with_http_info(resource_group_name, lab_name, name, artifact_source, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) + def update_async(resource_group_name, lab_name, name, artifact_source, 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, 'lab_name is nil' if lab_name.nil? @@ -496,12 +494,13 @@ def update_async(resource_group_name, lab_name, name, artifact_source, custom_he 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::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSourceFragment.mapper() request_content = @client.serialize(request_mapper, artifact_source) @@ -558,8 +557,8 @@ def update_async(resource_group_name, lab_name, name, artifact_source, custom_he # # @return [ResponseWithContinuationArtifactSource] 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 @@ -573,8 +572,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 # @@ -587,12 +586,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 @@ -654,12 +652,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationArtifactSource] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb index cb33906656..7967ecb857 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb @@ -39,8 +39,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ def list(resource_group_name, lab_name, artifact_source_name, expand:nil, filter # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value! end # @@ -84,7 +84,7 @@ def list_with_http_info(resource_group_name, lab_name, artifact_source_name, exp # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -93,7 +93,6 @@ def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -152,8 +151,8 @@ def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, # # @return [Artifact] operation results. # - def get(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -171,8 +170,8 @@ def get(resource_group_name, lab_name, artifact_source_name, name, expand:nil, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! end # @@ -189,7 +188,7 @@ def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, artifact_source_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -199,7 +198,6 @@ def get_async(resource_group_name, lab_name, artifact_source_name, name, expand: request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -259,8 +257,8 @@ def get_async(resource_group_name, lab_name, artifact_source_name, name, expand: # # @return [ArmTemplateInfo] operation results. # - def generate_arm_template(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil) - response = generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:custom_headers).value! + def generate_arm_template(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil) + response = generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers).value! response.body unless response.nil? end @@ -279,8 +277,8 @@ def generate_arm_template(resource_group_name, lab_name, artifact_source_name, n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_arm_template_with_http_info(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil) - generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:custom_headers).value! + def generate_arm_template_with_http_info(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil) + generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers).value! end # @@ -298,7 +296,7 @@ def generate_arm_template_with_http_info(resource_group_name, lab_name, artifact # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil) + def generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, 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, 'lab_name is nil' if lab_name.nil? @@ -309,12 +307,13 @@ def generate_arm_template_async(resource_group_name, lab_name, artifact_source_n 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::DevTestLabs::Mgmt::V2016_05_15::Models::GenerateArmTemplateRequest.mapper() request_content = @client.serialize(request_mapper, generate_arm_template_request) @@ -371,8 +370,8 @@ def generate_arm_template_async(resource_group_name, lab_name, artifact_source_n # # @return [ResponseWithContinuationArtifact] 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 @@ -386,8 +385,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 # @@ -400,12 +399,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 @@ -468,12 +466,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationArtifact] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb index 22e3d3ab17..261c961a9b 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb @@ -34,8 +34,8 @@ def initialize(client) # # @return [LabCost] operation results. # - def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! end # @@ -69,7 +69,7 @@ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -78,7 +78,6 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +134,8 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni # # @return [LabCost] operation results. # - def create_or_update(resource_group_name, lab_name, name, lab_cost, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, lab_cost, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers).value! response.body unless response.nil? end @@ -152,8 +151,8 @@ def create_or_update(resource_group_name, lab_name, name, lab_cost, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, lab_cost, custom_headers:nil) - create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, lab_cost, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers).value! end # @@ -168,7 +167,7 @@ def create_or_update_with_http_info(resource_group_name, lab_name, name, lab_cos # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, lab_cost, 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, 'lab_name is nil' if lab_name.nil? @@ -178,12 +177,13 @@ def create_or_update_async(resource_group_name, lab_name, name, lab_cost, 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['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabCost.mapper() request_content = @client.serialize(request_mapper, lab_cost) diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb index f761ba1ddf..ce9a9d148d 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, t # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -89,7 +89,6 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +146,8 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o # # @return [CustomImage] operation results. # - def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -165,8 +164,8 @@ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! end # @@ -182,7 +181,7 @@ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -191,7 +190,6 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -249,8 +247,8 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni # # @return [CustomImage] operation results. # - def create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! response.body unless response.nil? end @@ -265,9 +263,9 @@ def create_or_update(resource_group_name, lab_name, name, custom_image, custom_h # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -292,8 +290,8 @@ def create_or_update_async(resource_group_name, lab_name, name, custom_image, cu # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -307,9 +305,9 @@ def delete(resource_group_name, lab_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -336,8 +334,8 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [CustomImage] operation results. # - def begin_create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers:nil) - response = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! response.body unless response.nil? end @@ -354,8 +352,8 @@ def begin_create_or_update(resource_group_name, lab_name, name, custom_image, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, custom_image, custom_headers:nil) - begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, custom_image, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! end # @@ -371,7 +369,7 @@ def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:nil) + def begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, 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, 'lab_name is nil' if lab_name.nil? @@ -381,12 +379,13 @@ def begin_create_or_update_async(resource_group_name, lab_name, name, custom_ima 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::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImage.mapper() request_content = @client.serialize(request_mapper, custom_image) @@ -453,8 +452,8 @@ def begin_create_or_update_async(resource_group_name, lab_name, name, custom_ima # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) - response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -469,8 +468,8 @@ def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -484,7 +483,7 @@ def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def begin_delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -493,7 +492,6 @@ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -538,8 +536,8 @@ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [ResponseWithContinuationCustomImage] 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 @@ -553,8 +551,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 # @@ -567,12 +565,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 @@ -634,12 +631,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationCustomImage] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb index 07fd50d243..44314b3aef 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb @@ -23,16 +23,15 @@ class DevTestLabsClient < MsRestAzure::AzureServiceClient # @return [String] The subscription ID. 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 [ProviderOperations] provider_operations @@ -193,9 +192,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? @@ -212,7 +208,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_devtestlabs' - sdk_information = "#{sdk_information}/0.17.1" + if defined? Azure::DevTestLabs::Mgmt::V2016_05_15::VERSION + sdk_information = "#{sdk_information}/#{Azure::DevTestLabs::Mgmt::V2016_05_15::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb index d3d2c90004..d7f18c17e9 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb @@ -39,8 +39,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! end # @@ -84,7 +84,7 @@ def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, fi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -93,7 +93,6 @@ def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -152,8 +151,8 @@ def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, # # @return [Disk] operation results. # - def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -171,8 +170,8 @@ def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! end # @@ -189,7 +188,7 @@ def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, user_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -199,7 +198,6 @@ def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -258,8 +256,8 @@ def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom # # @return [Disk] operation results. # - def create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! response.body unless response.nil? end @@ -275,9 +273,9 @@ def create_or_update(resource_group_name, lab_name, user_name, name, disk, custo # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -303,8 +301,8 @@ def create_or_update_async(resource_group_name, lab_name, user_name, name, disk, # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! nil end @@ -319,9 +317,9 @@ def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -348,8 +346,8 @@ def delete_async(resource_group_name, lab_name, user_name, name, custom_headers: # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) - response = attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers).value! + def attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) + response = attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value! nil end @@ -366,9 +364,9 @@ def attach(resource_group_name, lab_name, user_name, name, attach_disk_propertie # @return [Concurrent::Promise] promise which provides async access to http # response. # - def attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) + def attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) # Send request - promise = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers) + promise = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -395,8 +393,8 @@ def attach_async(resource_group_name, lab_name, user_name, name, attach_disk_pro # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) - response = detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers).value! + def detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) + response = detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value! nil end @@ -413,9 +411,9 @@ def detach(resource_group_name, lab_name, user_name, name, detach_disk_propertie # @return [Concurrent::Promise] promise which provides async access to http # response. # - def detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) + def detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) # Send request - promise = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers) + promise = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -443,8 +441,8 @@ def detach_async(resource_group_name, lab_name, user_name, name, detach_disk_pro # # @return [Disk] operation results. # - def begin_create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) - response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! response.body unless response.nil? end @@ -462,8 +460,8 @@ def begin_create_or_update(resource_group_name, lab_name, user_name, name, disk, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) - begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! end # @@ -480,7 +478,7 @@ def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_na # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) + def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, 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, 'lab_name is nil' if lab_name.nil? @@ -491,12 +489,13 @@ def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, 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::DevTestLabs::Mgmt::V2016_05_15::Models::Disk.mapper() request_content = @client.serialize(request_mapper, disk) @@ -564,8 +563,8 @@ def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) - response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! nil end @@ -581,8 +580,8 @@ def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers:nil) - begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! end # @@ -597,7 +596,7 @@ def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) + def begin_delete_async(resource_group_name, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? @@ -607,7 +606,6 @@ def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -656,8 +654,8 @@ def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_he # will be added to the HTTP request. # # - def begin_attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) - response = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers).value! + def begin_attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) + response = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value! nil end @@ -676,8 +674,8 @@ def begin_attach(resource_group_name, lab_name, user_name, name, attach_disk_pro # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_attach_with_http_info(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) - begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers).value! + def begin_attach_with_http_info(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) + begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value! end # @@ -695,7 +693,7 @@ def begin_attach_with_http_info(resource_group_name, lab_name, user_name, name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) + def begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, 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, 'lab_name is nil' if lab_name.nil? @@ -706,12 +704,13 @@ def begin_attach_async(resource_group_name, lab_name, user_name, name, attach_di 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::DevTestLabs::Mgmt::V2016_05_15::Models::AttachDiskProperties.mapper() request_content = @client.serialize(request_mapper, attach_disk_properties) @@ -762,8 +761,8 @@ def begin_attach_async(resource_group_name, lab_name, user_name, name, attach_di # will be added to the HTTP request. # # - def begin_detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) - response = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers).value! + def begin_detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) + response = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value! nil end @@ -782,8 +781,8 @@ def begin_detach(resource_group_name, lab_name, user_name, name, detach_disk_pro # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_detach_with_http_info(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) - begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers).value! + def begin_detach_with_http_info(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) + begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value! end # @@ -801,7 +800,7 @@ def begin_detach_with_http_info(resource_group_name, lab_name, user_name, name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) + def begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, 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, 'lab_name is nil' if lab_name.nil? @@ -812,12 +811,13 @@ def begin_detach_async(resource_group_name, lab_name, user_name, name, detach_di 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::DevTestLabs::Mgmt::V2016_05_15::Models::DetachDiskProperties.mapper() request_content = @client.serialize(request_mapper, detach_disk_properties) @@ -864,8 +864,8 @@ def begin_detach_async(resource_group_name, lab_name, user_name, name, detach_di # # @return [ResponseWithContinuationDisk] 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 @@ -879,8 +879,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 # @@ -893,12 +893,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 @@ -961,12 +960,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationDisk] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb index 351ef7e825..76b7b63592 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb @@ -39,8 +39,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! end # @@ -84,7 +84,7 @@ def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, fi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -93,7 +93,6 @@ def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -152,8 +151,8 @@ def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, # # @return [DtlEnvironment] operation results. # - def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -171,8 +170,8 @@ def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! end # @@ -189,7 +188,7 @@ def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, user_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -199,7 +198,6 @@ def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -259,8 +257,8 @@ def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom # # @return [DtlEnvironment] operation results. # - def create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! response.body unless response.nil? end @@ -277,9 +275,9 @@ def create_or_update(resource_group_name, lab_name, user_name, name, dtl_environ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -305,8 +303,8 @@ def create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_e # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! nil end @@ -321,9 +319,9 @@ def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -352,8 +350,8 @@ def delete_async(resource_group_name, lab_name, user_name, name, custom_headers: # # @return [DtlEnvironment] operation results. # - def begin_create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) - response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! response.body unless response.nil? end @@ -372,8 +370,8 @@ def begin_create_or_update(resource_group_name, lab_name, user_name, name, dtl_e # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) - begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! end # @@ -391,7 +389,7 @@ def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_na # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) + def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, 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, 'lab_name is nil' if lab_name.nil? @@ -402,12 +400,13 @@ def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, 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::DevTestLabs::Mgmt::V2016_05_15::Models::DtlEnvironment.mapper() request_content = @client.serialize(request_mapper, dtl_environment) @@ -475,8 +474,8 @@ def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) - response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! nil end @@ -492,8 +491,8 @@ def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers:nil) - begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! end # @@ -508,7 +507,7 @@ def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) + def begin_delete_async(resource_group_name, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? @@ -518,7 +517,6 @@ def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -563,8 +561,8 @@ def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_he # # @return [ResponseWithContinuationDtlEnvironment] 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 @@ -578,8 +576,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 # @@ -592,12 +590,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 @@ -660,12 +657,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationDtlEnvironment] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb index 78a55cc63b..440d4f5951 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, t # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -89,7 +89,6 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +146,8 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o # # @return [Formula] operation results. # - def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -165,8 +164,8 @@ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! end # @@ -182,7 +181,7 @@ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -191,7 +190,6 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -250,8 +248,8 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni # # @return [Formula] operation results. # - def create_or_update(resource_group_name, lab_name, name, formula, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, formula, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value! response.body unless response.nil? end @@ -267,9 +265,9 @@ def create_or_update(resource_group_name, lab_name, name, formula, custom_header # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -295,8 +293,8 @@ def create_or_update_async(resource_group_name, lab_name, name, formula, custom_ # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -311,8 +309,8 @@ def delete(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -326,7 +324,7 @@ def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -335,7 +333,6 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -384,8 +381,8 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [Formula] operation results. # - def begin_create_or_update(resource_group_name, lab_name, name, formula, custom_headers:nil) - response = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, name, formula, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value! response.body unless response.nil? end @@ -403,8 +400,8 @@ def begin_create_or_update(resource_group_name, lab_name, name, formula, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, formula, custom_headers:nil) - begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, formula, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value! end # @@ -421,7 +418,7 @@ def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, f # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:nil) + def begin_create_or_update_async(resource_group_name, lab_name, name, formula, 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, 'lab_name is nil' if lab_name.nil? @@ -431,12 +428,13 @@ def begin_create_or_update_async(resource_group_name, lab_name, name, formula, 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['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Formula.mapper() request_content = @client.serialize(request_mapper, formula) @@ -503,8 +501,8 @@ def begin_create_or_update_async(resource_group_name, lab_name, name, formula, c # # @return [ResponseWithContinuationFormula] 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 @@ -518,8 +516,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 # @@ -532,12 +530,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 @@ -599,12 +596,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationFormula] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb index 8070988996..ba3aa756f2 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, t # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -89,7 +89,6 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -144,8 +143,8 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o # # @return [ResponseWithContinuationGalleryImage] 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 @@ -159,8 +158,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 # @@ -173,12 +172,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 @@ -240,12 +238,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationGalleryImage] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb index d23e2a8241..d764dace09 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb @@ -36,8 +36,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_subscription(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_by_subscription_as_lazy(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list_by_subscription(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_by_subscription_as_lazy(expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ def list_by_subscription(expand:nil, filter:nil, top:nil, orderby:nil, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_by_subscription_with_http_info(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_by_subscription_async(expand, filter, top, orderby, custom_headers).value! end # @@ -75,13 +75,12 @@ def list_by_subscription_with_http_info(expand:nil, filter:nil, top:nil, orderby # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_by_subscription_async(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -142,8 +141,8 @@ def list_by_subscription_async(expand:nil, filter:nil, top:nil, orderby:nil, cus # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -163,8 +162,8 @@ def list_by_resource_group(resource_group_name, expand:nil, filter:nil, top:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value! end # @@ -183,14 +182,13 @@ def list_by_resource_group_with_http_info(resource_group_name, expand:nil, filte # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, '@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 @@ -247,8 +245,8 @@ def list_by_resource_group_async(resource_group_name, expand:nil, filter:nil, to # # @return [Schedule] operation results. # - def get(resource_group_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -264,8 +262,8 @@ def get(resource_group_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, name, expand, custom_headers).value! end # @@ -280,7 +278,7 @@ def get_with_http_info(resource_group_name, name, expand:nil, custom_headers:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, name, expand = nil, 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, 'name is nil' if name.nil? @@ -288,7 +286,6 @@ def get_async(resource_group_name, name, expand:nil, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -344,8 +341,8 @@ def get_async(resource_group_name, name, expand:nil, custom_headers:nil) # # @return [Schedule] operation results. # - def create_or_update(resource_group_name, name, schedule, custom_headers:nil) - response = create_or_update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, name, schedule, custom_headers = nil) + response = create_or_update_async(resource_group_name, name, schedule, custom_headers).value! response.body unless response.nil? end @@ -360,8 +357,8 @@ def create_or_update(resource_group_name, name, schedule, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, name, schedule, custom_headers:nil) - create_or_update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, name, schedule, custom_headers = nil) + create_or_update_async(resource_group_name, name, schedule, custom_headers).value! end # @@ -375,7 +372,7 @@ def create_or_update_with_http_info(resource_group_name, name, schedule, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, name, schedule, custom_headers:nil) + def create_or_update_async(resource_group_name, name, schedule, 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, 'name is nil' if name.nil? @@ -384,12 +381,13 @@ def create_or_update_async(resource_group_name, name, schedule, custom_headers:n 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::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule.mapper() request_content = @client.serialize(request_mapper, schedule) @@ -455,8 +453,8 @@ def create_or_update_async(resource_group_name, name, schedule, custom_headers:n # will be added to the HTTP request. # # - def delete(resource_group_name, name, custom_headers:nil) - response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, name, custom_headers = nil) + response = delete_async(resource_group_name, name, custom_headers).value! nil end @@ -470,8 +468,8 @@ def delete(resource_group_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, name, custom_headers:nil) - delete_async(resource_group_name, name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, name, custom_headers = nil) + delete_async(resource_group_name, name, custom_headers).value! end # @@ -484,7 +482,7 @@ def delete_with_http_info(resource_group_name, name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, name, custom_headers:nil) + def delete_async(resource_group_name, 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, 'name is nil' if name.nil? @@ -492,7 +490,6 @@ def delete_async(resource_group_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -538,8 +535,8 @@ def delete_async(resource_group_name, name, custom_headers:nil) # # @return [Schedule] operation results. # - def update(resource_group_name, name, schedule, custom_headers:nil) - response = update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value! + def update(resource_group_name, name, schedule, custom_headers = nil) + response = update_async(resource_group_name, name, schedule, custom_headers).value! response.body unless response.nil? end @@ -554,8 +551,8 @@ def update(resource_group_name, name, schedule, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, name, schedule, custom_headers:nil) - update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, name, schedule, custom_headers = nil) + update_async(resource_group_name, name, schedule, custom_headers).value! end # @@ -569,7 +566,7 @@ def update_with_http_info(resource_group_name, name, schedule, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, name, schedule, custom_headers:nil) + def update_async(resource_group_name, name, schedule, 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, 'name is nil' if name.nil? @@ -578,12 +575,13 @@ def update_async(resource_group_name, name, schedule, custom_headers: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::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment.mapper() request_content = @client.serialize(request_mapper, schedule) @@ -638,8 +636,8 @@ def update_async(resource_group_name, name, schedule, custom_headers:nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def execute(resource_group_name, name, custom_headers:nil) - response = execute_async(resource_group_name, name, custom_headers:custom_headers).value! + def execute(resource_group_name, name, custom_headers = nil) + response = execute_async(resource_group_name, name, custom_headers).value! nil end @@ -652,9 +650,9 @@ def execute(resource_group_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def execute_async(resource_group_name, name, custom_headers:nil) + def execute_async(resource_group_name, name, custom_headers = nil) # Send request - promise = begin_execute_async(resource_group_name, name, custom_headers:custom_headers) + promise = begin_execute_async(resource_group_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -679,8 +677,8 @@ def execute_async(resource_group_name, name, custom_headers:nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def retarget(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) - response = retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers).value! + def retarget(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) + response = retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value! nil end @@ -695,9 +693,9 @@ def retarget(resource_group_name, name, retarget_schedule_properties, custom_hea # @return [Concurrent::Promise] promise which provides async access to http # response. # - def retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) + def retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) # Send request - promise = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers) + promise = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -720,8 +718,8 @@ def retarget_async(resource_group_name, name, retarget_schedule_properties, cust # will be added to the HTTP request. # # - def begin_execute(resource_group_name, name, custom_headers:nil) - response = begin_execute_async(resource_group_name, name, custom_headers:custom_headers).value! + def begin_execute(resource_group_name, name, custom_headers = nil) + response = begin_execute_async(resource_group_name, name, custom_headers).value! nil end @@ -735,8 +733,8 @@ def begin_execute(resource_group_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_execute_with_http_info(resource_group_name, name, custom_headers:nil) - begin_execute_async(resource_group_name, name, custom_headers:custom_headers).value! + def begin_execute_with_http_info(resource_group_name, name, custom_headers = nil) + begin_execute_async(resource_group_name, name, custom_headers).value! end # @@ -749,7 +747,7 @@ def begin_execute_with_http_info(resource_group_name, name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_execute_async(resource_group_name, name, custom_headers:nil) + def begin_execute_async(resource_group_name, 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, 'name is nil' if name.nil? @@ -757,7 +755,6 @@ def begin_execute_async(resource_group_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -804,8 +801,8 @@ def begin_execute_async(resource_group_name, name, custom_headers:nil) # will be added to the HTTP request. # # - def begin_retarget(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) - response = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers).value! + def begin_retarget(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) + response = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value! nil end @@ -822,8 +819,8 @@ def begin_retarget(resource_group_name, name, retarget_schedule_properties, cust # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_retarget_with_http_info(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) - begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers).value! + def begin_retarget_with_http_info(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) + begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value! end # @@ -839,7 +836,7 @@ def begin_retarget_with_http_info(resource_group_name, name, retarget_schedule_p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) + def begin_retarget_async(resource_group_name, name, retarget_schedule_properties, 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, 'name is nil' if name.nil? @@ -848,12 +845,13 @@ def begin_retarget_async(resource_group_name, name, retarget_schedule_properties 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::DevTestLabs::Mgmt::V2016_05_15::Models::RetargetScheduleProperties.mapper() request_content = @client.serialize(request_mapper, retarget_schedule_properties) @@ -900,8 +898,8 @@ def begin_retarget_async(resource_group_name, name, retarget_schedule_properties # # @return [ResponseWithContinuationSchedule] operation results. # - def list_by_subscription_next(next_page_link, custom_headers:nil) - response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! + 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 @@ -915,8 +913,8 @@ def list_by_subscription_next(next_page_link, custom_headers:nil) # # @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:custom_headers).value! + 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 # @@ -929,12 +927,11 @@ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers:nil) + 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 = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -988,8 +985,8 @@ def list_by_subscription_next_async(next_page_link, custom_headers:nil) # # @return [ResponseWithContinuationSchedule] 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 @@ -1003,8 +1000,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 # @@ -1017,12 +1014,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 @@ -1082,12 +1078,12 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_by_subscription_as_lazy(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_by_subscription_as_lazy(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_by_subscription_async(expand, filter, top, orderby, 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:custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers) end page end @@ -1110,12 +1106,12 @@ def list_by_subscription_as_lazy(expand:nil, filter:nil, top:nil, orderby:nil, c # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_by_resource_group_as_lazy(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, 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 diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb index 2dcfd7fd49..aa966e1f3c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb @@ -36,8 +36,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_subscription(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_by_subscription_as_lazy(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list_by_subscription(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_by_subscription_as_lazy(expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ def list_by_subscription(expand:nil, filter:nil, top:nil, orderby:nil, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_by_subscription_with_http_info(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_by_subscription_async(expand, filter, top, orderby, custom_headers).value! end # @@ -75,13 +75,12 @@ def list_by_subscription_with_http_info(expand:nil, filter:nil, top:nil, orderby # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_by_subscription_async(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -142,8 +141,8 @@ def list_by_subscription_async(expand:nil, filter:nil, top:nil, orderby:nil, cus # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -163,8 +162,8 @@ def list_by_resource_group(resource_group_name, expand:nil, filter:nil, top:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value! end # @@ -183,14 +182,13 @@ def list_by_resource_group_with_http_info(resource_group_name, expand:nil, filte # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, '@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 @@ -247,8 +245,8 @@ def list_by_resource_group_async(resource_group_name, expand:nil, filter:nil, to # # @return [Lab] operation results. # - def get(resource_group_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -264,8 +262,8 @@ def get(resource_group_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, name, expand, custom_headers).value! end # @@ -280,7 +278,7 @@ def get_with_http_info(resource_group_name, name, expand:nil, custom_headers:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, name, expand = nil, 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, 'name is nil' if name.nil? @@ -288,7 +286,6 @@ def get_async(resource_group_name, name, expand:nil, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -345,8 +342,8 @@ def get_async(resource_group_name, name, expand:nil, custom_headers:nil) # # @return [Lab] operation results. # - def create_or_update(resource_group_name, name, lab, custom_headers:nil) - response = create_or_update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, name, lab, custom_headers = nil) + response = create_or_update_async(resource_group_name, name, lab, custom_headers).value! response.body unless response.nil? end @@ -360,9 +357,9 @@ def create_or_update(resource_group_name, name, lab, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, name, lab, custom_headers:nil) + def create_or_update_async(resource_group_name, name, lab, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, name, lab, custom_headers:custom_headers) + promise = begin_create_or_update_async(resource_group_name, name, lab, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -386,8 +383,8 @@ def create_or_update_async(resource_group_name, name, lab, custom_headers:nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, name, custom_headers:nil) - response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, name, custom_headers = nil) + response = delete_async(resource_group_name, name, custom_headers).value! nil end @@ -400,9 +397,9 @@ def delete(resource_group_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, name, custom_headers:nil) + def delete_async(resource_group_name, name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -427,8 +424,8 @@ def delete_async(resource_group_name, name, custom_headers:nil) # # @return [Lab] operation results. # - def update(resource_group_name, name, lab, custom_headers:nil) - response = update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! + def update(resource_group_name, name, lab, custom_headers = nil) + response = update_async(resource_group_name, name, lab, custom_headers).value! response.body unless response.nil? end @@ -443,8 +440,8 @@ def update(resource_group_name, name, lab, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, name, lab, custom_headers:nil) - update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, name, lab, custom_headers = nil) + update_async(resource_group_name, name, lab, custom_headers).value! end # @@ -458,7 +455,7 @@ def update_with_http_info(resource_group_name, name, lab, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, name, lab, custom_headers:nil) + def update_async(resource_group_name, name, lab, 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, 'name is nil' if name.nil? @@ -467,12 +464,13 @@ def update_async(resource_group_name, name, lab, custom_headers: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::DevTestLabs::Mgmt::V2016_05_15::Models::LabFragment.mapper() request_content = @client.serialize(request_mapper, lab) @@ -528,8 +526,8 @@ def update_async(resource_group_name, name, lab, custom_headers:nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def claim_any_vm(resource_group_name, name, custom_headers:nil) - response = claim_any_vm_async(resource_group_name, name, custom_headers:custom_headers).value! + def claim_any_vm(resource_group_name, name, custom_headers = nil) + response = claim_any_vm_async(resource_group_name, name, custom_headers).value! nil end @@ -542,9 +540,9 @@ def claim_any_vm(resource_group_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def claim_any_vm_async(resource_group_name, name, custom_headers:nil) + def claim_any_vm_async(resource_group_name, name, custom_headers = nil) # Send request - promise = begin_claim_any_vm_async(resource_group_name, name, custom_headers:custom_headers) + promise = begin_claim_any_vm_async(resource_group_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -570,8 +568,8 @@ def claim_any_vm_async(resource_group_name, name, custom_headers:nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) - response = create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:custom_headers).value! + def create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) + response = create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers).value! nil end @@ -587,9 +585,9 @@ def create_environment(resource_group_name, name, lab_virtual_machine_creation_p # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) + def create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) # Send request - promise = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:custom_headers) + promise = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -614,8 +612,8 @@ def create_environment_async(resource_group_name, name, lab_virtual_machine_crea # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) - response = export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:custom_headers).value! + def export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) + response = export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers).value! nil end @@ -630,9 +628,9 @@ def export_resource_usage(resource_group_name, name, export_resource_usage_param # @return [Concurrent::Promise] promise which provides async access to http # response. # - def export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) + def export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) # Send request - promise = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:custom_headers) + promise = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -658,8 +656,8 @@ def export_resource_usage_async(resource_group_name, name, export_resource_usage # # @return [GenerateUploadUriResponse] operation results. # - def generate_upload_uri(resource_group_name, name, generate_upload_uri_parameter, custom_headers:nil) - response = generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers:custom_headers).value! + def generate_upload_uri(resource_group_name, name, generate_upload_uri_parameter, custom_headers = nil) + response = generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers).value! response.body unless response.nil? end @@ -675,8 +673,8 @@ def generate_upload_uri(resource_group_name, name, generate_upload_uri_parameter # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_upload_uri_with_http_info(resource_group_name, name, generate_upload_uri_parameter, custom_headers:nil) - generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers:custom_headers).value! + def generate_upload_uri_with_http_info(resource_group_name, name, generate_upload_uri_parameter, custom_headers = nil) + generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers).value! end # @@ -691,7 +689,7 @@ def generate_upload_uri_with_http_info(resource_group_name, name, generate_uploa # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers:nil) + def generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, 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, 'name is nil' if name.nil? @@ -700,12 +698,13 @@ def generate_upload_uri_async(resource_group_name, name, generate_upload_uri_par 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::DevTestLabs::Mgmt::V2016_05_15::Models::GenerateUploadUriParameter.mapper() request_content = @client.serialize(request_mapper, generate_upload_uri_parameter) @@ -762,8 +761,8 @@ def generate_upload_uri_async(resource_group_name, name, generate_upload_uri_par # # @return [Array] operation results. # - def list_vhds(resource_group_name, name, custom_headers:nil) - first_page = list_vhds_as_lazy(resource_group_name, name, custom_headers:custom_headers) + def list_vhds(resource_group_name, name, custom_headers = nil) + first_page = list_vhds_as_lazy(resource_group_name, name, custom_headers) first_page.get_all_items end @@ -777,8 +776,8 @@ def list_vhds(resource_group_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_vhds_with_http_info(resource_group_name, name, custom_headers:nil) - list_vhds_async(resource_group_name, name, custom_headers:custom_headers).value! + def list_vhds_with_http_info(resource_group_name, name, custom_headers = nil) + list_vhds_async(resource_group_name, name, custom_headers).value! end # @@ -791,7 +790,7 @@ def list_vhds_with_http_info(resource_group_name, name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_vhds_async(resource_group_name, name, custom_headers:nil) + def list_vhds_async(resource_group_name, 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, 'name is nil' if name.nil? @@ -799,7 +798,6 @@ def list_vhds_async(resource_group_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -856,8 +854,8 @@ def list_vhds_async(resource_group_name, name, custom_headers:nil) # # @return [Lab] operation results. # - def begin_create_or_update(resource_group_name, name, lab, custom_headers:nil) - response = begin_create_or_update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! + def begin_create_or_update(resource_group_name, name, lab, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, name, lab, custom_headers).value! response.body unless response.nil? end @@ -873,8 +871,8 @@ def begin_create_or_update(resource_group_name, name, lab, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, name, lab, custom_headers:nil) - begin_create_or_update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, name, lab, custom_headers = nil) + begin_create_or_update_async(resource_group_name, name, lab, custom_headers).value! end # @@ -889,7 +887,7 @@ def begin_create_or_update_with_http_info(resource_group_name, name, lab, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, name, lab, custom_headers:nil) + def begin_create_or_update_async(resource_group_name, name, lab, 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, 'name is nil' if name.nil? @@ -898,12 +896,13 @@ def begin_create_or_update_async(resource_group_name, name, lab, custom_headers: 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::DevTestLabs::Mgmt::V2016_05_15::Models::Lab.mapper() request_content = @client.serialize(request_mapper, lab) @@ -969,8 +968,8 @@ def begin_create_or_update_async(resource_group_name, name, lab, custom_headers: # will be added to the HTTP request. # # - def begin_delete(resource_group_name, name, custom_headers:nil) - response = begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, name, custom_headers).value! nil end @@ -984,8 +983,8 @@ def begin_delete(resource_group_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, name, custom_headers:nil) - begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, name, custom_headers).value! end # @@ -998,7 +997,7 @@ def begin_delete_with_http_info(resource_group_name, name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, name, custom_headers:nil) + def begin_delete_async(resource_group_name, 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, 'name is nil' if name.nil? @@ -1006,7 +1005,6 @@ def begin_delete_async(resource_group_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1051,8 +1049,8 @@ def begin_delete_async(resource_group_name, name, custom_headers:nil) # will be added to the HTTP request. # # - def begin_claim_any_vm(resource_group_name, name, custom_headers:nil) - response = begin_claim_any_vm_async(resource_group_name, name, custom_headers:custom_headers).value! + def begin_claim_any_vm(resource_group_name, name, custom_headers = nil) + response = begin_claim_any_vm_async(resource_group_name, name, custom_headers).value! nil end @@ -1067,8 +1065,8 @@ def begin_claim_any_vm(resource_group_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_claim_any_vm_with_http_info(resource_group_name, name, custom_headers:nil) - begin_claim_any_vm_async(resource_group_name, name, custom_headers:custom_headers).value! + def begin_claim_any_vm_with_http_info(resource_group_name, name, custom_headers = nil) + begin_claim_any_vm_async(resource_group_name, name, custom_headers).value! end # @@ -1082,7 +1080,7 @@ def begin_claim_any_vm_with_http_info(resource_group_name, name, custom_headers: # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_claim_any_vm_async(resource_group_name, name, custom_headers:nil) + def begin_claim_any_vm_async(resource_group_name, 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, 'name is nil' if name.nil? @@ -1090,7 +1088,6 @@ def begin_claim_any_vm_async(resource_group_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1138,8 +1135,8 @@ def begin_claim_any_vm_async(resource_group_name, name, custom_headers:nil) # will be added to the HTTP request. # # - def begin_create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) - response = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:custom_headers).value! + def begin_create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) + response = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers).value! nil end @@ -1157,8 +1154,8 @@ def begin_create_environment(resource_group_name, name, lab_virtual_machine_crea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_environment_with_http_info(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) - begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:custom_headers).value! + def begin_create_environment_with_http_info(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) + begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers).value! end # @@ -1175,7 +1172,7 @@ def begin_create_environment_with_http_info(resource_group_name, name, lab_virtu # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) + def begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, 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, 'name is nil' if name.nil? @@ -1184,12 +1181,13 @@ def begin_create_environment_async(resource_group_name, name, lab_virtual_machin 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::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachineCreationParameter.mapper() request_content = @client.serialize(request_mapper, lab_virtual_machine_creation_parameter) @@ -1238,8 +1236,8 @@ def begin_create_environment_async(resource_group_name, name, lab_virtual_machin # will be added to the HTTP request. # # - def begin_export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) - response = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:custom_headers).value! + def begin_export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) + response = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers).value! nil end @@ -1256,8 +1254,8 @@ def begin_export_resource_usage(resource_group_name, name, export_resource_usage # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_export_resource_usage_with_http_info(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) - begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:custom_headers).value! + def begin_export_resource_usage_with_http_info(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) + begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers).value! end # @@ -1273,7 +1271,7 @@ def begin_export_resource_usage_with_http_info(resource_group_name, name, export # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) + def begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, 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, 'name is nil' if name.nil? @@ -1282,12 +1280,13 @@ def begin_export_resource_usage_async(resource_group_name, name, export_resource 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::DevTestLabs::Mgmt::V2016_05_15::Models::ExportResourceUsageParameters.mapper() request_content = @client.serialize(request_mapper, export_resource_usage_parameters) @@ -1334,8 +1333,8 @@ def begin_export_resource_usage_async(resource_group_name, name, export_resource # # @return [ResponseWithContinuationLab] operation results. # - def list_by_subscription_next(next_page_link, custom_headers:nil) - response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! + 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 @@ -1349,8 +1348,8 @@ def list_by_subscription_next(next_page_link, custom_headers:nil) # # @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:custom_headers).value! + 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 # @@ -1363,12 +1362,11 @@ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers:nil) + 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 = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1422,8 +1420,8 @@ def list_by_subscription_next_async(next_page_link, custom_headers:nil) # # @return [ResponseWithContinuationLab] 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 @@ -1437,8 +1435,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 # @@ -1451,12 +1449,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 @@ -1510,8 +1507,8 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # # @return [ResponseWithContinuationLabVhd] operation results. # - def list_vhds_next(next_page_link, custom_headers:nil) - response = list_vhds_next_async(next_page_link, custom_headers:custom_headers).value! + def list_vhds_next(next_page_link, custom_headers = nil) + response = list_vhds_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1525,8 +1522,8 @@ def list_vhds_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_vhds_next_with_http_info(next_page_link, custom_headers:nil) - list_vhds_next_async(next_page_link, custom_headers:custom_headers).value! + def list_vhds_next_with_http_info(next_page_link, custom_headers = nil) + list_vhds_next_async(next_page_link, custom_headers).value! end # @@ -1539,12 +1536,11 @@ def list_vhds_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_vhds_next_async(next_page_link, custom_headers:nil) + def list_vhds_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 @@ -1604,12 +1600,12 @@ def list_vhds_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationLab] which provide lazy access to pages of # the response. # - def list_by_subscription_as_lazy(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_by_subscription_as_lazy(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_by_subscription_async(expand, filter, top, orderby, 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:custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers) end page end @@ -1632,12 +1628,12 @@ def list_by_subscription_as_lazy(expand:nil, filter:nil, top:nil, orderby:nil, c # @return [ResponseWithContinuationLab] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, 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 @@ -1654,12 +1650,12 @@ def list_by_resource_group_as_lazy(resource_group_name, expand:nil, filter:nil, # @return [ResponseWithContinuationLabVhd] which provide lazy access to pages # of the response. # - def list_vhds_as_lazy(resource_group_name, name, custom_headers:nil) - response = list_vhds_async(resource_group_name, name, custom_headers:custom_headers).value! + def list_vhds_as_lazy(resource_group_name, name, custom_headers = nil) + response = list_vhds_async(resource_group_name, name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_vhds_next_async(next_page_link, custom_headers:custom_headers) + list_vhds_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb index b5df8c8cf6..2ad939814e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb @@ -28,7 +28,6 @@ class ApplicableSchedule < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApplicableSchedule', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ApplicableSchedule', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -45,7 +43,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -63,7 +59,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -71,13 +66,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: { @@ -87,7 +80,6 @@ def self.mapper() } }, lab_vms_shutdown: { - client_side_validation: true, required: false, serialized_name: 'properties.labVmsShutdown', type: { @@ -96,7 +88,6 @@ def self.mapper() } }, lab_vms_startup: { - client_side_validation: true, required: false, serialized_name: 'properties.labVmsStartup', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb index bd9d49966f..3d7f493b33 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb @@ -28,7 +28,6 @@ class ApplicableScheduleFragment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApplicableScheduleFragment', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ApplicableScheduleFragment', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -45,7 +43,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -63,7 +59,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -71,13 +66,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: { @@ -87,7 +80,6 @@ def self.mapper() } }, lab_vms_shutdown: { - client_side_validation: true, required: false, serialized_name: 'properties.labVmsShutdown', type: { @@ -96,7 +88,6 @@ def self.mapper() } }, lab_vms_startup: { - client_side_validation: true, required: false, serialized_name: 'properties.labVmsStartup', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb index 8faa27bdd7..d06d3878ff 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb @@ -23,7 +23,6 @@ class ApplyArtifactsRequest # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApplyArtifactsRequest', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'ApplyArtifactsRequest', model_properties: { artifacts: { - client_side_validation: true, required: false, serialized_name: 'artifacts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArtifactInstallPropertiesElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb index 666ab5cf9c..b8689035d8 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb @@ -42,7 +42,6 @@ class ArmTemplate < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArmTemplate', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'ArmTemplate', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -59,7 +57,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -68,7 +65,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -77,7 +73,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -85,13 +80,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: { @@ -101,7 +94,6 @@ def self.mapper() } }, display_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.displayName', @@ -110,7 +102,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.description', @@ -119,7 +110,6 @@ def self.mapper() } }, publisher: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.publisher', @@ -128,7 +118,6 @@ def self.mapper() } }, icon: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.icon', @@ -137,7 +126,6 @@ def self.mapper() } }, contents: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.contents', @@ -146,7 +134,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -155,14 +142,12 @@ def self.mapper() } }, parameters_value_files_info: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.parametersValueFilesInfo', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParametersValueFileInfoElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb index 2934516e1e..bf915cb76b 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb @@ -25,7 +25,6 @@ class ArmTemplateInfo # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArmTemplateInfo', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ArmTemplateInfo', model_properties: { template: { - client_side_validation: true, required: false, serialized_name: 'template', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'parameters', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb index 9415dac9ca..bb5dd86373 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb @@ -25,7 +25,6 @@ class ArmTemplateParameterProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArmTemplateParameterProperties', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ArmTemplateParameterProperties', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact.rb index 36e0d3ff38..7b1d1d2398 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact.rb @@ -43,7 +43,6 @@ class Artifact < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Artifact', type: { @@ -51,7 +50,6 @@ def self.mapper() class_name: 'Artifact', 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: false, read_only: true, serialized_name: 'name', @@ -69,7 +66,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -78,7 +74,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -86,13 +81,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: { @@ -102,7 +95,6 @@ def self.mapper() } }, title: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.title', @@ -111,7 +103,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.description', @@ -120,7 +111,6 @@ def self.mapper() } }, publisher: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.publisher', @@ -129,7 +119,6 @@ def self.mapper() } }, file_path: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.filePath', @@ -138,7 +127,6 @@ def self.mapper() } }, icon: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.icon', @@ -147,7 +135,6 @@ def self.mapper() } }, target_os_type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.targetOsType', @@ -156,7 +143,6 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.parameters', @@ -165,7 +151,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb index 62a5873d71..92e1e6ae66 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb @@ -30,7 +30,6 @@ class ArtifactDeploymentStatusProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArtifactDeploymentStatusProperties', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'ArtifactDeploymentStatusProperties', model_properties: { deployment_status: { - client_side_validation: true, required: false, serialized_name: 'deploymentStatus', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, artifacts_applied: { - client_side_validation: true, required: false, serialized_name: 'artifactsApplied', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, total_artifacts: { - client_side_validation: true, required: false, serialized_name: 'totalArtifacts', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb index 8300efbd1d..837b33082f 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb @@ -31,7 +31,6 @@ class ArtifactDeploymentStatusPropertiesFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArtifactDeploymentStatusPropertiesFragment', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'ArtifactDeploymentStatusPropertiesFragment', model_properties: { deployment_status: { - client_side_validation: true, required: false, serialized_name: 'deploymentStatus', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, artifacts_applied: { - client_side_validation: true, required: false, serialized_name: 'artifactsApplied', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, total_artifacts: { - client_side_validation: true, required: false, serialized_name: 'totalArtifacts', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb index 6a666ad2cd..a1b068f0b7 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb @@ -39,7 +39,6 @@ class ArtifactInstallProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArtifactInstallProperties', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'ArtifactInstallProperties', model_properties: { artifact_id: { - client_side_validation: true, required: false, serialized_name: 'artifactId', type: { @@ -55,13 +53,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'parameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArtifactParameterPropertiesElementType', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -80,7 +75,6 @@ def self.mapper() } }, deployment_status_message: { - client_side_validation: true, required: false, serialized_name: 'deploymentStatusMessage', type: { @@ -88,7 +82,6 @@ def self.mapper() } }, vm_extension_status_message: { - client_side_validation: true, required: false, serialized_name: 'vmExtensionStatusMessage', type: { @@ -96,7 +89,6 @@ def self.mapper() } }, install_time: { - client_side_validation: true, required: false, serialized_name: 'installTime', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb index 44ea9249dd..30a5a8ac86 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb @@ -39,7 +39,6 @@ class ArtifactInstallPropertiesFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArtifactInstallPropertiesFragment', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'ArtifactInstallPropertiesFragment', model_properties: { artifact_id: { - client_side_validation: true, required: false, serialized_name: 'artifactId', type: { @@ -55,13 +53,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'parameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArtifactParameterPropertiesFragmentElementType', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -80,7 +75,6 @@ def self.mapper() } }, deployment_status_message: { - client_side_validation: true, required: false, serialized_name: 'deploymentStatusMessage', type: { @@ -88,7 +82,6 @@ def self.mapper() } }, vm_extension_status_message: { - client_side_validation: true, required: false, serialized_name: 'vmExtensionStatusMessage', type: { @@ -96,7 +89,6 @@ def self.mapper() } }, install_time: { - client_side_validation: true, required: false, serialized_name: 'installTime', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb index e06a10d71a..4bdcf74b42 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb @@ -25,7 +25,6 @@ class ArtifactParameterProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArtifactParameterProperties', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ArtifactParameterProperties', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb index 2593ec3827..a6c648cc13 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb @@ -25,7 +25,6 @@ class ArtifactParameterPropertiesFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArtifactParameterPropertiesFragment', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ArtifactParameterPropertiesFragment', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb index 94619c8cb6..682e3f7400 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb @@ -57,7 +57,6 @@ class ArtifactSource < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArtifactSource', type: { @@ -65,7 +64,6 @@ def self.mapper() class_name: 'ArtifactSource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -74,7 +72,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -83,7 +80,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -92,7 +88,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -100,13 +95,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: { @@ -116,7 +109,6 @@ def self.mapper() } }, display_name: { - client_side_validation: true, required: false, serialized_name: 'properties.displayName', type: { @@ -124,7 +116,6 @@ def self.mapper() } }, uri: { - client_side_validation: true, required: false, serialized_name: 'properties.uri', type: { @@ -132,7 +123,6 @@ def self.mapper() } }, source_type: { - client_side_validation: true, required: false, serialized_name: 'properties.sourceType', type: { @@ -140,7 +130,6 @@ def self.mapper() } }, folder_path: { - client_side_validation: true, required: false, serialized_name: 'properties.folderPath', type: { @@ -148,7 +137,6 @@ def self.mapper() } }, arm_template_folder_path: { - client_side_validation: true, required: false, serialized_name: 'properties.armTemplateFolderPath', type: { @@ -156,7 +144,6 @@ def self.mapper() } }, branch_ref: { - client_side_validation: true, required: false, serialized_name: 'properties.branchRef', type: { @@ -164,7 +151,6 @@ def self.mapper() } }, security_token: { - client_side_validation: true, required: false, serialized_name: 'properties.securityToken', type: { @@ -172,7 +158,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -180,7 +165,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -189,7 +173,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -197,7 +180,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb index 0c4048914e..49df60bfdc 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb @@ -54,7 +54,6 @@ class ArtifactSourceFragment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ArtifactSourceFragment', type: { @@ -62,7 +61,6 @@ def self.mapper() class_name: 'ArtifactSourceFragment', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -71,7 +69,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -80,7 +77,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -89,7 +85,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -97,13 +92,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: { @@ -113,7 +106,6 @@ def self.mapper() } }, display_name: { - client_side_validation: true, required: false, serialized_name: 'properties.displayName', type: { @@ -121,7 +113,6 @@ def self.mapper() } }, uri: { - client_side_validation: true, required: false, serialized_name: 'properties.uri', type: { @@ -129,7 +120,6 @@ def self.mapper() } }, source_type: { - client_side_validation: true, required: false, serialized_name: 'properties.sourceType', type: { @@ -137,7 +127,6 @@ def self.mapper() } }, folder_path: { - client_side_validation: true, required: false, serialized_name: 'properties.folderPath', type: { @@ -145,7 +134,6 @@ def self.mapper() } }, arm_template_folder_path: { - client_side_validation: true, required: false, serialized_name: 'properties.armTemplateFolderPath', type: { @@ -153,7 +141,6 @@ def self.mapper() } }, branch_ref: { - client_side_validation: true, required: false, serialized_name: 'properties.branchRef', type: { @@ -161,7 +148,6 @@ def self.mapper() } }, security_token: { - client_side_validation: true, required: false, serialized_name: 'properties.securityToken', type: { @@ -169,7 +155,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -177,7 +162,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -185,7 +169,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb index 7e229be71f..4fe410128e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb @@ -23,7 +23,6 @@ class AttachDiskProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AttachDiskProperties', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'AttachDiskProperties', model_properties: { leased_by_lab_vm_id: { - client_side_validation: true, required: false, serialized_name: 'leasedByLabVmId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb index 2f1fe406b2..726d0c606e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb @@ -12,7 +12,7 @@ class AttachNewDataDiskOptions include MsRestAzure - # @return [Integer] Size of the disk to be attached in GibiBytes. + # @return [Integer] Size of the disk to be attached in Gibibytes. attr_accessor :disk_size_gi_b # @return [String] The name of the disk to be attached. @@ -29,7 +29,6 @@ class AttachNewDataDiskOptions # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AttachNewDataDiskOptions', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'AttachNewDataDiskOptions', model_properties: { disk_size_gi_b: { - client_side_validation: true, required: false, serialized_name: 'diskSizeGiB', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, disk_name: { - client_side_validation: true, required: false, serialized_name: 'diskName', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, disk_type: { - client_side_validation: true, required: false, serialized_name: 'diskType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb index c2edc223b5..f5154d5108 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb @@ -22,7 +22,6 @@ class BulkCreationParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BulkCreationParameters', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'BulkCreationParameters', model_properties: { instance_count: { - client_side_validation: true, required: false, serialized_name: 'instanceCount', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb index 3db2d52c05..1bd9a1ccf9 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb @@ -32,7 +32,6 @@ class ComputeDataDisk # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ComputeDataDisk', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'ComputeDataDisk', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, disk_uri: { - client_side_validation: true, required: false, serialized_name: 'diskUri', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, managed_disk_id: { - client_side_validation: true, required: false, serialized_name: 'managedDiskId', type: { @@ -64,7 +60,6 @@ def self.mapper() } }, disk_size_gi_b: { - client_side_validation: true, required: false, serialized_name: 'diskSizeGiB', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb index d41f60eeb3..15efd90804 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb @@ -32,7 +32,6 @@ class ComputeDataDiskFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ComputeDataDiskFragment', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'ComputeDataDiskFragment', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, disk_uri: { - client_side_validation: true, required: false, serialized_name: 'diskUri', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, managed_disk_id: { - client_side_validation: true, required: false, serialized_name: 'managedDiskId', type: { @@ -64,7 +60,6 @@ def self.mapper() } }, disk_size_gi_b: { - client_side_validation: true, required: false, serialized_name: 'diskSizeGiB', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb index e7a8db7592..e69fb927e1 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb @@ -28,7 +28,6 @@ class ComputeVmInstanceViewStatus # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ComputeVmInstanceViewStatus', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ComputeVmInstanceViewStatus', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, display_status: { - client_side_validation: true, required: false, serialized_name: 'displayStatus', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb index 071d55639c..783a16160a 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb @@ -28,7 +28,6 @@ class ComputeVmInstanceViewStatusFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ComputeVmInstanceViewStatusFragment', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ComputeVmInstanceViewStatusFragment', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, display_status: { - client_side_validation: true, required: false, serialized_name: 'displayStatus', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb index bb7ac9f7fc..39f775bcd3 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb @@ -43,7 +43,6 @@ class ComputeVmProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ComputeVmProperties', type: { @@ -51,13 +50,11 @@ def self.mapper() class_name: 'ComputeVmProperties', model_properties: { statuses: { - client_side_validation: true, required: false, serialized_name: 'statuses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ComputeVmInstanceViewStatusElementType', type: { @@ -68,7 +65,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'osType', type: { @@ -76,7 +72,6 @@ def self.mapper() } }, vm_size: { - client_side_validation: true, required: false, serialized_name: 'vmSize', type: { @@ -84,7 +79,6 @@ def self.mapper() } }, network_interface_id: { - client_side_validation: true, required: false, serialized_name: 'networkInterfaceId', type: { @@ -92,7 +86,6 @@ def self.mapper() } }, os_disk_id: { - client_side_validation: true, required: false, serialized_name: 'osDiskId', type: { @@ -100,13 +93,11 @@ def self.mapper() } }, data_disk_ids: { - client_side_validation: true, required: false, serialized_name: 'dataDiskIds', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -116,13 +107,11 @@ def self.mapper() } }, data_disks: { - client_side_validation: true, required: false, serialized_name: 'dataDisks', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ComputeDataDiskElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb index f9d426944b..ca6bee1140 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb @@ -43,7 +43,6 @@ class ComputeVmPropertiesFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ComputeVmPropertiesFragment', type: { @@ -51,13 +50,11 @@ def self.mapper() class_name: 'ComputeVmPropertiesFragment', model_properties: { statuses: { - client_side_validation: true, required: false, serialized_name: 'statuses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ComputeVmInstanceViewStatusFragmentElementType', type: { @@ -68,7 +65,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'osType', type: { @@ -76,7 +72,6 @@ def self.mapper() } }, vm_size: { - client_side_validation: true, required: false, serialized_name: 'vmSize', type: { @@ -84,7 +79,6 @@ def self.mapper() } }, network_interface_id: { - client_side_validation: true, required: false, serialized_name: 'networkInterfaceId', type: { @@ -92,7 +86,6 @@ def self.mapper() } }, os_disk_id: { - client_side_validation: true, required: false, serialized_name: 'osDiskId', type: { @@ -100,13 +93,11 @@ def self.mapper() } }, data_disk_ids: { - client_side_validation: true, required: false, serialized_name: 'dataDiskIds', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -116,13 +107,11 @@ def self.mapper() } }, data_disks: { - client_side_validation: true, required: false, serialized_name: 'dataDisks', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ComputeDataDiskFragmentElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb index 864a85ef83..6fa7ecd2a7 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb @@ -40,7 +40,6 @@ class CostThresholdProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CostThresholdProperties', type: { @@ -48,7 +47,6 @@ def self.mapper() class_name: 'CostThresholdProperties', model_properties: { threshold_id: { - client_side_validation: true, required: false, serialized_name: 'thresholdId', type: { @@ -56,7 +54,6 @@ def self.mapper() } }, percentage_threshold: { - client_side_validation: true, required: false, serialized_name: 'percentageThreshold', type: { @@ -65,7 +62,6 @@ def self.mapper() } }, display_on_chart: { - client_side_validation: true, required: false, serialized_name: 'displayOnChart', type: { @@ -73,7 +69,6 @@ def self.mapper() } }, send_notification_when_exceeded: { - client_side_validation: true, required: false, serialized_name: 'sendNotificationWhenExceeded', type: { @@ -81,7 +76,6 @@ def self.mapper() } }, notification_sent: { - client_side_validation: true, required: false, serialized_name: 'notificationSent', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb index 40e7a89f8f..b692055d82 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb @@ -45,7 +45,6 @@ class CustomImage < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomImage', type: { @@ -53,7 +52,6 @@ def self.mapper() class_name: 'CustomImage', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -62,7 +60,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -71,7 +68,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -80,7 +76,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -88,13 +83,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: { @@ -104,7 +97,6 @@ def self.mapper() } }, vm: { - client_side_validation: true, required: false, serialized_name: 'properties.vm', type: { @@ -113,7 +105,6 @@ def self.mapper() } }, vhd: { - client_side_validation: true, required: false, serialized_name: 'properties.vhd', type: { @@ -122,7 +113,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -130,7 +120,6 @@ def self.mapper() } }, author: { - client_side_validation: true, required: false, serialized_name: 'properties.author', type: { @@ -138,7 +127,6 @@ def self.mapper() } }, creation_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationDate', @@ -147,7 +135,6 @@ def self.mapper() } }, managed_image_id: { - client_side_validation: true, required: false, serialized_name: 'properties.managedImageId', type: { @@ -155,7 +142,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -163,7 +149,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb index a34241b99d..985a614304 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb @@ -29,7 +29,6 @@ class CustomImagePropertiesCustom # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomImagePropertiesCustom', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'CustomImagePropertiesCustom', model_properties: { image_name: { - client_side_validation: true, required: false, serialized_name: 'imageName', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, sys_prep: { - client_side_validation: true, required: false, serialized_name: 'sysPrep', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: true, serialized_name: 'osType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb index ac8abe82d8..973571544c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb @@ -28,7 +28,6 @@ class CustomImagePropertiesFromVm # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomImagePropertiesFromVm', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'CustomImagePropertiesFromVm', model_properties: { source_vm_id: { - client_side_validation: true, required: false, serialized_name: 'sourceVmId', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, windows_os_info: { - client_side_validation: true, required: false, serialized_name: 'windowsOsInfo', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, linux_os_info: { - client_side_validation: true, required: false, serialized_name: 'linuxOsInfo', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb index 365106409c..89d960bacf 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb @@ -32,7 +32,6 @@ class DataDiskProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DataDiskProperties', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'DataDiskProperties', model_properties: { attach_new_data_disk_options: { - client_side_validation: true, required: false, serialized_name: 'attachNewDataDiskOptions', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, existing_lab_disk_id: { - client_side_validation: true, required: false, serialized_name: 'existingLabDiskId', type: { @@ -57,7 +54,6 @@ def self.mapper() } }, host_caching: { - client_side_validation: true, required: false, serialized_name: 'hostCaching', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/day_details.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/day_details.rb index d1c5e56c63..5f99614f88 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/day_details.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/day_details.rb @@ -22,7 +22,6 @@ class DayDetails # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DayDetails', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'DayDetails', model_properties: { time: { - client_side_validation: true, required: false, serialized_name: 'time', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb index c11df26e47..697ffe8229 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb @@ -22,7 +22,6 @@ class DayDetailsFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DayDetailsFragment', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'DayDetailsFragment', model_properties: { time: { - client_side_validation: true, required: false, serialized_name: 'time', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb index d9cfdc5ae1..ec753c61af 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb @@ -23,7 +23,6 @@ class DetachDataDiskProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DetachDataDiskProperties', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'DetachDataDiskProperties', model_properties: { existing_lab_disk_id: { - client_side_validation: true, required: false, serialized_name: 'existingLabDiskId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb index c9773dc585..e81014146a 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb @@ -23,7 +23,6 @@ class DetachDiskProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DetachDiskProperties', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'DetachDiskProperties', model_properties: { leased_by_lab_vm_id: { - client_side_validation: true, required: false, serialized_name: 'leasedByLabVmId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/disk.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/disk.rb index 75c705679f..8c3977f8da 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/disk.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/disk.rb @@ -16,7 +16,7 @@ class Disk < Resource # Premium). Possible values include: 'Standard', 'Premium' attr_accessor :disk_type - # @return [Integer] The size of the disk in GibiBytes. + # @return [Integer] The size of the disk in Gibibytes. attr_accessor :disk_size_gi_b # @return [String] The resource ID of the VM to which this disk is @@ -54,7 +54,6 @@ class Disk < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Disk', type: { @@ -62,7 +61,6 @@ def self.mapper() class_name: 'Disk', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -71,7 +69,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -80,7 +77,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -89,7 +85,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -97,13 +92,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: { @@ -113,7 +106,6 @@ def self.mapper() } }, disk_type: { - client_side_validation: true, required: false, serialized_name: 'properties.diskType', type: { @@ -121,7 +113,6 @@ def self.mapper() } }, disk_size_gi_b: { - client_side_validation: true, required: false, serialized_name: 'properties.diskSizeGiB', type: { @@ -129,7 +120,6 @@ def self.mapper() } }, leased_by_lab_vm_id: { - client_side_validation: true, required: false, serialized_name: 'properties.leasedByLabVmId', type: { @@ -137,7 +127,6 @@ def self.mapper() } }, disk_blob_name: { - client_side_validation: true, required: false, serialized_name: 'properties.diskBlobName', type: { @@ -145,7 +134,6 @@ def self.mapper() } }, disk_uri: { - client_side_validation: true, required: false, serialized_name: 'properties.diskUri', type: { @@ -153,7 +141,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -162,7 +149,6 @@ def self.mapper() } }, host_caching: { - client_side_validation: true, required: false, serialized_name: 'properties.hostCaching', type: { @@ -170,7 +156,6 @@ def self.mapper() } }, managed_disk_id: { - client_side_validation: true, required: false, serialized_name: 'properties.managedDiskId', type: { @@ -178,7 +163,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -186,7 +170,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb index 1946d0a81d..9f7b20975a 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb @@ -40,7 +40,6 @@ class DtlEnvironment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DtlEnvironment', type: { @@ -48,7 +47,6 @@ def self.mapper() class_name: 'DtlEnvironment', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -57,7 +55,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -66,7 +63,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -75,7 +71,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -83,13 +78,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: { @@ -99,7 +92,6 @@ def self.mapper() } }, deployment_properties: { - client_side_validation: true, required: false, serialized_name: 'properties.deploymentProperties', type: { @@ -108,7 +100,6 @@ def self.mapper() } }, arm_template_display_name: { - client_side_validation: true, required: false, serialized_name: 'properties.armTemplateDisplayName', type: { @@ -116,7 +107,6 @@ def self.mapper() } }, resource_group_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceGroupId', @@ -125,7 +115,6 @@ def self.mapper() } }, created_by_user: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdByUser', @@ -134,7 +123,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -142,7 +130,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb index a10c31cd5d..229114356c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb @@ -26,7 +26,6 @@ class EnvironmentDeploymentProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EnvironmentDeploymentProperties', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'EnvironmentDeploymentProperties', model_properties: { arm_template_id: { - client_side_validation: true, required: false, serialized_name: 'armTemplateId', type: { @@ -42,13 +40,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'parameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArmTemplateParameterPropertiesElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb index f24e8aed65..3aa9beb07e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb @@ -28,7 +28,6 @@ class EvaluatePoliciesProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EvaluatePoliciesProperties', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'EvaluatePoliciesProperties', model_properties: { fact_name: { - client_side_validation: true, required: false, serialized_name: 'factName', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, fact_data: { - client_side_validation: true, required: false, serialized_name: 'factData', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, value_offset: { - client_side_validation: true, required: false, serialized_name: 'valueOffset', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb index ac35d9a7ff..cf2215fa7c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb @@ -22,7 +22,6 @@ class EvaluatePoliciesRequest # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EvaluatePoliciesRequest', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'EvaluatePoliciesRequest', model_properties: { policies: { - client_side_validation: true, required: false, serialized_name: 'policies', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EvaluatePoliciesPropertiesElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb index 3ef8485043..b2902b9e83 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb @@ -22,7 +22,6 @@ class EvaluatePoliciesResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EvaluatePoliciesResponse', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'EvaluatePoliciesResponse', model_properties: { results: { - client_side_validation: true, required: false, serialized_name: 'results', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PolicySetResultElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/event.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/event.rb index f52883ae2b..274cd43ace 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/event.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/event.rb @@ -24,7 +24,6 @@ class Event # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Event', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'Event', model_properties: { event_name: { - client_side_validation: true, required: false, serialized_name: 'eventName', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb index 5838a624e5..f94a87060c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb @@ -24,7 +24,6 @@ class EventFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EventFragment', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'EventFragment', model_properties: { event_name: { - client_side_validation: true, required: false, serialized_name: 'eventName', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb index a7f03b3977..107c711468 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb @@ -28,7 +28,6 @@ class ExportResourceUsageParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ExportResourceUsageParameters', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ExportResourceUsageParameters', model_properties: { blob_storage_absolute_sas_uri: { - client_side_validation: true, required: false, serialized_name: 'blobStorageAbsoluteSasUri', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, usage_start_date: { - client_side_validation: true, required: false, serialized_name: 'usageStartDate', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb index a360030c6a..9eefd012d2 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb @@ -25,7 +25,6 @@ class ExternalSubnet # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ExternalSubnet', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ExternalSubnet', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb index 686831012f..f020cb96e0 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb @@ -25,7 +25,6 @@ class ExternalSubnetFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ExternalSubnetFragment', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ExternalSubnetFragment', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/formula.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/formula.rb index 6d354ed076..4f536a111b 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/formula.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/formula.rb @@ -46,7 +46,6 @@ class Formula < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Formula', type: { @@ -54,7 +53,6 @@ def self.mapper() class_name: 'Formula', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -63,7 +61,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -72,7 +69,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -81,7 +77,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -89,13 +84,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: { @@ -105,7 +98,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -113,7 +105,6 @@ def self.mapper() } }, author: { - client_side_validation: true, required: false, serialized_name: 'properties.author', type: { @@ -121,7 +112,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'properties.osType', type: { @@ -129,7 +119,6 @@ def self.mapper() } }, creation_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationDate', @@ -138,7 +127,6 @@ def self.mapper() } }, formula_content: { - client_side_validation: true, required: false, serialized_name: 'properties.formulaContent', type: { @@ -147,7 +135,6 @@ def self.mapper() } }, vm: { - client_side_validation: true, required: false, serialized_name: 'properties.vm', type: { @@ -156,7 +143,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -164,7 +150,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb index eb4a7d7a67..d3f1db00f0 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb @@ -23,7 +23,6 @@ class FormulaPropertiesFromVm # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'FormulaPropertiesFromVm', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'FormulaPropertiesFromVm', model_properties: { lab_vm_id: { - client_side_validation: true, required: false, serialized_name: 'labVmId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb index 56aedf7024..fec9464753 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb @@ -38,7 +38,6 @@ class GalleryImage < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GalleryImage', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'GalleryImage', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -55,7 +53,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -64,7 +61,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -73,7 +69,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -81,13 +76,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: { @@ -97,7 +90,6 @@ def self.mapper() } }, author: { - client_side_validation: true, required: false, serialized_name: 'properties.author', type: { @@ -105,7 +97,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -114,7 +105,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -122,7 +112,6 @@ def self.mapper() } }, image_reference: { - client_side_validation: true, required: false, serialized_name: 'properties.imageReference', type: { @@ -131,7 +120,6 @@ def self.mapper() } }, icon: { - client_side_validation: true, required: false, serialized_name: 'properties.icon', type: { @@ -139,7 +127,6 @@ def self.mapper() } }, enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.enabled', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb index f9108cd375..f5344ef9d3 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb @@ -34,7 +34,6 @@ class GalleryImageReference # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GalleryImageReference', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'GalleryImageReference', model_properties: { offer: { - client_side_validation: true, required: false, serialized_name: 'offer', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, publisher: { - client_side_validation: true, required: false, serialized_name: 'publisher', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'osType', type: { @@ -74,7 +69,6 @@ def self.mapper() } }, version: { - client_side_validation: true, required: false, serialized_name: 'version', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb index ef9cc2cdf7..f7f9ef4f17 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb @@ -34,7 +34,6 @@ class GalleryImageReferenceFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GalleryImageReferenceFragment', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'GalleryImageReferenceFragment', model_properties: { offer: { - client_side_validation: true, required: false, serialized_name: 'offer', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, publisher: { - client_side_validation: true, required: false, serialized_name: 'publisher', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'osType', type: { @@ -74,7 +69,6 @@ def self.mapper() } }, version: { - client_side_validation: true, required: false, serialized_name: 'version', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb index a13055f731..b099faa174 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb @@ -33,7 +33,6 @@ class GenerateArmTemplateRequest # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GenerateArmTemplateRequest', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'GenerateArmTemplateRequest', model_properties: { virtual_machine_name: { - client_side_validation: true, required: false, serialized_name: 'virtualMachineName', type: { @@ -49,13 +47,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'parameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParameterInfoElementType', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -74,7 +69,6 @@ def self.mapper() } }, file_upload_options: { - client_side_validation: true, required: false, serialized_name: 'fileUploadOptions', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb index 40ae52009d..1d5f84494d 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb @@ -22,7 +22,6 @@ class GenerateUploadUriParameter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GenerateUploadUriParameter', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'GenerateUploadUriParameter', model_properties: { blob_name: { - client_side_validation: true, required: false, serialized_name: 'blobName', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb index c769fb1f00..10569f4def 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb @@ -6,7 +6,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 module Models # - # Reponse body for generating an upload URI. + # Response body for generating an upload URI. # class GenerateUploadUriResponse @@ -22,7 +22,6 @@ class GenerateUploadUriResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GenerateUploadUriResponse', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'GenerateUploadUriResponse', model_properties: { upload_uri: { - client_side_validation: true, required: false, serialized_name: 'uploadUri', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb index 24d9d19558..7c32683791 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb @@ -22,7 +22,6 @@ class HourDetails # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HourDetails', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'HourDetails', model_properties: { minute: { - client_side_validation: true, required: false, serialized_name: 'minute', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb index fc9f4d1354..39a1e7ec6d 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb @@ -22,7 +22,6 @@ class HourDetailsFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HourDetailsFragment', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'HourDetailsFragment', model_properties: { minute: { - client_side_validation: true, required: false, serialized_name: 'minute', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb index e7b21a3594..cad72da42e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb @@ -31,7 +31,6 @@ class IdentityProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IdentityProperties', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'IdentityProperties', model_properties: { type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, principal_id: { - client_side_validation: true, required: false, serialized_name: 'principalId', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, tenant_id: { - client_side_validation: true, required: false, serialized_name: 'tenantId', type: { @@ -63,7 +59,6 @@ def self.mapper() } }, client_secret_url: { - client_side_validation: true, required: false, serialized_name: 'clientSecretUrl', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb index 6445c4b31e..a99804c995 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb @@ -33,7 +33,6 @@ class InboundNatRule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'InboundNatRule', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'InboundNatRule', model_properties: { transport_protocol: { - client_side_validation: true, required: false, serialized_name: 'transportProtocol', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, frontend_port: { - client_side_validation: true, required: false, serialized_name: 'frontendPort', type: { @@ -57,7 +54,6 @@ def self.mapper() } }, backend_port: { - client_side_validation: true, required: false, serialized_name: 'backendPort', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb index 495f8cd8b6..f24bd864e3 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb @@ -33,7 +33,6 @@ class InboundNatRuleFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'InboundNatRuleFragment', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'InboundNatRuleFragment', model_properties: { transport_protocol: { - client_side_validation: true, required: false, serialized_name: 'transportProtocol', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, frontend_port: { - client_side_validation: true, required: false, serialized_name: 'frontendPort', type: { @@ -57,7 +54,6 @@ def self.mapper() } }, backend_port: { - client_side_validation: true, required: false, serialized_name: 'backendPort', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab.rb index 632d429f50..eb46e192e1 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab.rb @@ -56,7 +56,6 @@ class Lab < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Lab', type: { @@ -64,7 +63,6 @@ def self.mapper() class_name: 'Lab', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -73,7 +71,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -82,7 +79,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -91,7 +87,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -99,13 +94,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: { @@ -115,7 +108,6 @@ def self.mapper() } }, default_storage_account: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.defaultStorageAccount', @@ -124,7 +116,6 @@ def self.mapper() } }, default_premium_storage_account: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.defaultPremiumStorageAccount', @@ -133,7 +124,6 @@ def self.mapper() } }, artifacts_storage_account: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.artifactsStorageAccount', @@ -142,7 +132,6 @@ def self.mapper() } }, premium_data_disk_storage_account: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.premiumDataDiskStorageAccount', @@ -151,7 +140,6 @@ def self.mapper() } }, vault_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.vaultName', @@ -160,7 +148,6 @@ def self.mapper() } }, lab_storage_type: { - client_side_validation: true, required: false, serialized_name: 'properties.labStorageType', type: { @@ -168,7 +155,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -177,7 +163,6 @@ def self.mapper() } }, premium_data_disks: { - client_side_validation: true, required: false, serialized_name: 'properties.premiumDataDisks', type: { @@ -185,7 +170,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -193,7 +177,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb index 86d6d0d654..787c80f04e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb @@ -52,7 +52,6 @@ class LabCost < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LabCost', type: { @@ -60,7 +59,6 @@ def self.mapper() class_name: 'LabCost', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -69,7 +67,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -78,7 +75,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -87,7 +83,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -95,13 +90,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: { @@ -111,7 +104,6 @@ def self.mapper() } }, target_cost: { - client_side_validation: true, required: false, serialized_name: 'properties.targetCost', type: { @@ -120,7 +112,6 @@ def self.mapper() } }, lab_cost_summary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.labCostSummary', @@ -130,14 +121,12 @@ def self.mapper() } }, lab_cost_details: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.labCostDetails', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'LabCostDetailsPropertiesElementType', type: { @@ -148,14 +137,12 @@ def self.mapper() } }, resource_costs: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceCosts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'LabResourceCostPropertiesElementType', type: { @@ -166,7 +153,6 @@ def self.mapper() } }, currency_code: { - client_side_validation: true, required: false, serialized_name: 'properties.currencyCode', type: { @@ -174,7 +160,6 @@ def self.mapper() } }, start_date_time: { - client_side_validation: true, required: false, serialized_name: 'properties.startDateTime', type: { @@ -182,7 +167,6 @@ def self.mapper() } }, end_date_time: { - client_side_validation: true, required: false, serialized_name: 'properties.endDateTime', type: { @@ -190,7 +174,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, serialized_name: 'properties.createdDate', type: { @@ -198,7 +181,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -206,7 +188,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb index 15d29de1b5..f1a6e094a9 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb @@ -29,7 +29,6 @@ class LabCostDetailsProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LabCostDetailsProperties', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'LabCostDetailsProperties', model_properties: { date: { - client_side_validation: true, required: false, serialized_name: 'date', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, cost: { - client_side_validation: true, required: false, serialized_name: 'cost', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, cost_type: { - client_side_validation: true, required: false, serialized_name: 'costType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb index a980a1c4e0..11b7419a46 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb @@ -22,7 +22,6 @@ class LabCostSummaryProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LabCostSummaryProperties', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'LabCostSummaryProperties', model_properties: { estimated_lab_cost: { - client_side_validation: true, required: false, serialized_name: 'estimatedLabCost', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb index 607dade845..7dc7eef2d0 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb @@ -38,7 +38,6 @@ class LabFragment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LabFragment', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'LabFragment', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -55,7 +53,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -64,7 +61,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -73,7 +69,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -81,13 +76,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: { @@ -97,7 +90,6 @@ def self.mapper() } }, lab_storage_type: { - client_side_validation: true, required: false, serialized_name: 'properties.labStorageType', type: { @@ -105,7 +97,6 @@ def self.mapper() } }, premium_data_disks: { - client_side_validation: true, required: false, serialized_name: 'properties.premiumDataDisks', type: { @@ -113,7 +104,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -121,7 +111,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb index 55ccbf1c4b..6e6690f9b9 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb @@ -48,7 +48,6 @@ class LabResourceCostProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LabResourceCostProperties', type: { @@ -56,7 +55,6 @@ def self.mapper() class_name: 'LabResourceCostProperties', model_properties: { resourcename: { - client_side_validation: true, required: false, serialized_name: 'resourcename', type: { @@ -64,7 +62,6 @@ def self.mapper() } }, resource_uid: { - client_side_validation: true, required: false, serialized_name: 'resourceUId', type: { @@ -72,7 +69,6 @@ def self.mapper() } }, resource_cost: { - client_side_validation: true, required: false, serialized_name: 'resourceCost', type: { @@ -80,7 +76,6 @@ def self.mapper() } }, resource_type: { - client_side_validation: true, required: false, serialized_name: 'resourceType', type: { @@ -88,7 +83,6 @@ def self.mapper() } }, resource_owner: { - client_side_validation: true, required: false, serialized_name: 'resourceOwner', type: { @@ -96,7 +90,6 @@ def self.mapper() } }, resource_pricing_tier: { - client_side_validation: true, required: false, serialized_name: 'resourcePricingTier', type: { @@ -104,7 +97,6 @@ def self.mapper() } }, resource_status: { - client_side_validation: true, required: false, serialized_name: 'resourceStatus', type: { @@ -112,7 +104,6 @@ def self.mapper() } }, resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', type: { @@ -120,7 +111,6 @@ def self.mapper() } }, external_resource_id: { - client_side_validation: true, required: false, serialized_name: 'externalResourceId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb index 782a23997c..613f1bf017 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb @@ -22,7 +22,6 @@ class LabVhd # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LabVhd', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'LabVhd', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb index 9aa6f48f8a..890387dce0 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb @@ -128,7 +128,6 @@ class LabVirtualMachine < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LabVirtualMachine', type: { @@ -136,7 +135,6 @@ def self.mapper() class_name: 'LabVirtualMachine', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -145,7 +143,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -154,7 +151,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -163,7 +159,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -171,13 +166,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: { @@ -187,7 +180,6 @@ def self.mapper() } }, notes: { - client_side_validation: true, required: false, serialized_name: 'properties.notes', type: { @@ -195,7 +187,6 @@ def self.mapper() } }, owner_object_id: { - client_side_validation: true, required: false, serialized_name: 'properties.ownerObjectId', type: { @@ -203,7 +194,6 @@ def self.mapper() } }, owner_user_principal_name: { - client_side_validation: true, required: false, serialized_name: 'properties.ownerUserPrincipalName', type: { @@ -211,7 +201,6 @@ def self.mapper() } }, created_by_user_id: { - client_side_validation: true, required: false, serialized_name: 'properties.createdByUserId', type: { @@ -219,7 +208,6 @@ def self.mapper() } }, created_by_user: { - client_side_validation: true, required: false, serialized_name: 'properties.createdByUser', type: { @@ -227,7 +215,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, serialized_name: 'properties.createdDate', type: { @@ -235,7 +222,6 @@ def self.mapper() } }, compute_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.computeId', @@ -244,7 +230,6 @@ def self.mapper() } }, custom_image_id: { - client_side_validation: true, required: false, serialized_name: 'properties.customImageId', type: { @@ -252,7 +237,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'properties.osType', type: { @@ -260,7 +244,6 @@ def self.mapper() } }, size: { - client_side_validation: true, required: false, serialized_name: 'properties.size', type: { @@ -268,7 +251,6 @@ def self.mapper() } }, user_name: { - client_side_validation: true, required: false, serialized_name: 'properties.userName', type: { @@ -276,7 +258,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'properties.password', type: { @@ -284,7 +265,6 @@ def self.mapper() } }, ssh_key: { - client_side_validation: true, required: false, serialized_name: 'properties.sshKey', type: { @@ -292,7 +272,6 @@ def self.mapper() } }, is_authentication_with_ssh_key: { - client_side_validation: true, required: false, serialized_name: 'properties.isAuthenticationWithSshKey', type: { @@ -300,7 +279,6 @@ def self.mapper() } }, fqdn: { - client_side_validation: true, required: false, serialized_name: 'properties.fqdn', type: { @@ -308,7 +286,6 @@ def self.mapper() } }, lab_subnet_name: { - client_side_validation: true, required: false, serialized_name: 'properties.labSubnetName', type: { @@ -316,7 +293,6 @@ def self.mapper() } }, lab_virtual_network_id: { - client_side_validation: true, required: false, serialized_name: 'properties.labVirtualNetworkId', type: { @@ -324,7 +300,6 @@ def self.mapper() } }, disallow_public_ip_address: { - client_side_validation: true, required: false, serialized_name: 'properties.disallowPublicIpAddress', type: { @@ -332,13 +307,11 @@ def self.mapper() } }, artifacts: { - client_side_validation: true, required: false, serialized_name: 'properties.artifacts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArtifactInstallPropertiesElementType', type: { @@ -349,7 +322,6 @@ def self.mapper() } }, artifact_deployment_status: { - client_side_validation: true, required: false, serialized_name: 'properties.artifactDeploymentStatus', type: { @@ -358,7 +330,6 @@ def self.mapper() } }, gallery_image_reference: { - client_side_validation: true, required: false, serialized_name: 'properties.galleryImageReference', type: { @@ -367,7 +338,6 @@ def self.mapper() } }, compute_vm: { - client_side_validation: true, required: false, serialized_name: 'properties.computeVm', type: { @@ -376,7 +346,6 @@ def self.mapper() } }, network_interface: { - client_side_validation: true, required: false, serialized_name: 'properties.networkInterface', type: { @@ -385,7 +354,6 @@ def self.mapper() } }, applicable_schedule: { - client_side_validation: true, required: false, serialized_name: 'properties.applicableSchedule', type: { @@ -394,7 +362,6 @@ def self.mapper() } }, expiration_date: { - client_side_validation: true, required: false, serialized_name: 'properties.expirationDate', type: { @@ -402,7 +369,6 @@ def self.mapper() } }, allow_claim: { - client_side_validation: true, required: false, serialized_name: 'properties.allowClaim', type: { @@ -410,7 +376,6 @@ def self.mapper() } }, storage_type: { - client_side_validation: true, required: false, serialized_name: 'properties.storageType', type: { @@ -418,7 +383,6 @@ def self.mapper() } }, virtual_machine_creation_source: { - client_side_validation: true, required: false, serialized_name: 'properties.virtualMachineCreationSource', type: { @@ -426,7 +390,6 @@ def self.mapper() } }, environment_id: { - client_side_validation: true, required: false, serialized_name: 'properties.environmentId', type: { @@ -434,7 +397,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -442,7 +404,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb index acf208761e..460a26ff7f 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb @@ -137,7 +137,6 @@ class LabVirtualMachineCreationParameter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LabVirtualMachineCreationParameter', type: { @@ -145,7 +144,6 @@ def self.mapper() class_name: 'LabVirtualMachineCreationParameter', model_properties: { bulk_creation_parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.bulkCreationParameters', type: { @@ -154,7 +152,6 @@ def self.mapper() } }, notes: { - client_side_validation: true, required: false, serialized_name: 'properties.notes', type: { @@ -162,7 +159,6 @@ def self.mapper() } }, owner_object_id: { - client_side_validation: true, required: false, serialized_name: 'properties.ownerObjectId', type: { @@ -170,7 +166,6 @@ def self.mapper() } }, owner_user_principal_name: { - client_side_validation: true, required: false, serialized_name: 'properties.ownerUserPrincipalName', type: { @@ -178,7 +173,6 @@ def self.mapper() } }, created_by_user_id: { - client_side_validation: true, required: false, serialized_name: 'properties.createdByUserId', type: { @@ -186,7 +180,6 @@ def self.mapper() } }, created_by_user: { - client_side_validation: true, required: false, serialized_name: 'properties.createdByUser', type: { @@ -194,7 +187,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, serialized_name: 'properties.createdDate', type: { @@ -202,7 +194,6 @@ def self.mapper() } }, custom_image_id: { - client_side_validation: true, required: false, serialized_name: 'properties.customImageId', type: { @@ -210,7 +201,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'properties.osType', type: { @@ -218,7 +208,6 @@ def self.mapper() } }, size: { - client_side_validation: true, required: false, serialized_name: 'properties.size', type: { @@ -226,7 +215,6 @@ def self.mapper() } }, user_name: { - client_side_validation: true, required: false, serialized_name: 'properties.userName', type: { @@ -234,7 +222,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'properties.password', type: { @@ -242,7 +229,6 @@ def self.mapper() } }, ssh_key: { - client_side_validation: true, required: false, serialized_name: 'properties.sshKey', type: { @@ -250,7 +236,6 @@ def self.mapper() } }, is_authentication_with_ssh_key: { - client_side_validation: true, required: false, serialized_name: 'properties.isAuthenticationWithSshKey', type: { @@ -258,7 +243,6 @@ def self.mapper() } }, fqdn: { - client_side_validation: true, required: false, serialized_name: 'properties.fqdn', type: { @@ -266,7 +250,6 @@ def self.mapper() } }, lab_subnet_name: { - client_side_validation: true, required: false, serialized_name: 'properties.labSubnetName', type: { @@ -274,7 +257,6 @@ def self.mapper() } }, lab_virtual_network_id: { - client_side_validation: true, required: false, serialized_name: 'properties.labVirtualNetworkId', type: { @@ -282,7 +264,6 @@ def self.mapper() } }, disallow_public_ip_address: { - client_side_validation: true, required: false, serialized_name: 'properties.disallowPublicIpAddress', type: { @@ -290,13 +271,11 @@ def self.mapper() } }, artifacts: { - client_side_validation: true, required: false, serialized_name: 'properties.artifacts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArtifactInstallPropertiesElementType', type: { @@ -307,7 +286,6 @@ def self.mapper() } }, artifact_deployment_status: { - client_side_validation: true, required: false, serialized_name: 'properties.artifactDeploymentStatus', type: { @@ -316,7 +294,6 @@ def self.mapper() } }, gallery_image_reference: { - client_side_validation: true, required: false, serialized_name: 'properties.galleryImageReference', type: { @@ -325,7 +302,6 @@ def self.mapper() } }, compute_vm: { - client_side_validation: true, required: false, serialized_name: 'properties.computeVm', type: { @@ -334,7 +310,6 @@ def self.mapper() } }, network_interface: { - client_side_validation: true, required: false, serialized_name: 'properties.networkInterface', type: { @@ -343,7 +318,6 @@ def self.mapper() } }, applicable_schedule: { - client_side_validation: true, required: false, serialized_name: 'properties.applicableSchedule', type: { @@ -352,7 +326,6 @@ def self.mapper() } }, expiration_date: { - client_side_validation: true, required: false, serialized_name: 'properties.expirationDate', type: { @@ -360,7 +333,6 @@ def self.mapper() } }, allow_claim: { - client_side_validation: true, required: false, serialized_name: 'properties.allowClaim', type: { @@ -368,7 +340,6 @@ def self.mapper() } }, storage_type: { - client_side_validation: true, required: false, serialized_name: 'properties.storageType', type: { @@ -376,7 +347,6 @@ def self.mapper() } }, virtual_machine_creation_source: { - client_side_validation: true, required: false, serialized_name: 'properties.virtualMachineCreationSource', type: { @@ -384,7 +354,6 @@ def self.mapper() } }, environment_id: { - client_side_validation: true, required: false, serialized_name: 'properties.environmentId', type: { @@ -392,7 +361,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -400,7 +368,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { @@ -408,7 +375,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -416,7 +382,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -424,13 +389,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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb index 5c721f7658..8b1b2ac44c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb @@ -126,7 +126,6 @@ class LabVirtualMachineFragment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LabVirtualMachineFragment', type: { @@ -134,7 +133,6 @@ def self.mapper() class_name: 'LabVirtualMachineFragment', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -143,7 +141,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -152,7 +149,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -161,7 +157,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -169,13 +164,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: { @@ -185,7 +178,6 @@ def self.mapper() } }, notes: { - client_side_validation: true, required: false, serialized_name: 'properties.notes', type: { @@ -193,7 +185,6 @@ def self.mapper() } }, owner_object_id: { - client_side_validation: true, required: false, serialized_name: 'properties.ownerObjectId', type: { @@ -201,7 +192,6 @@ def self.mapper() } }, owner_user_principal_name: { - client_side_validation: true, required: false, serialized_name: 'properties.ownerUserPrincipalName', type: { @@ -209,7 +199,6 @@ def self.mapper() } }, created_by_user_id: { - client_side_validation: true, required: false, serialized_name: 'properties.createdByUserId', type: { @@ -217,7 +206,6 @@ def self.mapper() } }, created_by_user: { - client_side_validation: true, required: false, serialized_name: 'properties.createdByUser', type: { @@ -225,7 +213,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, serialized_name: 'properties.createdDate', type: { @@ -233,7 +220,6 @@ def self.mapper() } }, custom_image_id: { - client_side_validation: true, required: false, serialized_name: 'properties.customImageId', type: { @@ -241,7 +227,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'properties.osType', type: { @@ -249,7 +234,6 @@ def self.mapper() } }, size: { - client_side_validation: true, required: false, serialized_name: 'properties.size', type: { @@ -257,7 +241,6 @@ def self.mapper() } }, user_name: { - client_side_validation: true, required: false, serialized_name: 'properties.userName', type: { @@ -265,7 +248,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'properties.password', type: { @@ -273,7 +255,6 @@ def self.mapper() } }, ssh_key: { - client_side_validation: true, required: false, serialized_name: 'properties.sshKey', type: { @@ -281,7 +262,6 @@ def self.mapper() } }, is_authentication_with_ssh_key: { - client_side_validation: true, required: false, serialized_name: 'properties.isAuthenticationWithSshKey', type: { @@ -289,7 +269,6 @@ def self.mapper() } }, fqdn: { - client_side_validation: true, required: false, serialized_name: 'properties.fqdn', type: { @@ -297,7 +276,6 @@ def self.mapper() } }, lab_subnet_name: { - client_side_validation: true, required: false, serialized_name: 'properties.labSubnetName', type: { @@ -305,7 +283,6 @@ def self.mapper() } }, lab_virtual_network_id: { - client_side_validation: true, required: false, serialized_name: 'properties.labVirtualNetworkId', type: { @@ -313,7 +290,6 @@ def self.mapper() } }, disallow_public_ip_address: { - client_side_validation: true, required: false, serialized_name: 'properties.disallowPublicIpAddress', type: { @@ -321,13 +297,11 @@ def self.mapper() } }, artifacts: { - client_side_validation: true, required: false, serialized_name: 'properties.artifacts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArtifactInstallPropertiesFragmentElementType', type: { @@ -338,7 +312,6 @@ def self.mapper() } }, artifact_deployment_status: { - client_side_validation: true, required: false, serialized_name: 'properties.artifactDeploymentStatus', type: { @@ -347,7 +320,6 @@ def self.mapper() } }, gallery_image_reference: { - client_side_validation: true, required: false, serialized_name: 'properties.galleryImageReference', type: { @@ -356,7 +328,6 @@ def self.mapper() } }, compute_vm: { - client_side_validation: true, required: false, serialized_name: 'properties.computeVm', type: { @@ -365,7 +336,6 @@ def self.mapper() } }, network_interface: { - client_side_validation: true, required: false, serialized_name: 'properties.networkInterface', type: { @@ -374,7 +344,6 @@ def self.mapper() } }, applicable_schedule: { - client_side_validation: true, required: false, serialized_name: 'properties.applicableSchedule', type: { @@ -383,7 +352,6 @@ def self.mapper() } }, expiration_date: { - client_side_validation: true, required: false, serialized_name: 'properties.expirationDate', type: { @@ -391,7 +359,6 @@ def self.mapper() } }, allow_claim: { - client_side_validation: true, required: false, serialized_name: 'properties.allowClaim', type: { @@ -399,7 +366,6 @@ def self.mapper() } }, storage_type: { - client_side_validation: true, required: false, serialized_name: 'properties.storageType', type: { @@ -407,7 +373,6 @@ def self.mapper() } }, virtual_machine_creation_source: { - client_side_validation: true, required: false, serialized_name: 'properties.virtualMachineCreationSource', type: { @@ -415,7 +380,6 @@ def self.mapper() } }, environment_id: { - client_side_validation: true, required: false, serialized_name: 'properties.environmentId', type: { @@ -423,7 +387,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -431,7 +394,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb index f3c2a776c8..31bc9b82f9 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb @@ -25,7 +25,6 @@ class LinuxOsInfo # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LinuxOsInfo', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'LinuxOsInfo', model_properties: { linux_os_state: { - client_side_validation: true, required: false, serialized_name: 'linuxOsState', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb index 9f4c45d7f0..6e3355605c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb @@ -50,7 +50,6 @@ class NetworkInterfaceProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NetworkInterfaceProperties', type: { @@ -58,7 +57,6 @@ def self.mapper() class_name: 'NetworkInterfaceProperties', model_properties: { virtual_network_id: { - client_side_validation: true, required: false, serialized_name: 'virtualNetworkId', type: { @@ -66,7 +64,6 @@ def self.mapper() } }, subnet_id: { - client_side_validation: true, required: false, serialized_name: 'subnetId', type: { @@ -74,7 +71,6 @@ def self.mapper() } }, public_ip_address_id: { - client_side_validation: true, required: false, serialized_name: 'publicIpAddressId', type: { @@ -82,7 +78,6 @@ def self.mapper() } }, public_ip_address: { - client_side_validation: true, required: false, serialized_name: 'publicIpAddress', type: { @@ -90,7 +85,6 @@ def self.mapper() } }, private_ip_address: { - client_side_validation: true, required: false, serialized_name: 'privateIpAddress', type: { @@ -98,7 +92,6 @@ def self.mapper() } }, dns_name: { - client_side_validation: true, required: false, serialized_name: 'dnsName', type: { @@ -106,7 +99,6 @@ def self.mapper() } }, rdp_authority: { - client_side_validation: true, required: false, serialized_name: 'rdpAuthority', type: { @@ -114,7 +106,6 @@ def self.mapper() } }, ssh_authority: { - client_side_validation: true, required: false, serialized_name: 'sshAuthority', type: { @@ -122,7 +113,6 @@ def self.mapper() } }, shared_public_ip_address_configuration: { - client_side_validation: true, required: false, serialized_name: 'sharedPublicIpAddressConfiguration', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb index b9188ac203..97579a4140 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb @@ -50,7 +50,6 @@ class NetworkInterfacePropertiesFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NetworkInterfacePropertiesFragment', type: { @@ -58,7 +57,6 @@ def self.mapper() class_name: 'NetworkInterfacePropertiesFragment', model_properties: { virtual_network_id: { - client_side_validation: true, required: false, serialized_name: 'virtualNetworkId', type: { @@ -66,7 +64,6 @@ def self.mapper() } }, subnet_id: { - client_side_validation: true, required: false, serialized_name: 'subnetId', type: { @@ -74,7 +71,6 @@ def self.mapper() } }, public_ip_address_id: { - client_side_validation: true, required: false, serialized_name: 'publicIpAddressId', type: { @@ -82,7 +78,6 @@ def self.mapper() } }, public_ip_address: { - client_side_validation: true, required: false, serialized_name: 'publicIpAddress', type: { @@ -90,7 +85,6 @@ def self.mapper() } }, private_ip_address: { - client_side_validation: true, required: false, serialized_name: 'privateIpAddress', type: { @@ -98,7 +92,6 @@ def self.mapper() } }, dns_name: { - client_side_validation: true, required: false, serialized_name: 'dnsName', type: { @@ -106,7 +99,6 @@ def self.mapper() } }, rdp_authority: { - client_side_validation: true, required: false, serialized_name: 'rdpAuthority', type: { @@ -114,7 +106,6 @@ def self.mapper() } }, ssh_authority: { - client_side_validation: true, required: false, serialized_name: 'sshAuthority', type: { @@ -122,7 +113,6 @@ def self.mapper() } }, shared_public_ip_address_configuration: { - client_side_validation: true, required: false, serialized_name: 'sharedPublicIpAddressConfiguration', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb index 9a8c6d8c85..f680c635a1 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb @@ -38,7 +38,6 @@ class NotificationChannel < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NotificationChannel', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'NotificationChannel', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -55,7 +53,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -64,7 +61,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -73,7 +69,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -81,13 +76,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: { @@ -97,7 +90,6 @@ def self.mapper() } }, web_hook_url: { - client_side_validation: true, required: false, serialized_name: 'properties.webHookUrl', type: { @@ -105,7 +97,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -113,13 +104,11 @@ def self.mapper() } }, events: { - client_side_validation: true, required: false, serialized_name: 'properties.events', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EventElementType', type: { @@ -130,7 +119,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -139,7 +127,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -147,7 +134,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb index 5e6cf54e4e..b444159567 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb @@ -35,7 +35,6 @@ class NotificationChannelFragment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NotificationChannelFragment', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'NotificationChannelFragment', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -52,7 +50,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -61,7 +58,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -70,7 +66,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -78,13 +73,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: { @@ -94,7 +87,6 @@ def self.mapper() } }, web_hook_url: { - client_side_validation: true, required: false, serialized_name: 'properties.webHookUrl', type: { @@ -102,7 +94,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -110,13 +101,11 @@ def self.mapper() } }, events: { - client_side_validation: true, required: false, serialized_name: 'properties.events', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EventFragmentElementType', type: { @@ -127,7 +116,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -135,7 +123,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb index ec9219a46b..87fde914a3 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb @@ -32,7 +32,6 @@ class NotificationSettings # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NotificationSettings', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'NotificationSettings', model_properties: { status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, time_in_minutes: { - client_side_validation: true, required: false, serialized_name: 'timeInMinutes', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, webhook_url: { - client_side_validation: true, required: false, serialized_name: 'webhookUrl', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb index 0478cfdd77..6e81c85792 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb @@ -32,7 +32,6 @@ class NotificationSettingsFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NotificationSettingsFragment', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'NotificationSettingsFragment', model_properties: { status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, time_in_minutes: { - client_side_validation: true, required: false, serialized_name: 'timeInMinutes', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, webhook_url: { - client_side_validation: true, required: false, serialized_name: 'webhookUrl', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb index e9023e91ef..abf849930e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb @@ -26,7 +26,6 @@ class NotifyParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NotifyParameters', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'NotifyParameters', model_properties: { event_name: { - client_side_validation: true, required: false, serialized_name: 'eventName', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, json_payload: { - client_side_validation: true, required: false, serialized_name: 'jsonPayload', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb index 8b176b24a6..4ec9c53ac1 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb @@ -25,7 +25,6 @@ class OperationError # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationError', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'OperationError', 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb index 1b87faa35f..dc091cf749 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb @@ -26,7 +26,6 @@ class OperationMetadata # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationMetadata', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'OperationMetadata', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb index 989379be62..ab8765cdfa 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb @@ -32,7 +32,6 @@ class OperationMetadataDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationMetadataDisplay', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'OperationMetadataDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb index 177237205d..243349d44f 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb @@ -41,7 +41,6 @@ class OperationResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationResult', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'OperationResult', model_properties: { status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -57,7 +55,6 @@ def self.mapper() } }, status_code: { - client_side_validation: true, required: false, serialized_name: 'statusCode', type: { @@ -65,7 +62,6 @@ def self.mapper() } }, error: { - client_side_validation: true, required: false, serialized_name: 'error', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb index 50195a6e92..0ceb401791 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb @@ -25,7 +25,6 @@ class ParameterInfo # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ParameterInfo', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ParameterInfo', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb index fa2ef13835..e74da1f478 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb @@ -25,7 +25,6 @@ class ParametersValueFileInfo # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ParametersValueFileInfo', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ParametersValueFileInfo', model_properties: { file_name: { - client_side_validation: true, required: false, serialized_name: 'fileName', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, parameters_value_info: { - client_side_validation: true, required: false, serialized_name: 'parametersValueInfo', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb index 3bd6199fce..7efe25e793 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb @@ -22,7 +22,6 @@ class PercentageCostThresholdProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PercentageCostThresholdProperties', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'PercentageCostThresholdProperties', model_properties: { threshold_value: { - client_side_validation: true, required: false, serialized_name: 'thresholdValue', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb index 415adf28b2..5710b6281e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb @@ -54,7 +54,6 @@ class Policy < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Policy', type: { @@ -62,7 +61,6 @@ def self.mapper() class_name: 'Policy', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -71,7 +69,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -80,7 +77,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -89,7 +85,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -97,13 +92,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: { @@ -113,7 +106,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -121,7 +113,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -129,7 +120,6 @@ def self.mapper() } }, fact_name: { - client_side_validation: true, required: false, serialized_name: 'properties.factName', type: { @@ -137,7 +127,6 @@ def self.mapper() } }, fact_data: { - client_side_validation: true, required: false, serialized_name: 'properties.factData', type: { @@ -145,7 +134,6 @@ def self.mapper() } }, threshold: { - client_side_validation: true, required: false, serialized_name: 'properties.threshold', type: { @@ -153,7 +141,6 @@ def self.mapper() } }, evaluator_type: { - client_side_validation: true, required: false, serialized_name: 'properties.evaluatorType', type: { @@ -161,7 +148,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -170,7 +156,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -178,7 +163,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb index 32562ccd66..aa95623c11 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb @@ -51,7 +51,6 @@ class PolicyFragment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PolicyFragment', type: { @@ -59,7 +58,6 @@ def self.mapper() class_name: 'PolicyFragment', 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: false, read_only: true, serialized_name: 'name', @@ -77,7 +74,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -86,7 +82,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -94,13 +89,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: { @@ -110,7 +103,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -118,7 +110,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -126,7 +117,6 @@ def self.mapper() } }, fact_name: { - client_side_validation: true, required: false, serialized_name: 'properties.factName', type: { @@ -134,7 +124,6 @@ def self.mapper() } }, fact_data: { - client_side_validation: true, required: false, serialized_name: 'properties.factData', type: { @@ -142,7 +131,6 @@ def self.mapper() } }, threshold: { - client_side_validation: true, required: false, serialized_name: 'properties.threshold', type: { @@ -150,7 +138,6 @@ def self.mapper() } }, evaluator_type: { - client_side_validation: true, required: false, serialized_name: 'properties.evaluatorType', type: { @@ -158,7 +145,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -166,7 +152,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb index 7a38f5d57f..229fde9085 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb @@ -26,7 +26,6 @@ class PolicySetResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PolicySetResult', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'PolicySetResult', model_properties: { has_error: { - client_side_validation: true, required: false, serialized_name: 'hasError', type: { @@ -42,13 +40,11 @@ def self.mapper() } }, policy_violations: { - client_side_validation: true, required: false, serialized_name: 'policyViolations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PolicyViolationElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb index c037656c33..f9743e95dd 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb @@ -25,7 +25,6 @@ class PolicyViolation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PolicyViolation', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'PolicyViolation', 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/port.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/port.rb index 64ae321733..f1d6674a0d 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/port.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/port.rb @@ -26,7 +26,6 @@ class Port # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Port', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'Port', model_properties: { transport_protocol: { - client_side_validation: true, required: false, serialized_name: 'transportProtocol', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, backend_port: { - client_side_validation: true, required: false, serialized_name: 'backendPort', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb index 9a38d18656..974d54c3d4 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb @@ -26,7 +26,6 @@ class PortFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PortFragment', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'PortFragment', model_properties: { transport_protocol: { - client_side_validation: true, required: false, serialized_name: 'transportProtocol', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, backend_port: { - client_side_validation: true, required: false, serialized_name: 'backendPort', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb index f028d175d4..c9f78cdec7 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProviderOperationResult', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'ProviderOperationResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationMetadataElementType', type: { @@ -84,7 +81,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'nextLink', diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/resource.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/resource.rb index 74fe0a99cb..0c4703bc30 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/resource.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/resource.rb @@ -28,22 +28,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: { @@ -51,7 +41,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -60,7 +49,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -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: false, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb index ccc02275da..4e01f52f60 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[ArmTemplate]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationArmTemplate', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArmTemplateElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb index c3ed316f6c..52a55777ca 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[Artifact]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationArtifact', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArtifactElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb index 8646223a5c..d48c1a374a 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[ArtifactSource]', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'ResponseWithContinuationArtifactSource', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ArtifactSourceElementType', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb index 083f610422..c7445f50d5 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[CustomImage]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationCustomImage', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CustomImageElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb index c14930257e..acccbb8121 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[Disk]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationDisk', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DiskElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb index 22bad8972e..f7aadf2db7 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[DtlEnvironment]', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'ResponseWithContinuationDtlEnvironment', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DtlEnvironmentElementType', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb index b08d34c0fe..eaaf8ee22e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[Formula]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationFormula', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'FormulaElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb index 9da1d4c5f3..f3625ec94e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[GalleryImage]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationGalleryImage', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GalleryImageElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb index 72036ce21c..1b629ee17d 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[Lab]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationLab', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'LabElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb index 6429ecbca6..b695c03361 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[LabVhd]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationLabVhd', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'LabVhdElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb index dca01bd3e1..8f07f35b80 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[LabVirtualMachine]', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'ResponseWithContinuationLabVirtualMachine', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'LabVirtualMachineElementType', 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb index 7368193565..8d4ed58aa1 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[NotificationChannel]', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'ResponseWithContinuationNotificationChannel', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'NotificationChannelElementType', 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb index e43be88ec2..d082c7a2bc 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[Policy]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationPolicy', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PolicyElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb index af1f684c13..cd6446321a 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[Schedule]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationSchedule', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ScheduleElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb index 7b253b13bb..834995b5cf 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[Secret]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationSecret', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SecretElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb index b4064644be..81a64642d4 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[ServiceRunner]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationServiceRunner', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ServiceRunnerElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb index bf2ab7315d..f8f68d2473 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[User]', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ResponseWithContinuationUser', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UserElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb index 9989fee3ef..17640af512 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResponseWithContinuation[VirtualNetwork]', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'ResponseWithContinuationVirtualNetwork', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkElementType', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb index b8df8b6d33..66f9ba9194 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb @@ -27,7 +27,6 @@ class RetargetScheduleProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RetargetScheduleProperties', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'RetargetScheduleProperties', model_properties: { current_resource_id: { - client_side_validation: true, required: false, serialized_name: 'currentResourceId', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, target_resource_id: { - client_side_validation: true, required: false, serialized_name: 'targetResourceId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/schedule.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/schedule.rb index 315f9423dc..f14f930ae2 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/schedule.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/schedule.rb @@ -57,7 +57,6 @@ class Schedule < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Schedule', type: { @@ -65,7 +64,6 @@ def self.mapper() class_name: 'Schedule', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -74,7 +72,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -83,7 +80,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -92,7 +88,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -100,13 +95,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: { @@ -116,7 +109,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -124,7 +116,6 @@ def self.mapper() } }, task_type: { - client_side_validation: true, required: false, serialized_name: 'properties.taskType', type: { @@ -132,7 +123,6 @@ def self.mapper() } }, weekly_recurrence: { - client_side_validation: true, required: false, serialized_name: 'properties.weeklyRecurrence', type: { @@ -141,7 +131,6 @@ def self.mapper() } }, daily_recurrence: { - client_side_validation: true, required: false, serialized_name: 'properties.dailyRecurrence', type: { @@ -150,7 +139,6 @@ def self.mapper() } }, hourly_recurrence: { - client_side_validation: true, required: false, serialized_name: 'properties.hourlyRecurrence', type: { @@ -159,7 +147,6 @@ def self.mapper() } }, time_zone_id: { - client_side_validation: true, required: false, serialized_name: 'properties.timeZoneId', type: { @@ -167,7 +154,6 @@ def self.mapper() } }, notification_settings: { - client_side_validation: true, required: false, serialized_name: 'properties.notificationSettings', type: { @@ -176,7 +162,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -185,7 +170,6 @@ def self.mapper() } }, target_resource_id: { - client_side_validation: true, required: false, serialized_name: 'properties.targetResourceId', type: { @@ -193,7 +177,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -201,7 +184,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb index 7fa370c4ec..e49d119ff9 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb @@ -54,7 +54,6 @@ class ScheduleFragment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ScheduleFragment', type: { @@ -62,7 +61,6 @@ def self.mapper() class_name: 'ScheduleFragment', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -71,7 +69,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -80,7 +77,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -89,7 +85,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -97,13 +92,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: { @@ -113,7 +106,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -121,7 +113,6 @@ def self.mapper() } }, task_type: { - client_side_validation: true, required: false, serialized_name: 'properties.taskType', type: { @@ -129,7 +120,6 @@ def self.mapper() } }, weekly_recurrence: { - client_side_validation: true, required: false, serialized_name: 'properties.weeklyRecurrence', type: { @@ -138,7 +128,6 @@ def self.mapper() } }, daily_recurrence: { - client_side_validation: true, required: false, serialized_name: 'properties.dailyRecurrence', type: { @@ -147,7 +136,6 @@ def self.mapper() } }, hourly_recurrence: { - client_side_validation: true, required: false, serialized_name: 'properties.hourlyRecurrence', type: { @@ -156,7 +144,6 @@ def self.mapper() } }, time_zone_id: { - client_side_validation: true, required: false, serialized_name: 'properties.timeZoneId', type: { @@ -164,7 +151,6 @@ def self.mapper() } }, notification_settings: { - client_side_validation: true, required: false, serialized_name: 'properties.notificationSettings', type: { @@ -173,7 +159,6 @@ def self.mapper() } }, target_resource_id: { - client_side_validation: true, required: false, serialized_name: 'properties.targetResourceId', type: { @@ -181,7 +166,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -189,7 +173,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/secret.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/secret.rb index daada7c2a9..eaeb8d685f 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/secret.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/secret.rb @@ -28,7 +28,6 @@ class Secret < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Secret', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'Secret', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -45,7 +43,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -63,7 +59,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -71,13 +66,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: { @@ -87,7 +80,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'properties.value', type: { @@ -95,7 +87,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -103,7 +94,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb index 93da236e5b..53df33f838 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb @@ -22,7 +22,6 @@ class ServiceRunner < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServiceRunner', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ServiceRunner', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -39,7 +37,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -48,7 +45,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -57,7 +53,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -65,13 +60,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: { @@ -81,7 +74,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb index 688e04b1dc..8c1b6bad97 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb @@ -23,7 +23,6 @@ class SharedPublicIpAddressConfiguration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SharedPublicIpAddressConfiguration', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'SharedPublicIpAddressConfiguration', model_properties: { inbound_nat_rules: { - client_side_validation: true, required: false, serialized_name: 'inboundNatRules', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'InboundNatRuleElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb index c9d41de7ea..e27a3ba623 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb @@ -24,7 +24,6 @@ class SharedPublicIpAddressConfigurationFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SharedPublicIpAddressConfigurationFragment', type: { @@ -32,13 +31,11 @@ def self.mapper() class_name: 'SharedPublicIpAddressConfigurationFragment', model_properties: { inbound_nat_rules: { - client_side_validation: true, required: false, serialized_name: 'inboundNatRules', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'InboundNatRuleFragmentElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb index 9f4645c205..a5649a7115 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb @@ -54,7 +54,6 @@ class ShutdownNotificationContent # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ShutdownNotificationContent', type: { @@ -62,7 +61,6 @@ def self.mapper() class_name: 'ShutdownNotificationContent', model_properties: { skip_url: { - client_side_validation: true, required: false, serialized_name: 'skipUrl', type: { @@ -70,7 +68,6 @@ def self.mapper() } }, delay_url60: { - client_side_validation: true, required: false, serialized_name: 'delayUrl60', type: { @@ -78,7 +75,6 @@ def self.mapper() } }, delay_url120: { - client_side_validation: true, required: false, serialized_name: 'delayUrl120', type: { @@ -86,7 +82,6 @@ def self.mapper() } }, vm_name: { - client_side_validation: true, required: false, serialized_name: 'vmName', type: { @@ -94,7 +89,6 @@ def self.mapper() } }, guid: { - client_side_validation: true, required: false, serialized_name: 'guid', type: { @@ -102,7 +96,6 @@ def self.mapper() } }, owner: { - client_side_validation: true, required: false, serialized_name: 'owner', type: { @@ -110,7 +103,6 @@ def self.mapper() } }, event_type: { - client_side_validation: true, required: false, serialized_name: 'eventType', type: { @@ -118,7 +110,6 @@ def self.mapper() } }, text: { - client_side_validation: true, required: false, serialized_name: 'text', type: { @@ -126,7 +117,6 @@ def self.mapper() } }, subscription_id: { - client_side_validation: true, required: false, serialized_name: 'subscriptionId', type: { @@ -134,7 +124,6 @@ def self.mapper() } }, resource_group_name: { - client_side_validation: true, required: false, serialized_name: 'resourceGroupName', type: { @@ -142,7 +131,6 @@ def self.mapper() } }, lab_name: { - client_side_validation: true, required: false, serialized_name: 'labName', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet.rb index 465934f812..518c8d0058 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet.rb @@ -30,7 +30,6 @@ class Subnet # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Subnet', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'Subnet', model_properties: { resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, lab_subnet_name: { - client_side_validation: true, required: false, serialized_name: 'labSubnetName', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, allow_public_ip: { - client_side_validation: true, required: false, serialized_name: 'allowPublicIp', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb index 961ca75aab..f68ed7232c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb @@ -30,7 +30,6 @@ class SubnetFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubnetFragment', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'SubnetFragment', model_properties: { resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, lab_subnet_name: { - client_side_validation: true, required: false, serialized_name: 'labSubnetName', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, allow_public_ip: { - client_side_validation: true, required: false, serialized_name: 'allowPublicIp', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb index 01288f1576..3256f3892c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb @@ -42,7 +42,6 @@ class SubnetOverride # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubnetOverride', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'SubnetOverride', model_properties: { resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', type: { @@ -58,7 +56,6 @@ def self.mapper() } }, lab_subnet_name: { - client_side_validation: true, required: false, serialized_name: 'labSubnetName', type: { @@ -66,7 +63,6 @@ def self.mapper() } }, use_in_vm_creation_permission: { - client_side_validation: true, required: false, serialized_name: 'useInVmCreationPermission', type: { @@ -74,7 +70,6 @@ def self.mapper() } }, use_public_ip_address_permission: { - client_side_validation: true, required: false, serialized_name: 'usePublicIpAddressPermission', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, shared_public_ip_address_configuration: { - client_side_validation: true, required: false, serialized_name: 'sharedPublicIpAddressConfiguration', type: { @@ -91,7 +85,6 @@ def self.mapper() } }, virtual_network_pool_name: { - client_side_validation: true, required: false, serialized_name: 'virtualNetworkPoolName', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb index f16cfa334d..200be99900 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb @@ -42,7 +42,6 @@ class SubnetOverrideFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubnetOverrideFragment', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'SubnetOverrideFragment', model_properties: { resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', type: { @@ -58,7 +56,6 @@ def self.mapper() } }, lab_subnet_name: { - client_side_validation: true, required: false, serialized_name: 'labSubnetName', type: { @@ -66,7 +63,6 @@ def self.mapper() } }, use_in_vm_creation_permission: { - client_side_validation: true, required: false, serialized_name: 'useInVmCreationPermission', type: { @@ -74,7 +70,6 @@ def self.mapper() } }, use_public_ip_address_permission: { - client_side_validation: true, required: false, serialized_name: 'usePublicIpAddressPermission', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, shared_public_ip_address_configuration: { - client_side_validation: true, required: false, serialized_name: 'sharedPublicIpAddressConfiguration', type: { @@ -91,7 +85,6 @@ def self.mapper() } }, virtual_network_pool_name: { - client_side_validation: true, required: false, serialized_name: 'virtualNetworkPoolName', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb index 53879480dc..c49540e8cc 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb @@ -23,7 +23,6 @@ class SubnetSharedPublicIpAddressConfiguration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubnetSharedPublicIpAddressConfiguration', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'SubnetSharedPublicIpAddressConfiguration', model_properties: { allowed_ports: { - client_side_validation: true, required: false, serialized_name: 'allowedPorts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PortElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb index b841f932b0..4c5d6cfe3b 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb @@ -24,7 +24,6 @@ class SubnetSharedPublicIpAddressConfigurationFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubnetSharedPublicIpAddressConfigurationFragment', type: { @@ -32,13 +31,11 @@ def self.mapper() class_name: 'SubnetSharedPublicIpAddressConfigurationFragment', model_properties: { allowed_ports: { - client_side_validation: true, required: false, serialized_name: 'allowedPorts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PortFragmentElementType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb index 5c99dbc451..9ac39ed774 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb @@ -39,7 +39,6 @@ class TargetCostProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TargetCostProperties', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'TargetCostProperties', model_properties: { status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -55,7 +53,6 @@ def self.mapper() } }, target: { - client_side_validation: true, required: false, serialized_name: 'target', type: { @@ -63,13 +60,11 @@ def self.mapper() } }, cost_thresholds: { - client_side_validation: true, required: false, serialized_name: 'costThresholds', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CostThresholdPropertiesElementType', type: { @@ -80,7 +75,6 @@ def self.mapper() } }, cycle_start_date_time: { - client_side_validation: true, required: false, serialized_name: 'cycleStartDateTime', type: { @@ -88,7 +82,6 @@ def self.mapper() } }, cycle_end_date_time: { - client_side_validation: true, required: false, serialized_name: 'cycleEndDateTime', type: { @@ -96,7 +89,6 @@ def self.mapper() } }, cycle_type: { - client_side_validation: true, required: false, serialized_name: 'cycleType', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user.rb index 908ef9536e..7f83e17b2a 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user.rb @@ -34,7 +34,6 @@ class User < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'User', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'User', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -51,7 +49,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -60,7 +57,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -69,7 +65,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -77,13 +72,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -93,7 +86,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'properties.identity', type: { @@ -102,7 +94,6 @@ def self.mapper() } }, secret_store: { - client_side_validation: true, required: false, serialized_name: 'properties.secretStore', type: { @@ -111,7 +102,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -120,7 +110,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -128,7 +117,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb index d7ba46c422..afb17191b6 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb @@ -31,7 +31,6 @@ class UserFragment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserFragment', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'UserFragment', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -48,7 +46,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -57,7 +54,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -66,7 +62,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -74,13 +69,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: { @@ -90,7 +83,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'properties.identity', type: { @@ -99,7 +91,6 @@ def self.mapper() } }, secret_store: { - client_side_validation: true, required: false, serialized_name: 'properties.secretStore', type: { @@ -108,7 +99,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -116,7 +106,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb index ecd6fea899..1644972fbe 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb @@ -40,7 +40,6 @@ class UserIdentity # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserIdentity', type: { @@ -48,7 +47,6 @@ def self.mapper() class_name: 'UserIdentity', model_properties: { principal_name: { - client_side_validation: true, required: false, serialized_name: 'principalName', type: { @@ -56,7 +54,6 @@ def self.mapper() } }, principal_id: { - client_side_validation: true, required: false, serialized_name: 'principalId', type: { @@ -64,7 +61,6 @@ def self.mapper() } }, tenant_id: { - client_side_validation: true, required: false, serialized_name: 'tenantId', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, object_id: { - client_side_validation: true, required: false, serialized_name: 'objectId', type: { @@ -80,7 +75,6 @@ def self.mapper() } }, app_id: { - client_side_validation: true, required: false, serialized_name: 'appId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb index 5a31f0b0a7..a68e2e1385 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb @@ -40,7 +40,6 @@ class UserIdentityFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserIdentityFragment', type: { @@ -48,7 +47,6 @@ def self.mapper() class_name: 'UserIdentityFragment', model_properties: { principal_name: { - client_side_validation: true, required: false, serialized_name: 'principalName', type: { @@ -56,7 +54,6 @@ def self.mapper() } }, principal_id: { - client_side_validation: true, required: false, serialized_name: 'principalId', type: { @@ -64,7 +61,6 @@ def self.mapper() } }, tenant_id: { - client_side_validation: true, required: false, serialized_name: 'tenantId', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, object_id: { - client_side_validation: true, required: false, serialized_name: 'objectId', type: { @@ -80,7 +75,6 @@ def self.mapper() } }, app_id: { - client_side_validation: true, required: false, serialized_name: 'appId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb index 7ba165053e..c1e40c9e55 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb @@ -25,7 +25,6 @@ class UserSecretStore # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserSecretStore', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UserSecretStore', model_properties: { key_vault_uri: { - client_side_validation: true, required: false, serialized_name: 'keyVaultUri', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, key_vault_id: { - client_side_validation: true, required: false, serialized_name: 'keyVaultId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb index 9f37555a82..614193a516 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb @@ -25,7 +25,6 @@ class UserSecretStoreFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserSecretStoreFragment', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UserSecretStoreFragment', model_properties: { key_vault_uri: { - client_side_validation: true, required: false, serialized_name: 'keyVaultUri', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, key_vault_id: { - client_side_validation: true, required: false, serialized_name: 'keyVaultId', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb index 763b549c24..3e9baca472 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb @@ -45,7 +45,6 @@ class VirtualNetwork < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VirtualNetwork', type: { @@ -53,7 +52,6 @@ def self.mapper() class_name: 'VirtualNetwork', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -62,7 +60,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -71,7 +68,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -80,7 +76,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -88,13 +83,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: { @@ -104,13 +97,11 @@ def self.mapper() } }, allowed_subnets: { - client_side_validation: true, required: false, serialized_name: 'properties.allowedSubnets', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SubnetElementType', type: { @@ -121,7 +112,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -129,7 +119,6 @@ def self.mapper() } }, external_provider_resource_id: { - client_side_validation: true, required: false, serialized_name: 'properties.externalProviderResourceId', type: { @@ -137,13 +126,11 @@ def self.mapper() } }, external_subnets: { - client_side_validation: true, required: false, serialized_name: 'properties.externalSubnets', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ExternalSubnetElementType', type: { @@ -154,13 +141,11 @@ def self.mapper() } }, subnet_overrides: { - client_side_validation: true, required: false, serialized_name: 'properties.subnetOverrides', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SubnetOverrideElementType', type: { @@ -171,7 +156,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdDate', @@ -180,7 +164,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -188,7 +171,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb index d37b0291ce..1b78c81283 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb @@ -43,7 +43,6 @@ class VirtualNetworkFragment < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkFragment', type: { @@ -51,7 +50,6 @@ def self.mapper() class_name: 'VirtualNetworkFragment', 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: false, read_only: true, serialized_name: 'name', @@ -69,7 +66,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -78,7 +74,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -86,13 +81,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: { @@ -102,13 +95,11 @@ def self.mapper() } }, allowed_subnets: { - client_side_validation: true, required: false, serialized_name: 'properties.allowedSubnets', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SubnetFragmentElementType', type: { @@ -119,7 +110,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -127,7 +117,6 @@ def self.mapper() } }, external_provider_resource_id: { - client_side_validation: true, required: false, serialized_name: 'properties.externalProviderResourceId', type: { @@ -135,13 +124,11 @@ def self.mapper() } }, external_subnets: { - client_side_validation: true, required: false, serialized_name: 'properties.externalSubnets', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ExternalSubnetFragmentElementType', type: { @@ -152,13 +139,11 @@ def self.mapper() } }, subnet_overrides: { - client_side_validation: true, required: false, serialized_name: 'properties.subnetOverrides', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SubnetOverrideFragmentElementType', type: { @@ -169,7 +154,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -177,7 +161,6 @@ def self.mapper() } }, unique_identifier: { - client_side_validation: true, required: false, serialized_name: 'properties.uniqueIdentifier', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/week_details.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/week_details.rb index 2128d597e0..89b436ebb5 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/week_details.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/week_details.rb @@ -26,7 +26,6 @@ class WeekDetails # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'WeekDetails', type: { @@ -34,13 +33,11 @@ def self.mapper() class_name: 'WeekDetails', model_properties: { weekdays: { - client_side_validation: true, required: false, serialized_name: 'weekdays', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -50,7 +47,6 @@ def self.mapper() } }, time: { - client_side_validation: true, required: false, serialized_name: 'time', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb index f4d9832e74..7b8898c23e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb @@ -26,7 +26,6 @@ class WeekDetailsFragment # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'WeekDetailsFragment', type: { @@ -34,13 +33,11 @@ def self.mapper() class_name: 'WeekDetailsFragment', model_properties: { weekdays: { - client_side_validation: true, required: false, serialized_name: 'weekdays', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -50,7 +47,6 @@ def self.mapper() } }, time: { - client_side_validation: true, required: false, serialized_name: 'time', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb index 575f8955d1..a2343acc0c 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb @@ -24,7 +24,6 @@ class WindowsOsInfo # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'WindowsOsInfo', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'WindowsOsInfo', model_properties: { windows_os_state: { - client_side_validation: true, required: false, serialized_name: 'windowsOsState', type: { diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb index 452f6db842..f423c1df82 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb @@ -22,7 +22,7 @@ def initialize(client) attr_reader :client # - # List notificationchannels in a given lab. + # List notification channels in a given lab. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -38,13 +38,13 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end # - # List notificationchannels in a given lab. + # List notification channels in a given lab. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -60,12 +60,12 @@ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! end # - # List notificationchannels in a given lab. + # List notification channels in a given lab. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, t # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -89,7 +89,6 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,7 +134,7 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o end # - # Get notificationchannel. + # Get notification channels. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -147,13 +146,13 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o # # @return [NotificationChannel] operation results. # - def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! response.body unless response.nil? end # - # Get notificationchannel. + # Get notification channels. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -165,12 +164,12 @@ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! end # - # Get notificationchannel. + # Get notification channels. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -182,7 +181,7 @@ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -191,7 +190,6 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -248,8 +246,8 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni # # @return [NotificationChannel] operation results. # - def create_or_update(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! response.body unless response.nil? end @@ -265,8 +263,8 @@ def create_or_update(resource_group_name, lab_name, name, notification_channel, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) - create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! end # @@ -281,7 +279,7 @@ def create_or_update_with_http_info(resource_group_name, lab_name, name, notific # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, notification_channel, 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, 'lab_name is nil' if lab_name.nil? @@ -291,12 +289,13 @@ def create_or_update_async(resource_group_name, lab_name, name, notification_cha 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::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannel.mapper() request_content = @client.serialize(request_mapper, notification_channel) @@ -354,7 +353,7 @@ def create_or_update_async(resource_group_name, lab_name, name, notification_cha end # - # Delete notificationchannel. + # Delete notification channel. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -363,13 +362,13 @@ def create_or_update_async(resource_group_name, lab_name, name, notification_cha # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end # - # Delete notificationchannel. + # Delete notification channel. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -379,12 +378,12 @@ def delete(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! end # - # Delete notificationchannel. + # Delete notification channel. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -394,7 +393,7 @@ def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -403,7 +402,6 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -439,7 +437,7 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) end # - # Modify properties of notificationchannels. + # Modify properties of notification channels. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -450,13 +448,13 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [NotificationChannel] operation results. # - def update(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) - response = update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:custom_headers).value! + def update(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! response.body unless response.nil? end # - # Modify properties of notificationchannels. + # Modify properties of notification channels. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -467,12 +465,12 @@ def update(resource_group_name, lab_name, name, notification_channel, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) - update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) + update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! end # - # Modify properties of notificationchannels. + # Modify properties of notification channels. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -483,7 +481,7 @@ def update_with_http_info(resource_group_name, lab_name, name, notification_chan # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) + def update_async(resource_group_name, lab_name, name, notification_channel, 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, 'lab_name is nil' if lab_name.nil? @@ -493,12 +491,13 @@ def update_async(resource_group_name, lab_name, name, notification_channel, cust 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::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelFragment.mapper() request_content = @client.serialize(request_mapper, notification_channel) @@ -557,8 +556,8 @@ def update_async(resource_group_name, lab_name, name, notification_channel, cust # will be added to the HTTP request. # # - def notify(resource_group_name, lab_name, name, notify_parameters, custom_headers:nil) - response = notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers:custom_headers).value! + def notify(resource_group_name, lab_name, name, notify_parameters, custom_headers = nil) + response = notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers).value! nil end @@ -575,8 +574,8 @@ def notify(resource_group_name, lab_name, name, notify_parameters, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def notify_with_http_info(resource_group_name, lab_name, name, notify_parameters, custom_headers:nil) - notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers:custom_headers).value! + def notify_with_http_info(resource_group_name, lab_name, name, notify_parameters, custom_headers = nil) + notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers).value! end # @@ -592,7 +591,7 @@ def notify_with_http_info(resource_group_name, lab_name, name, notify_parameters # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers:nil) + def notify_async(resource_group_name, lab_name, name, notify_parameters, 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, 'lab_name is nil' if lab_name.nil? @@ -602,12 +601,13 @@ def notify_async(resource_group_name, lab_name, name, notify_parameters, 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['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotifyParameters.mapper() request_content = @client.serialize(request_mapper, notify_parameters) @@ -645,7 +645,7 @@ def notify_async(resource_group_name, lab_name, name, notify_parameters, custom_ end # - # List notificationchannels in a given lab. + # List notification channels in a given lab. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -654,13 +654,13 @@ def notify_async(resource_group_name, lab_name, name, notify_parameters, custom_ # # @return [ResponseWithContinuationNotificationChannel] 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 # - # List notificationchannels in a given lab. + # List notification channels in a given lab. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -669,12 +669,12 @@ 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 # - # List notificationchannels in a given lab. + # List notification channels in a given lab. # # @param next_page_link [String] The NextLink from the previous successful call # to List operation. @@ -683,12 +683,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 @@ -733,7 +732,7 @@ def list_next_async(next_page_link, custom_headers:nil) end # - # List notificationchannels in a given lab. + # List notification channels in a given lab. # # @param resource_group_name [String] The name of the resource group. # @param lab_name [String] The name of the lab. @@ -750,12 +749,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationNotificationChannel] which provide lazy # access to pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/operations.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/operations.rb index 1d3adfbdc5..c522ba5ef7 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/operations.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/operations.rb @@ -31,8 +31,8 @@ def initialize(client) # # @return [OperationResult] operation results. # - def get(location_name, name, custom_headers:nil) - response = get_async(location_name, name, custom_headers:custom_headers).value! + def get(location_name, name, custom_headers = nil) + response = get_async(location_name, name, custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ def get(location_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location_name, name, custom_headers:nil) - get_async(location_name, name, custom_headers:custom_headers).value! + def get_with_http_info(location_name, name, custom_headers = nil) + get_async(location_name, name, custom_headers).value! end # @@ -60,7 +60,7 @@ def get_with_http_info(location_name, name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location_name, name, custom_headers:nil) + def get_async(location_name, name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location_name is nil' if location_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -68,7 +68,6 @@ def get_async(location_name, name, custom_headers: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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb index 3997c98038..376732a59e 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb @@ -39,8 +39,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, policy_set_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, policy_set_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, policy_set_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ def list(resource_group_name, lab_name, policy_set_name, expand:nil, filter:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, policy_set_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, policy_set_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, policy_set_name, expand, filter, top, orderby, custom_headers).value! end # @@ -84,7 +84,7 @@ def list_with_http_info(resource_group_name, lab_name, policy_set_name, expand:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, policy_set_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -93,7 +93,6 @@ def list_async(resource_group_name, lab_name, policy_set_name, expand:nil, filte request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -152,8 +151,8 @@ def list_async(resource_group_name, lab_name, policy_set_name, expand:nil, filte # # @return [Policy] operation results. # - def get(resource_group_name, lab_name, policy_set_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, policy_set_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, policy_set_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, policy_set_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -171,8 +170,8 @@ def get(resource_group_name, lab_name, policy_set_name, name, expand:nil, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, policy_set_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, policy_set_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, policy_set_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, policy_set_name, name, expand, custom_headers).value! end # @@ -189,7 +188,7 @@ def get_with_http_info(resource_group_name, lab_name, policy_set_name, name, exp # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, policy_set_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, policy_set_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -199,7 +198,6 @@ def get_async(resource_group_name, lab_name, policy_set_name, name, expand: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 +255,8 @@ def get_async(resource_group_name, lab_name, policy_set_name, name, expand:nil, # # @return [Policy] operation results. # - def create_or_update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! response.body unless response.nil? end @@ -275,8 +273,8 @@ def create_or_update(resource_group_name, lab_name, policy_set_name, name, polic # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) - create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! end # @@ -292,7 +290,7 @@ def create_or_update_with_http_info(resource_group_name, lab_name, policy_set_na # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, 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, 'lab_name is nil' if lab_name.nil? @@ -303,12 +301,13 @@ def create_or_update_async(resource_group_name, lab_name, policy_set_name, name, 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::DevTestLabs::Mgmt::V2016_05_15::Models::Policy.mapper() request_content = @client.serialize(request_mapper, policy) @@ -376,8 +375,8 @@ def create_or_update_async(resource_group_name, lab_name, policy_set_name, name, # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, policy_set_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, policy_set_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers).value! nil end @@ -393,8 +392,8 @@ def delete(resource_group_name, lab_name, policy_set_name, name, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, policy_set_name, name, custom_headers:nil) - delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, policy_set_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers).value! end # @@ -409,7 +408,7 @@ def delete_with_http_info(resource_group_name, lab_name, policy_set_name, name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, policy_set_name, 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, 'lab_name is nil' if lab_name.nil? @@ -419,7 +418,6 @@ def delete_async(resource_group_name, lab_name, policy_set_name, name, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -467,8 +465,8 @@ def delete_async(resource_group_name, lab_name, policy_set_name, name, custom_he # # @return [Policy] operation results. # - def update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) - response = update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:custom_headers).value! + def update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) + response = update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! response.body unless response.nil? end @@ -485,8 +483,8 @@ def update(resource_group_name, lab_name, policy_set_name, name, policy, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) - update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) + update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! end # @@ -502,7 +500,7 @@ def update_with_http_info(resource_group_name, lab_name, policy_set_name, name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) + def update_async(resource_group_name, lab_name, policy_set_name, name, policy, 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, 'lab_name is nil' if lab_name.nil? @@ -513,12 +511,13 @@ def update_async(resource_group_name, lab_name, policy_set_name, name, policy, 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['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFragment.mapper() request_content = @client.serialize(request_mapper, policy) @@ -575,8 +574,8 @@ def update_async(resource_group_name, lab_name, policy_set_name, name, policy, c # # @return [ResponseWithContinuationPolicy] 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 @@ -590,8 +589,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 # @@ -604,12 +603,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 @@ -672,12 +670,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationPolicy] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, policy_set_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, policy_set_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, policy_set_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb index 7f16f47c16..e17afd84f0 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb @@ -34,8 +34,8 @@ def initialize(client) # # @return [EvaluatePoliciesResponse] operation results. # - def evaluate_policies(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:nil) - response = evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:custom_headers).value! + def evaluate_policies(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers = nil) + response = evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ def evaluate_policies(resource_group_name, lab_name, name, evaluate_policies_req # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def evaluate_policies_with_http_info(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:nil) - evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:custom_headers).value! + def evaluate_policies_with_http_info(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers = nil) + evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers).value! end # @@ -69,7 +69,7 @@ def evaluate_policies_with_http_info(resource_group_name, lab_name, name, evalua # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:nil) + def evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, 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, 'lab_name is nil' if lab_name.nil? @@ -79,12 +79,13 @@ def evaluate_policies_async(resource_group_name, lab_name, name, evaluate_polici 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::DevTestLabs::Mgmt::V2016_05_15::Models::EvaluatePoliciesRequest.mapper() request_content = @client.serialize(request_mapper, evaluate_policies_request) diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/provider_operations.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/provider_operations.rb index 31faf8cbd1..5437d8bf05 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/provider_operations.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/provider_operations.rb @@ -29,8 +29,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 @@ -42,8 +42,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 # @@ -54,12 +54,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 @@ -113,8 +112,8 @@ def list_async(custom_headers:nil) # # @return [ProviderOperationResult] 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 @@ -128,8 +127,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 # @@ -142,12 +141,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 @@ -200,12 +198,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ProviderOperationResult] 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb index c4e44365bb..546faca3d4 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, t # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -89,7 +89,6 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +146,8 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o # # @return [Schedule] operation results. # - def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -165,8 +164,8 @@ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! end # @@ -182,7 +181,7 @@ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -191,7 +190,6 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -248,8 +246,8 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni # # @return [Schedule] operation results. # - def create_or_update(resource_group_name, lab_name, name, schedule, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, schedule, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! response.body unless response.nil? end @@ -265,8 +263,8 @@ def create_or_update(resource_group_name, lab_name, name, schedule, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers:nil) - create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! end # @@ -281,7 +279,7 @@ def create_or_update_with_http_info(resource_group_name, lab_name, name, schedul # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? @@ -291,12 +289,13 @@ def create_or_update_async(resource_group_name, lab_name, name, schedule, 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['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule.mapper() request_content = @client.serialize(request_mapper, schedule) @@ -363,8 +362,8 @@ def create_or_update_async(resource_group_name, lab_name, name, schedule, custom # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -379,8 +378,8 @@ def delete(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -394,7 +393,7 @@ def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -403,7 +402,6 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -450,8 +448,8 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [Schedule] operation results. # - def update(resource_group_name, lab_name, name, schedule, custom_headers:nil) - response = update_async(resource_group_name, lab_name, name, schedule, custom_headers:custom_headers).value! + def update(resource_group_name, lab_name, name, schedule, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! response.body unless response.nil? end @@ -467,8 +465,8 @@ def update(resource_group_name, lab_name, name, schedule, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers:nil) - update_async(resource_group_name, lab_name, name, schedule, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers = nil) + update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! end # @@ -483,7 +481,7 @@ def update_with_http_info(resource_group_name, lab_name, name, schedule, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, schedule, custom_headers:nil) + def update_async(resource_group_name, lab_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? @@ -493,12 +491,13 @@ def update_async(resource_group_name, lab_name, name, schedule, custom_headers:n 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::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment.mapper() request_content = @client.serialize(request_mapper, schedule) @@ -554,8 +553,8 @@ def update_async(resource_group_name, lab_name, name, schedule, custom_headers:n # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def execute(resource_group_name, lab_name, name, custom_headers:nil) - response = execute_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def execute(resource_group_name, lab_name, name, custom_headers = nil) + response = execute_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -569,9 +568,9 @@ def execute(resource_group_name, lab_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def execute_async(resource_group_name, lab_name, name, custom_headers:nil) + def execute_async(resource_group_name, lab_name, name, custom_headers = nil) # Send request - promise = begin_execute_async(resource_group_name, lab_name, name, custom_headers:custom_headers) + promise = begin_execute_async(resource_group_name, lab_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -596,8 +595,8 @@ def execute_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [Array] operation results. # - def list_applicable(resource_group_name, lab_name, name, custom_headers:nil) - first_page = list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers:custom_headers) + def list_applicable(resource_group_name, lab_name, name, custom_headers = nil) + first_page = list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers) first_page.get_all_items end @@ -612,8 +611,8 @@ def list_applicable(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_applicable_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - list_applicable_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def list_applicable_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + list_applicable_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -627,7 +626,7 @@ def list_applicable_with_http_info(resource_group_name, lab_name, name, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_applicable_async(resource_group_name, lab_name, name, custom_headers:nil) + def list_applicable_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -636,7 +635,6 @@ def list_applicable_async(resource_group_name, lab_name, name, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -691,8 +689,8 @@ def list_applicable_async(resource_group_name, lab_name, name, custom_headers:ni # will be added to the HTTP request. # # - def begin_execute(resource_group_name, lab_name, name, custom_headers:nil) - response = begin_execute_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_execute(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_execute_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -707,8 +705,8 @@ def begin_execute(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_execute_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - begin_execute_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_execute_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_execute_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -722,7 +720,7 @@ def begin_execute_with_http_info(resource_group_name, lab_name, name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_execute_async(resource_group_name, lab_name, name, custom_headers:nil) + def begin_execute_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -731,7 +729,6 @@ def begin_execute_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -776,8 +773,8 @@ def begin_execute_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [ResponseWithContinuationSchedule] 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 @@ -791,8 +788,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 # @@ -805,12 +802,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 @@ -864,8 +860,8 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [ResponseWithContinuationSchedule] operation results. # - def list_applicable_next(next_page_link, custom_headers:nil) - response = list_applicable_next_async(next_page_link, custom_headers:custom_headers).value! + def list_applicable_next(next_page_link, custom_headers = nil) + response = list_applicable_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -879,8 +875,8 @@ def list_applicable_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_applicable_next_with_http_info(next_page_link, custom_headers:nil) - list_applicable_next_async(next_page_link, custom_headers:custom_headers).value! + def list_applicable_next_with_http_info(next_page_link, custom_headers = nil) + list_applicable_next_async(next_page_link, custom_headers).value! end # @@ -893,12 +889,11 @@ def list_applicable_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_applicable_next_async(next_page_link, custom_headers:nil) + def list_applicable_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 @@ -960,12 +955,12 @@ def list_applicable_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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 @@ -983,12 +978,12 @@ def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers:nil) - response = list_applicable_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers = nil) + response = list_applicable_async(resource_group_name, lab_name, name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_applicable_next_async(next_page_link, custom_headers:custom_headers) + list_applicable_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb index 9c1a93f4f6..c0816e3edb 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb @@ -39,8 +39,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! end # @@ -84,7 +84,7 @@ def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, fi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -93,7 +93,6 @@ def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -152,8 +151,8 @@ def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, # # @return [Secret] operation results. # - def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -171,8 +170,8 @@ def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! end # @@ -189,7 +188,7 @@ def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, user_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -199,7 +198,6 @@ def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,8 +255,8 @@ def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom # # @return [Secret] operation results. # - def create_or_update(resource_group_name, lab_name, user_name, name, secret, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, user_name, name, secret, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers).value! response.body unless response.nil? end @@ -275,8 +273,8 @@ def create_or_update(resource_group_name, lab_name, user_name, name, secret, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, secret, custom_headers:nil) - create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, secret, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers).value! end # @@ -292,7 +290,7 @@ def create_or_update_with_http_info(resource_group_name, lab_name, user_name, na # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, user_name, name, secret, 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, 'lab_name is nil' if lab_name.nil? @@ -303,12 +301,13 @@ def create_or_update_async(resource_group_name, lab_name, user_name, name, secre 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::DevTestLabs::Mgmt::V2016_05_15::Models::Secret.mapper() request_content = @client.serialize(request_mapper, secret) @@ -376,8 +375,8 @@ def create_or_update_async(resource_group_name, lab_name, user_name, name, secre # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! nil end @@ -393,8 +392,8 @@ def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers:nil) - delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! end # @@ -409,7 +408,7 @@ def delete_with_http_info(resource_group_name, lab_name, user_name, name, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? @@ -419,7 +418,6 @@ def delete_async(resource_group_name, lab_name, user_name, name, custom_headers: request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -464,8 +462,8 @@ def delete_async(resource_group_name, lab_name, user_name, name, custom_headers: # # @return [ResponseWithContinuationSecret] 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 @@ -479,8 +477,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 # @@ -493,12 +491,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 @@ -561,12 +558,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationSecret] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb index a25dce606d..f81007185a 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb @@ -36,8 +36,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ def list(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, filter, top, orderby, custom_headers).value! end # @@ -75,7 +75,7 @@ def list_with_http_info(resource_group_name, lab_name, filter:nil, top:nil, orde # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -83,7 +83,6 @@ def list_async(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -139,8 +138,8 @@ def list_async(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, # # @return [ServiceRunner] operation results. # - def get(resource_group_name, lab_name, name, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, custom_headers).value! response.body unless response.nil? end @@ -155,8 +154,8 @@ def get(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - get_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + get_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -170,7 +169,7 @@ def get_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, custom_headers:nil) + def get_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -179,7 +178,6 @@ def get_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -237,8 +235,8 @@ def get_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [ServiceRunner] operation results. # - def create_or_update(resource_group_name, lab_name, name, service_runner, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, service_runner, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers).value! response.body unless response.nil? end @@ -255,8 +253,8 @@ def create_or_update(resource_group_name, lab_name, name, service_runner, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, service_runner, custom_headers:nil) - create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, service_runner, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers).value! end # @@ -272,7 +270,7 @@ def create_or_update_with_http_info(resource_group_name, lab_name, name, service # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, service_runner, 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, 'lab_name is nil' if lab_name.nil? @@ -282,12 +280,13 @@ def create_or_update_async(resource_group_name, lab_name, name, service_runner, 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::DevTestLabs::Mgmt::V2016_05_15::Models::ServiceRunner.mapper() request_content = @client.serialize(request_mapper, service_runner) @@ -354,8 +353,8 @@ def create_or_update_async(resource_group_name, lab_name, name, service_runner, # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -370,8 +369,8 @@ def delete(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -385,7 +384,7 @@ def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -394,7 +393,6 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -439,8 +437,8 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [ResponseWithContinuationServiceRunner] 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 @@ -454,8 +452,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 # @@ -468,12 +466,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 @@ -533,12 +530,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationServiceRunner] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb index ca7fb6dee2..d9a9ca7183 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, t # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -89,7 +89,6 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +146,8 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o # # @return [User] operation results. # - def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -165,8 +164,8 @@ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! end # @@ -182,7 +181,7 @@ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -191,7 +190,6 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -248,8 +246,8 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni # # @return [User] operation results. # - def create_or_update(resource_group_name, lab_name, name, user, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, user, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, user, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, user, custom_headers).value! response.body unless response.nil? end @@ -265,8 +263,8 @@ def create_or_update(resource_group_name, lab_name, name, user, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, user, custom_headers:nil) - create_or_update_async(resource_group_name, lab_name, name, user, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, user, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, user, custom_headers).value! end # @@ -281,7 +279,7 @@ def create_or_update_with_http_info(resource_group_name, lab_name, name, user, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, user, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, user, 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, 'lab_name is nil' if lab_name.nil? @@ -291,12 +289,13 @@ def create_or_update_async(resource_group_name, lab_name, name, user, custom_hea 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::DevTestLabs::Mgmt::V2016_05_15::Models::User.mapper() request_content = @client.serialize(request_mapper, user) @@ -362,8 +361,8 @@ def create_or_update_async(resource_group_name, lab_name, name, user, custom_hea # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -377,9 +376,9 @@ def delete(resource_group_name, lab_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -405,8 +404,8 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [User] operation results. # - def update(resource_group_name, lab_name, name, user, custom_headers:nil) - response = update_async(resource_group_name, lab_name, name, user, custom_headers:custom_headers).value! + def update(resource_group_name, lab_name, name, user, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, user, custom_headers).value! response.body unless response.nil? end @@ -422,8 +421,8 @@ def update(resource_group_name, lab_name, name, user, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, user, custom_headers:nil) - update_async(resource_group_name, lab_name, name, user, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, user, custom_headers = nil) + update_async(resource_group_name, lab_name, name, user, custom_headers).value! end # @@ -438,7 +437,7 @@ def update_with_http_info(resource_group_name, lab_name, name, user, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, user, custom_headers:nil) + def update_async(resource_group_name, lab_name, name, user, 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, 'lab_name is nil' if lab_name.nil? @@ -448,12 +447,13 @@ def update_async(resource_group_name, lab_name, name, user, custom_headers: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::DevTestLabs::Mgmt::V2016_05_15::Models::UserFragment.mapper() request_content = @client.serialize(request_mapper, user) @@ -510,8 +510,8 @@ def update_async(resource_group_name, lab_name, name, user, custom_headers:nil) # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) - response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -526,8 +526,8 @@ def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -541,7 +541,7 @@ def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def begin_delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -550,7 +550,6 @@ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -595,8 +594,8 @@ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [ResponseWithContinuationUser] 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 @@ -610,8 +609,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 # @@ -624,12 +623,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 @@ -691,12 +689,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationUser] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/version.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/version.rb new file mode 100644 index 0000000000..e701ff1f0a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/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::DevTestLabs::Mgmt::V2016_05_15 + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb index 01cf07e72a..efd5275748 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb @@ -39,8 +39,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ def list(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, virtual_machine_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers).value! end # @@ -84,7 +84,7 @@ def list_with_http_info(resource_group_name, lab_name, virtual_machine_name, exp # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -93,7 +93,6 @@ def list_async(resource_group_name, lab_name, virtual_machine_name, expand:nil, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -152,8 +151,8 @@ def list_async(resource_group_name, lab_name, virtual_machine_name, expand:nil, # # @return [Schedule] operation results. # - def get(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, virtual_machine_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -171,8 +170,8 @@ def get(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, virtual_machine_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value! end # @@ -189,7 +188,7 @@ def get_with_http_info(resource_group_name, lab_name, virtual_machine_name, name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -199,7 +198,6 @@ def get_async(resource_group_name, lab_name, virtual_machine_name, name, expand: request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,8 +255,8 @@ def get_async(resource_group_name, lab_name, virtual_machine_name, name, expand: # # @return [Schedule] operation results. # - def create_or_update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! response.body unless response.nil? end @@ -275,8 +273,8 @@ def create_or_update(resource_group_name, lab_name, virtual_machine_name, name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) - create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! end # @@ -292,7 +290,7 @@ def create_or_update_with_http_info(resource_group_name, lab_name, virtual_machi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? @@ -303,12 +301,13 @@ def create_or_update_async(resource_group_name, lab_name, virtual_machine_name, 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::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule.mapper() request_content = @client.serialize(request_mapper, schedule) @@ -376,8 +375,8 @@ def create_or_update_async(resource_group_name, lab_name, virtual_machine_name, # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! nil end @@ -393,8 +392,8 @@ def delete(resource_group_name, lab_name, virtual_machine_name, name, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) - delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! end # @@ -409,7 +408,7 @@ def delete_with_http_info(resource_group_name, lab_name, virtual_machine_name, n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, virtual_machine_name, 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, 'lab_name is nil' if lab_name.nil? @@ -419,7 +418,6 @@ def delete_async(resource_group_name, lab_name, virtual_machine_name, name, cust request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -467,8 +465,8 @@ def delete_async(resource_group_name, lab_name, virtual_machine_name, name, cust # # @return [Schedule] operation results. # - def update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) - response = update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value! + def update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + response = update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! response.body unless response.nil? end @@ -485,8 +483,8 @@ def update(resource_group_name, lab_name, virtual_machine_name, name, schedule, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) - update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! end # @@ -502,7 +500,7 @@ def update_with_http_info(resource_group_name, lab_name, virtual_machine_name, n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) + def update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? @@ -513,12 +511,13 @@ def update_async(resource_group_name, lab_name, virtual_machine_name, name, sche 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::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment.mapper() request_content = @client.serialize(request_mapper, schedule) @@ -575,8 +574,8 @@ def update_async(resource_group_name, lab_name, virtual_machine_name, name, sche # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) - response = execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! + def execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + response = execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! nil end @@ -591,9 +590,9 @@ def execute(resource_group_name, lab_name, virtual_machine_name, name, custom_he # @return [Concurrent::Promise] promise which provides async access to http # response. # - def execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) + def execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) # Send request - promise = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers) + promise = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -618,8 +617,8 @@ def execute_async(resource_group_name, lab_name, virtual_machine_name, name, cus # will be added to the HTTP request. # # - def begin_execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) - response = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! + def begin_execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + response = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! nil end @@ -635,8 +634,8 @@ def begin_execute(resource_group_name, lab_name, virtual_machine_name, name, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_execute_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) - begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! + def begin_execute_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! end # @@ -651,7 +650,7 @@ def begin_execute_with_http_info(resource_group_name, lab_name, virtual_machine_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) + def begin_execute_async(resource_group_name, lab_name, virtual_machine_name, 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, 'lab_name is nil' if lab_name.nil? @@ -661,7 +660,6 @@ def begin_execute_async(resource_group_name, lab_name, virtual_machine_name, nam request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -706,8 +704,8 @@ def begin_execute_async(resource_group_name, lab_name, virtual_machine_name, nam # # @return [ResponseWithContinuationSchedule] 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 @@ -721,8 +719,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 # @@ -735,12 +733,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 @@ -803,12 +800,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, virtual_machine_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb index 1da9b9dd59..b625340218 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, t # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -89,7 +89,6 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +146,8 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o # # @return [LabVirtualMachine] operation results. # - def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -165,8 +164,8 @@ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! end # @@ -182,7 +181,7 @@ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -191,7 +190,6 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -249,8 +247,8 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni # # @return [LabVirtualMachine] operation results. # - def create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! response.body unless response.nil? end @@ -265,9 +263,9 @@ def create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, c # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -292,8 +290,8 @@ def create_or_update_async(resource_group_name, lab_name, name, lab_virtual_mach # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -307,9 +305,9 @@ def delete(resource_group_name, lab_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -335,8 +333,8 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [LabVirtualMachine] operation results. # - def update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) - response = update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! + def update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! response.body unless response.nil? end @@ -352,8 +350,8 @@ def update(resource_group_name, lab_name, name, lab_virtual_machine, custom_head # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) - update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! end # @@ -368,7 +366,7 @@ def update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) + def update_async(resource_group_name, lab_name, name, lab_virtual_machine, 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, 'lab_name is nil' if lab_name.nil? @@ -378,12 +376,13 @@ def update_async(resource_group_name, lab_name, name, lab_virtual_machine, custo 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::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachineFragment.mapper() request_content = @client.serialize(request_mapper, lab_virtual_machine) @@ -442,8 +441,8 @@ def update_async(resource_group_name, lab_name, name, lab_virtual_machine, custo # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) - response = add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers).value! + def add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) + response = add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value! nil end @@ -459,9 +458,9 @@ def add_data_disk(resource_group_name, lab_name, name, data_disk_properties, cus # @return [Concurrent::Promise] promise which provides async access to http # response. # - def add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) + def add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) # Send request - promise = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers) + promise = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -487,8 +486,8 @@ def add_data_disk_async(resource_group_name, lab_name, name, data_disk_propertie # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) - response = apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers).value! + def apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) + response = apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value! nil end @@ -504,9 +503,9 @@ def apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request # @return [Concurrent::Promise] promise which provides async access to http # response. # - def apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) + def apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) # Send request - promise = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers) + promise = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -530,8 +529,8 @@ def apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_r # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def claim(resource_group_name, lab_name, name, custom_headers:nil) - response = claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def claim(resource_group_name, lab_name, name, custom_headers = nil) + response = claim_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -545,9 +544,9 @@ def claim(resource_group_name, lab_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def claim_async(resource_group_name, lab_name, name, custom_headers:nil) + def claim_async(resource_group_name, lab_name, name, custom_headers = nil) # Send request - promise = begin_claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers) + promise = begin_claim_async(resource_group_name, lab_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -573,8 +572,8 @@ def claim_async(resource_group_name, lab_name, name, custom_headers:nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) - response = detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers).value! + def detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) + response = detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value! nil end @@ -590,9 +589,9 @@ def detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_prope # @return [Concurrent::Promise] promise which provides async access to http # response. # - def detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) + def detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) # Send request - promise = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers) + promise = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -617,8 +616,8 @@ def detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk # # @return [ApplicableSchedule] operation results. # - def list_applicable_schedules(resource_group_name, lab_name, name, custom_headers:nil) - response = list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def list_applicable_schedules(resource_group_name, lab_name, name, custom_headers = nil) + response = list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers).value! response.body unless response.nil? end @@ -633,8 +632,8 @@ def list_applicable_schedules(resource_group_name, lab_name, name, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_applicable_schedules_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def list_applicable_schedules_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -648,7 +647,7 @@ def list_applicable_schedules_with_http_info(resource_group_name, lab_name, name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers:nil) + def list_applicable_schedules_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -657,7 +656,6 @@ def list_applicable_schedules_async(resource_group_name, lab_name, name, custom_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -711,8 +709,8 @@ def list_applicable_schedules_async(resource_group_name, lab_name, name, custom_ # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, lab_name, name, custom_headers:nil) - response = start_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def start(resource_group_name, lab_name, name, custom_headers = nil) + response = start_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -726,9 +724,9 @@ def start(resource_group_name, lab_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, lab_name, name, custom_headers:nil) + def start_async(resource_group_name, lab_name, name, custom_headers = nil) # Send request - promise = begin_start_async(resource_group_name, lab_name, name, custom_headers:custom_headers) + promise = begin_start_async(resource_group_name, lab_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -751,8 +749,8 @@ def start_async(resource_group_name, lab_name, name, custom_headers:nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, lab_name, name, custom_headers:nil) - response = stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def stop(resource_group_name, lab_name, name, custom_headers = nil) + response = stop_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -766,9 +764,9 @@ def stop(resource_group_name, lab_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, lab_name, name, custom_headers:nil) + def stop_async(resource_group_name, lab_name, name, custom_headers = nil) # Send request - promise = begin_stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers) + promise = begin_stop_async(resource_group_name, lab_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -795,8 +793,8 @@ def stop_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [LabVirtualMachine] operation results. # - def begin_create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) - response = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! response.body unless response.nil? end @@ -813,8 +811,8 @@ def begin_create_or_update(resource_group_name, lab_name, name, lab_virtual_mach # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) - begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! end # @@ -830,7 +828,7 @@ def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, l # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) + def begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, 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, 'lab_name is nil' if lab_name.nil? @@ -840,12 +838,13 @@ def begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtua 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::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachine.mapper() request_content = @client.serialize(request_mapper, lab_virtual_machine) @@ -912,8 +911,8 @@ def begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtua # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) - response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -928,8 +927,8 @@ def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -943,7 +942,7 @@ def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def begin_delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -952,7 +951,6 @@ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1000,8 +998,8 @@ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) # will be added to the HTTP request. # # - def begin_add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) - response = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers).value! + def begin_add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) + response = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value! nil end @@ -1019,8 +1017,8 @@ def begin_add_data_disk(resource_group_name, lab_name, name, data_disk_propertie # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_add_data_disk_with_http_info(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) - begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers).value! + def begin_add_data_disk_with_http_info(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) + begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value! end # @@ -1037,7 +1035,7 @@ def begin_add_data_disk_with_http_info(resource_group_name, lab_name, name, data # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) + def begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, 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, 'lab_name is nil' if lab_name.nil? @@ -1047,12 +1045,13 @@ def begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_pro 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::DevTestLabs::Mgmt::V2016_05_15::Models::DataDiskProperties.mapper() request_content = @client.serialize(request_mapper, data_disk_properties) @@ -1102,8 +1101,8 @@ def begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_pro # will be added to the HTTP request. # # - def begin_apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) - response = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers).value! + def begin_apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) + response = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value! nil end @@ -1121,8 +1120,8 @@ def begin_apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_r # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_apply_artifacts_with_http_info(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) - begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers).value! + def begin_apply_artifacts_with_http_info(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) + begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value! end # @@ -1139,7 +1138,7 @@ def begin_apply_artifacts_with_http_info(resource_group_name, lab_name, name, ap # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) + def begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, 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, 'lab_name is nil' if lab_name.nil? @@ -1149,12 +1148,13 @@ def begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artif 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::DevTestLabs::Mgmt::V2016_05_15::Models::ApplyArtifactsRequest.mapper() request_content = @client.serialize(request_mapper, apply_artifacts_request) @@ -1202,8 +1202,8 @@ def begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artif # will be added to the HTTP request. # # - def begin_claim(resource_group_name, lab_name, name, custom_headers:nil) - response = begin_claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_claim(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_claim_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -1219,8 +1219,8 @@ def begin_claim(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_claim_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - begin_claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_claim_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_claim_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -1235,7 +1235,7 @@ def begin_claim_with_http_info(resource_group_name, lab_name, name, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_claim_async(resource_group_name, lab_name, name, custom_headers:nil) + def begin_claim_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -1244,7 +1244,6 @@ def begin_claim_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1292,8 +1291,8 @@ def begin_claim_async(resource_group_name, lab_name, name, custom_headers:nil) # will be added to the HTTP request. # # - def begin_detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) - response = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers).value! + def begin_detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) + response = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value! nil end @@ -1311,8 +1310,8 @@ def begin_detach_data_disk(resource_group_name, lab_name, name, detach_data_disk # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_detach_data_disk_with_http_info(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) - begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers).value! + def begin_detach_data_disk_with_http_info(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) + begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value! end # @@ -1329,7 +1328,7 @@ def begin_detach_data_disk_with_http_info(resource_group_name, lab_name, name, d # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) + def begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, 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, 'lab_name is nil' if lab_name.nil? @@ -1339,12 +1338,13 @@ def begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_dat 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::DevTestLabs::Mgmt::V2016_05_15::Models::DetachDataDiskProperties.mapper() request_content = @client.serialize(request_mapper, detach_data_disk_properties) @@ -1391,8 +1391,8 @@ def begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_dat # will be added to the HTTP request. # # - def begin_start(resource_group_name, lab_name, name, custom_headers:nil) - response = begin_start_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_start(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_start_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -1407,8 +1407,8 @@ def begin_start(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - begin_start_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_start_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_start_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -1422,7 +1422,7 @@ def begin_start_with_http_info(resource_group_name, lab_name, name, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, lab_name, name, custom_headers:nil) + def begin_start_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -1431,7 +1431,6 @@ def begin_start_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1476,8 +1475,8 @@ def begin_start_async(resource_group_name, lab_name, name, custom_headers:nil) # will be added to the HTTP request. # # - def begin_stop(resource_group_name, lab_name, name, custom_headers:nil) - response = begin_stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_stop(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_stop_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -1492,8 +1491,8 @@ def begin_stop(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - begin_stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_stop_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_stop_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -1507,7 +1506,7 @@ def begin_stop_with_http_info(resource_group_name, lab_name, name, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, lab_name, name, custom_headers:nil) + def begin_stop_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -1516,7 +1515,6 @@ def begin_stop_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1561,8 +1559,8 @@ def begin_stop_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [ResponseWithContinuationLabVirtualMachine] 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 @@ -1576,8 +1574,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 # @@ -1590,12 +1588,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 @@ -1657,12 +1654,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationLabVirtualMachine] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb index 5b2408d338..972e4a9684 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) + def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, t # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -89,7 +89,6 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +146,8 @@ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, o # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! response.body unless response.nil? end @@ -165,8 +164,8 @@ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) - get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! end # @@ -182,7 +181,7 @@ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + def get_async(resource_group_name, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? @@ -191,7 +190,6 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -249,8 +247,8 @@ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:ni # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) - response = create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! response.body unless response.nil? end @@ -265,9 +263,9 @@ def create_or_update(resource_group_name, lab_name, name, virtual_network, custo # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) + def create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -292,8 +290,8 @@ def create_or_update_async(resource_group_name, lab_name, name, virtual_network, # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, name, custom_headers:nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -307,9 +305,9 @@ def delete(resource_group_name, lab_name, name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def delete_async(resource_group_name, lab_name, name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -335,8 +333,8 @@ def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [VirtualNetwork] operation results. # - def update(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) - response = update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! + def update(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! response.body unless response.nil? end @@ -352,8 +350,8 @@ def update(resource_group_name, lab_name, name, virtual_network, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) - update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! end # @@ -368,7 +366,7 @@ def update_with_http_info(resource_group_name, lab_name, name, virtual_network, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) + def update_async(resource_group_name, lab_name, name, virtual_network, 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, 'lab_name is nil' if lab_name.nil? @@ -378,12 +376,13 @@ def update_async(resource_group_name, lab_name, name, virtual_network, custom_he 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::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetworkFragment.mapper() request_content = @client.serialize(request_mapper, virtual_network) @@ -443,8 +442,8 @@ def update_async(resource_group_name, lab_name, name, virtual_network, custom_he # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) - response = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! response.body unless response.nil? end @@ -461,8 +460,8 @@ def begin_create_or_update(resource_group_name, lab_name, name, virtual_network, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) - begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! end # @@ -478,7 +477,7 @@ def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, v # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) + def begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, 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, 'lab_name is nil' if lab_name.nil? @@ -488,12 +487,13 @@ def begin_create_or_update_async(resource_group_name, lab_name, name, virtual_ne 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::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork.mapper() request_content = @client.serialize(request_mapper, virtual_network) @@ -560,8 +560,8 @@ def begin_create_or_update_async(resource_group_name, lab_name, name, virtual_ne # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) - response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! nil end @@ -576,8 +576,8 @@ def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) - begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! end # @@ -591,7 +591,7 @@ def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) + def begin_delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? @@ -600,7 +600,6 @@ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -645,8 +644,8 @@ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) # # @return [ResponseWithContinuationVirtualNetwork] 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 @@ -660,8 +659,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 # @@ -674,12 +673,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 @@ -741,12 +739,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResponseWithContinuationVirtualNetwork] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) - response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs.rb new file mode 100644 index 0000000000..39368d554b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs.rb @@ -0,0 +1,241 @@ +# encoding: 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-09-15/generated/azure_mgmt_devtestlabs/module_definition' +require 'ms_rest_azure' + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + autoload :ProviderOperations, '2018-09-15/generated/azure_mgmt_devtestlabs/provider_operations.rb' + autoload :Labs, '2018-09-15/generated/azure_mgmt_devtestlabs/labs.rb' + autoload :Operations, '2018-09-15/generated/azure_mgmt_devtestlabs/operations.rb' + autoload :GlobalSchedules, '2018-09-15/generated/azure_mgmt_devtestlabs/global_schedules.rb' + autoload :ArtifactSources, '2018-09-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb' + autoload :ArmTemplates, '2018-09-15/generated/azure_mgmt_devtestlabs/arm_templates.rb' + autoload :Artifacts, '2018-09-15/generated/azure_mgmt_devtestlabs/artifacts.rb' + autoload :Costs, '2018-09-15/generated/azure_mgmt_devtestlabs/costs.rb' + autoload :CustomImages, '2018-09-15/generated/azure_mgmt_devtestlabs/custom_images.rb' + autoload :Formulas, '2018-09-15/generated/azure_mgmt_devtestlabs/formulas.rb' + autoload :GalleryImages, '2018-09-15/generated/azure_mgmt_devtestlabs/gallery_images.rb' + autoload :NotificationChannels, '2018-09-15/generated/azure_mgmt_devtestlabs/notification_channels.rb' + autoload :PolicySets, '2018-09-15/generated/azure_mgmt_devtestlabs/policy_sets.rb' + autoload :Policies, '2018-09-15/generated/azure_mgmt_devtestlabs/policies.rb' + autoload :Schedules, '2018-09-15/generated/azure_mgmt_devtestlabs/schedules.rb' + autoload :ServiceRunners, '2018-09-15/generated/azure_mgmt_devtestlabs/service_runners.rb' + autoload :Users, '2018-09-15/generated/azure_mgmt_devtestlabs/users.rb' + autoload :Disks, '2018-09-15/generated/azure_mgmt_devtestlabs/disks.rb' + autoload :Environments, '2018-09-15/generated/azure_mgmt_devtestlabs/environments.rb' + autoload :Secrets, '2018-09-15/generated/azure_mgmt_devtestlabs/secrets.rb' + autoload :ServiceFabrics, '2018-09-15/generated/azure_mgmt_devtestlabs/service_fabrics.rb' + autoload :ServiceFabricSchedules, '2018-09-15/generated/azure_mgmt_devtestlabs/service_fabric_schedules.rb' + autoload :VirtualMachines, '2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb' + autoload :VirtualMachineSchedules, '2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb' + autoload :VirtualNetworks, '2018-09-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb' + autoload :DevTestLabsClient, '2018-09-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb' + + module Models + autoload :SharedPublicIpAddressConfiguration, '2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb' + autoload :WeekDetails, '2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details.rb' + autoload :NetworkInterfaceProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb' + autoload :HourDetails, '2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb' + autoload :ScheduleCreationParameter, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter.rb' + autoload :EnvironmentDeploymentPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties_fragment.rb' + autoload :VirtualNetworkList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_list.rb' + autoload :Subnet, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet.rb' + autoload :DayDetailsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb' + autoload :DtlEnvironmentList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_list.rb' + autoload :NotificationSettingsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb' + autoload :EvaluatePoliciesProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb' + autoload :UserSecretStoreFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb' + autoload :EvaluatePoliciesRequest, '2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb' + autoload :ArtifactInstallProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb' + autoload :PolicyViolation, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb' + autoload :ParametersValueFileInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb' + autoload :PolicySetResult, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb' + autoload :ArmTemplateInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb' + autoload :EvaluatePoliciesResponse, '2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb' + autoload :ArmTemplateParameterProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb' + autoload :Event, '2018-09-15/generated/azure_mgmt_devtestlabs/models/event.rb' + autoload :UserSecretStore, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb' + autoload :EventFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb' + autoload :ArtifactDeploymentStatusPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb' + autoload :ExportResourceUsageParameters, '2018-09-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb' + autoload :ArtifactInstallPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb' + autoload :ExternalSubnet, '2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb' + autoload :UserIdentity, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb' + autoload :ExternalSubnetFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb' + autoload :ArtifactSourceList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_list.rb' + autoload :GalleryImageReference, '2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb' + autoload :AttachNewDataDiskOptions, '2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb' + autoload :InboundNatRule, '2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb' + autoload :BulkCreationParameters, '2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb' + autoload :DayDetails, '2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details.rb' + autoload :NotificationSettings, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb' + autoload :ComputeDataDisk, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb' + autoload :ShutdownNotificationContent, '2018-09-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb' + autoload :ComputeVmInstanceViewStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb' + autoload :LabVirtualMachineCreationParameter, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb' + autoload :ComputeVmProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb' + autoload :FormulaPropertiesFromVm, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb' + autoload :PercentageCostThresholdProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb' + autoload :ServiceRunnerList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner_list.rb' + autoload :WindowsOsInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb' + autoload :GalleryImageReferenceFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb' + autoload :CustomImagePropertiesFromVm, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb' + autoload :InboundNatRuleFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb' + autoload :DataDiskStorageTypeInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info.rb' + autoload :SharedPublicIpAddressConfigurationFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb' + autoload :SubnetOverrideFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb' + autoload :NetworkInterfacePropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb' + autoload :LinuxOsInfoFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info_fragment.rb' + autoload :ScheduleCreationParameterFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter_fragment.rb' + autoload :CustomImagePropertiesCustomFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom_fragment.rb' + autoload :LabVirtualMachineCreationParameterFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.rb' + autoload :CustomImagePropertiesFromPlanFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan_fragment.rb' + autoload :FormulaPropertiesFromVmFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm_fragment.rb' + autoload :CustomImageList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_list.rb' + autoload :ServiceFabricList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_list.rb' + autoload :DataDiskPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties_fragment.rb' + autoload :FormulaList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_list.rb' + autoload :DetachDiskProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb' + autoload :SecretList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_list.rb' + autoload :SubnetSharedPublicIpAddressConfiguration, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb' + autoload :GalleryImageList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_list.rb' + autoload :EnvironmentDeploymentProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb' + autoload :ParameterInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb' + autoload :WeekDetailsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb' + autoload :GenerateArmTemplateRequest, '2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb' + autoload :UserList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_list.rb' + autoload :GenerateUploadUriParameter, '2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb' + autoload :ApplyArtifactsRequest, '2018-09-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb' + autoload :GenerateUploadUriResponse, '2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb' + autoload :ArmTemplateList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_list.rb' + autoload :IdentityProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb' + autoload :ArtifactDeploymentStatusProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb' + autoload :ImportLabVirtualMachineRequest, '2018-09-15/generated/azure_mgmt_devtestlabs/models/import_lab_virtual_machine_request.rb' + autoload :ArtifactList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_list.rb' + autoload :LabAnnouncementProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties.rb' + autoload :AttachDiskProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb' + autoload :LabSupportProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties.rb' + autoload :BulkCreationParametersFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters_fragment.rb' + autoload :ScheduleList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_list.rb' + autoload :ComputeDataDiskFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb' + autoload :LabAnnouncementPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties_fragment.rb' + autoload :ComputeVmPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb' + autoload :TargetCostProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb' + autoload :LinuxOsInfo, '2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb' + autoload :LabCostSummaryProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb' + autoload :CustomImagePropertiesFromPlan, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan.rb' + autoload :LabCostDetailsProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb' + autoload :CustomImagePropertiesFromVmFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm_fragment.rb' + autoload :LabResourceCostProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb' + autoload :SubnetSharedPublicIpAddressConfigurationFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb' + autoload :RetargetScheduleProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb' + autoload :DetachDataDiskProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb' + autoload :LabSupportPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties_fragment.rb' + autoload :DiskList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_list.rb' + autoload :Resource, '2018-09-15/generated/azure_mgmt_devtestlabs/models/resource.rb' + autoload :HourDetailsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb' + autoload :LabList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_list.rb' + autoload :UserIdentityFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb' + autoload :LabVhd, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb' + autoload :ArtifactParameterPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb' + autoload :LabVhdList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd_list.rb' + autoload :AttachNewDataDiskOptionsFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options_fragment.rb' + autoload :ResizeLabVirtualMachineProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/resize_lab_virtual_machine_properties.rb' + autoload :ComputeVmInstanceViewStatusFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb' + autoload :RdpConnection, '2018-09-15/generated/azure_mgmt_devtestlabs/models/rdp_connection.rb' + autoload :CustomImagePropertiesCustom, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb' + autoload :LabVirtualMachineList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_list.rb' + autoload :DataDiskStorageTypeInfoFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info_fragment.rb' + autoload :ProviderOperationResult, '2018-09-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb' + autoload :SubnetOverride, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb' + autoload :PortFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb' + autoload :ArtifactParameterProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb' + autoload :NotificationChannelList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_list.rb' + autoload :UpdateResource, '2018-09-15/generated/azure_mgmt_devtestlabs/models/update_resource.rb' + autoload :NotifyParameters, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb' + autoload :CostThresholdProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb' + autoload :OperationError, '2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb' + autoload :DataDiskProperties, '2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb' + autoload :OperationMetadataDisplay, '2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb' + autoload :ArmTemplateParameterPropertiesFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties_fragment.rb' + autoload :OperationMetadata, '2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb' + autoload :WindowsOsInfoFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info_fragment.rb' + autoload :OperationResult, '2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb' + autoload :Port, '2018-09-15/generated/azure_mgmt_devtestlabs/models/port.rb' + autoload :SubnetFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb' + autoload :PolicyList, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_list.rb' + autoload :Schedule, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule.rb' + autoload :ApplicableSchedule, '2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb' + autoload :ScheduleFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb' + autoload :ApplicableScheduleFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb' + autoload :ArmTemplate, '2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb' + autoload :Artifact, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact.rb' + autoload :ArtifactSource, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb' + autoload :ArtifactSourceFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb' + autoload :CustomImage, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb' + autoload :CustomImageFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_fragment.rb' + autoload :Disk, '2018-09-15/generated/azure_mgmt_devtestlabs/models/disk.rb' + autoload :DiskFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_fragment.rb' + autoload :DtlEnvironment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb' + autoload :DtlEnvironmentFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_fragment.rb' + autoload :Formula, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula.rb' + autoload :FormulaFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_fragment.rb' + autoload :GalleryImage, '2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb' + autoload :Lab, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab.rb' + autoload :LabCost, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb' + autoload :LabFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb' + autoload :LabVirtualMachine, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb' + autoload :LabVirtualMachineFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb' + autoload :NotificationChannel, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb' + autoload :NotificationChannelFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb' + autoload :Policy, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy.rb' + autoload :PolicyFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb' + autoload :Secret, '2018-09-15/generated/azure_mgmt_devtestlabs/models/secret.rb' + autoload :SecretFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_fragment.rb' + autoload :ServiceFabric, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric.rb' + autoload :ServiceFabricFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_fragment.rb' + autoload :ServiceRunner, '2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb' + autoload :User, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user.rb' + autoload :UserFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb' + autoload :VirtualNetwork, '2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb' + autoload :VirtualNetworkFragment, '2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb' + autoload :EnableStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/enable_status.rb' + autoload :SourceControlType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/source_control_type.rb' + autoload :StorageType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/storage_type.rb' + autoload :CostThresholdStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb' + autoload :WindowsOsState, '2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb' + autoload :LinuxOsState, '2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb' + autoload :CustomImageOsType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb' + autoload :HostCachingOptions, '2018-09-15/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb' + autoload :NotificationChannelEventType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb' + autoload :TransportProtocol, '2018-09-15/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb' + autoload :VirtualMachineCreationSource, '2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb' + autoload :FileUploadOptions, '2018-09-15/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb' + autoload :PremiumDataDisk, '2018-09-15/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb' + autoload :EnvironmentPermission, '2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_permission.rb' + autoload :TargetCostStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb' + autoload :ReportingCycleType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb' + autoload :CostType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_type.rb' + autoload :HttpStatusCode, '2018-09-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb' + autoload :PolicyStatus, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_status.rb' + autoload :PolicyFactName, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb' + autoload :PolicyEvaluatorType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb' + autoload :UsagePermissionType, '2018-09-15/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb' + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/arm_templates.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/arm_templates.rb new file mode 100644 index 0000000000..a86caf2bf5 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/arm_templates.rb @@ -0,0 +1,366 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class ArmTemplates + include MsRestAzure + + # + # Creates and initializes a new instance of the ArmTemplates class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List azure resource manager templates in a given artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List azure resource manager templates in a given artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List azure resource manager templates in a given artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'artifact_source_name is nil' if artifact_source_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.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates' + + 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,'labName' => lab_name,'artifactSourceName' => artifact_source_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ArmTemplateList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 azure resource manager template. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param name [String] The name of the azure Resource Manager template. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ArmTemplate] operation results. + # + def get(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get azure resource manager template. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param name [String] The name of the azure Resource Manager template. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param custom_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, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! + end + + # + # Get azure resource manager template. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param name [String] The name of the azure Resource Manager template. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param [Hash{String => String}] 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, lab_name, artifact_source_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'artifact_source_name is nil' if artifact_source_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/armtemplates/{name}' + + 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,'labName' => lab_name,'artifactSourceName' => artifact_source_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ArmTemplate.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 azure resource manager templates in a given artifact source. + # + # @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 [ArmTemplateList] 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 + + # + # List azure resource manager templates in a given artifact source. + # + # @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 + + # + # List azure resource manager templates in a given artifact source. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::ArmTemplateList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 azure resource manager templates in a given artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ArmTemplateList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb new file mode 100644 index 0000000000..0b99026284 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb @@ -0,0 +1,671 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class ArtifactSources + include MsRestAzure + + # + # Creates and initializes a new instance of the ArtifactSources class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List artifact sources in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List artifact sources in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List artifact sources in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/artifactsources' + + 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,'labName' => lab_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSourceList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ArtifactSource] operation results. + # + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param custom_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, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + end + + # + # Get artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param [Hash{String => String}] 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, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/artifactsources/{name}' + + 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,'labName' => lab_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param artifact_source [ArtifactSource] Properties of an artifact source. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ArtifactSource] operation results. + # + def create_or_update(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param artifact_source [ArtifactSource] Properties of an artifact source. + # @param custom_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, lab_name, name, artifact_source, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! + end + + # + # Create or replace an existing artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param artifact_source [ArtifactSource] Properties of an artifact source. + # @param [Hash{String => String}] 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, lab_name, name, artifact_source, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'artifact_source is nil' if artifact_source.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper() + request_content = @client.serialize(request_mapper, artifact_source) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Delete artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param custom_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, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Delete artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param [Hash{String => String}] 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, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/artifactsources/{name}' + + 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,'labName' => lab_name,'name' => name}, + 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 + + # + # Modify properties of artifact sources. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param artifact_source [ArtifactSourceFragment] Properties of an artifact + # source. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ArtifactSource] operation results. + # + def update(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of artifact sources. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param artifact_source [ArtifactSourceFragment] Properties of an artifact + # source. + # @param custom_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, lab_name, name, artifact_source, custom_headers = nil) + update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! + end + + # + # Modify properties of artifact sources. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the artifact source. + # @param artifact_source [ArtifactSourceFragment] Properties of an artifact + # source. + # @param [Hash{String => String}] 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, lab_name, name, artifact_source, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'artifact_source is nil' if artifact_source.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSourceFragment.mapper() + request_content = @client.serialize(request_mapper, artifact_source) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 artifact sources in a given lab. + # + # @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 [ArtifactSourceList] 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 + + # + # List artifact sources in a given lab. + # + # @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 + + # + # List artifact sources in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSourceList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 artifact sources in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=displayName)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ArtifactSourceList] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifacts.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifacts.rb new file mode 100644 index 0000000000..4104e9291e --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifacts.rb @@ -0,0 +1,484 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Artifacts + include MsRestAzure + + # + # Creates and initializes a new instance of the Artifacts class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List artifacts in a given artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=title)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List artifacts in a given artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=title)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List artifacts in a given artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=title)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'artifact_source_name is nil' if artifact_source_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.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts' + + 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,'labName' => lab_name,'artifactSourceName' => artifact_source_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 artifact. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param name [String] The name of the artifact. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=title)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Artifact] operation results. + # + def get(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get artifact. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param name [String] The name of the artifact. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=title)' + # @param custom_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, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! + end + + # + # Get artifact. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param name [String] The name of the artifact. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=title)' + # @param [Hash{String => String}] 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, lab_name, artifact_source_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'artifact_source_name is nil' if artifact_source_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}' + + 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,'labName' => lab_name,'artifactSourceName' => artifact_source_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Artifact.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Generates an ARM template for the given artifact, uploads the required files + # to a storage account, and validates the generated artifact. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param name [String] The name of the artifact. + # @param generate_arm_template_request [GenerateArmTemplateRequest] Parameters + # for generating an ARM template for deploying artifacts. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ArmTemplateInfo] operation results. + # + def generate_arm_template(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil) + response = generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers).value! + response.body unless response.nil? + end + + # + # Generates an ARM template for the given artifact, uploads the required files + # to a storage account, and validates the generated artifact. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param name [String] The name of the artifact. + # @param generate_arm_template_request [GenerateArmTemplateRequest] Parameters + # for generating an ARM template for deploying artifacts. + # @param custom_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_arm_template_with_http_info(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil) + generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers).value! + end + + # + # Generates an ARM template for the given artifact, uploads the required files + # to a storage account, and validates the generated artifact. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param name [String] The name of the artifact. + # @param generate_arm_template_request [GenerateArmTemplateRequest] Parameters + # for generating an ARM template for deploying artifacts. + # @param [Hash{String => String}] 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_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'artifact_source_name is nil' if artifact_source_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'generate_arm_template_request is nil' if generate_arm_template_request.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::GenerateArmTemplateRequest.mapper() + request_content = @client.serialize(request_mapper, generate_arm_template_request) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate' + + 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,'labName' => lab_name,'artifactSourceName' => artifact_source_name,'name' => 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 == 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::DevTestLabs::Mgmt::V2018_09_15::Models::ArmTemplateInfo.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 artifacts in a given artifact source. + # + # @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 [ArtifactList] 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 + + # + # List artifacts in a given artifact source. + # + # @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 + + # + # List artifacts in a given artifact source. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 artifacts in a given artifact source. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param artifact_source_name [String] The name of the artifact source. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=title)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ArtifactList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/costs.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/costs.rb new file mode 100644 index 0000000000..98b8368c6c --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/costs.rb @@ -0,0 +1,244 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Costs + include MsRestAzure + + # + # Creates and initializes a new instance of the Costs class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # Get cost. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the cost. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=labCostDetails)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabCost] operation results. + # + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get cost. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the cost. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=labCostDetails)' + # @param custom_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, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + end + + # + # Get cost. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the cost. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=labCostDetails)' + # @param [Hash{String => String}] 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, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/costs/{name}' + + 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,'labName' => lab_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::LabCost.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing cost. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the cost. + # @param lab_cost [LabCost] A cost item. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabCost] operation results. + # + def create_or_update(resource_group_name, lab_name, name, lab_cost, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing cost. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the cost. + # @param lab_cost [LabCost] A cost item. + # @param custom_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, lab_name, name, lab_cost, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers).value! + end + + # + # Create or replace an existing cost. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the cost. + # @param lab_cost [LabCost] A cost item. + # @param [Hash{String => String}] 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, lab_name, name, lab_cost, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'lab_cost is nil' if lab_cost.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::LabCost.mapper() + request_content = @client.serialize(request_mapper, lab_cost) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/costs/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::LabCost.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::LabCost.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/custom_images.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/custom_images.rb new file mode 100644 index 0000000000..1e5c4f81b8 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/custom_images.rb @@ -0,0 +1,757 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class CustomImages + include MsRestAzure + + # + # Creates and initializes a new instance of the CustomImages class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List custom images in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=vm)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List custom images in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=vm)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List custom images in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=vm)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/customimages' + + 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,'labName' => lab_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImageList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 custom image. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=vm)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CustomImage] operation results. + # + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get custom image. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=vm)' + # @param custom_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, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + end + + # + # Get custom image. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=vm)' + # @param [Hash{String => String}] 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, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/customimages/{name}' + + 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,'labName' => lab_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImage.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing custom image. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_image [CustomImage] A custom image. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CustomImage] operation results. + # + def create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_image [CustomImage] A custom image. + # @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, lab_name, name, custom_image, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImage.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 + + # + # Delete custom image. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @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 delete_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Modify properties of custom images. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_image [CustomImageFragment] A custom image. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CustomImage] operation results. + # + def update(resource_group_name, lab_name, name, custom_image, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of custom images. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_image [CustomImageFragment] A custom image. + # @param custom_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, lab_name, name, custom_image, custom_headers = nil) + update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! + end + + # + # Modify properties of custom images. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_image [CustomImageFragment] A custom image. + # @param [Hash{String => String}] 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, lab_name, name, custom_image, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'custom_image is nil' if custom_image.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImageFragment.mapper() + request_content = @client.serialize(request_mapper, custom_image) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImage.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing custom image. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_image [CustomImage] A custom image. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CustomImage] operation results. + # + def begin_create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing custom image. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_image [CustomImage] A custom image. + # @param custom_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, lab_name, name, custom_image, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! + end + + # + # Create or replace an existing custom image. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_image [CustomImage] A custom image. + # @param [Hash{String => String}] 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, lab_name, name, custom_image, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'custom_image is nil' if custom_image.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImage.mapper() + request_content = @client.serialize(request_mapper, custom_image) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImage.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImage.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 custom image. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Delete custom image. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param custom_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_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Delete custom image. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the custom image. + # @param [Hash{String => String}] 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_delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/customimages/{name}' + + 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,'labName' => lab_name,'name' => name}, + 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 == 202 || 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 custom images in a given lab. + # + # @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 [CustomImageList] 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 + + # + # List custom images in a given lab. + # + # @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 + + # + # List custom images in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImageList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 custom images in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=vm)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CustomImageList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb new file mode 100644 index 0000000000..40a2a6ba69 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.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::DevTestLabs::Mgmt::V2018_09_15 + # + # A service client - single point of access to the REST API. + # + class DevTestLabsClient < 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] Client API version. + attr_reader :api_version + + # @return [String] The subscription ID. + 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 [ProviderOperations] provider_operations + attr_reader :provider_operations + + # @return [Labs] labs + attr_reader :labs + + # @return [Operations] operations + attr_reader :operations + + # @return [GlobalSchedules] global_schedules + attr_reader :global_schedules + + # @return [ArtifactSources] artifact_sources + attr_reader :artifact_sources + + # @return [ArmTemplates] arm_templates + attr_reader :arm_templates + + # @return [Artifacts] artifacts + attr_reader :artifacts + + # @return [Costs] costs + attr_reader :costs + + # @return [CustomImages] custom_images + attr_reader :custom_images + + # @return [Formulas] formulas + attr_reader :formulas + + # @return [GalleryImages] gallery_images + attr_reader :gallery_images + + # @return [NotificationChannels] notification_channels + attr_reader :notification_channels + + # @return [PolicySets] policy_sets + attr_reader :policy_sets + + # @return [Policies] policies + attr_reader :policies + + # @return [Schedules] schedules + attr_reader :schedules + + # @return [ServiceRunners] service_runners + attr_reader :service_runners + + # @return [Users] users + attr_reader :users + + # @return [Disks] disks + attr_reader :disks + + # @return [Environments] environments + attr_reader :environments + + # @return [Secrets] secrets + attr_reader :secrets + + # @return [ServiceFabrics] service_fabrics + attr_reader :service_fabrics + + # @return [ServiceFabricSchedules] service_fabric_schedules + attr_reader :service_fabric_schedules + + # @return [VirtualMachines] virtual_machines + attr_reader :virtual_machines + + # @return [VirtualMachineSchedules] virtual_machine_schedules + attr_reader :virtual_machine_schedules + + # @return [VirtualNetworks] virtual_networks + attr_reader :virtual_networks + + # + # Creates initializes a new instance of the DevTestLabsClient 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 + + @provider_operations = ProviderOperations.new(self) + @labs = Labs.new(self) + @operations = Operations.new(self) + @global_schedules = GlobalSchedules.new(self) + @artifact_sources = ArtifactSources.new(self) + @arm_templates = ArmTemplates.new(self) + @artifacts = Artifacts.new(self) + @costs = Costs.new(self) + @custom_images = CustomImages.new(self) + @formulas = Formulas.new(self) + @gallery_images = GalleryImages.new(self) + @notification_channels = NotificationChannels.new(self) + @policy_sets = PolicySets.new(self) + @policies = Policies.new(self) + @schedules = Schedules.new(self) + @service_runners = ServiceRunners.new(self) + @users = Users.new(self) + @disks = Disks.new(self) + @environments = Environments.new(self) + @secrets = Secrets.new(self) + @service_fabrics = ServiceFabrics.new(self) + @service_fabric_schedules = ServiceFabricSchedules.new(self) + @virtual_machines = VirtualMachines.new(self) + @virtual_machine_schedules = VirtualMachineSchedules.new(self) + @virtual_networks = VirtualNetworks.new(self) + @api_version = '2018-09-15' + @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_devtestlabs' + if defined? Azure::DevTestLabs::Mgmt::V2018_09_15::VERSION + sdk_information = "#{sdk_information}/#{Azure::DevTestLabs::Mgmt::V2018_09_15::VERSION}" + end + add_user_agent_information(sdk_information) + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/disks.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/disks.rb new file mode 100644 index 0000000000..0f775157b4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/disks.rb @@ -0,0 +1,1090 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Disks + include MsRestAzure + + # + # Creates and initializes a new instance of the Disks class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List disks in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=diskType)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List disks in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=diskType)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List disks in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=diskType)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_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.DevTestLab/labs/{labName}/users/{userName}/disks' + + 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,'labName' => lab_name,'userName' => user_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::DiskList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 disk. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=diskType)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Disk] operation results. + # + def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get disk. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=diskType)' + # @param custom_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, lab_name, user_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + end + + # + # Get disk. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=diskType)' + # @param [Hash{String => String}] 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, lab_name, user_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/disks/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Disk.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing disk. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param disk [Disk] A Disk. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Disk] operation results. + # + def create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param disk [Disk] A Disk. + # @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, lab_name, user_name, name, disk, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Disk.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 + + # + # Delete disk. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @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 delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + # Send request + promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Modify properties of disks. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param disk [DiskFragment] A Disk. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Disk] operation results. + # + def update(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) + response = update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of disks. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param disk [DiskFragment] A Disk. + # @param custom_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, lab_name, user_name, name, disk, custom_headers = nil) + update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! + end + + # + # Modify properties of disks. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param disk [DiskFragment] A Disk. + # @param [Hash{String => String}] 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, lab_name, user_name, name, disk, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'disk is nil' if disk.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::DiskFragment.mapper() + request_content = @client.serialize(request_mapper, disk) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::Disk.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Attach and create the lease of the disk to the virtual machine. This + # operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param attach_disk_properties [AttachDiskProperties] Properties of the disk + # to attach. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) + response = attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param attach_disk_properties [AttachDiskProperties] Properties of the disk + # to attach. + # @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 attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) + # Send request + promise = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Detach and break the lease of the disk attached to the virtual machine. This + # operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param detach_disk_properties [DetachDiskProperties] Properties of the disk + # to detach. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) + response = detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param detach_disk_properties [DetachDiskProperties] Properties of the disk + # to detach. + # @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 detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) + # Send request + promise = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Create or replace an existing disk. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param disk [Disk] A Disk. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Disk] operation results. + # + def begin_create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing disk. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param disk [Disk] A Disk. + # @param custom_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, lab_name, user_name, name, disk, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! + end + + # + # Create or replace an existing disk. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param disk [Disk] A Disk. + # @param [Hash{String => String}] 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, lab_name, user_name, name, disk, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'disk is nil' if disk.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Disk.mapper() + request_content = @client.serialize(request_mapper, disk) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::Disk.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::Disk.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 disk. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # Delete disk. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param custom_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_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + end + + # + # Delete disk. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param [Hash{String => String}] 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_delete_async(resource_group_name, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/disks/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => name}, + 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 == 202 || 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 + + # + # Attach and create the lease of the disk to the virtual machine. This + # operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param attach_disk_properties [AttachDiskProperties] Properties of the disk + # to attach. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) + response = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value! + nil + end + + # + # Attach and create the lease of the disk to the virtual machine. This + # operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param attach_disk_properties [AttachDiskProperties] Properties of the disk + # to attach. + # @param custom_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_attach_with_http_info(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) + begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value! + end + + # + # Attach and create the lease of the disk to the virtual machine. This + # operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param attach_disk_properties [AttachDiskProperties] Properties of the disk + # to attach. + # @param [Hash{String => String}] 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_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'attach_disk_properties is nil' if attach_disk_properties.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::AttachDiskProperties.mapper() + request_content = @client.serialize(request_mapper, attach_disk_properties) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/attach' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Detach and break the lease of the disk attached to the virtual machine. This + # operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param detach_disk_properties [DetachDiskProperties] Properties of the disk + # to detach. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) + response = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value! + nil + end + + # + # Detach and break the lease of the disk attached to the virtual machine. This + # operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param detach_disk_properties [DetachDiskProperties] Properties of the disk + # to detach. + # @param custom_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_detach_with_http_info(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) + begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value! + end + + # + # Detach and break the lease of the disk attached to the virtual machine. This + # operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the disk. + # @param detach_disk_properties [DetachDiskProperties] Properties of the disk + # to detach. + # @param [Hash{String => String}] 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_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'detach_disk_properties is nil' if detach_disk_properties.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::DetachDiskProperties.mapper() + request_content = @client.serialize(request_mapper, detach_disk_properties) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/disks/{name}/detach' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # List disks in a given user profile. + # + # @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 [DiskList] 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 + + # + # List disks in a given user profile. + # + # @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 + + # + # List disks in a given user profile. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::DiskList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 disks in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=diskType)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DiskList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/environments.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/environments.rb new file mode 100644 index 0000000000..3f08fc7932 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/environments.rb @@ -0,0 +1,791 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Environments + include MsRestAzure + + # + # Creates and initializes a new instance of the Environments class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List environments in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=deploymentProperties)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List environments in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=deploymentProperties)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List environments in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=deploymentProperties)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_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.DevTestLab/labs/{labName}/users/{userName}/environments' + + 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,'labName' => lab_name,'userName' => user_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::DtlEnvironmentList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 environment. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=deploymentProperties)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DtlEnvironment] operation results. + # + def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get environment. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=deploymentProperties)' + # @param custom_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, lab_name, user_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + end + + # + # Get environment. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=deploymentProperties)' + # @param [Hash{String => String}] 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, lab_name, user_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/environments/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::DtlEnvironment.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing environment. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param dtl_environment [DtlEnvironment] An environment, which is essentially + # an ARM template deployment. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DtlEnvironment] operation results. + # + def create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param dtl_environment [DtlEnvironment] An environment, which is essentially + # an ARM template deployment. + # @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, lab_name, user_name, name, dtl_environment, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::DtlEnvironment.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 + + # + # Delete environment. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @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 delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + # Send request + promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Modify properties of environments. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param dtl_environment [DtlEnvironmentFragment] An environment, which is + # essentially an ARM template deployment. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DtlEnvironment] operation results. + # + def update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) + response = update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of environments. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param dtl_environment [DtlEnvironmentFragment] An environment, which is + # essentially an ARM template deployment. + # @param custom_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, lab_name, user_name, name, dtl_environment, custom_headers = nil) + update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! + end + + # + # Modify properties of environments. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param dtl_environment [DtlEnvironmentFragment] An environment, which is + # essentially an ARM template deployment. + # @param [Hash{String => String}] 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, lab_name, user_name, name, dtl_environment, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'dtl_environment is nil' if dtl_environment.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::DtlEnvironmentFragment.mapper() + request_content = @client.serialize(request_mapper, dtl_environment) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::DtlEnvironment.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing environment. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param dtl_environment [DtlEnvironment] An environment, which is essentially + # an ARM template deployment. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DtlEnvironment] operation results. + # + def begin_create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing environment. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param dtl_environment [DtlEnvironment] An environment, which is essentially + # an ARM template deployment. + # @param custom_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, lab_name, user_name, name, dtl_environment, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! + end + + # + # Create or replace an existing environment. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param dtl_environment [DtlEnvironment] An environment, which is essentially + # an ARM template deployment. + # @param [Hash{String => String}] 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, lab_name, user_name, name, dtl_environment, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'dtl_environment is nil' if dtl_environment.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::DtlEnvironment.mapper() + request_content = @client.serialize(request_mapper, dtl_environment) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::DtlEnvironment.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::DtlEnvironment.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 environment. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # Delete environment. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param custom_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_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + end + + # + # Delete environment. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the environment. + # @param [Hash{String => String}] 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_delete_async(resource_group_name, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/environments/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => name}, + 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 == 202 || 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 environments in a given user profile. + # + # @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 [DtlEnvironmentList] 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 + + # + # List environments in a given user profile. + # + # @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 + + # + # List environments in a given user profile. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::DtlEnvironmentList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 environments in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=deploymentProperties)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DtlEnvironmentList] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/formulas.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/formulas.rb new file mode 100644 index 0000000000..c8c56e794d --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/formulas.rb @@ -0,0 +1,725 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Formulas + include MsRestAzure + + # + # Creates and initializes a new instance of the Formulas class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List formulas in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List formulas in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List formulas in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/formulas' + + 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,'labName' => lab_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::FormulaList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 formula. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Formula] operation results. + # + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get formula. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param custom_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, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + end + + # + # Get formula. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param [Hash{String => String}] 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, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/formulas/{name}' + + 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,'labName' => lab_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Formula.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing Formula. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param formula [Formula] A formula for creating a VM, specifying an image + # base and other parameters + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Formula] operation results. + # + def create_or_update(resource_group_name, lab_name, name, formula, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param formula [Formula] A formula for creating a VM, specifying an image + # base and other 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 create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Formula.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 + + # + # Delete formula. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Delete formula. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param custom_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, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Delete formula. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param [Hash{String => String}] 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, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/formulas/{name}' + + 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,'labName' => lab_name,'name' => name}, + 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 + + # + # Modify properties of formulas. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param formula [FormulaFragment] A formula for creating a VM, specifying an + # image base and other parameters + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Formula] operation results. + # + def update(resource_group_name, lab_name, name, formula, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, formula, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of formulas. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param formula [FormulaFragment] A formula for creating a VM, specifying an + # image base and other 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, lab_name, name, formula, custom_headers = nil) + update_async(resource_group_name, lab_name, name, formula, custom_headers).value! + end + + # + # Modify properties of formulas. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param formula [FormulaFragment] A formula for creating a VM, specifying an + # image base and other 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, lab_name, name, formula, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'formula is nil' if formula.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::FormulaFragment.mapper() + request_content = @client.serialize(request_mapper, formula) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::Formula.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing Formula. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param formula [Formula] A formula for creating a VM, specifying an image + # base and other parameters + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Formula] operation results. + # + def begin_create_or_update(resource_group_name, lab_name, name, formula, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing Formula. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param formula [Formula] A formula for creating a VM, specifying an image + # base and other 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_create_or_update_with_http_info(resource_group_name, lab_name, name, formula, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value! + end + + # + # Create or replace an existing Formula. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the formula. + # @param formula [Formula] A formula for creating a VM, specifying an image + # base and other 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_create_or_update_async(resource_group_name, lab_name, name, formula, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'formula is nil' if formula.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Formula.mapper() + request_content = @client.serialize(request_mapper, formula) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/formulas/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::Formula.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::Formula.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 formulas in a given lab. + # + # @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 [FormulaList] 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 + + # + # List formulas in a given lab. + # + # @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 + + # + # List formulas in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::FormulaList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 formulas in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [FormulaList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/gallery_images.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/gallery_images.rb new file mode 100644 index 0000000000..eb0e9473e9 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/gallery_images.rb @@ -0,0 +1,257 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class GalleryImages + include MsRestAzure + + # + # Creates and initializes a new instance of the GalleryImages class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List gallery images in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=author)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List gallery images in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=author)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List gallery images in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=author)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/galleryimages' + + 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,'labName' => lab_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::GalleryImageList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 gallery images in a given lab. + # + # @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 [GalleryImageList] 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 + + # + # List gallery images in a given lab. + # + # @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 + + # + # List gallery images in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::GalleryImageList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 gallery images in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=author)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GalleryImageList] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/global_schedules.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/global_schedules.rb new file mode 100644 index 0000000000..2894415bcf --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/global_schedules.rb @@ -0,0 +1,1127 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class GlobalSchedules + include MsRestAzure + + # + # Creates and initializes a new instance of the GlobalSchedules class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List schedules in a subscription. + # + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_by_subscription_as_lazy(expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List schedules in a subscription. + # + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_by_subscription_async(expand, filter, top, orderby, custom_headers).value! + end + + # + # List schedules in a subscription. + # + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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}/providers/Microsoft.DevTestLab/schedules' + + 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: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedules in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List schedules in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List schedules in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, expand = nil, filter = nil, top = nil, orderby = nil, 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, '@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.DevTestLab/schedules' + + 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}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def get(resource_group_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param custom_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, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, name, expand, custom_headers).value! + end + + # + # Get schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param [Hash{String => String}] 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, name, expand = nil, 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, 'name is nil' if 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.DevTestLab/schedules/{name}' + + 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,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def create_or_update(resource_group_name, name, schedule, custom_headers = nil) + response = create_or_update_async(resource_group_name, name, schedule, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param custom_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, name, schedule, custom_headers = nil) + create_or_update_async(resource_group_name, name, schedule, custom_headers).value! + end + + # + # Create or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param [Hash{String => String}] 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, name, schedule, 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, 'name is nil' if name.nil? + fail ArgumentError, 'schedule is nil' if schedule.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + request_content = @client.serialize(request_mapper, schedule) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}' + + 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,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, name, custom_headers = nil) + response = delete_async(resource_group_name, name, custom_headers).value! + nil + end + + # + # Delete schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param custom_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, name, custom_headers = nil) + delete_async(resource_group_name, name, custom_headers).value! + end + + # + # Delete schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param [Hash{String => String}] 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, 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, 'name is nil' if 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.DevTestLab/schedules/{name}' + + 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,'name' => name}, + 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 + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def update(resource_group_name, name, schedule, custom_headers = nil) + response = update_async(resource_group_name, name, schedule, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param custom_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, name, schedule, custom_headers = nil) + update_async(resource_group_name, name, schedule, custom_headers).value! + end + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param [Hash{String => String}] 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, name, schedule, 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, 'name is nil' if name.nil? + fail ArgumentError, 'schedule is nil' if schedule.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleFragment.mapper() + request_content = @client.serialize(request_mapper, schedule) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}' + + 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,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def execute(resource_group_name, name, custom_headers = nil) + response = execute_async(resource_group_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @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 execute_async(resource_group_name, name, custom_headers = nil) + # Send request + promise = begin_execute_async(resource_group_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Updates a schedule's target resource Id. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param retarget_schedule_properties [RetargetScheduleProperties] Properties + # for retargeting a virtual machine schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def retarget(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) + response = retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param retarget_schedule_properties [RetargetScheduleProperties] Properties + # for retargeting a virtual machine schedule. + # @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 retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) + # Send request + promise = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_execute(resource_group_name, name, custom_headers = nil) + response = begin_execute_async(resource_group_name, name, custom_headers).value! + nil + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param custom_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_execute_with_http_info(resource_group_name, name, custom_headers = nil) + begin_execute_async(resource_group_name, name, custom_headers).value! + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param [Hash{String => String}] 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_execute_async(resource_group_name, 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, 'name is nil' if 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.DevTestLab/schedules/{name}/execute' + + 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,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Updates a schedule's target resource Id. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param retarget_schedule_properties [RetargetScheduleProperties] Properties + # for retargeting a virtual machine schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_retarget(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) + response = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value! + nil + end + + # + # Updates a schedule's target resource Id. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param retarget_schedule_properties [RetargetScheduleProperties] Properties + # for retargeting a virtual machine schedule. + # @param custom_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_retarget_with_http_info(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) + begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value! + end + + # + # Updates a schedule's target resource Id. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the schedule. + # @param retarget_schedule_properties [RetargetScheduleProperties] Properties + # for retargeting a virtual machine schedule. + # @param [Hash{String => String}] 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_retarget_async(resource_group_name, name, retarget_schedule_properties, 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, 'name is nil' if name.nil? + fail ArgumentError, 'retarget_schedule_properties is nil' if retarget_schedule_properties.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::RetargetScheduleProperties.mapper() + request_content = @client.serialize(request_mapper, retarget_schedule_properties) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/schedules/{name}/retarget' + + 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,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # List schedules in a 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 [ScheduleList] 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 + + # + # List schedules in a 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 + + # + # List schedules in a 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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedules in 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 [ScheduleList] 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 schedules in 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 schedules in 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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedules in a subscription. + # + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ScheduleList] which provide lazy access to pages of the response. + # + def list_by_subscription_as_lazy(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_by_subscription_async(expand, filter, top, orderby, 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 + + # + # List schedules in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ScheduleList] which provide lazy access to pages of the response. + # + def list_by_resource_group_as_lazy(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, 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 + + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/labs.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/labs.rb new file mode 100644 index 0000000000..376bac5866 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/labs.rb @@ -0,0 +1,1817 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Labs + include MsRestAzure + + # + # Creates and initializes a new instance of the Labs class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List labs in a subscription. + # + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_by_subscription_as_lazy(expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List labs in a subscription. + # + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_by_subscription_async(expand, filter, top, orderby, custom_headers).value! + end + + # + # List labs in a subscription. + # + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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}/providers/Microsoft.DevTestLab/labs' + + 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: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::LabList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 labs in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List labs in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List labs in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, expand = nil, filter = nil, top = nil, orderby = nil, 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, '@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.DevTestLab/labs' + + 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}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::LabList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Lab] operation results. + # + def get(resource_group_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param custom_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, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, name, expand, custom_headers).value! + end + + # + # Get lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param [Hash{String => String}] 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, name, expand = nil, 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, 'name is nil' if 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.DevTestLab/labs/{name}' + + 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,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Lab.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing lab. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab [Lab] A lab. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Lab] operation results. + # + def create_or_update(resource_group_name, name, lab, custom_headers = nil) + response = create_or_update_async(resource_group_name, name, lab, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab [Lab] A lab. + # @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, name, lab, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, name, lab, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Lab.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 + + # + # Delete lab. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def delete(resource_group_name, name, custom_headers = nil) + response = delete_async(resource_group_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @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 delete_async(resource_group_name, name, custom_headers = nil) + # Send request + promise = begin_delete_async(resource_group_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Modify properties of labs. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab [LabFragment] A lab. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Lab] operation results. + # + def update(resource_group_name, name, lab, custom_headers = nil) + response = update_async(resource_group_name, name, lab, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of labs. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab [LabFragment] A lab. + # @param custom_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, name, lab, custom_headers = nil) + update_async(resource_group_name, name, lab, custom_headers).value! + end + + # + # Modify properties of labs. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab [LabFragment] A lab. + # @param [Hash{String => String}] 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, name, lab, 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, 'name is nil' if name.nil? + fail ArgumentError, 'lab is nil' if lab.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::LabFragment.mapper() + request_content = @client.serialize(request_mapper, lab) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}' + + 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,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::Lab.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Claim a random claimable virtual machine in the lab. This operation can take + # a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def claim_any_vm(resource_group_name, name, custom_headers = nil) + response = claim_any_vm_async(resource_group_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @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 claim_any_vm_async(resource_group_name, name, custom_headers = nil) + # Send request + promise = begin_claim_any_vm_async(resource_group_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Create virtual machines in a lab. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab_virtual_machine_creation_parameter + # [LabVirtualMachineCreationParameter] Properties for creating a virtual + # machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) + response = create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab_virtual_machine_creation_parameter + # [LabVirtualMachineCreationParameter] Properties for creating a virtual + # machine. + # @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_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) + # Send request + promise = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Exports the lab resource usage into a storage account This operation can take + # a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param export_resource_usage_parameters [ExportResourceUsageParameters] The + # parameters of the export operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) + response = export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param export_resource_usage_parameters [ExportResourceUsageParameters] The + # parameters of the export 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 export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) + # Send request + promise = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Generate a URI for uploading custom disk images to a Lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param generate_upload_uri_parameter [GenerateUploadUriParameter] Properties + # for generating an upload URI. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GenerateUploadUriResponse] operation results. + # + def generate_upload_uri(resource_group_name, name, generate_upload_uri_parameter, custom_headers = nil) + response = generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers).value! + response.body unless response.nil? + end + + # + # Generate a URI for uploading custom disk images to a Lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param generate_upload_uri_parameter [GenerateUploadUriParameter] Properties + # for generating an upload URI. + # @param custom_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_upload_uri_with_http_info(resource_group_name, name, generate_upload_uri_parameter, custom_headers = nil) + generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers).value! + end + + # + # Generate a URI for uploading custom disk images to a Lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param generate_upload_uri_parameter [GenerateUploadUriParameter] Properties + # for generating an upload URI. + # @param [Hash{String => String}] 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_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, 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, 'name is nil' if name.nil? + fail ArgumentError, 'generate_upload_uri_parameter is nil' if generate_upload_uri_parameter.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::GenerateUploadUriParameter.mapper() + request_content = @client.serialize(request_mapper, generate_upload_uri_parameter) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/generateUploadUri' + + 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,'name' => 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 == 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::DevTestLabs::Mgmt::V2018_09_15::Models::GenerateUploadUriResponse.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Import a virtual machine into a different lab. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param import_lab_virtual_machine_request [ImportLabVirtualMachineRequest] + # This represents the payload required to import a virtual machine from a + # different lab into the current one + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def import_virtual_machine(resource_group_name, name, import_lab_virtual_machine_request, custom_headers = nil) + response = import_virtual_machine_async(resource_group_name, name, import_lab_virtual_machine_request, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param import_lab_virtual_machine_request [ImportLabVirtualMachineRequest] + # This represents the payload required to import a virtual machine from a + # different lab into the current one + # @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 import_virtual_machine_async(resource_group_name, name, import_lab_virtual_machine_request, custom_headers = nil) + # Send request + promise = begin_import_virtual_machine_async(resource_group_name, name, import_lab_virtual_machine_request, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # List disk images available for custom image creation. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @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_vhds(resource_group_name, name, custom_headers = nil) + first_page = list_vhds_as_lazy(resource_group_name, name, custom_headers) + first_page.get_all_items + end + + # + # List disk images available for custom image creation. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param custom_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_vhds_with_http_info(resource_group_name, name, custom_headers = nil) + list_vhds_async(resource_group_name, name, custom_headers).value! + end + + # + # List disk images available for custom image creation. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param [Hash{String => String}] 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_vhds_async(resource_group_name, 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, 'name is nil' if 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.DevTestLab/labs/{name}/listVhds' + + 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,'name' => 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 == 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::DevTestLabs::Mgmt::V2018_09_15::Models::LabVhdList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing lab. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab [Lab] A lab. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Lab] operation results. + # + def begin_create_or_update(resource_group_name, name, lab, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, name, lab, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing lab. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab [Lab] A lab. + # @param custom_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, name, lab, custom_headers = nil) + begin_create_or_update_async(resource_group_name, name, lab, custom_headers).value! + end + + # + # Create or replace an existing lab. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab [Lab] A lab. + # @param [Hash{String => String}] 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, name, lab, 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, 'name is nil' if name.nil? + fail ArgumentError, 'lab is nil' if lab.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Lab.mapper() + request_content = @client.serialize(request_mapper, lab) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}' + + 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,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::Lab.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::Lab.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 lab. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_delete(resource_group_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, name, custom_headers).value! + nil + end + + # + # Delete lab. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param custom_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_delete_with_http_info(resource_group_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, name, custom_headers).value! + end + + # + # Delete lab. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param [Hash{String => String}] 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_delete_async(resource_group_name, 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, 'name is nil' if 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.DevTestLab/labs/{name}' + + 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,'name' => name}, + 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 == 202 || 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 + + # + # Claim a random claimable virtual machine in the lab. This operation can take + # a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_claim_any_vm(resource_group_name, name, custom_headers = nil) + response = begin_claim_any_vm_async(resource_group_name, name, custom_headers).value! + nil + end + + # + # Claim a random claimable virtual machine in the lab. This operation can take + # a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param custom_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_claim_any_vm_with_http_info(resource_group_name, name, custom_headers = nil) + begin_claim_any_vm_async(resource_group_name, name, custom_headers).value! + end + + # + # Claim a random claimable virtual machine in the lab. This operation can take + # a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param [Hash{String => String}] 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_claim_any_vm_async(resource_group_name, 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, 'name is nil' if 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.DevTestLab/labs/{name}/claimAnyVm' + + 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,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Create virtual machines in a lab. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab_virtual_machine_creation_parameter + # [LabVirtualMachineCreationParameter] Properties for creating a virtual + # machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) + response = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers).value! + nil + end + + # + # Create virtual machines in a lab. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab_virtual_machine_creation_parameter + # [LabVirtualMachineCreationParameter] Properties for creating a virtual + # machine. + # @param custom_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_environment_with_http_info(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) + begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers).value! + end + + # + # Create virtual machines in a lab. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param lab_virtual_machine_creation_parameter + # [LabVirtualMachineCreationParameter] Properties for creating a virtual + # machine. + # @param [Hash{String => String}] 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_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, 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, 'name is nil' if name.nil? + fail ArgumentError, 'lab_virtual_machine_creation_parameter is nil' if lab_virtual_machine_creation_parameter.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachineCreationParameter.mapper() + request_content = @client.serialize(request_mapper, lab_virtual_machine_creation_parameter) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/createEnvironment' + + 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,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Exports the lab resource usage into a storage account This operation can take + # a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param export_resource_usage_parameters [ExportResourceUsageParameters] The + # parameters of the export operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) + response = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers).value! + nil + end + + # + # Exports the lab resource usage into a storage account This operation can take + # a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param export_resource_usage_parameters [ExportResourceUsageParameters] The + # parameters of the export 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_export_resource_usage_with_http_info(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) + begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers).value! + end + + # + # Exports the lab resource usage into a storage account This operation can take + # a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param export_resource_usage_parameters [ExportResourceUsageParameters] The + # parameters of the export 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_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, 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, 'name is nil' if name.nil? + fail ArgumentError, 'export_resource_usage_parameters is nil' if export_resource_usage_parameters.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ExportResourceUsageParameters.mapper() + request_content = @client.serialize(request_mapper, export_resource_usage_parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/exportResourceUsage' + + 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,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Import a virtual machine into a different lab. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param import_lab_virtual_machine_request [ImportLabVirtualMachineRequest] + # This represents the payload required to import a virtual machine from a + # different lab into the current one + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_import_virtual_machine(resource_group_name, name, import_lab_virtual_machine_request, custom_headers = nil) + response = begin_import_virtual_machine_async(resource_group_name, name, import_lab_virtual_machine_request, custom_headers).value! + nil + end + + # + # Import a virtual machine into a different lab. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param import_lab_virtual_machine_request [ImportLabVirtualMachineRequest] + # This represents the payload required to import a virtual machine from a + # different lab into the current one + # @param custom_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_import_virtual_machine_with_http_info(resource_group_name, name, import_lab_virtual_machine_request, custom_headers = nil) + begin_import_virtual_machine_async(resource_group_name, name, import_lab_virtual_machine_request, custom_headers).value! + end + + # + # Import a virtual machine into a different lab. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param import_lab_virtual_machine_request [ImportLabVirtualMachineRequest] + # This represents the payload required to import a virtual machine from a + # different lab into the current one + # @param [Hash{String => String}] 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_import_virtual_machine_async(resource_group_name, name, import_lab_virtual_machine_request, 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, 'name is nil' if name.nil? + fail ArgumentError, 'import_lab_virtual_machine_request is nil' if import_lab_virtual_machine_request.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ImportLabVirtualMachineRequest.mapper() + request_content = @client.serialize(request_mapper, import_lab_virtual_machine_request) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/importVirtualMachine' + + 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,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # List labs in a 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 [LabList] 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 + + # + # List labs in a 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 + + # + # List labs in a 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::DevTestLabs::Mgmt::V2018_09_15::Models::LabList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 labs in 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 [LabList] 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 labs in 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 labs in 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::DevTestLabs::Mgmt::V2018_09_15::Models::LabList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 disk images available for custom image creation. + # + # @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 [LabVhdList] operation results. + # + def list_vhds_next(next_page_link, custom_headers = nil) + response = list_vhds_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # List disk images available for custom image creation. + # + # @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_vhds_next_with_http_info(next_page_link, custom_headers = nil) + list_vhds_next_async(next_page_link, custom_headers).value! + end + + # + # List disk images available for custom image creation. + # + # @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_vhds_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(: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::DevTestLabs::Mgmt::V2018_09_15::Models::LabVhdList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 labs in a subscription. + # + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabList] which provide lazy access to pages of the response. + # + def list_by_subscription_as_lazy(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_by_subscription_async(expand, filter, top, orderby, 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 + + # + # List labs in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=defaultStorageAccount)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabList] which provide lazy access to pages of the response. + # + def list_by_resource_group_as_lazy(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, 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 + + # + # List disk images available for custom image creation. + # + # @param resource_group_name [String] The name of the resource group. + # @param name [String] The name of the lab. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabVhdList] which provide lazy access to pages of the response. + # + def list_vhds_as_lazy(resource_group_name, name, custom_headers = nil) + response = list_vhds_async(resource_group_name, name, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_vhds_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb new file mode 100644 index 0000000000..7832bb07ca --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Schedules applicable to a virtual machine. The schedules may have been + # defined on a VM or on lab level. + # + class ApplicableSchedule < Resource + + include MsRestAzure + + # @return [Schedule] The auto-shutdown schedule, if one has been set at + # the lab or lab resource level. + attr_accessor :lab_vms_shutdown + + # @return [Schedule] The auto-startup schedule, if one has been set at + # the lab or lab resource level. + attr_accessor :lab_vms_startup + + + # + # Mapper for ApplicableSchedule class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApplicableSchedule', + type: { + name: 'Composite', + class_name: 'ApplicableSchedule', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + lab_vms_shutdown: { + required: false, + serialized_name: 'properties.labVmsShutdown', + type: { + name: 'Composite', + class_name: 'Schedule' + } + }, + lab_vms_startup: { + required: false, + serialized_name: 'properties.labVmsStartup', + type: { + name: 'Composite', + class_name: 'Schedule' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb new file mode 100644 index 0000000000..574c140f49 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb @@ -0,0 +1,73 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Schedules applicable to a virtual machine. The schedules may have been + # defined on a VM or on lab level. + # + class ApplicableScheduleFragment < UpdateResource + + include MsRestAzure + + # @return [ScheduleFragment] The auto-shutdown schedule, if one has been + # set at the lab or lab resource level. + attr_accessor :lab_vms_shutdown + + # @return [ScheduleFragment] The auto-startup schedule, if one has been + # set at the lab or lab resource level. + attr_accessor :lab_vms_startup + + + # + # Mapper for ApplicableScheduleFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApplicableScheduleFragment', + type: { + name: 'Composite', + class_name: 'ApplicableScheduleFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + lab_vms_shutdown: { + required: false, + serialized_name: 'properties.labVmsShutdown', + type: { + name: 'Composite', + class_name: 'ScheduleFragment' + } + }, + lab_vms_startup: { + required: false, + serialized_name: 'properties.labVmsStartup', + type: { + name: 'Composite', + class_name: 'ScheduleFragment' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb new file mode 100644 index 0000000000..cd0b3469c2 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb @@ -0,0 +1,53 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Request body for applying artifacts to a virtual machine. + # + class ApplyArtifactsRequest + + include MsRestAzure + + # @return [Array] The list of artifacts to + # apply. + attr_accessor :artifacts + + + # + # Mapper for ApplyArtifactsRequest class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApplyArtifactsRequest', + type: { + name: 'Composite', + class_name: 'ApplyArtifactsRequest', + model_properties: { + artifacts: { + required: false, + serialized_name: 'artifacts', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArtifactInstallPropertiesElementType', + type: { + name: 'Composite', + class_name: 'ArtifactInstallProperties' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb new file mode 100644 index 0000000000..1eecbedc8b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # An Azure Resource Manager template. + # + class ArmTemplate < Resource + + include MsRestAzure + + # @return [String] The display name of the ARM template. + attr_accessor :display_name + + # @return [String] The description of the ARM template. + attr_accessor :description + + # @return [String] The publisher of the ARM template. + attr_accessor :publisher + + # @return [String] The URI to the icon of the ARM template. + attr_accessor :icon + + # @return The contents of the ARM template. + attr_accessor :contents + + # @return [DateTime] The creation date of the armTemplate. + attr_accessor :created_date + + # @return [Array] File name and parameter values + # information from all azuredeploy.*.parameters.json for the ARM + # template. + attr_accessor :parameters_value_files_info + + # @return [Boolean] Whether or not ARM template is enabled for use by lab + # user. + attr_accessor :enabled + + + # + # Mapper for ArmTemplate class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArmTemplate', + type: { + name: 'Composite', + class_name: 'ArmTemplate', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + display_name: { + required: false, + read_only: true, + serialized_name: 'properties.displayName', + type: { + name: 'String' + } + }, + description: { + required: false, + read_only: true, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + publisher: { + required: false, + read_only: true, + serialized_name: 'properties.publisher', + type: { + name: 'String' + } + }, + icon: { + required: false, + read_only: true, + serialized_name: 'properties.icon', + type: { + name: 'String' + } + }, + contents: { + required: false, + read_only: true, + serialized_name: 'properties.contents', + type: { + name: 'Object' + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + parameters_value_files_info: { + required: false, + read_only: true, + serialized_name: 'properties.parametersValueFilesInfo', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ParametersValueFileInfoElementType', + type: { + name: 'Composite', + class_name: 'ParametersValueFileInfo' + } + } + } + }, + enabled: { + required: false, + read_only: true, + serialized_name: 'properties.enabled', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb new file mode 100644 index 0000000000..c803ef31a4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Information about a generated ARM template. + # + class ArmTemplateInfo + + include MsRestAzure + + # @return The template's contents. + attr_accessor :template + + # @return The parameters of the ARM template. + attr_accessor :parameters + + + # + # Mapper for ArmTemplateInfo class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArmTemplateInfo', + type: { + name: 'Composite', + class_name: 'ArmTemplateInfo', + model_properties: { + template: { + required: false, + serialized_name: 'template', + type: { + name: 'Object' + } + }, + parameters: { + required: false, + serialized_name: 'parameters', + type: { + name: 'Object' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_list.rb new file mode 100644 index 0000000000..1fb83f4a72 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class ArmTemplateList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [ArmTemplateList] 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 ArmTemplateList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArmTemplateList', + type: { + name: 'Composite', + class_name: 'ArmTemplateList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArmTemplateElementType', + type: { + name: 'Composite', + class_name: 'ArmTemplate' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb new file mode 100644 index 0000000000..fdaf1e4ec4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an Azure Resource Manager template parameter. + # + class ArmTemplateParameterProperties + + include MsRestAzure + + # @return [String] The name of the template parameter. + attr_accessor :name + + # @return [String] The value of the template parameter. + attr_accessor :value + + + # + # Mapper for ArmTemplateParameterProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArmTemplateParameterProperties', + type: { + name: 'Composite', + class_name: 'ArmTemplateParameterProperties', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties_fragment.rb new file mode 100644 index 0000000000..d734a974a0 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an Azure Resource Manager template parameter. + # + class ArmTemplateParameterPropertiesFragment + + include MsRestAzure + + # @return [String] The name of the template parameter. + attr_accessor :name + + # @return [String] The value of the template parameter. + attr_accessor :value + + + # + # Mapper for ArmTemplateParameterPropertiesFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArmTemplateParameterPropertiesFragment', + type: { + name: 'Composite', + class_name: 'ArmTemplateParameterPropertiesFragment', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact.rb new file mode 100644 index 0000000000..7111bae3f3 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # An artifact. + # + class Artifact < Resource + + include MsRestAzure + + # @return [String] The artifact's title. + attr_accessor :title + + # @return [String] The artifact's description. + attr_accessor :description + + # @return [String] The artifact's publisher. + attr_accessor :publisher + + # @return [String] The file path to the artifact. + attr_accessor :file_path + + # @return [String] The URI to the artifact icon. + attr_accessor :icon + + # @return [String] The artifact's target OS. + attr_accessor :target_os_type + + # @return The artifact's parameters. + attr_accessor :parameters + + # @return [DateTime] The artifact's creation date. + attr_accessor :created_date + + + # + # Mapper for Artifact class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Artifact', + type: { + name: 'Composite', + class_name: 'Artifact', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + title: { + required: false, + read_only: true, + serialized_name: 'properties.title', + type: { + name: 'String' + } + }, + description: { + required: false, + read_only: true, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + publisher: { + required: false, + read_only: true, + serialized_name: 'properties.publisher', + type: { + name: 'String' + } + }, + file_path: { + required: false, + read_only: true, + serialized_name: 'properties.filePath', + type: { + name: 'String' + } + }, + icon: { + required: false, + read_only: true, + serialized_name: 'properties.icon', + type: { + name: 'String' + } + }, + target_os_type: { + required: false, + read_only: true, + serialized_name: 'properties.targetOsType', + type: { + name: 'String' + } + }, + parameters: { + required: false, + read_only: true, + serialized_name: 'properties.parameters', + type: { + name: 'Object' + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb new file mode 100644 index 0000000000..0f3c8416fc --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an artifact deployment. + # + class ArtifactDeploymentStatusProperties + + include MsRestAzure + + # @return [String] The deployment status of the artifact. + attr_accessor :deployment_status + + # @return [Integer] The total count of the artifacts that were + # successfully applied. + attr_accessor :artifacts_applied + + # @return [Integer] The total count of the artifacts that were + # tentatively applied. + attr_accessor :total_artifacts + + + # + # Mapper for ArtifactDeploymentStatusProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactDeploymentStatusProperties', + type: { + name: 'Composite', + class_name: 'ArtifactDeploymentStatusProperties', + model_properties: { + deployment_status: { + required: false, + serialized_name: 'deploymentStatus', + type: { + name: 'String' + } + }, + artifacts_applied: { + required: false, + serialized_name: 'artifactsApplied', + type: { + name: 'Number' + } + }, + total_artifacts: { + required: false, + serialized_name: 'totalArtifacts', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb new file mode 100644 index 0000000000..5e966f88e7 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an artifact deployment. + # + class ArtifactDeploymentStatusPropertiesFragment + + include MsRestAzure + + # @return [String] The deployment status of the artifact. + attr_accessor :deployment_status + + # @return [Integer] The total count of the artifacts that were + # successfully applied. + attr_accessor :artifacts_applied + + # @return [Integer] The total count of the artifacts that were + # tentatively applied. + attr_accessor :total_artifacts + + + # + # Mapper for ArtifactDeploymentStatusPropertiesFragment class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactDeploymentStatusPropertiesFragment', + type: { + name: 'Composite', + class_name: 'ArtifactDeploymentStatusPropertiesFragment', + model_properties: { + deployment_status: { + required: false, + serialized_name: 'deploymentStatus', + type: { + name: 'String' + } + }, + artifacts_applied: { + required: false, + serialized_name: 'artifactsApplied', + type: { + name: 'Number' + } + }, + total_artifacts: { + required: false, + serialized_name: 'totalArtifacts', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb new file mode 100644 index 0000000000..92e4193e3c --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an artifact. + # + class ArtifactInstallProperties + + include MsRestAzure + + # @return [String] The artifact's identifier. + attr_accessor :artifact_id + + # @return [String] The artifact's title. + attr_accessor :artifact_title + + # @return [Array] The parameters of the + # artifact. + attr_accessor :parameters + + # @return [String] The status of the artifact. + attr_accessor :status + + # @return [String] The status message from the deployment. + attr_accessor :deployment_status_message + + # @return [String] The status message from the virtual machine extension. + attr_accessor :vm_extension_status_message + + # @return [DateTime] The time that the artifact starts to install on the + # virtual machine. + attr_accessor :install_time + + + # + # Mapper for ArtifactInstallProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactInstallProperties', + type: { + name: 'Composite', + class_name: 'ArtifactInstallProperties', + model_properties: { + artifact_id: { + required: false, + serialized_name: 'artifactId', + type: { + name: 'String' + } + }, + artifact_title: { + required: false, + serialized_name: 'artifactTitle', + type: { + name: 'String' + } + }, + parameters: { + required: false, + serialized_name: 'parameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArtifactParameterPropertiesElementType', + type: { + name: 'Composite', + class_name: 'ArtifactParameterProperties' + } + } + } + }, + status: { + required: false, + serialized_name: 'status', + type: { + name: 'String' + } + }, + deployment_status_message: { + required: false, + serialized_name: 'deploymentStatusMessage', + type: { + name: 'String' + } + }, + vm_extension_status_message: { + required: false, + serialized_name: 'vmExtensionStatusMessage', + type: { + name: 'String' + } + }, + install_time: { + required: false, + serialized_name: 'installTime', + type: { + name: 'DateTime' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb new file mode 100644 index 0000000000..7354608334 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an artifact. + # + class ArtifactInstallPropertiesFragment + + include MsRestAzure + + # @return [String] The artifact's identifier. + attr_accessor :artifact_id + + # @return [String] The artifact's title. + attr_accessor :artifact_title + + # @return [Array] The parameters of + # the artifact. + attr_accessor :parameters + + # @return [String] The status of the artifact. + attr_accessor :status + + # @return [String] The status message from the deployment. + attr_accessor :deployment_status_message + + # @return [String] The status message from the virtual machine extension. + attr_accessor :vm_extension_status_message + + # @return [DateTime] The time that the artifact starts to install on the + # virtual machine. + attr_accessor :install_time + + + # + # Mapper for ArtifactInstallPropertiesFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactInstallPropertiesFragment', + type: { + name: 'Composite', + class_name: 'ArtifactInstallPropertiesFragment', + model_properties: { + artifact_id: { + required: false, + serialized_name: 'artifactId', + type: { + name: 'String' + } + }, + artifact_title: { + required: false, + serialized_name: 'artifactTitle', + type: { + name: 'String' + } + }, + parameters: { + required: false, + serialized_name: 'parameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArtifactParameterPropertiesFragmentElementType', + type: { + name: 'Composite', + class_name: 'ArtifactParameterPropertiesFragment' + } + } + } + }, + status: { + required: false, + serialized_name: 'status', + type: { + name: 'String' + } + }, + deployment_status_message: { + required: false, + serialized_name: 'deploymentStatusMessage', + type: { + name: 'String' + } + }, + vm_extension_status_message: { + required: false, + serialized_name: 'vmExtensionStatusMessage', + type: { + name: 'String' + } + }, + install_time: { + required: false, + serialized_name: 'installTime', + type: { + name: 'DateTime' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_list.rb new file mode 100644 index 0000000000..ea0355298a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class ArtifactList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [ArtifactList] 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 ArtifactList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactList', + type: { + name: 'Composite', + class_name: 'ArtifactList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArtifactElementType', + type: { + name: 'Composite', + class_name: 'Artifact' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb new file mode 100644 index 0000000000..6cca1eabad --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an artifact parameter. + # + class ArtifactParameterProperties + + include MsRestAzure + + # @return [String] The name of the artifact parameter. + attr_accessor :name + + # @return [String] The value of the artifact parameter. + attr_accessor :value + + + # + # Mapper for ArtifactParameterProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactParameterProperties', + type: { + name: 'Composite', + class_name: 'ArtifactParameterProperties', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb new file mode 100644 index 0000000000..dc1a0dfc59 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an artifact parameter. + # + class ArtifactParameterPropertiesFragment + + include MsRestAzure + + # @return [String] The name of the artifact parameter. + attr_accessor :name + + # @return [String] The value of the artifact parameter. + attr_accessor :value + + + # + # Mapper for ArtifactParameterPropertiesFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactParameterPropertiesFragment', + type: { + name: 'Composite', + class_name: 'ArtifactParameterPropertiesFragment', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb new file mode 100644 index 0000000000..8d8e575f3b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb @@ -0,0 +1,197 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an artifact source. + # + class ArtifactSource < Resource + + include MsRestAzure + + # @return [String] The artifact source's display name. + attr_accessor :display_name + + # @return [String] The artifact source's URI. + attr_accessor :uri + + # @return [SourceControlType] The artifact source's type. Possible values + # include: 'VsoGit', 'GitHub' + attr_accessor :source_type + + # @return [String] The folder containing artifacts. + attr_accessor :folder_path + + # @return [String] The folder containing Azure Resource Manager + # templates. + attr_accessor :arm_template_folder_path + + # @return [String] The artifact source's branch reference. + attr_accessor :branch_ref + + # @return [String] The security token to authenticate to the artifact + # source. + attr_accessor :security_token + + # @return [EnableStatus] Indicates if the artifact source is enabled + # (values: Enabled, Disabled). Possible values include: 'Enabled', + # 'Disabled' + attr_accessor :status + + # @return [DateTime] The artifact source's creation date. + attr_accessor :created_date + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for ArtifactSource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactSource', + type: { + name: 'Composite', + class_name: 'ArtifactSource', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + type: { + name: 'String' + } + }, + uri: { + required: false, + serialized_name: 'properties.uri', + type: { + name: 'String' + } + }, + source_type: { + required: false, + serialized_name: 'properties.sourceType', + type: { + name: 'String' + } + }, + folder_path: { + required: false, + serialized_name: 'properties.folderPath', + type: { + name: 'String' + } + }, + arm_template_folder_path: { + required: false, + serialized_name: 'properties.armTemplateFolderPath', + type: { + name: 'String' + } + }, + branch_ref: { + required: false, + serialized_name: 'properties.branchRef', + type: { + name: 'String' + } + }, + security_token: { + required: false, + serialized_name: 'properties.securityToken', + type: { + name: 'String' + } + }, + status: { + required: false, + serialized_name: 'properties.status', + type: { + name: 'String' + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb new file mode 100644 index 0000000000..6850b7baec --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb @@ -0,0 +1,133 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an artifact source. + # + class ArtifactSourceFragment < UpdateResource + + include MsRestAzure + + # @return [String] The artifact source's display name. + attr_accessor :display_name + + # @return [String] The artifact source's URI. + attr_accessor :uri + + # @return [SourceControlType] The artifact source's type. Possible values + # include: 'VsoGit', 'GitHub' + attr_accessor :source_type + + # @return [String] The folder containing artifacts. + attr_accessor :folder_path + + # @return [String] The folder containing Azure Resource Manager + # templates. + attr_accessor :arm_template_folder_path + + # @return [String] The artifact source's branch reference. + attr_accessor :branch_ref + + # @return [String] The security token to authenticate to the artifact + # source. + attr_accessor :security_token + + # @return [EnableStatus] Indicates if the artifact source is enabled + # (values: Enabled, Disabled). Possible values include: 'Enabled', + # 'Disabled' + attr_accessor :status + + + # + # Mapper for ArtifactSourceFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactSourceFragment', + type: { + name: 'Composite', + class_name: 'ArtifactSourceFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + type: { + name: 'String' + } + }, + uri: { + required: false, + serialized_name: 'properties.uri', + type: { + name: 'String' + } + }, + source_type: { + required: false, + serialized_name: 'properties.sourceType', + type: { + name: 'String' + } + }, + folder_path: { + required: false, + serialized_name: 'properties.folderPath', + type: { + name: 'String' + } + }, + arm_template_folder_path: { + required: false, + serialized_name: 'properties.armTemplateFolderPath', + type: { + name: 'String' + } + }, + branch_ref: { + required: false, + serialized_name: 'properties.branchRef', + type: { + name: 'String' + } + }, + security_token: { + required: false, + serialized_name: 'properties.securityToken', + type: { + name: 'String' + } + }, + status: { + required: false, + serialized_name: 'properties.status', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_list.rb new file mode 100644 index 0000000000..6d56759e2d --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class ArtifactSourceList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [ArtifactSourceList] 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 ArtifactSourceList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ArtifactSourceList', + type: { + name: 'Composite', + class_name: 'ArtifactSourceList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArtifactSourceElementType', + type: { + name: 'Composite', + class_name: 'ArtifactSource' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb new file mode 100644 index 0000000000..255a3a3f2f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_disk_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of the disk to attach. + # + class AttachDiskProperties + + include MsRestAzure + + # @return [String] The resource ID of the Lab virtual machine to which + # the disk is attached. + attr_accessor :leased_by_lab_vm_id + + + # + # Mapper for AttachDiskProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AttachDiskProperties', + type: { + name: 'Composite', + class_name: 'AttachDiskProperties', + model_properties: { + leased_by_lab_vm_id: { + required: false, + serialized_name: 'leasedByLabVmId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb new file mode 100644 index 0000000000..1ec97dc0aa --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties to attach new disk to the Virtual Machine. + # + class AttachNewDataDiskOptions + + include MsRestAzure + + # @return [Integer] Size of the disk to be attached in Gibibytes. + attr_accessor :disk_size_gi_b + + # @return [String] The name of the disk to be attached. + attr_accessor :disk_name + + # @return [StorageType] The storage type for the disk (i.e. Standard, + # Premium). Possible values include: 'Standard', 'Premium' + attr_accessor :disk_type + + + # + # Mapper for AttachNewDataDiskOptions class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AttachNewDataDiskOptions', + type: { + name: 'Composite', + class_name: 'AttachNewDataDiskOptions', + model_properties: { + disk_size_gi_b: { + required: false, + serialized_name: 'diskSizeGiB', + type: { + name: 'Number' + } + }, + disk_name: { + required: false, + serialized_name: 'diskName', + type: { + name: 'String' + } + }, + disk_type: { + required: false, + serialized_name: 'diskType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options_fragment.rb new file mode 100644 index 0000000000..6bb00f8067 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties to attach new disk to the Virtual Machine. + # + class AttachNewDataDiskOptionsFragment + + include MsRestAzure + + # @return [Integer] Size of the disk to be attached in Gibibytes. + attr_accessor :disk_size_gi_b + + # @return [String] The name of the disk to be attached. + attr_accessor :disk_name + + # @return [StorageType] The storage type for the disk (i.e. Standard, + # Premium). Possible values include: 'Standard', 'Premium' + attr_accessor :disk_type + + + # + # Mapper for AttachNewDataDiskOptionsFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AttachNewDataDiskOptionsFragment', + type: { + name: 'Composite', + class_name: 'AttachNewDataDiskOptionsFragment', + model_properties: { + disk_size_gi_b: { + required: false, + serialized_name: 'diskSizeGiB', + type: { + name: 'Number' + } + }, + disk_name: { + required: false, + serialized_name: 'diskName', + type: { + name: 'String' + } + }, + disk_type: { + required: false, + serialized_name: 'diskType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb new file mode 100644 index 0000000000..5c00ff927a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Parameters for creating multiple virtual machines as a single action. + # + class BulkCreationParameters + + include MsRestAzure + + # @return [Integer] The number of virtual machine instances to create. + attr_accessor :instance_count + + + # + # Mapper for BulkCreationParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BulkCreationParameters', + type: { + name: 'Composite', + class_name: 'BulkCreationParameters', + model_properties: { + instance_count: { + required: false, + serialized_name: 'instanceCount', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters_fragment.rb new file mode 100644 index 0000000000..3d26cc9ad4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Parameters for creating multiple virtual machines as a single action. + # + class BulkCreationParametersFragment + + include MsRestAzure + + # @return [Integer] The number of virtual machine instances to create. + attr_accessor :instance_count + + + # + # Mapper for BulkCreationParametersFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BulkCreationParametersFragment', + type: { + name: 'Composite', + class_name: 'BulkCreationParametersFragment', + model_properties: { + instance_count: { + required: false, + serialized_name: 'instanceCount', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb new file mode 100644 index 0000000000..f57d9a0d75 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A data disks attached to a virtual machine. + # + class ComputeDataDisk + + include MsRestAzure + + # @return [String] Gets data disk name. + attr_accessor :name + + # @return [String] When backed by a blob, the URI of underlying blob. + attr_accessor :disk_uri + + # @return [String] When backed by managed disk, this is the ID of the + # compute disk resource. + attr_accessor :managed_disk_id + + # @return [Integer] Gets data disk size in GiB. + attr_accessor :disk_size_gi_b + + + # + # Mapper for ComputeDataDisk class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ComputeDataDisk', + type: { + name: 'Composite', + class_name: 'ComputeDataDisk', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + disk_uri: { + required: false, + serialized_name: 'diskUri', + type: { + name: 'String' + } + }, + managed_disk_id: { + required: false, + serialized_name: 'managedDiskId', + type: { + name: 'String' + } + }, + disk_size_gi_b: { + required: false, + serialized_name: 'diskSizeGiB', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb new file mode 100644 index 0000000000..b1941cde00 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A data disks attached to a virtual machine. + # + class ComputeDataDiskFragment + + include MsRestAzure + + # @return [String] Gets data disk name. + attr_accessor :name + + # @return [String] When backed by a blob, the URI of underlying blob. + attr_accessor :disk_uri + + # @return [String] When backed by managed disk, this is the ID of the + # compute disk resource. + attr_accessor :managed_disk_id + + # @return [Integer] Gets data disk size in GiB. + attr_accessor :disk_size_gi_b + + + # + # Mapper for ComputeDataDiskFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ComputeDataDiskFragment', + type: { + name: 'Composite', + class_name: 'ComputeDataDiskFragment', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + disk_uri: { + required: false, + serialized_name: 'diskUri', + type: { + name: 'String' + } + }, + managed_disk_id: { + required: false, + serialized_name: 'managedDiskId', + type: { + name: 'String' + } + }, + disk_size_gi_b: { + required: false, + serialized_name: 'diskSizeGiB', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb new file mode 100644 index 0000000000..1d1284275a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Status information about a virtual machine. + # + class ComputeVmInstanceViewStatus + + include MsRestAzure + + # @return [String] Gets the status Code. + attr_accessor :code + + # @return [String] Gets the short localizable label for the status. + attr_accessor :display_status + + # @return [String] Gets the message associated with the status. + attr_accessor :message + + + # + # Mapper for ComputeVmInstanceViewStatus class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ComputeVmInstanceViewStatus', + type: { + name: 'Composite', + class_name: 'ComputeVmInstanceViewStatus', + model_properties: { + code: { + required: false, + serialized_name: 'code', + type: { + name: 'String' + } + }, + display_status: { + required: false, + serialized_name: 'displayStatus', + type: { + name: 'String' + } + }, + message: { + required: false, + serialized_name: 'message', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb new file mode 100644 index 0000000000..4110c6e08c --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Status information about a virtual machine. + # + class ComputeVmInstanceViewStatusFragment + + include MsRestAzure + + # @return [String] Gets the status Code. + attr_accessor :code + + # @return [String] Gets the short localizable label for the status. + attr_accessor :display_status + + # @return [String] Gets the message associated with the status. + attr_accessor :message + + + # + # Mapper for ComputeVmInstanceViewStatusFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ComputeVmInstanceViewStatusFragment', + type: { + name: 'Composite', + class_name: 'ComputeVmInstanceViewStatusFragment', + model_properties: { + code: { + required: false, + serialized_name: 'code', + type: { + name: 'String' + } + }, + display_status: { + required: false, + serialized_name: 'displayStatus', + type: { + name: 'String' + } + }, + message: { + required: false, + serialized_name: 'message', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb new file mode 100644 index 0000000000..3970bb95dd --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a virtual machine returned by the Microsoft.Compute API. + # + class ComputeVmProperties + + include MsRestAzure + + # @return [Array] Gets the statuses of the + # virtual machine. + attr_accessor :statuses + + # @return [String] Gets the OS type of the virtual machine. + attr_accessor :os_type + + # @return [String] Gets the size of the virtual machine. + attr_accessor :vm_size + + # @return [String] Gets the network interface ID of the virtual machine. + attr_accessor :network_interface_id + + # @return [String] Gets OS disk blob uri for the virtual machine. + attr_accessor :os_disk_id + + # @return [Array] Gets data disks blob uri for the virtual + # machine. + attr_accessor :data_disk_ids + + # @return [Array] Gets all data disks attached to the + # virtual machine. + attr_accessor :data_disks + + + # + # Mapper for ComputeVmProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ComputeVmProperties', + type: { + name: 'Composite', + class_name: 'ComputeVmProperties', + model_properties: { + statuses: { + required: false, + serialized_name: 'statuses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ComputeVmInstanceViewStatusElementType', + type: { + name: 'Composite', + class_name: 'ComputeVmInstanceViewStatus' + } + } + } + }, + os_type: { + required: false, + serialized_name: 'osType', + type: { + name: 'String' + } + }, + vm_size: { + required: false, + serialized_name: 'vmSize', + type: { + name: 'String' + } + }, + network_interface_id: { + required: false, + serialized_name: 'networkInterfaceId', + type: { + name: 'String' + } + }, + os_disk_id: { + required: false, + serialized_name: 'osDiskId', + type: { + name: 'String' + } + }, + data_disk_ids: { + required: false, + serialized_name: 'dataDiskIds', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + data_disks: { + required: false, + serialized_name: 'dataDisks', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ComputeDataDiskElementType', + type: { + name: 'Composite', + class_name: 'ComputeDataDisk' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb new file mode 100644 index 0000000000..5541f09605 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a virtual machine returned by the Microsoft.Compute API. + # + class ComputeVmPropertiesFragment + + include MsRestAzure + + # @return [Array] Gets the statuses + # of the virtual machine. + attr_accessor :statuses + + # @return [String] Gets the OS type of the virtual machine. + attr_accessor :os_type + + # @return [String] Gets the size of the virtual machine. + attr_accessor :vm_size + + # @return [String] Gets the network interface ID of the virtual machine. + attr_accessor :network_interface_id + + # @return [String] Gets OS disk blob uri for the virtual machine. + attr_accessor :os_disk_id + + # @return [Array] Gets data disks blob uri for the virtual + # machine. + attr_accessor :data_disk_ids + + # @return [Array] Gets all data disks attached + # to the virtual machine. + attr_accessor :data_disks + + + # + # Mapper for ComputeVmPropertiesFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ComputeVmPropertiesFragment', + type: { + name: 'Composite', + class_name: 'ComputeVmPropertiesFragment', + model_properties: { + statuses: { + required: false, + serialized_name: 'statuses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ComputeVmInstanceViewStatusFragmentElementType', + type: { + name: 'Composite', + class_name: 'ComputeVmInstanceViewStatusFragment' + } + } + } + }, + os_type: { + required: false, + serialized_name: 'osType', + type: { + name: 'String' + } + }, + vm_size: { + required: false, + serialized_name: 'vmSize', + type: { + name: 'String' + } + }, + network_interface_id: { + required: false, + serialized_name: 'networkInterfaceId', + type: { + name: 'String' + } + }, + os_disk_id: { + required: false, + serialized_name: 'osDiskId', + type: { + name: 'String' + } + }, + data_disk_ids: { + required: false, + serialized_name: 'dataDiskIds', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + data_disks: { + required: false, + serialized_name: 'dataDisks', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ComputeDataDiskFragmentElementType', + type: { + name: 'Composite', + class_name: 'ComputeDataDiskFragment' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb new file mode 100644 index 0000000000..5f72a7ff1f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a cost threshold item. + # + class CostThresholdProperties + + include MsRestAzure + + # @return [String] The ID of the cost threshold item. + attr_accessor :threshold_id + + # @return [PercentageCostThresholdProperties] The value of the percentage + # cost threshold. + attr_accessor :percentage_threshold + + # @return [CostThresholdStatus] Indicates whether this threshold will be + # displayed on cost charts. Possible values include: 'Enabled', + # 'Disabled' + attr_accessor :display_on_chart + + # @return [CostThresholdStatus] Indicates whether notifications will be + # sent when this threshold is exceeded. Possible values include: + # 'Enabled', 'Disabled' + attr_accessor :send_notification_when_exceeded + + # @return [String] Indicates the datetime when notifications were last + # sent for this threshold. + attr_accessor :notification_sent + + + # + # Mapper for CostThresholdProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CostThresholdProperties', + type: { + name: 'Composite', + class_name: 'CostThresholdProperties', + model_properties: { + threshold_id: { + required: false, + serialized_name: 'thresholdId', + type: { + name: 'String' + } + }, + percentage_threshold: { + required: false, + serialized_name: 'percentageThreshold', + type: { + name: 'Composite', + class_name: 'PercentageCostThresholdProperties' + } + }, + display_on_chart: { + required: false, + serialized_name: 'displayOnChart', + type: { + name: 'String' + } + }, + send_notification_when_exceeded: { + required: false, + serialized_name: 'sendNotificationWhenExceeded', + type: { + name: 'String' + } + }, + notification_sent: { + required: false, + serialized_name: 'notificationSent', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb new file mode 100644 index 0000000000..173cb21046 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for CostThresholdStatus + # + module CostThresholdStatus + Enabled = "Enabled" + Disabled = "Disabled" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_type.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_type.rb new file mode 100644 index 0000000000..75452deba0 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for CostType + # + module CostType + Unavailable = "Unavailable" + Reported = "Reported" + Projected = "Projected" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb new file mode 100644 index 0000000000..25eaa545c2 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb @@ -0,0 +1,218 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A custom image. + # + class CustomImage < Resource + + include MsRestAzure + + # @return [CustomImagePropertiesFromVm] The virtual machine from which + # the image is to be created. + attr_accessor :vm + + # @return [CustomImagePropertiesCustom] The VHD from which the image is + # to be created. + attr_accessor :vhd + + # @return [String] The description of the custom image. + attr_accessor :description + + # @return [String] The author of the custom image. + attr_accessor :author + + # @return [DateTime] The creation date of the custom image. + attr_accessor :creation_date + + # @return [String] The Managed Image Id backing the custom image. + attr_accessor :managed_image_id + + # @return [String] The Managed Snapshot Id backing the custom image. + attr_accessor :managed_snapshot_id + + # @return [Array] Storage information about the + # data disks present in the custom image + attr_accessor :data_disk_storage_info + + # @return [CustomImagePropertiesFromPlan] Storage information about the + # plan related to this custom image + attr_accessor :custom_image_plan + + # @return [Boolean] Whether or not the custom images underlying + # offer/plan has been enabled for programmatic deployment + attr_accessor :is_plan_authorized + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for CustomImage class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CustomImage', + type: { + name: 'Composite', + class_name: 'CustomImage', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + vm: { + required: false, + serialized_name: 'properties.vm', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesFromVm' + } + }, + vhd: { + required: false, + serialized_name: 'properties.vhd', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesCustom' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + author: { + required: false, + serialized_name: 'properties.author', + type: { + name: 'String' + } + }, + creation_date: { + required: false, + read_only: true, + serialized_name: 'properties.creationDate', + type: { + name: 'DateTime' + } + }, + managed_image_id: { + required: false, + serialized_name: 'properties.managedImageId', + type: { + name: 'String' + } + }, + managed_snapshot_id: { + required: false, + serialized_name: 'properties.managedSnapshotId', + type: { + name: 'String' + } + }, + data_disk_storage_info: { + required: false, + serialized_name: 'properties.dataDiskStorageInfo', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DataDiskStorageTypeInfoElementType', + type: { + name: 'Composite', + class_name: 'DataDiskStorageTypeInfo' + } + } + } + }, + custom_image_plan: { + required: false, + serialized_name: 'properties.customImagePlan', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesFromPlan' + } + }, + is_plan_authorized: { + required: false, + serialized_name: 'properties.isPlanAuthorized', + type: { + name: 'Boolean' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_fragment.rb new file mode 100644 index 0000000000..0ce7204523 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A custom image. + # + class CustomImageFragment < UpdateResource + + include MsRestAzure + + # @return [CustomImagePropertiesFromVmFragment] The virtual machine from + # which the image is to be created. + attr_accessor :vm + + # @return [CustomImagePropertiesCustomFragment] The VHD from which the + # image is to be created. + attr_accessor :vhd + + # @return [String] The description of the custom image. + attr_accessor :description + + # @return [String] The author of the custom image. + attr_accessor :author + + # @return [String] The Managed Image Id backing the custom image. + attr_accessor :managed_image_id + + # @return [String] The Managed Snapshot Id backing the custom image. + attr_accessor :managed_snapshot_id + + # @return [Array] Storage information + # about the data disks present in the custom image + attr_accessor :data_disk_storage_info + + # @return [CustomImagePropertiesFromPlanFragment] Storage information + # about the plan related to this custom image + attr_accessor :custom_image_plan + + # @return [Boolean] Whether or not the custom images underlying + # offer/plan has been enabled for programmatic deployment + attr_accessor :is_plan_authorized + + + # + # Mapper for CustomImageFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CustomImageFragment', + type: { + name: 'Composite', + class_name: 'CustomImageFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + vm: { + required: false, + serialized_name: 'properties.vm', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesFromVmFragment' + } + }, + vhd: { + required: false, + serialized_name: 'properties.vhd', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesCustomFragment' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + author: { + required: false, + serialized_name: 'properties.author', + type: { + name: 'String' + } + }, + managed_image_id: { + required: false, + serialized_name: 'properties.managedImageId', + type: { + name: 'String' + } + }, + managed_snapshot_id: { + required: false, + serialized_name: 'properties.managedSnapshotId', + type: { + name: 'String' + } + }, + data_disk_storage_info: { + required: false, + serialized_name: 'properties.dataDiskStorageInfo', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DataDiskStorageTypeInfoFragmentElementType', + type: { + name: 'Composite', + class_name: 'DataDiskStorageTypeInfoFragment' + } + } + } + }, + custom_image_plan: { + required: false, + serialized_name: 'properties.customImagePlan', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesFromPlanFragment' + } + }, + is_plan_authorized: { + required: false, + serialized_name: 'properties.isPlanAuthorized', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_list.rb new file mode 100644 index 0000000000..f354ae6400 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class CustomImageList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [CustomImageList] 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 CustomImageList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CustomImageList', + type: { + name: 'Composite', + class_name: 'CustomImageList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'CustomImageElementType', + type: { + name: 'Composite', + class_name: 'CustomImage' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb new file mode 100644 index 0000000000..4bafaf9654 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_os_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for CustomImageOsType + # + module CustomImageOsType + Windows = "Windows" + Linux = "Linux" + None = "None" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb new file mode 100644 index 0000000000..5ae5253de4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for creating a custom image from a VHD. + # + class CustomImagePropertiesCustom + + include MsRestAzure + + # @return [String] The image name. + attr_accessor :image_name + + # @return [Boolean] Indicates whether sysprep has been run on the VHD. + attr_accessor :sys_prep + + # @return [CustomImageOsType] The OS type of the custom image (i.e. + # Windows, Linux). Possible values include: 'Windows', 'Linux', 'None' + attr_accessor :os_type + + + # + # Mapper for CustomImagePropertiesCustom class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CustomImagePropertiesCustom', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesCustom', + model_properties: { + image_name: { + required: false, + serialized_name: 'imageName', + type: { + name: 'String' + } + }, + sys_prep: { + required: false, + serialized_name: 'sysPrep', + type: { + name: 'Boolean' + } + }, + os_type: { + required: true, + serialized_name: 'osType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom_fragment.rb new file mode 100644 index 0000000000..886e16b3ae --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for creating a custom image from a VHD. + # + class CustomImagePropertiesCustomFragment + + include MsRestAzure + + # @return [String] The image name. + attr_accessor :image_name + + # @return [Boolean] Indicates whether sysprep has been run on the VHD. + attr_accessor :sys_prep + + # @return [CustomImageOsType] The OS type of the custom image (i.e. + # Windows, Linux). Possible values include: 'Windows', 'Linux', 'None' + attr_accessor :os_type + + + # + # Mapper for CustomImagePropertiesCustomFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CustomImagePropertiesCustomFragment', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesCustomFragment', + model_properties: { + image_name: { + required: false, + serialized_name: 'imageName', + type: { + name: 'String' + } + }, + sys_prep: { + required: false, + serialized_name: 'sysPrep', + type: { + name: 'Boolean' + } + }, + os_type: { + required: false, + serialized_name: 'osType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan.rb new file mode 100644 index 0000000000..b44a12338e --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for plan on a custom image. + # + class CustomImagePropertiesFromPlan + + include MsRestAzure + + # @return [String] The id of the plan, equivalent to name of the plan + attr_accessor :id + + # @return [String] The publisher for the plan from the marketplace image + # the custom image is derived from + attr_accessor :publisher + + # @return [String] The offer for the plan from the marketplace image the + # custom image is derived from + attr_accessor :offer + + + # + # Mapper for CustomImagePropertiesFromPlan class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CustomImagePropertiesFromPlan', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesFromPlan', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + publisher: { + required: false, + serialized_name: 'publisher', + type: { + name: 'String' + } + }, + offer: { + required: false, + serialized_name: 'offer', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan_fragment.rb new file mode 100644 index 0000000000..762ef401b2 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for plan on a custom image. + # + class CustomImagePropertiesFromPlanFragment + + include MsRestAzure + + # @return [String] The id of the plan, equivalent to name of the plan + attr_accessor :id + + # @return [String] The publisher for the plan from the marketplace image + # the custom image is derived from + attr_accessor :publisher + + # @return [String] The offer for the plan from the marketplace image the + # custom image is derived from + attr_accessor :offer + + + # + # Mapper for CustomImagePropertiesFromPlanFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CustomImagePropertiesFromPlanFragment', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesFromPlanFragment', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + publisher: { + required: false, + serialized_name: 'publisher', + type: { + name: 'String' + } + }, + offer: { + required: false, + serialized_name: 'offer', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb new file mode 100644 index 0000000000..77cb26b68a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for creating a custom image from a virtual machine. + # + class CustomImagePropertiesFromVm + + include MsRestAzure + + # @return [String] The source vm identifier. + attr_accessor :source_vm_id + + # @return [WindowsOsInfo] The Windows OS information of the VM. + attr_accessor :windows_os_info + + # @return [LinuxOsInfo] The Linux OS information of the VM. + attr_accessor :linux_os_info + + + # + # Mapper for CustomImagePropertiesFromVm class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CustomImagePropertiesFromVm', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesFromVm', + model_properties: { + source_vm_id: { + required: false, + serialized_name: 'sourceVmId', + type: { + name: 'String' + } + }, + windows_os_info: { + required: false, + serialized_name: 'windowsOsInfo', + type: { + name: 'Composite', + class_name: 'WindowsOsInfo' + } + }, + linux_os_info: { + required: false, + serialized_name: 'linuxOsInfo', + type: { + name: 'Composite', + class_name: 'LinuxOsInfo' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm_fragment.rb new file mode 100644 index 0000000000..f3a5a06ed5 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for creating a custom image from a virtual machine. + # + class CustomImagePropertiesFromVmFragment + + include MsRestAzure + + # @return [String] The source vm identifier. + attr_accessor :source_vm_id + + # @return [WindowsOsInfoFragment] The Windows OS information of the VM. + attr_accessor :windows_os_info + + # @return [LinuxOsInfoFragment] The Linux OS information of the VM. + attr_accessor :linux_os_info + + + # + # Mapper for CustomImagePropertiesFromVmFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CustomImagePropertiesFromVmFragment', + type: { + name: 'Composite', + class_name: 'CustomImagePropertiesFromVmFragment', + model_properties: { + source_vm_id: { + required: false, + serialized_name: 'sourceVmId', + type: { + name: 'String' + } + }, + windows_os_info: { + required: false, + serialized_name: 'windowsOsInfo', + type: { + name: 'Composite', + class_name: 'WindowsOsInfoFragment' + } + }, + linux_os_info: { + required: false, + serialized_name: 'linuxOsInfo', + type: { + name: 'Composite', + class_name: 'LinuxOsInfoFragment' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb new file mode 100644 index 0000000000..868f4e8379 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Request body for adding a new or existing data disk to a virtual machine. + # + class DataDiskProperties + + include MsRestAzure + + # @return [AttachNewDataDiskOptions] Specifies options to attach a new + # disk to the virtual machine. + attr_accessor :attach_new_data_disk_options + + # @return [String] Specifies the existing lab disk id to attach to + # virtual machine. + attr_accessor :existing_lab_disk_id + + # @return [HostCachingOptions] Caching option for a data disk (i.e. None, + # ReadOnly, ReadWrite). Possible values include: 'None', 'ReadOnly', + # 'ReadWrite' + attr_accessor :host_caching + + + # + # Mapper for DataDiskProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DataDiskProperties', + type: { + name: 'Composite', + class_name: 'DataDiskProperties', + model_properties: { + attach_new_data_disk_options: { + required: false, + serialized_name: 'attachNewDataDiskOptions', + type: { + name: 'Composite', + class_name: 'AttachNewDataDiskOptions' + } + }, + existing_lab_disk_id: { + required: false, + serialized_name: 'existingLabDiskId', + type: { + name: 'String' + } + }, + host_caching: { + required: false, + serialized_name: 'hostCaching', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties_fragment.rb new file mode 100644 index 0000000000..b565017e60 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Request body for adding a new or existing data disk to a virtual machine. + # + class DataDiskPropertiesFragment + + include MsRestAzure + + # @return [AttachNewDataDiskOptionsFragment] Specifies options to attach + # a new disk to the virtual machine. + attr_accessor :attach_new_data_disk_options + + # @return [String] Specifies the existing lab disk id to attach to + # virtual machine. + attr_accessor :existing_lab_disk_id + + # @return [HostCachingOptions] Caching option for a data disk (i.e. None, + # ReadOnly, ReadWrite). Possible values include: 'None', 'ReadOnly', + # 'ReadWrite' + attr_accessor :host_caching + + + # + # Mapper for DataDiskPropertiesFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DataDiskPropertiesFragment', + type: { + name: 'Composite', + class_name: 'DataDiskPropertiesFragment', + model_properties: { + attach_new_data_disk_options: { + required: false, + serialized_name: 'attachNewDataDiskOptions', + type: { + name: 'Composite', + class_name: 'AttachNewDataDiskOptionsFragment' + } + }, + existing_lab_disk_id: { + required: false, + serialized_name: 'existingLabDiskId', + type: { + name: 'String' + } + }, + host_caching: { + required: false, + serialized_name: 'hostCaching', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info.rb new file mode 100644 index 0000000000..9264c4699a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Storage information about the data disks present in the custom image + # + class DataDiskStorageTypeInfo + + include MsRestAzure + + # @return [String] Disk Lun + attr_accessor :lun + + # @return [StorageType] Disk Storage Type. Possible values include: + # 'Standard', 'Premium' + attr_accessor :storage_type + + + # + # Mapper for DataDiskStorageTypeInfo class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DataDiskStorageTypeInfo', + type: { + name: 'Composite', + class_name: 'DataDiskStorageTypeInfo', + model_properties: { + lun: { + required: false, + serialized_name: 'lun', + type: { + name: 'String' + } + }, + storage_type: { + required: false, + serialized_name: 'storageType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info_fragment.rb new file mode 100644 index 0000000000..c56bfbdb95 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Storage information about the data disks present in the custom image + # + class DataDiskStorageTypeInfoFragment + + include MsRestAzure + + # @return [String] Disk Lun + attr_accessor :lun + + # @return [StorageType] Disk Storage Type. Possible values include: + # 'Standard', 'Premium' + attr_accessor :storage_type + + + # + # Mapper for DataDiskStorageTypeInfoFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DataDiskStorageTypeInfoFragment', + type: { + name: 'Composite', + class_name: 'DataDiskStorageTypeInfoFragment', + model_properties: { + lun: { + required: false, + serialized_name: 'lun', + type: { + name: 'String' + } + }, + storage_type: { + required: false, + serialized_name: 'storageType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details.rb new file mode 100644 index 0000000000..43c9447d3e --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a daily schedule. + # + class DayDetails + + include MsRestAzure + + # @return [String] The time of day the schedule will occur. + attr_accessor :time + + + # + # Mapper for DayDetails class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DayDetails', + type: { + name: 'Composite', + class_name: 'DayDetails', + model_properties: { + time: { + required: false, + serialized_name: 'time', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb new file mode 100644 index 0000000000..56af362c9f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a daily schedule. + # + class DayDetailsFragment + + include MsRestAzure + + # @return [String] The time of day the schedule will occur. + attr_accessor :time + + + # + # Mapper for DayDetailsFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DayDetailsFragment', + type: { + name: 'Composite', + class_name: 'DayDetailsFragment', + model_properties: { + time: { + required: false, + serialized_name: 'time', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb new file mode 100644 index 0000000000..d053586400 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Request body for detaching data disk from a virtual machine. + # + class DetachDataDiskProperties + + include MsRestAzure + + # @return [String] Specifies the disk resource ID to detach from virtual + # machine. + attr_accessor :existing_lab_disk_id + + + # + # Mapper for DetachDataDiskProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DetachDataDiskProperties', + type: { + name: 'Composite', + class_name: 'DetachDataDiskProperties', + model_properties: { + existing_lab_disk_id: { + required: false, + serialized_name: 'existingLabDiskId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb new file mode 100644 index 0000000000..edf78da23a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_disk_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of the disk to detach. + # + class DetachDiskProperties + + include MsRestAzure + + # @return [String] The resource ID of the Lab VM to which the disk is + # attached. + attr_accessor :leased_by_lab_vm_id + + + # + # Mapper for DetachDiskProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DetachDiskProperties', + type: { + name: 'Composite', + class_name: 'DetachDiskProperties', + model_properties: { + leased_by_lab_vm_id: { + required: false, + serialized_name: 'leasedByLabVmId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk.rb new file mode 100644 index 0000000000..8081303061 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk.rb @@ -0,0 +1,187 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A Disk. + # + class Disk < Resource + + include MsRestAzure + + # @return [StorageType] The storage type for the disk (i.e. Standard, + # Premium). Possible values include: 'Standard', 'Premium' + attr_accessor :disk_type + + # @return [Integer] The size of the disk in Gibibytes. + attr_accessor :disk_size_gi_b + + # @return [String] The resource ID of the VM to which this disk is + # leased. + attr_accessor :leased_by_lab_vm_id + + # @return [String] When backed by a blob, the name of the VHD blob + # without extension. + attr_accessor :disk_blob_name + + # @return [String] When backed by a blob, the URI of underlying blob. + attr_accessor :disk_uri + + # @return [DateTime] The creation date of the disk. + attr_accessor :created_date + + # @return [String] The host caching policy of the disk (i.e. None, + # ReadOnly, ReadWrite). + attr_accessor :host_caching + + # @return [String] When backed by managed disk, this is the ID of the + # compute disk resource. + attr_accessor :managed_disk_id + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for Disk class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Disk', + type: { + name: 'Composite', + class_name: 'Disk', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + disk_type: { + required: false, + serialized_name: 'properties.diskType', + type: { + name: 'String' + } + }, + disk_size_gi_b: { + required: false, + serialized_name: 'properties.diskSizeGiB', + type: { + name: 'Number' + } + }, + leased_by_lab_vm_id: { + required: false, + serialized_name: 'properties.leasedByLabVmId', + type: { + name: 'String' + } + }, + disk_blob_name: { + required: false, + serialized_name: 'properties.diskBlobName', + type: { + name: 'String' + } + }, + disk_uri: { + required: false, + serialized_name: 'properties.diskUri', + type: { + name: 'String' + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + host_caching: { + required: false, + serialized_name: 'properties.hostCaching', + type: { + name: 'String' + } + }, + managed_disk_id: { + required: false, + serialized_name: 'properties.managedDiskId', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_fragment.rb new file mode 100644 index 0000000000..fa158e87b8 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A Disk. + # + class DiskFragment < UpdateResource + + include MsRestAzure + + # @return [StorageType] The storage type for the disk (i.e. Standard, + # Premium). Possible values include: 'Standard', 'Premium' + attr_accessor :disk_type + + # @return [Integer] The size of the disk in Gibibytes. + attr_accessor :disk_size_gi_b + + # @return [String] The resource ID of the VM to which this disk is + # leased. + attr_accessor :leased_by_lab_vm_id + + # @return [String] When backed by a blob, the name of the VHD blob + # without extension. + attr_accessor :disk_blob_name + + # @return [String] When backed by a blob, the URI of underlying blob. + attr_accessor :disk_uri + + # @return [String] The host caching policy of the disk (i.e. None, + # ReadOnly, ReadWrite). + attr_accessor :host_caching + + # @return [String] When backed by managed disk, this is the ID of the + # compute disk resource. + attr_accessor :managed_disk_id + + + # + # Mapper for DiskFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DiskFragment', + type: { + name: 'Composite', + class_name: 'DiskFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + disk_type: { + required: false, + serialized_name: 'properties.diskType', + type: { + name: 'String' + } + }, + disk_size_gi_b: { + required: false, + serialized_name: 'properties.diskSizeGiB', + type: { + name: 'Number' + } + }, + leased_by_lab_vm_id: { + required: false, + serialized_name: 'properties.leasedByLabVmId', + type: { + name: 'String' + } + }, + disk_blob_name: { + required: false, + serialized_name: 'properties.diskBlobName', + type: { + name: 'String' + } + }, + disk_uri: { + required: false, + serialized_name: 'properties.diskUri', + type: { + name: 'String' + } + }, + host_caching: { + required: false, + serialized_name: 'properties.hostCaching', + type: { + name: 'String' + } + }, + managed_disk_id: { + required: false, + serialized_name: 'properties.managedDiskId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_list.rb new file mode 100644 index 0000000000..31955e1617 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class DiskList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [DiskList] 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 DiskList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DiskList', + type: { + name: 'Composite', + class_name: 'DiskList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DiskElementType', + type: { + name: 'Composite', + class_name: 'Disk' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb new file mode 100644 index 0000000000..9b768efd22 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # An environment, which is essentially an ARM template deployment. + # + class DtlEnvironment < Resource + + include MsRestAzure + + # @return [EnvironmentDeploymentProperties] The deployment properties of + # the environment. + attr_accessor :deployment_properties + + # @return [String] The display name of the Azure Resource Manager + # template that produced the environment. + attr_accessor :arm_template_display_name + + # @return [String] The identifier of the resource group containing the + # environment's resources. + attr_accessor :resource_group_id + + # @return [String] The creator of the environment. + attr_accessor :created_by_user + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for DtlEnvironment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DtlEnvironment', + type: { + name: 'Composite', + class_name: 'DtlEnvironment', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + deployment_properties: { + required: false, + serialized_name: 'properties.deploymentProperties', + type: { + name: 'Composite', + class_name: 'EnvironmentDeploymentProperties' + } + }, + arm_template_display_name: { + required: false, + serialized_name: 'properties.armTemplateDisplayName', + type: { + name: 'String' + } + }, + resource_group_id: { + required: false, + read_only: true, + serialized_name: 'properties.resourceGroupId', + type: { + name: 'String' + } + }, + created_by_user: { + required: false, + read_only: true, + serialized_name: 'properties.createdByUser', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_fragment.rb new file mode 100644 index 0000000000..740d9d1dc0 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # An environment, which is essentially an ARM template deployment. + # + class DtlEnvironmentFragment < UpdateResource + + include MsRestAzure + + # @return [EnvironmentDeploymentPropertiesFragment] The deployment + # properties of the environment. + attr_accessor :deployment_properties + + # @return [String] The display name of the Azure Resource Manager + # template that produced the environment. + attr_accessor :arm_template_display_name + + + # + # Mapper for DtlEnvironmentFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DtlEnvironmentFragment', + type: { + name: 'Composite', + class_name: 'DtlEnvironmentFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + deployment_properties: { + required: false, + serialized_name: 'properties.deploymentProperties', + type: { + name: 'Composite', + class_name: 'EnvironmentDeploymentPropertiesFragment' + } + }, + arm_template_display_name: { + required: false, + serialized_name: 'properties.armTemplateDisplayName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_list.rb new file mode 100644 index 0000000000..0cefbeafca --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class DtlEnvironmentList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [DtlEnvironmentList] 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 DtlEnvironmentList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DtlEnvironmentList', + type: { + name: 'Composite', + class_name: 'DtlEnvironmentList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DtlEnvironmentElementType', + type: { + name: 'Composite', + class_name: 'DtlEnvironment' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/enable_status.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/enable_status.rb new file mode 100644 index 0000000000..a7183b4f44 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/enable_status.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for EnableStatus + # + module EnableStatus + Enabled = "Enabled" + Disabled = "Disabled" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb new file mode 100644 index 0000000000..19ca7ae3e8 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb @@ -0,0 +1,63 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an environment deployment. + # + class EnvironmentDeploymentProperties + + include MsRestAzure + + # @return [String] The Azure Resource Manager template's identifier. + attr_accessor :arm_template_id + + # @return [Array] The parameters of the + # Azure Resource Manager template. + attr_accessor :parameters + + + # + # Mapper for EnvironmentDeploymentProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EnvironmentDeploymentProperties', + type: { + name: 'Composite', + class_name: 'EnvironmentDeploymentProperties', + model_properties: { + arm_template_id: { + required: false, + serialized_name: 'armTemplateId', + type: { + name: 'String' + } + }, + parameters: { + required: false, + serialized_name: 'parameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArmTemplateParameterPropertiesElementType', + type: { + name: 'Composite', + class_name: 'ArmTemplateParameterProperties' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties_fragment.rb new file mode 100644 index 0000000000..4c6af0bc8a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties_fragment.rb @@ -0,0 +1,63 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an environment deployment. + # + class EnvironmentDeploymentPropertiesFragment + + include MsRestAzure + + # @return [String] The Azure Resource Manager template's identifier. + attr_accessor :arm_template_id + + # @return [Array] The parameters + # of the Azure Resource Manager template. + attr_accessor :parameters + + + # + # Mapper for EnvironmentDeploymentPropertiesFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EnvironmentDeploymentPropertiesFragment', + type: { + name: 'Composite', + class_name: 'EnvironmentDeploymentPropertiesFragment', + model_properties: { + arm_template_id: { + required: false, + serialized_name: 'armTemplateId', + type: { + name: 'String' + } + }, + parameters: { + required: false, + serialized_name: 'parameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArmTemplateParameterPropertiesFragmentElementType', + type: { + name: 'Composite', + class_name: 'ArmTemplateParameterPropertiesFragment' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_permission.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_permission.rb new file mode 100644 index 0000000000..a34a2535c9 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_permission.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for EnvironmentPermission + # + module EnvironmentPermission + Reader = "Reader" + Contributor = "Contributor" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb new file mode 100644 index 0000000000..ed3c014dd8 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for evaluating a policy set. + # + class EvaluatePoliciesProperties + + include MsRestAzure + + # @return [String] The fact name. + attr_accessor :fact_name + + # @return [String] The fact data. + attr_accessor :fact_data + + # @return [String] The value offset. + attr_accessor :value_offset + + # @return [String] The user for which policies will be evaluated + attr_accessor :user_object_id + + + # + # Mapper for EvaluatePoliciesProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EvaluatePoliciesProperties', + type: { + name: 'Composite', + class_name: 'EvaluatePoliciesProperties', + model_properties: { + fact_name: { + required: false, + serialized_name: 'factName', + type: { + name: 'String' + } + }, + fact_data: { + required: false, + serialized_name: 'factData', + type: { + name: 'String' + } + }, + value_offset: { + required: false, + serialized_name: 'valueOffset', + type: { + name: 'String' + } + }, + user_object_id: { + required: false, + serialized_name: 'userObjectId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb new file mode 100644 index 0000000000..db59db4f05 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Request body for evaluating a policy set. + # + class EvaluatePoliciesRequest + + include MsRestAzure + + # @return [Array] Policies to evaluate. + attr_accessor :policies + + + # + # Mapper for EvaluatePoliciesRequest class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EvaluatePoliciesRequest', + type: { + name: 'Composite', + class_name: 'EvaluatePoliciesRequest', + model_properties: { + policies: { + required: false, + serialized_name: 'policies', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'EvaluatePoliciesPropertiesElementType', + type: { + name: 'Composite', + class_name: 'EvaluatePoliciesProperties' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb new file mode 100644 index 0000000000..78584ee870 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Response body for evaluating a policy set. + # + class EvaluatePoliciesResponse + + include MsRestAzure + + # @return [Array] Results of evaluating a policy set. + attr_accessor :results + + + # + # Mapper for EvaluatePoliciesResponse class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EvaluatePoliciesResponse', + type: { + name: 'Composite', + class_name: 'EvaluatePoliciesResponse', + model_properties: { + results: { + required: false, + serialized_name: 'results', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PolicySetResultElementType', + type: { + name: 'Composite', + class_name: 'PolicySetResult' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event.rb new file mode 100644 index 0000000000..8f5c810bc1 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # An event to be notified for. + # + class Event + + include MsRestAzure + + # @return [NotificationChannelEventType] The event type for which this + # notification is enabled (i.e. AutoShutdown, Cost). Possible values + # include: 'AutoShutdown', 'Cost' + attr_accessor :event_name + + + # + # Mapper for Event class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Event', + type: { + name: 'Composite', + class_name: 'Event', + model_properties: { + event_name: { + required: false, + serialized_name: 'eventName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb new file mode 100644 index 0000000000..e0fc206b65 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # An event to be notified for. + # + class EventFragment + + include MsRestAzure + + # @return [NotificationChannelEventType] The event type for which this + # notification is enabled (i.e. AutoShutdown, Cost). Possible values + # include: 'AutoShutdown', 'Cost' + attr_accessor :event_name + + + # + # Mapper for EventFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EventFragment', + type: { + name: 'Composite', + class_name: 'EventFragment', + model_properties: { + event_name: { + required: false, + serialized_name: 'eventName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb new file mode 100644 index 0000000000..6b6e5a84cb --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The parameters of the export operation. + # + class ExportResourceUsageParameters + + include MsRestAzure + + # @return [String] The blob storage absolute sas uri with write + # permission to the container which the usage data needs to be uploaded + # to. + attr_accessor :blob_storage_absolute_sas_uri + + # @return [DateTime] The start time of the usage. If not provided, usage + # will be reported since the beginning of data collection. + attr_accessor :usage_start_date + + + # + # Mapper for ExportResourceUsageParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ExportResourceUsageParameters', + type: { + name: 'Composite', + class_name: 'ExportResourceUsageParameters', + model_properties: { + blob_storage_absolute_sas_uri: { + required: false, + serialized_name: 'blobStorageAbsoluteSasUri', + type: { + name: 'String' + } + }, + usage_start_date: { + required: false, + serialized_name: 'usageStartDate', + type: { + name: 'DateTime' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb new file mode 100644 index 0000000000..b8b2d75966 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Subnet information as returned by the Microsoft.Network API. + # + class ExternalSubnet + + include MsRestAzure + + # @return [String] Gets or sets the identifier. + attr_accessor :id + + # @return [String] Gets or sets the name. + attr_accessor :name + + + # + # Mapper for ExternalSubnet class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ExternalSubnet', + type: { + name: 'Composite', + class_name: 'ExternalSubnet', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb new file mode 100644 index 0000000000..a34ede7f35 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Subnet information as returned by the Microsoft.Network API. + # + class ExternalSubnetFragment + + include MsRestAzure + + # @return [String] Gets or sets the identifier. + attr_accessor :id + + # @return [String] Gets or sets the name. + attr_accessor :name + + + # + # Mapper for ExternalSubnetFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ExternalSubnetFragment', + type: { + name: 'Composite', + class_name: 'ExternalSubnetFragment', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb new file mode 100644 index 0000000000..e562945e30 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/file_upload_options.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for FileUploadOptions + # + module FileUploadOptions + UploadFilesAndGenerateSasTokens = "UploadFilesAndGenerateSasTokens" + None = "None" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula.rb new file mode 100644 index 0000000000..ba0333971f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A formula for creating a VM, specifying an image base and other + # parameters + # + class Formula < Resource + + include MsRestAzure + + # @return [String] The description of the formula. + attr_accessor :description + + # @return [String] The author of the formula. + attr_accessor :author + + # @return [String] The OS type of the formula. + attr_accessor :os_type + + # @return [DateTime] The creation date of the formula. + attr_accessor :creation_date + + # @return [LabVirtualMachineCreationParameter] The content of the + # formula. + attr_accessor :formula_content + + # @return [FormulaPropertiesFromVm] Information about a VM from which a + # formula is to be created. + attr_accessor :vm + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for Formula class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Formula', + type: { + name: 'Composite', + class_name: 'Formula', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + author: { + required: false, + serialized_name: 'properties.author', + type: { + name: 'String' + } + }, + os_type: { + required: false, + serialized_name: 'properties.osType', + type: { + name: 'String' + } + }, + creation_date: { + required: false, + read_only: true, + serialized_name: 'properties.creationDate', + type: { + name: 'DateTime' + } + }, + formula_content: { + required: false, + serialized_name: 'properties.formulaContent', + type: { + name: 'Composite', + class_name: 'LabVirtualMachineCreationParameter' + } + }, + vm: { + required: false, + serialized_name: 'properties.vm', + type: { + name: 'Composite', + class_name: 'FormulaPropertiesFromVm' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_fragment.rb new file mode 100644 index 0000000000..d1bfce3091 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A formula for creating a VM, specifying an image base and other + # parameters + # + class FormulaFragment < UpdateResource + + include MsRestAzure + + # @return [String] The description of the formula. + attr_accessor :description + + # @return [String] The author of the formula. + attr_accessor :author + + # @return [String] The OS type of the formula. + attr_accessor :os_type + + # @return [LabVirtualMachineCreationParameterFragment] The content of the + # formula. + attr_accessor :formula_content + + # @return [FormulaPropertiesFromVmFragment] Information about a VM from + # which a formula is to be created. + attr_accessor :vm + + + # + # Mapper for FormulaFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'FormulaFragment', + type: { + name: 'Composite', + class_name: 'FormulaFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + author: { + required: false, + serialized_name: 'properties.author', + type: { + name: 'String' + } + }, + os_type: { + required: false, + serialized_name: 'properties.osType', + type: { + name: 'String' + } + }, + formula_content: { + required: false, + serialized_name: 'properties.formulaContent', + type: { + name: 'Composite', + class_name: 'LabVirtualMachineCreationParameterFragment' + } + }, + vm: { + required: false, + serialized_name: 'properties.vm', + type: { + name: 'Composite', + class_name: 'FormulaPropertiesFromVmFragment' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_list.rb new file mode 100644 index 0000000000..0dcc37a32c --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class FormulaList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [FormulaList] 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 FormulaList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'FormulaList', + type: { + name: 'Composite', + class_name: 'FormulaList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'FormulaElementType', + type: { + name: 'Composite', + class_name: 'Formula' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb new file mode 100644 index 0000000000..84c4489417 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Information about a VM from which a formula is to be created. + # + class FormulaPropertiesFromVm + + include MsRestAzure + + # @return [String] The identifier of the VM from which a formula is to be + # created. + attr_accessor :lab_vm_id + + + # + # Mapper for FormulaPropertiesFromVm class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'FormulaPropertiesFromVm', + type: { + name: 'Composite', + class_name: 'FormulaPropertiesFromVm', + model_properties: { + lab_vm_id: { + required: false, + serialized_name: 'labVmId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm_fragment.rb new file mode 100644 index 0000000000..9e0fd32e14 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Information about a VM from which a formula is to be created. + # + class FormulaPropertiesFromVmFragment + + include MsRestAzure + + # @return [String] The identifier of the VM from which a formula is to be + # created. + attr_accessor :lab_vm_id + + + # + # Mapper for FormulaPropertiesFromVmFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'FormulaPropertiesFromVmFragment', + type: { + name: 'Composite', + class_name: 'FormulaPropertiesFromVmFragment', + model_properties: { + lab_vm_id: { + required: false, + serialized_name: 'labVmId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb new file mode 100644 index 0000000000..6abb3b424e --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb @@ -0,0 +1,163 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A gallery image. + # + class GalleryImage < Resource + + include MsRestAzure + + # @return [String] The author of the gallery image. + attr_accessor :author + + # @return [DateTime] The creation date of the gallery image. + attr_accessor :created_date + + # @return [String] The description of the gallery image. + attr_accessor :description + + # @return [GalleryImageReference] The image reference of the gallery + # image. + attr_accessor :image_reference + + # @return [String] The icon of the gallery image. + attr_accessor :icon + + # @return [Boolean] Indicates whether this gallery image is enabled. + attr_accessor :enabled + + # @return [String] The third party plan that applies to this image + attr_accessor :plan_id + + # @return [Boolean] Indicates if the plan has been authorized for + # programmatic deployment. + attr_accessor :is_plan_authorized + + + # + # Mapper for GalleryImage class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GalleryImage', + type: { + name: 'Composite', + class_name: 'GalleryImage', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + author: { + required: false, + serialized_name: 'properties.author', + type: { + name: 'String' + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + image_reference: { + required: false, + serialized_name: 'properties.imageReference', + type: { + name: 'Composite', + class_name: 'GalleryImageReference' + } + }, + icon: { + required: false, + serialized_name: 'properties.icon', + type: { + name: 'String' + } + }, + enabled: { + required: false, + serialized_name: 'properties.enabled', + type: { + name: 'Boolean' + } + }, + plan_id: { + required: false, + serialized_name: 'properties.planId', + type: { + name: 'String' + } + }, + is_plan_authorized: { + required: false, + serialized_name: 'properties.isPlanAuthorized', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_list.rb new file mode 100644 index 0000000000..5a135d9042 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class GalleryImageList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [GalleryImageList] 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 GalleryImageList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GalleryImageList', + type: { + name: 'Composite', + class_name: 'GalleryImageList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'GalleryImageElementType', + type: { + name: 'Composite', + class_name: 'GalleryImage' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb new file mode 100644 index 0000000000..456e5dd8ce --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb @@ -0,0 +1,84 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The reference information for an Azure Marketplace image. + # + class GalleryImageReference + + include MsRestAzure + + # @return [String] The offer of the gallery image. + attr_accessor :offer + + # @return [String] The publisher of the gallery image. + attr_accessor :publisher + + # @return [String] The SKU of the gallery image. + attr_accessor :sku + + # @return [String] The OS type of the gallery image. + attr_accessor :os_type + + # @return [String] The version of the gallery image. + attr_accessor :version + + + # + # Mapper for GalleryImageReference class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GalleryImageReference', + type: { + name: 'Composite', + class_name: 'GalleryImageReference', + model_properties: { + offer: { + required: false, + serialized_name: 'offer', + type: { + name: 'String' + } + }, + publisher: { + required: false, + serialized_name: 'publisher', + type: { + name: 'String' + } + }, + sku: { + required: false, + serialized_name: 'sku', + type: { + name: 'String' + } + }, + os_type: { + required: false, + serialized_name: 'osType', + type: { + name: 'String' + } + }, + version: { + required: false, + serialized_name: 'version', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb new file mode 100644 index 0000000000..e69ccd47e3 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb @@ -0,0 +1,84 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The reference information for an Azure Marketplace image. + # + class GalleryImageReferenceFragment + + include MsRestAzure + + # @return [String] The offer of the gallery image. + attr_accessor :offer + + # @return [String] The publisher of the gallery image. + attr_accessor :publisher + + # @return [String] The SKU of the gallery image. + attr_accessor :sku + + # @return [String] The OS type of the gallery image. + attr_accessor :os_type + + # @return [String] The version of the gallery image. + attr_accessor :version + + + # + # Mapper for GalleryImageReferenceFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GalleryImageReferenceFragment', + type: { + name: 'Composite', + class_name: 'GalleryImageReferenceFragment', + model_properties: { + offer: { + required: false, + serialized_name: 'offer', + type: { + name: 'String' + } + }, + publisher: { + required: false, + serialized_name: 'publisher', + type: { + name: 'String' + } + }, + sku: { + required: false, + serialized_name: 'sku', + type: { + name: 'String' + } + }, + os_type: { + required: false, + serialized_name: 'osType', + type: { + name: 'String' + } + }, + version: { + required: false, + serialized_name: 'version', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb new file mode 100644 index 0000000000..15c9fa8a16 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb @@ -0,0 +1,84 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Parameters for generating an ARM template for deploying artifacts. + # + class GenerateArmTemplateRequest + + include MsRestAzure + + # @return [String] The resource name of the virtual machine. + attr_accessor :virtual_machine_name + + # @return [Array] The parameters of the ARM template. + attr_accessor :parameters + + # @return [String] The location of the virtual machine. + attr_accessor :location + + # @return [FileUploadOptions] Options for uploading the files for the + # artifact. UploadFilesAndGenerateSasTokens is the default value. + # Possible values include: 'UploadFilesAndGenerateSasTokens', 'None' + attr_accessor :file_upload_options + + + # + # Mapper for GenerateArmTemplateRequest class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GenerateArmTemplateRequest', + type: { + name: 'Composite', + class_name: 'GenerateArmTemplateRequest', + model_properties: { + virtual_machine_name: { + required: false, + serialized_name: 'virtualMachineName', + type: { + name: 'String' + } + }, + parameters: { + required: false, + serialized_name: 'parameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ParameterInfoElementType', + type: { + name: 'Composite', + class_name: 'ParameterInfo' + } + } + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + file_upload_options: { + required: false, + serialized_name: 'fileUploadOptions', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb new file mode 100644 index 0000000000..f59d616ce9 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for generating an upload URI. + # + class GenerateUploadUriParameter + + include MsRestAzure + + # @return [String] The blob name of the upload URI. + attr_accessor :blob_name + + + # + # Mapper for GenerateUploadUriParameter class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GenerateUploadUriParameter', + type: { + name: 'Composite', + class_name: 'GenerateUploadUriParameter', + model_properties: { + blob_name: { + required: false, + serialized_name: 'blobName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb new file mode 100644 index 0000000000..bdac220d5a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Response body for generating an upload URI. + # + class GenerateUploadUriResponse + + include MsRestAzure + + # @return [String] The upload URI for the VHD. + attr_accessor :upload_uri + + + # + # Mapper for GenerateUploadUriResponse class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GenerateUploadUriResponse', + type: { + name: 'Composite', + class_name: 'GenerateUploadUriResponse', + model_properties: { + upload_uri: { + required: false, + serialized_name: 'uploadUri', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb new file mode 100644 index 0000000000..0f0c101384 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/host_caching_options.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for HostCachingOptions + # + module HostCachingOptions + None = "None" + ReadOnly = "ReadOnly" + ReadWrite = "ReadWrite" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb new file mode 100644 index 0000000000..e169840332 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an hourly schedule. + # + class HourDetails + + include MsRestAzure + + # @return [Integer] Minutes of the hour the schedule will run. + attr_accessor :minute + + + # + # Mapper for HourDetails class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'HourDetails', + type: { + name: 'Composite', + class_name: 'HourDetails', + model_properties: { + minute: { + required: false, + serialized_name: 'minute', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb new file mode 100644 index 0000000000..de9bb06dc4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of an hourly schedule. + # + class HourDetailsFragment + + include MsRestAzure + + # @return [Integer] Minutes of the hour the schedule will run. + attr_accessor :minute + + + # + # Mapper for HourDetailsFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'HourDetailsFragment', + type: { + name: 'Composite', + class_name: 'HourDetailsFragment', + model_properties: { + minute: { + required: false, + serialized_name: 'minute', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb new file mode 100644 index 0000000000..624047fe14 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/http_status_code.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for HttpStatusCode + # + module HttpStatusCode + Continue = "Continue" + SwitchingProtocols = "SwitchingProtocols" + OK = "OK" + Created = "Created" + Accepted = "Accepted" + NonAuthoritativeInformation = "NonAuthoritativeInformation" + NoContent = "NoContent" + ResetContent = "ResetContent" + PartialContent = "PartialContent" + MultipleChoices = "MultipleChoices" + MovedPermanently = "MovedPermanently" + Redirect = "Redirect" + SeeOther = "SeeOther" + NotModified = "NotModified" + UseProxy = "UseProxy" + Unused = "Unused" + TemporaryRedirect = "TemporaryRedirect" + BadRequest = "BadRequest" + Unauthorized = "Unauthorized" + PaymentRequired = "PaymentRequired" + Forbidden = "Forbidden" + NotFound = "NotFound" + MethodNotAllowed = "MethodNotAllowed" + NotAcceptable = "NotAcceptable" + ProxyAuthenticationRequired = "ProxyAuthenticationRequired" + RequestTimeout = "RequestTimeout" + Conflict = "Conflict" + Gone = "Gone" + LengthRequired = "LengthRequired" + PreconditionFailed = "PreconditionFailed" + RequestEntityTooLarge = "RequestEntityTooLarge" + RequestUriTooLong = "RequestUriTooLong" + UnsupportedMediaType = "UnsupportedMediaType" + RequestedRangeNotSatisfiable = "RequestedRangeNotSatisfiable" + ExpectationFailed = "ExpectationFailed" + UpgradeRequired = "UpgradeRequired" + InternalServerError = "InternalServerError" + NotImplemented = "NotImplemented" + BadGateway = "BadGateway" + ServiceUnavailable = "ServiceUnavailable" + GatewayTimeout = "GatewayTimeout" + HttpVersionNotSupported = "HttpVersionNotSupported" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb new file mode 100644 index 0000000000..cfc443d77b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/identity_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a managed identity + # + class IdentityProperties + + include MsRestAzure + + # @return [String] Managed identity. + attr_accessor :type + + # @return [String] The principal id of resource identity. + attr_accessor :principal_id + + # @return [String] The tenant identifier of resource. + attr_accessor :tenant_id + + # @return [String] The client secret URL of the identity. + attr_accessor :client_secret_url + + + # + # Mapper for IdentityProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IdentityProperties', + type: { + name: 'Composite', + class_name: 'IdentityProperties', + model_properties: { + type: { + required: false, + serialized_name: 'type', + type: { + name: 'String' + } + }, + principal_id: { + required: false, + serialized_name: 'principalId', + type: { + name: 'String' + } + }, + tenant_id: { + required: false, + serialized_name: 'tenantId', + type: { + name: 'String' + } + }, + client_secret_url: { + required: false, + serialized_name: 'clientSecretUrl', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/import_lab_virtual_machine_request.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/import_lab_virtual_machine_request.rb new file mode 100644 index 0000000000..a64ed7ccc6 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/import_lab_virtual_machine_request.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # This represents the payload required to import a virtual machine from a + # different lab into the current one + # + class ImportLabVirtualMachineRequest + + include MsRestAzure + + # @return [String] The full resource ID of the virtual machine to be + # imported. + attr_accessor :source_virtual_machine_resource_id + + # @return [String] The name of the virtual machine in the destination lab + attr_accessor :destination_virtual_machine_name + + + # + # Mapper for ImportLabVirtualMachineRequest class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ImportLabVirtualMachineRequest', + type: { + name: 'Composite', + class_name: 'ImportLabVirtualMachineRequest', + model_properties: { + source_virtual_machine_resource_id: { + required: false, + serialized_name: 'sourceVirtualMachineResourceId', + type: { + name: 'String' + } + }, + destination_virtual_machine_name: { + required: false, + serialized_name: 'destinationVirtualMachineName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb new file mode 100644 index 0000000000..ba85fd1429 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A rule for NAT - exposing a VM's port (backendPort) on the public IP + # address using a load balancer. + # + class InboundNatRule + + include MsRestAzure + + # @return [TransportProtocol] The transport protocol for the endpoint. + # Possible values include: 'Tcp', 'Udp' + attr_accessor :transport_protocol + + # @return [Integer] The external endpoint port of the inbound connection. + # Possible values range between 1 and 65535, inclusive. If unspecified, a + # value will be allocated automatically. + attr_accessor :frontend_port + + # @return [Integer] The port to which the external traffic will be + # redirected. + attr_accessor :backend_port + + + # + # Mapper for InboundNatRule class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'InboundNatRule', + type: { + name: 'Composite', + class_name: 'InboundNatRule', + model_properties: { + transport_protocol: { + required: false, + serialized_name: 'transportProtocol', + type: { + name: 'String' + } + }, + frontend_port: { + required: false, + serialized_name: 'frontendPort', + type: { + name: 'Number' + } + }, + backend_port: { + required: false, + serialized_name: 'backendPort', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb new file mode 100644 index 0000000000..8b6e9ebd84 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A rule for NAT - exposing a VM's port (backendPort) on the public IP + # address using a load balancer. + # + class InboundNatRuleFragment + + include MsRestAzure + + # @return [TransportProtocol] The transport protocol for the endpoint. + # Possible values include: 'Tcp', 'Udp' + attr_accessor :transport_protocol + + # @return [Integer] The external endpoint port of the inbound connection. + # Possible values range between 1 and 65535, inclusive. If unspecified, a + # value will be allocated automatically. + attr_accessor :frontend_port + + # @return [Integer] The port to which the external traffic will be + # redirected. + attr_accessor :backend_port + + + # + # Mapper for InboundNatRuleFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'InboundNatRuleFragment', + type: { + name: 'Composite', + class_name: 'InboundNatRuleFragment', + model_properties: { + transport_protocol: { + required: false, + serialized_name: 'transportProtocol', + type: { + name: 'String' + } + }, + frontend_port: { + required: false, + serialized_name: 'frontendPort', + type: { + name: 'Number' + } + }, + backend_port: { + required: false, + serialized_name: 'backendPort', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab.rb new file mode 100644 index 0000000000..d7fa165cf6 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab.rb @@ -0,0 +1,333 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A lab. + # + class Lab < Resource + + include MsRestAzure + + # @return [String] The lab's default storage account. + attr_accessor :default_storage_account + + # @return [String] The lab's default premium storage account. + attr_accessor :default_premium_storage_account + + # @return [String] The lab's artifact storage account. + attr_accessor :artifacts_storage_account + + # @return [String] The lab's premium data disk storage account. + attr_accessor :premium_data_disk_storage_account + + # @return [String] The lab's Key vault. + attr_accessor :vault_name + + # @return [StorageType] Type of storage used by the lab. It can be either + # Premium or Standard. Default is Premium. Possible values include: + # 'Standard', 'Premium' + attr_accessor :lab_storage_type + + # @return [Array] The ordered list of artifact resource IDs that + # should be applied on all Linux VM creations by default, prior to the + # artifacts specified by the user. + attr_accessor :mandatory_artifacts_resource_ids_linux + + # @return [Array] The ordered list of artifact resource IDs that + # should be applied on all Windows VM creations by default, prior to the + # artifacts specified by the user. + attr_accessor :mandatory_artifacts_resource_ids_windows + + # @return [DateTime] The creation date of the lab. + attr_accessor :created_date + + # @return [PremiumDataDisk] The setting to enable usage of premium data + # disks. + # When its value is 'Enabled', creation of standard or premium data disks + # is allowed. + # When its value is 'Disabled', only creation of standard data disks is + # allowed. Possible values include: 'Disabled', 'Enabled' + attr_accessor :premium_data_disks + + # @return [EnvironmentPermission] The access rights to be granted to the + # user when provisioning an environment. Possible values include: + # 'Reader', 'Contributor' + attr_accessor :environment_permission + + # @return [LabAnnouncementProperties] The properties of any lab + # announcement associated with this lab + attr_accessor :announcement + + # @return [LabSupportProperties] The properties of any lab support + # message associated with this lab + attr_accessor :support + + # @return [String] The resource group in which lab virtual machines will + # be created in. + attr_accessor :vm_creation_resource_group + + # @return [String] The public IP address for the lab's load balancer. + attr_accessor :public_ip_id + + # @return [String] The load balancer used to for lab VMs that use shared + # IP address. + attr_accessor :load_balancer_id + + # @return [String] The Network Security Group attached to the lab VMs + # Network interfaces to restrict open ports. + attr_accessor :network_security_group_id + + # @return [Hash{String => String}] Extended properties of the lab used + # for experimental features + attr_accessor :extended_properties + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for Lab class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Lab', + type: { + name: 'Composite', + class_name: 'Lab', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + default_storage_account: { + required: false, + read_only: true, + serialized_name: 'properties.defaultStorageAccount', + type: { + name: 'String' + } + }, + default_premium_storage_account: { + required: false, + read_only: true, + serialized_name: 'properties.defaultPremiumStorageAccount', + type: { + name: 'String' + } + }, + artifacts_storage_account: { + required: false, + read_only: true, + serialized_name: 'properties.artifactsStorageAccount', + type: { + name: 'String' + } + }, + premium_data_disk_storage_account: { + required: false, + read_only: true, + serialized_name: 'properties.premiumDataDiskStorageAccount', + type: { + name: 'String' + } + }, + vault_name: { + required: false, + read_only: true, + serialized_name: 'properties.vaultName', + type: { + name: 'String' + } + }, + lab_storage_type: { + required: false, + serialized_name: 'properties.labStorageType', + type: { + name: 'String' + } + }, + mandatory_artifacts_resource_ids_linux: { + required: false, + serialized_name: 'properties.mandatoryArtifactsResourceIdsLinux', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + mandatory_artifacts_resource_ids_windows: { + required: false, + serialized_name: 'properties.mandatoryArtifactsResourceIdsWindows', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + premium_data_disks: { + required: false, + serialized_name: 'properties.premiumDataDisks', + type: { + name: 'String' + } + }, + environment_permission: { + required: false, + serialized_name: 'properties.environmentPermission', + type: { + name: 'String' + } + }, + announcement: { + required: false, + serialized_name: 'properties.announcement', + type: { + name: 'Composite', + class_name: 'LabAnnouncementProperties' + } + }, + support: { + required: false, + serialized_name: 'properties.support', + type: { + name: 'Composite', + class_name: 'LabSupportProperties' + } + }, + vm_creation_resource_group: { + required: false, + read_only: true, + serialized_name: 'properties.vmCreationResourceGroup', + type: { + name: 'String' + } + }, + public_ip_id: { + required: false, + read_only: true, + serialized_name: 'properties.publicIpId', + type: { + name: 'String' + } + }, + load_balancer_id: { + required: false, + read_only: true, + serialized_name: 'properties.loadBalancerId', + type: { + name: 'String' + } + }, + network_security_group_id: { + required: false, + read_only: true, + serialized_name: 'properties.networkSecurityGroupId', + type: { + name: 'String' + } + }, + extended_properties: { + required: false, + serialized_name: 'properties.extendedProperties', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties.rb new file mode 100644 index 0000000000..32d1fcfcf0 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties.rb @@ -0,0 +1,109 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a lab's announcement banner + # + class LabAnnouncementProperties + + include MsRestAzure + + # @return [String] The plain text title for the lab announcement + attr_accessor :title + + # @return [String] The markdown text (if any) that this lab displays in + # the UI. If left empty/null, nothing will be shown. + attr_accessor :markdown + + # @return [EnableStatus] Is the lab announcement active/enabled at this + # time?. Possible values include: 'Enabled', 'Disabled' + attr_accessor :enabled + + # @return [DateTime] The time at which the announcement expires (null for + # never) + attr_accessor :expiration_date + + # @return [Boolean] Has this announcement expired? + attr_accessor :expired + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for LabAnnouncementProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabAnnouncementProperties', + type: { + name: 'Composite', + class_name: 'LabAnnouncementProperties', + model_properties: { + title: { + required: false, + serialized_name: 'title', + type: { + name: 'String' + } + }, + markdown: { + required: false, + serialized_name: 'markdown', + type: { + name: 'String' + } + }, + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'String' + } + }, + expiration_date: { + required: false, + serialized_name: 'expirationDate', + type: { + name: 'DateTime' + } + }, + expired: { + required: false, + serialized_name: 'expired', + type: { + name: 'Boolean' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties_fragment.rb new file mode 100644 index 0000000000..b1a2c9e19f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties_fragment.rb @@ -0,0 +1,87 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a lab's announcement banner + # + class LabAnnouncementPropertiesFragment + + include MsRestAzure + + # @return [String] The plain text title for the lab announcement + attr_accessor :title + + # @return [String] The markdown text (if any) that this lab displays in + # the UI. If left empty/null, nothing will be shown. + attr_accessor :markdown + + # @return [EnableStatus] Is the lab announcement active/enabled at this + # time?. Possible values include: 'Enabled', 'Disabled' + attr_accessor :enabled + + # @return [DateTime] The time at which the announcement expires (null for + # never) + attr_accessor :expiration_date + + # @return [Boolean] Has this announcement expired? + attr_accessor :expired + + + # + # Mapper for LabAnnouncementPropertiesFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabAnnouncementPropertiesFragment', + type: { + name: 'Composite', + class_name: 'LabAnnouncementPropertiesFragment', + model_properties: { + title: { + required: false, + serialized_name: 'title', + type: { + name: 'String' + } + }, + markdown: { + required: false, + serialized_name: 'markdown', + type: { + name: 'String' + } + }, + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'String' + } + }, + expiration_date: { + required: false, + serialized_name: 'expirationDate', + type: { + name: 'DateTime' + } + }, + expired: { + required: false, + serialized_name: 'expired', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb new file mode 100644 index 0000000000..379c9f79de --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb @@ -0,0 +1,205 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A cost item. + # + class LabCost < Resource + + include MsRestAzure + + # @return [TargetCostProperties] The target cost properties + attr_accessor :target_cost + + # @return [LabCostSummaryProperties] The lab cost summary component of + # the cost data. + attr_accessor :lab_cost_summary + + # @return [Array] The lab cost details + # component of the cost data. + attr_accessor :lab_cost_details + + # @return [Array] The resource cost component + # of the cost data. + attr_accessor :resource_costs + + # @return [String] The currency code of the cost. + attr_accessor :currency_code + + # @return [DateTime] The start time of the cost data. + attr_accessor :start_date_time + + # @return [DateTime] The end time of the cost data. + attr_accessor :end_date_time + + # @return [DateTime] The creation date of the cost. + attr_accessor :created_date + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for LabCost class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabCost', + type: { + name: 'Composite', + class_name: 'LabCost', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + target_cost: { + required: false, + serialized_name: 'properties.targetCost', + type: { + name: 'Composite', + class_name: 'TargetCostProperties' + } + }, + lab_cost_summary: { + required: false, + read_only: true, + serialized_name: 'properties.labCostSummary', + type: { + name: 'Composite', + class_name: 'LabCostSummaryProperties' + } + }, + lab_cost_details: { + required: false, + read_only: true, + serialized_name: 'properties.labCostDetails', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'LabCostDetailsPropertiesElementType', + type: { + name: 'Composite', + class_name: 'LabCostDetailsProperties' + } + } + } + }, + resource_costs: { + required: false, + read_only: true, + serialized_name: 'properties.resourceCosts', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'LabResourceCostPropertiesElementType', + type: { + name: 'Composite', + class_name: 'LabResourceCostProperties' + } + } + } + }, + currency_code: { + required: false, + serialized_name: 'properties.currencyCode', + type: { + name: 'String' + } + }, + start_date_time: { + required: false, + serialized_name: 'properties.startDateTime', + type: { + name: 'DateTime' + } + }, + end_date_time: { + required: false, + serialized_name: 'properties.endDateTime', + type: { + name: 'DateTime' + } + }, + created_date: { + required: false, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb new file mode 100644 index 0000000000..a38f948c63 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The properties of a lab cost item. + # + class LabCostDetailsProperties + + include MsRestAzure + + # @return [DateTime] The date of the cost item. + attr_accessor :date + + # @return [Float] The cost component of the cost item. + attr_accessor :cost + + # @return [CostType] The type of the cost. Possible values include: + # 'Unavailable', 'Reported', 'Projected' + attr_accessor :cost_type + + + # + # Mapper for LabCostDetailsProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabCostDetailsProperties', + type: { + name: 'Composite', + class_name: 'LabCostDetailsProperties', + model_properties: { + date: { + required: false, + serialized_name: 'date', + type: { + name: 'DateTime' + } + }, + cost: { + required: false, + serialized_name: 'cost', + type: { + name: 'Double' + } + }, + cost_type: { + required: false, + serialized_name: 'costType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb new file mode 100644 index 0000000000..591bac6111 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The properties of the cost summary. + # + class LabCostSummaryProperties + + include MsRestAzure + + # @return [Float] The cost component of the cost item. + attr_accessor :estimated_lab_cost + + + # + # Mapper for LabCostSummaryProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabCostSummaryProperties', + type: { + name: 'Composite', + class_name: 'LabCostSummaryProperties', + model_properties: { + estimated_lab_cost: { + required: false, + serialized_name: 'estimatedLabCost', + type: { + name: 'Double' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb new file mode 100644 index 0000000000..d2aa2268c2 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A lab. + # + class LabFragment < UpdateResource + + include MsRestAzure + + # @return [StorageType] Type of storage used by the lab. It can be either + # Premium or Standard. Default is Premium. Possible values include: + # 'Standard', 'Premium' + attr_accessor :lab_storage_type + + # @return [Array] The ordered list of artifact resource IDs that + # should be applied on all Linux VM creations by default, prior to the + # artifacts specified by the user. + attr_accessor :mandatory_artifacts_resource_ids_linux + + # @return [Array] The ordered list of artifact resource IDs that + # should be applied on all Windows VM creations by default, prior to the + # artifacts specified by the user. + attr_accessor :mandatory_artifacts_resource_ids_windows + + # @return [PremiumDataDisk] The setting to enable usage of premium data + # disks. + # When its value is 'Enabled', creation of standard or premium data disks + # is allowed. + # When its value is 'Disabled', only creation of standard data disks is + # allowed. Possible values include: 'Disabled', 'Enabled' + attr_accessor :premium_data_disks + + # @return [EnvironmentPermission] The access rights to be granted to the + # user when provisioning an environment. Possible values include: + # 'Reader', 'Contributor' + attr_accessor :environment_permission + + # @return [LabAnnouncementPropertiesFragment] The properties of any lab + # announcement associated with this lab + attr_accessor :announcement + + # @return [LabSupportPropertiesFragment] The properties of any lab + # support message associated with this lab + attr_accessor :support + + # @return [Hash{String => String}] Extended properties of the lab used + # for experimental features + attr_accessor :extended_properties + + + # + # Mapper for LabFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabFragment', + type: { + name: 'Composite', + class_name: 'LabFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + lab_storage_type: { + required: false, + serialized_name: 'properties.labStorageType', + type: { + name: 'String' + } + }, + mandatory_artifacts_resource_ids_linux: { + required: false, + serialized_name: 'properties.mandatoryArtifactsResourceIdsLinux', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + mandatory_artifacts_resource_ids_windows: { + required: false, + serialized_name: 'properties.mandatoryArtifactsResourceIdsWindows', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + premium_data_disks: { + required: false, + serialized_name: 'properties.premiumDataDisks', + type: { + name: 'String' + } + }, + environment_permission: { + required: false, + serialized_name: 'properties.environmentPermission', + type: { + name: 'String' + } + }, + announcement: { + required: false, + serialized_name: 'properties.announcement', + type: { + name: 'Composite', + class_name: 'LabAnnouncementPropertiesFragment' + } + }, + support: { + required: false, + serialized_name: 'properties.support', + type: { + name: 'Composite', + class_name: 'LabSupportPropertiesFragment' + } + }, + extended_properties: { + required: false, + serialized_name: 'properties.extendedProperties', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_list.rb new file mode 100644 index 0000000000..11c0c202da --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class LabList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [LabList] 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 LabList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabList', + type: { + name: 'Composite', + class_name: 'LabList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'LabElementType', + type: { + name: 'Composite', + class_name: 'Lab' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb new file mode 100644 index 0000000000..8658b083f1 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb @@ -0,0 +1,126 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The properties of a resource cost item. + # + class LabResourceCostProperties + + include MsRestAzure + + # @return [String] The name of the resource. + attr_accessor :resourcename + + # @return [String] The unique identifier of the resource. + attr_accessor :resource_uid + + # @return [Float] The cost component of the resource cost item. + attr_accessor :resource_cost + + # @return [String] The logical resource type (ex. virtualmachine, + # storageaccount) + attr_accessor :resource_type + + # @return [String] The owner of the resource (ex. janedoe@microsoft.com) + attr_accessor :resource_owner + + # @return [String] The category of the resource (ex. Premium_LRS, + # Standard_DS1) + attr_accessor :resource_pricing_tier + + # @return [String] The status of the resource (ex. Active) + attr_accessor :resource_status + + # @return [String] The ID of the resource + attr_accessor :resource_id + + # @return [String] The ID of the external resource + attr_accessor :external_resource_id + + + # + # Mapper for LabResourceCostProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabResourceCostProperties', + type: { + name: 'Composite', + class_name: 'LabResourceCostProperties', + model_properties: { + resourcename: { + required: false, + serialized_name: 'resourcename', + type: { + name: 'String' + } + }, + resource_uid: { + required: false, + serialized_name: 'resourceUId', + type: { + name: 'String' + } + }, + resource_cost: { + required: false, + serialized_name: 'resourceCost', + type: { + name: 'Double' + } + }, + resource_type: { + required: false, + serialized_name: 'resourceType', + type: { + name: 'String' + } + }, + resource_owner: { + required: false, + serialized_name: 'resourceOwner', + type: { + name: 'String' + } + }, + resource_pricing_tier: { + required: false, + serialized_name: 'resourcePricingTier', + type: { + name: 'String' + } + }, + resource_status: { + required: false, + serialized_name: 'resourceStatus', + type: { + name: 'String' + } + }, + resource_id: { + required: false, + serialized_name: 'resourceId', + type: { + name: 'String' + } + }, + external_resource_id: { + required: false, + serialized_name: 'externalResourceId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties.rb new file mode 100644 index 0000000000..d6db3a1771 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a lab's support banner + # + class LabSupportProperties + + include MsRestAzure + + # @return [EnableStatus] Is the lab support banner active/enabled at this + # time?. Possible values include: 'Enabled', 'Disabled' + attr_accessor :enabled + + # @return [String] The markdown text (if any) that this lab displays in + # the UI. If left empty/null, nothing will be shown. + attr_accessor :markdown + + + # + # Mapper for LabSupportProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabSupportProperties', + type: { + name: 'Composite', + class_name: 'LabSupportProperties', + model_properties: { + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'String' + } + }, + markdown: { + required: false, + serialized_name: 'markdown', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties_fragment.rb new file mode 100644 index 0000000000..0f7cf99b1b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a lab's support banner + # + class LabSupportPropertiesFragment + + include MsRestAzure + + # @return [EnableStatus] Is the lab support banner active/enabled at this + # time?. Possible values include: 'Enabled', 'Disabled' + attr_accessor :enabled + + # @return [String] The markdown text (if any) that this lab displays in + # the UI. If left empty/null, nothing will be shown. + attr_accessor :markdown + + + # + # Mapper for LabSupportPropertiesFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabSupportPropertiesFragment', + type: { + name: 'Composite', + class_name: 'LabSupportPropertiesFragment', + model_properties: { + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'String' + } + }, + markdown: { + required: false, + serialized_name: 'markdown', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb new file mode 100644 index 0000000000..f7080df71b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a VHD in the lab. + # + class LabVhd + + include MsRestAzure + + # @return [String] The URI to the VHD. + attr_accessor :id + + + # + # Mapper for LabVhd class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabVhd', + type: { + name: 'Composite', + class_name: 'LabVhd', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd_list.rb new file mode 100644 index 0000000000..2a9eda51d4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class LabVhdList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [LabVhdList] 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 LabVhdList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabVhdList', + type: { + name: 'Composite', + class_name: 'LabVhdList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'LabVhdElementType', + type: { + name: 'Composite', + class_name: 'LabVhd' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb new file mode 100644 index 0000000000..5a9e04dfae --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb @@ -0,0 +1,481 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A virtual machine. + # + class LabVirtualMachine < Resource + + include MsRestAzure + + # @return [String] The notes of the virtual machine. + attr_accessor :notes + + # @return [String] The object identifier of the owner of the virtual + # machine. + attr_accessor :owner_object_id + + # @return [String] The user principal name of the virtual machine owner. + attr_accessor :owner_user_principal_name + + # @return [String] The object identifier of the creator of the virtual + # machine. + attr_accessor :created_by_user_id + + # @return [String] The email address of creator of the virtual machine. + attr_accessor :created_by_user + + # @return [DateTime] The creation date of the virtual machine. + attr_accessor :created_date + + # @return [String] The resource identifier (Microsoft.Compute) of the + # virtual machine. + attr_accessor :compute_id + + # @return [String] The custom image identifier of the virtual machine. + attr_accessor :custom_image_id + + # @return [String] The OS type of the virtual machine. + attr_accessor :os_type + + # @return [String] The size of the virtual machine. + attr_accessor :size + + # @return [String] The user name of the virtual machine. + attr_accessor :user_name + + # @return [String] The password of the virtual machine administrator. + attr_accessor :password + + # @return [String] The SSH key of the virtual machine administrator. + attr_accessor :ssh_key + + # @return [Boolean] Indicates whether this virtual machine uses an SSH + # key for authentication. + attr_accessor :is_authentication_with_ssh_key + + # @return [String] The fully-qualified domain name of the virtual + # machine. + attr_accessor :fqdn + + # @return [String] The lab subnet name of the virtual machine. + attr_accessor :lab_subnet_name + + # @return [String] The lab virtual network identifier of the virtual + # machine. + attr_accessor :lab_virtual_network_id + + # @return [Boolean] Indicates whether the virtual machine is to be + # created without a public IP address. + attr_accessor :disallow_public_ip_address + + # @return [Array] The artifacts to be + # installed on the virtual machine. + attr_accessor :artifacts + + # @return [ArtifactDeploymentStatusProperties] The artifact deployment + # status for the virtual machine. + attr_accessor :artifact_deployment_status + + # @return [GalleryImageReference] The Microsoft Azure Marketplace image + # reference of the virtual machine. + attr_accessor :gallery_image_reference + + # @return [String] The id of the plan associated with the virtual machine + # image + attr_accessor :plan_id + + # @return [ComputeVmProperties] The compute virtual machine properties. + attr_accessor :compute_vm + + # @return [NetworkInterfaceProperties] The network interface properties. + attr_accessor :network_interface + + # @return [ApplicableSchedule] The applicable schedule for the virtual + # machine. + attr_accessor :applicable_schedule + + # @return [DateTime] The expiration date for VM. + attr_accessor :expiration_date + + # @return [Boolean] Indicates whether another user can take ownership of + # the virtual machine + attr_accessor :allow_claim + + # @return [String] Storage type to use for virtual machine (i.e. + # Standard, Premium). + attr_accessor :storage_type + + # @return [VirtualMachineCreationSource] Tells source of creation of lab + # virtual machine. Output property only. Possible values include: + # 'FromCustomImage', 'FromGalleryImage' + attr_accessor :virtual_machine_creation_source + + # @return [String] The resource ID of the environment that contains this + # virtual machine, if any. + attr_accessor :environment_id + + # @return [Array] New or existing data disks to + # attach to the virtual machine after creation + attr_accessor :data_disk_parameters + + # @return [Array] Virtual Machine schedules to + # be created + attr_accessor :schedule_parameters + + # @return [String] Last known compute power state captured in DTL + attr_accessor :last_known_power_state + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for LabVirtualMachine class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabVirtualMachine', + type: { + name: 'Composite', + class_name: 'LabVirtualMachine', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + notes: { + required: false, + serialized_name: 'properties.notes', + type: { + name: 'String' + } + }, + owner_object_id: { + required: false, + serialized_name: 'properties.ownerObjectId', + type: { + name: 'String' + } + }, + owner_user_principal_name: { + required: false, + serialized_name: 'properties.ownerUserPrincipalName', + type: { + name: 'String' + } + }, + created_by_user_id: { + required: false, + serialized_name: 'properties.createdByUserId', + type: { + name: 'String' + } + }, + created_by_user: { + required: false, + serialized_name: 'properties.createdByUser', + type: { + name: 'String' + } + }, + created_date: { + required: false, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + compute_id: { + required: false, + serialized_name: 'properties.computeId', + type: { + name: 'String' + } + }, + custom_image_id: { + required: false, + serialized_name: 'properties.customImageId', + type: { + name: 'String' + } + }, + os_type: { + required: false, + serialized_name: 'properties.osType', + type: { + name: 'String' + } + }, + size: { + required: false, + serialized_name: 'properties.size', + type: { + name: 'String' + } + }, + user_name: { + required: false, + serialized_name: 'properties.userName', + type: { + name: 'String' + } + }, + password: { + required: false, + serialized_name: 'properties.password', + type: { + name: 'String' + } + }, + ssh_key: { + required: false, + serialized_name: 'properties.sshKey', + type: { + name: 'String' + } + }, + is_authentication_with_ssh_key: { + required: false, + serialized_name: 'properties.isAuthenticationWithSshKey', + type: { + name: 'Boolean' + } + }, + fqdn: { + required: false, + serialized_name: 'properties.fqdn', + type: { + name: 'String' + } + }, + lab_subnet_name: { + required: false, + serialized_name: 'properties.labSubnetName', + type: { + name: 'String' + } + }, + lab_virtual_network_id: { + required: false, + serialized_name: 'properties.labVirtualNetworkId', + type: { + name: 'String' + } + }, + disallow_public_ip_address: { + required: false, + serialized_name: 'properties.disallowPublicIpAddress', + type: { + name: 'Boolean' + } + }, + artifacts: { + required: false, + serialized_name: 'properties.artifacts', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArtifactInstallPropertiesElementType', + type: { + name: 'Composite', + class_name: 'ArtifactInstallProperties' + } + } + } + }, + artifact_deployment_status: { + required: false, + serialized_name: 'properties.artifactDeploymentStatus', + type: { + name: 'Composite', + class_name: 'ArtifactDeploymentStatusProperties' + } + }, + gallery_image_reference: { + required: false, + serialized_name: 'properties.galleryImageReference', + type: { + name: 'Composite', + class_name: 'GalleryImageReference' + } + }, + plan_id: { + required: false, + serialized_name: 'properties.planId', + type: { + name: 'String' + } + }, + compute_vm: { + required: false, + read_only: true, + serialized_name: 'properties.computeVm', + type: { + name: 'Composite', + class_name: 'ComputeVmProperties' + } + }, + network_interface: { + required: false, + serialized_name: 'properties.networkInterface', + type: { + name: 'Composite', + class_name: 'NetworkInterfaceProperties' + } + }, + applicable_schedule: { + required: false, + read_only: true, + serialized_name: 'properties.applicableSchedule', + type: { + name: 'Composite', + class_name: 'ApplicableSchedule' + } + }, + expiration_date: { + required: false, + serialized_name: 'properties.expirationDate', + type: { + name: 'DateTime' + } + }, + allow_claim: { + required: false, + serialized_name: 'properties.allowClaim', + type: { + name: 'Boolean' + } + }, + storage_type: { + required: false, + serialized_name: 'properties.storageType', + type: { + name: 'String' + } + }, + virtual_machine_creation_source: { + required: false, + serialized_name: 'properties.virtualMachineCreationSource', + type: { + name: 'String' + } + }, + environment_id: { + required: false, + serialized_name: 'properties.environmentId', + type: { + name: 'String' + } + }, + data_disk_parameters: { + required: false, + serialized_name: 'properties.dataDiskParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DataDiskPropertiesElementType', + type: { + name: 'Composite', + class_name: 'DataDiskProperties' + } + } + } + }, + schedule_parameters: { + required: false, + serialized_name: 'properties.scheduleParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ScheduleCreationParameterElementType', + type: { + name: 'Composite', + class_name: 'ScheduleCreationParameter' + } + } + } + }, + last_known_power_state: { + required: false, + serialized_name: 'properties.lastKnownPowerState', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb new file mode 100644 index 0000000000..a1448a1347 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb @@ -0,0 +1,438 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for creating a virtual machine. + # + class LabVirtualMachineCreationParameter + + include MsRestAzure + + # @return [BulkCreationParameters] The number of virtual machine + # instances to create. + attr_accessor :bulk_creation_parameters + + # @return [String] The notes of the virtual machine. + attr_accessor :notes + + # @return [String] The object identifier of the owner of the virtual + # machine. + attr_accessor :owner_object_id + + # @return [String] The user principal name of the virtual machine owner. + attr_accessor :owner_user_principal_name + + # @return [String] The object identifier of the creator of the virtual + # machine. + attr_accessor :created_by_user_id + + # @return [String] The email address of creator of the virtual machine. + attr_accessor :created_by_user + + # @return [DateTime] The creation date of the virtual machine. + attr_accessor :created_date + + # @return [String] The resource identifier (Microsoft.Compute) of the + # virtual machine. + attr_accessor :compute_id + + # @return [String] The custom image identifier of the virtual machine. + attr_accessor :custom_image_id + + # @return [String] The OS type of the virtual machine. + attr_accessor :os_type + + # @return [String] The size of the virtual machine. + attr_accessor :size + + # @return [String] The user name of the virtual machine. + attr_accessor :user_name + + # @return [String] The password of the virtual machine administrator. + attr_accessor :password + + # @return [String] The SSH key of the virtual machine administrator. + attr_accessor :ssh_key + + # @return [Boolean] Indicates whether this virtual machine uses an SSH + # key for authentication. + attr_accessor :is_authentication_with_ssh_key + + # @return [String] The fully-qualified domain name of the virtual + # machine. + attr_accessor :fqdn + + # @return [String] The lab subnet name of the virtual machine. + attr_accessor :lab_subnet_name + + # @return [String] The lab virtual network identifier of the virtual + # machine. + attr_accessor :lab_virtual_network_id + + # @return [Boolean] Indicates whether the virtual machine is to be + # created without a public IP address. + attr_accessor :disallow_public_ip_address + + # @return [Array] The artifacts to be + # installed on the virtual machine. + attr_accessor :artifacts + + # @return [ArtifactDeploymentStatusProperties] The artifact deployment + # status for the virtual machine. + attr_accessor :artifact_deployment_status + + # @return [GalleryImageReference] The Microsoft Azure Marketplace image + # reference of the virtual machine. + attr_accessor :gallery_image_reference + + # @return [String] The id of the plan associated with the virtual machine + # image + attr_accessor :plan_id + + # @return [NetworkInterfaceProperties] The network interface properties. + attr_accessor :network_interface + + # @return [DateTime] The expiration date for VM. + attr_accessor :expiration_date + + # @return [Boolean] Indicates whether another user can take ownership of + # the virtual machine + attr_accessor :allow_claim + + # @return [String] Storage type to use for virtual machine (i.e. + # Standard, Premium). + attr_accessor :storage_type + + # @return [VirtualMachineCreationSource] Tells source of creation of lab + # virtual machine. Output property only. Possible values include: + # 'FromCustomImage', 'FromGalleryImage' + attr_accessor :virtual_machine_creation_source + + # @return [String] The resource ID of the environment that contains this + # virtual machine, if any. + attr_accessor :environment_id + + # @return [Array] New or existing data disks to + # attach to the virtual machine after creation + attr_accessor :data_disk_parameters + + # @return [Array] Virtual Machine schedules to + # be created + attr_accessor :schedule_parameters + + # @return [String] Last known compute power state captured in DTL + attr_accessor :last_known_power_state + + # @return [String] The name of the virtual machine or environment + attr_accessor :name + + # @return [String] The location of the new virtual machine or environment + attr_accessor :location + + # @return [Hash{String => String}] The tags of the resource. + attr_accessor :tags + + + # + # Mapper for LabVirtualMachineCreationParameter class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabVirtualMachineCreationParameter', + type: { + name: 'Composite', + class_name: 'LabVirtualMachineCreationParameter', + model_properties: { + bulk_creation_parameters: { + required: false, + serialized_name: 'properties.bulkCreationParameters', + type: { + name: 'Composite', + class_name: 'BulkCreationParameters' + } + }, + notes: { + required: false, + serialized_name: 'properties.notes', + type: { + name: 'String' + } + }, + owner_object_id: { + required: false, + serialized_name: 'properties.ownerObjectId', + type: { + name: 'String' + } + }, + owner_user_principal_name: { + required: false, + serialized_name: 'properties.ownerUserPrincipalName', + type: { + name: 'String' + } + }, + created_by_user_id: { + required: false, + serialized_name: 'properties.createdByUserId', + type: { + name: 'String' + } + }, + created_by_user: { + required: false, + serialized_name: 'properties.createdByUser', + type: { + name: 'String' + } + }, + created_date: { + required: false, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + compute_id: { + required: false, + serialized_name: 'properties.computeId', + type: { + name: 'String' + } + }, + custom_image_id: { + required: false, + serialized_name: 'properties.customImageId', + type: { + name: 'String' + } + }, + os_type: { + required: false, + serialized_name: 'properties.osType', + type: { + name: 'String' + } + }, + size: { + required: false, + serialized_name: 'properties.size', + type: { + name: 'String' + } + }, + user_name: { + required: false, + serialized_name: 'properties.userName', + type: { + name: 'String' + } + }, + password: { + required: false, + serialized_name: 'properties.password', + type: { + name: 'String' + } + }, + ssh_key: { + required: false, + serialized_name: 'properties.sshKey', + type: { + name: 'String' + } + }, + is_authentication_with_ssh_key: { + required: false, + serialized_name: 'properties.isAuthenticationWithSshKey', + type: { + name: 'Boolean' + } + }, + fqdn: { + required: false, + serialized_name: 'properties.fqdn', + type: { + name: 'String' + } + }, + lab_subnet_name: { + required: false, + serialized_name: 'properties.labSubnetName', + type: { + name: 'String' + } + }, + lab_virtual_network_id: { + required: false, + serialized_name: 'properties.labVirtualNetworkId', + type: { + name: 'String' + } + }, + disallow_public_ip_address: { + required: false, + serialized_name: 'properties.disallowPublicIpAddress', + type: { + name: 'Boolean' + } + }, + artifacts: { + required: false, + serialized_name: 'properties.artifacts', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArtifactInstallPropertiesElementType', + type: { + name: 'Composite', + class_name: 'ArtifactInstallProperties' + } + } + } + }, + artifact_deployment_status: { + required: false, + serialized_name: 'properties.artifactDeploymentStatus', + type: { + name: 'Composite', + class_name: 'ArtifactDeploymentStatusProperties' + } + }, + gallery_image_reference: { + required: false, + serialized_name: 'properties.galleryImageReference', + type: { + name: 'Composite', + class_name: 'GalleryImageReference' + } + }, + plan_id: { + required: false, + serialized_name: 'properties.planId', + type: { + name: 'String' + } + }, + network_interface: { + required: false, + serialized_name: 'properties.networkInterface', + type: { + name: 'Composite', + class_name: 'NetworkInterfaceProperties' + } + }, + expiration_date: { + required: false, + serialized_name: 'properties.expirationDate', + type: { + name: 'DateTime' + } + }, + allow_claim: { + required: false, + serialized_name: 'properties.allowClaim', + type: { + name: 'Boolean' + } + }, + storage_type: { + required: false, + serialized_name: 'properties.storageType', + type: { + name: 'String' + } + }, + virtual_machine_creation_source: { + required: false, + serialized_name: 'properties.virtualMachineCreationSource', + type: { + name: 'String' + } + }, + environment_id: { + required: false, + serialized_name: 'properties.environmentId', + type: { + name: 'String' + } + }, + data_disk_parameters: { + required: false, + serialized_name: 'properties.dataDiskParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DataDiskPropertiesElementType', + type: { + name: 'Composite', + class_name: 'DataDiskProperties' + } + } + } + }, + schedule_parameters: { + required: false, + serialized_name: 'properties.scheduleParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ScheduleCreationParameterElementType', + type: { + name: 'Composite', + class_name: 'ScheduleCreationParameter' + } + } + } + }, + last_known_power_state: { + required: false, + serialized_name: 'properties.lastKnownPowerState', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + location: { + required: false, + serialized_name: 'location', + 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.rb new file mode 100644 index 0000000000..ba32dbdce0 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.rb @@ -0,0 +1,440 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for creating a virtual machine. + # + class LabVirtualMachineCreationParameterFragment + + include MsRestAzure + + # @return [BulkCreationParametersFragment] The number of virtual machine + # instances to create. + attr_accessor :bulk_creation_parameters + + # @return [String] The notes of the virtual machine. + attr_accessor :notes + + # @return [String] The object identifier of the owner of the virtual + # machine. + attr_accessor :owner_object_id + + # @return [String] The user principal name of the virtual machine owner. + attr_accessor :owner_user_principal_name + + # @return [String] The object identifier of the creator of the virtual + # machine. + attr_accessor :created_by_user_id + + # @return [String] The email address of creator of the virtual machine. + attr_accessor :created_by_user + + # @return [DateTime] The creation date of the virtual machine. + attr_accessor :created_date + + # @return [String] The resource identifier (Microsoft.Compute) of the + # virtual machine. + attr_accessor :compute_id + + # @return [String] The custom image identifier of the virtual machine. + attr_accessor :custom_image_id + + # @return [String] The OS type of the virtual machine. + attr_accessor :os_type + + # @return [String] The size of the virtual machine. + attr_accessor :size + + # @return [String] The user name of the virtual machine. + attr_accessor :user_name + + # @return [String] The password of the virtual machine administrator. + attr_accessor :password + + # @return [String] The SSH key of the virtual machine administrator. + attr_accessor :ssh_key + + # @return [Boolean] Indicates whether this virtual machine uses an SSH + # key for authentication. + attr_accessor :is_authentication_with_ssh_key + + # @return [String] The fully-qualified domain name of the virtual + # machine. + attr_accessor :fqdn + + # @return [String] The lab subnet name of the virtual machine. + attr_accessor :lab_subnet_name + + # @return [String] The lab virtual network identifier of the virtual + # machine. + attr_accessor :lab_virtual_network_id + + # @return [Boolean] Indicates whether the virtual machine is to be + # created without a public IP address. + attr_accessor :disallow_public_ip_address + + # @return [Array] The artifacts to be + # installed on the virtual machine. + attr_accessor :artifacts + + # @return [ArtifactDeploymentStatusPropertiesFragment] The artifact + # deployment status for the virtual machine. + attr_accessor :artifact_deployment_status + + # @return [GalleryImageReferenceFragment] The Microsoft Azure Marketplace + # image reference of the virtual machine. + attr_accessor :gallery_image_reference + + # @return [String] The id of the plan associated with the virtual machine + # image + attr_accessor :plan_id + + # @return [NetworkInterfacePropertiesFragment] The network interface + # properties. + attr_accessor :network_interface + + # @return [DateTime] The expiration date for VM. + attr_accessor :expiration_date + + # @return [Boolean] Indicates whether another user can take ownership of + # the virtual machine + attr_accessor :allow_claim + + # @return [String] Storage type to use for virtual machine (i.e. + # Standard, Premium). + attr_accessor :storage_type + + # @return [VirtualMachineCreationSource] Tells source of creation of lab + # virtual machine. Output property only. Possible values include: + # 'FromCustomImage', 'FromGalleryImage' + attr_accessor :virtual_machine_creation_source + + # @return [String] The resource ID of the environment that contains this + # virtual machine, if any. + attr_accessor :environment_id + + # @return [Array] New or existing data disks + # to attach to the virtual machine after creation + attr_accessor :data_disk_parameters + + # @return [Array] Virtual Machine + # schedules to be created + attr_accessor :schedule_parameters + + # @return [String] Last known compute power state captured in DTL + attr_accessor :last_known_power_state + + # @return [String] The name of the virtual machine or environment + attr_accessor :name + + # @return [String] The location of the new virtual machine or environment + attr_accessor :location + + # @return [Hash{String => String}] The tags of the resource. + attr_accessor :tags + + + # + # Mapper for LabVirtualMachineCreationParameterFragment class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabVirtualMachineCreationParameterFragment', + type: { + name: 'Composite', + class_name: 'LabVirtualMachineCreationParameterFragment', + model_properties: { + bulk_creation_parameters: { + required: false, + serialized_name: 'properties.bulkCreationParameters', + type: { + name: 'Composite', + class_name: 'BulkCreationParametersFragment' + } + }, + notes: { + required: false, + serialized_name: 'properties.notes', + type: { + name: 'String' + } + }, + owner_object_id: { + required: false, + serialized_name: 'properties.ownerObjectId', + type: { + name: 'String' + } + }, + owner_user_principal_name: { + required: false, + serialized_name: 'properties.ownerUserPrincipalName', + type: { + name: 'String' + } + }, + created_by_user_id: { + required: false, + serialized_name: 'properties.createdByUserId', + type: { + name: 'String' + } + }, + created_by_user: { + required: false, + serialized_name: 'properties.createdByUser', + type: { + name: 'String' + } + }, + created_date: { + required: false, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + compute_id: { + required: false, + serialized_name: 'properties.computeId', + type: { + name: 'String' + } + }, + custom_image_id: { + required: false, + serialized_name: 'properties.customImageId', + type: { + name: 'String' + } + }, + os_type: { + required: false, + serialized_name: 'properties.osType', + type: { + name: 'String' + } + }, + size: { + required: false, + serialized_name: 'properties.size', + type: { + name: 'String' + } + }, + user_name: { + required: false, + serialized_name: 'properties.userName', + type: { + name: 'String' + } + }, + password: { + required: false, + serialized_name: 'properties.password', + type: { + name: 'String' + } + }, + ssh_key: { + required: false, + serialized_name: 'properties.sshKey', + type: { + name: 'String' + } + }, + is_authentication_with_ssh_key: { + required: false, + serialized_name: 'properties.isAuthenticationWithSshKey', + type: { + name: 'Boolean' + } + }, + fqdn: { + required: false, + serialized_name: 'properties.fqdn', + type: { + name: 'String' + } + }, + lab_subnet_name: { + required: false, + serialized_name: 'properties.labSubnetName', + type: { + name: 'String' + } + }, + lab_virtual_network_id: { + required: false, + serialized_name: 'properties.labVirtualNetworkId', + type: { + name: 'String' + } + }, + disallow_public_ip_address: { + required: false, + serialized_name: 'properties.disallowPublicIpAddress', + type: { + name: 'Boolean' + } + }, + artifacts: { + required: false, + serialized_name: 'properties.artifacts', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArtifactInstallPropertiesFragmentElementType', + type: { + name: 'Composite', + class_name: 'ArtifactInstallPropertiesFragment' + } + } + } + }, + artifact_deployment_status: { + required: false, + serialized_name: 'properties.artifactDeploymentStatus', + type: { + name: 'Composite', + class_name: 'ArtifactDeploymentStatusPropertiesFragment' + } + }, + gallery_image_reference: { + required: false, + serialized_name: 'properties.galleryImageReference', + type: { + name: 'Composite', + class_name: 'GalleryImageReferenceFragment' + } + }, + plan_id: { + required: false, + serialized_name: 'properties.planId', + type: { + name: 'String' + } + }, + network_interface: { + required: false, + serialized_name: 'properties.networkInterface', + type: { + name: 'Composite', + class_name: 'NetworkInterfacePropertiesFragment' + } + }, + expiration_date: { + required: false, + serialized_name: 'properties.expirationDate', + type: { + name: 'DateTime' + } + }, + allow_claim: { + required: false, + serialized_name: 'properties.allowClaim', + type: { + name: 'Boolean' + } + }, + storage_type: { + required: false, + serialized_name: 'properties.storageType', + type: { + name: 'String' + } + }, + virtual_machine_creation_source: { + required: false, + serialized_name: 'properties.virtualMachineCreationSource', + type: { + name: 'String' + } + }, + environment_id: { + required: false, + serialized_name: 'properties.environmentId', + type: { + name: 'String' + } + }, + data_disk_parameters: { + required: false, + serialized_name: 'properties.dataDiskParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DataDiskPropertiesFragmentElementType', + type: { + name: 'Composite', + class_name: 'DataDiskPropertiesFragment' + } + } + } + }, + schedule_parameters: { + required: false, + serialized_name: 'properties.scheduleParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ScheduleCreationParameterFragmentElementType', + type: { + name: 'Composite', + class_name: 'ScheduleCreationParameterFragment' + } + } + } + }, + last_known_power_state: { + required: false, + serialized_name: 'properties.lastKnownPowerState', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + location: { + required: false, + serialized_name: 'location', + 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb new file mode 100644 index 0000000000..dea269051d --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A virtual machine. + # + class LabVirtualMachineFragment < UpdateResource + + include MsRestAzure + + # @return [String] The notes of the virtual machine. + attr_accessor :notes + + # @return [String] The object identifier of the owner of the virtual + # machine. + attr_accessor :owner_object_id + + # @return [String] The user principal name of the virtual machine owner. + attr_accessor :owner_user_principal_name + + # @return [String] The object identifier of the creator of the virtual + # machine. + attr_accessor :created_by_user_id + + # @return [String] The email address of creator of the virtual machine. + attr_accessor :created_by_user + + # @return [DateTime] The creation date of the virtual machine. + attr_accessor :created_date + + # @return [String] The resource identifier (Microsoft.Compute) of the + # virtual machine. + attr_accessor :compute_id + + # @return [String] The custom image identifier of the virtual machine. + attr_accessor :custom_image_id + + # @return [String] The OS type of the virtual machine. + attr_accessor :os_type + + # @return [String] The size of the virtual machine. + attr_accessor :size + + # @return [String] The user name of the virtual machine. + attr_accessor :user_name + + # @return [String] The password of the virtual machine administrator. + attr_accessor :password + + # @return [String] The SSH key of the virtual machine administrator. + attr_accessor :ssh_key + + # @return [Boolean] Indicates whether this virtual machine uses an SSH + # key for authentication. + attr_accessor :is_authentication_with_ssh_key + + # @return [String] The fully-qualified domain name of the virtual + # machine. + attr_accessor :fqdn + + # @return [String] The lab subnet name of the virtual machine. + attr_accessor :lab_subnet_name + + # @return [String] The lab virtual network identifier of the virtual + # machine. + attr_accessor :lab_virtual_network_id + + # @return [Boolean] Indicates whether the virtual machine is to be + # created without a public IP address. + attr_accessor :disallow_public_ip_address + + # @return [Array] The artifacts to be + # installed on the virtual machine. + attr_accessor :artifacts + + # @return [ArtifactDeploymentStatusPropertiesFragment] The artifact + # deployment status for the virtual machine. + attr_accessor :artifact_deployment_status + + # @return [GalleryImageReferenceFragment] The Microsoft Azure Marketplace + # image reference of the virtual machine. + attr_accessor :gallery_image_reference + + # @return [String] The id of the plan associated with the virtual machine + # image + attr_accessor :plan_id + + # @return [NetworkInterfacePropertiesFragment] The network interface + # properties. + attr_accessor :network_interface + + # @return [DateTime] The expiration date for VM. + attr_accessor :expiration_date + + # @return [Boolean] Indicates whether another user can take ownership of + # the virtual machine + attr_accessor :allow_claim + + # @return [String] Storage type to use for virtual machine (i.e. + # Standard, Premium). + attr_accessor :storage_type + + # @return [VirtualMachineCreationSource] Tells source of creation of lab + # virtual machine. Output property only. Possible values include: + # 'FromCustomImage', 'FromGalleryImage' + attr_accessor :virtual_machine_creation_source + + # @return [String] The resource ID of the environment that contains this + # virtual machine, if any. + attr_accessor :environment_id + + # @return [Array] New or existing data disks + # to attach to the virtual machine after creation + attr_accessor :data_disk_parameters + + # @return [Array] Virtual Machine + # schedules to be created + attr_accessor :schedule_parameters + + # @return [String] Last known compute power state captured in DTL + attr_accessor :last_known_power_state + + + # + # Mapper for LabVirtualMachineFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabVirtualMachineFragment', + type: { + name: 'Composite', + class_name: 'LabVirtualMachineFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + notes: { + required: false, + serialized_name: 'properties.notes', + type: { + name: 'String' + } + }, + owner_object_id: { + required: false, + serialized_name: 'properties.ownerObjectId', + type: { + name: 'String' + } + }, + owner_user_principal_name: { + required: false, + serialized_name: 'properties.ownerUserPrincipalName', + type: { + name: 'String' + } + }, + created_by_user_id: { + required: false, + serialized_name: 'properties.createdByUserId', + type: { + name: 'String' + } + }, + created_by_user: { + required: false, + serialized_name: 'properties.createdByUser', + type: { + name: 'String' + } + }, + created_date: { + required: false, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + compute_id: { + required: false, + serialized_name: 'properties.computeId', + type: { + name: 'String' + } + }, + custom_image_id: { + required: false, + serialized_name: 'properties.customImageId', + type: { + name: 'String' + } + }, + os_type: { + required: false, + serialized_name: 'properties.osType', + type: { + name: 'String' + } + }, + size: { + required: false, + serialized_name: 'properties.size', + type: { + name: 'String' + } + }, + user_name: { + required: false, + serialized_name: 'properties.userName', + type: { + name: 'String' + } + }, + password: { + required: false, + serialized_name: 'properties.password', + type: { + name: 'String' + } + }, + ssh_key: { + required: false, + serialized_name: 'properties.sshKey', + type: { + name: 'String' + } + }, + is_authentication_with_ssh_key: { + required: false, + serialized_name: 'properties.isAuthenticationWithSshKey', + type: { + name: 'Boolean' + } + }, + fqdn: { + required: false, + serialized_name: 'properties.fqdn', + type: { + name: 'String' + } + }, + lab_subnet_name: { + required: false, + serialized_name: 'properties.labSubnetName', + type: { + name: 'String' + } + }, + lab_virtual_network_id: { + required: false, + serialized_name: 'properties.labVirtualNetworkId', + type: { + name: 'String' + } + }, + disallow_public_ip_address: { + required: false, + serialized_name: 'properties.disallowPublicIpAddress', + type: { + name: 'Boolean' + } + }, + artifacts: { + required: false, + serialized_name: 'properties.artifacts', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ArtifactInstallPropertiesFragmentElementType', + type: { + name: 'Composite', + class_name: 'ArtifactInstallPropertiesFragment' + } + } + } + }, + artifact_deployment_status: { + required: false, + serialized_name: 'properties.artifactDeploymentStatus', + type: { + name: 'Composite', + class_name: 'ArtifactDeploymentStatusPropertiesFragment' + } + }, + gallery_image_reference: { + required: false, + serialized_name: 'properties.galleryImageReference', + type: { + name: 'Composite', + class_name: 'GalleryImageReferenceFragment' + } + }, + plan_id: { + required: false, + serialized_name: 'properties.planId', + type: { + name: 'String' + } + }, + network_interface: { + required: false, + serialized_name: 'properties.networkInterface', + type: { + name: 'Composite', + class_name: 'NetworkInterfacePropertiesFragment' + } + }, + expiration_date: { + required: false, + serialized_name: 'properties.expirationDate', + type: { + name: 'DateTime' + } + }, + allow_claim: { + required: false, + serialized_name: 'properties.allowClaim', + type: { + name: 'Boolean' + } + }, + storage_type: { + required: false, + serialized_name: 'properties.storageType', + type: { + name: 'String' + } + }, + virtual_machine_creation_source: { + required: false, + serialized_name: 'properties.virtualMachineCreationSource', + type: { + name: 'String' + } + }, + environment_id: { + required: false, + serialized_name: 'properties.environmentId', + type: { + name: 'String' + } + }, + data_disk_parameters: { + required: false, + serialized_name: 'properties.dataDiskParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DataDiskPropertiesFragmentElementType', + type: { + name: 'Composite', + class_name: 'DataDiskPropertiesFragment' + } + } + } + }, + schedule_parameters: { + required: false, + serialized_name: 'properties.scheduleParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ScheduleCreationParameterFragmentElementType', + type: { + name: 'Composite', + class_name: 'ScheduleCreationParameterFragment' + } + } + } + }, + last_known_power_state: { + required: false, + serialized_name: 'properties.lastKnownPowerState', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_list.rb new file mode 100644 index 0000000000..e6c49f8a5f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class LabVirtualMachineList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [LabVirtualMachineList] 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 LabVirtualMachineList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LabVirtualMachineList', + type: { + name: 'Composite', + class_name: 'LabVirtualMachineList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'LabVirtualMachineElementType', + type: { + name: 'Composite', + class_name: 'LabVirtualMachine' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb new file mode 100644 index 0000000000..27db5b9b13 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Information about a Linux OS. + # + class LinuxOsInfo + + include MsRestAzure + + # @return [LinuxOsState] The state of the Linux OS (i.e. + # NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). Possible + # values include: 'NonDeprovisioned', 'DeprovisionRequested', + # 'DeprovisionApplied' + attr_accessor :linux_os_state + + + # + # Mapper for LinuxOsInfo class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LinuxOsInfo', + type: { + name: 'Composite', + class_name: 'LinuxOsInfo', + model_properties: { + linux_os_state: { + required: false, + serialized_name: 'linuxOsState', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info_fragment.rb new file mode 100644 index 0000000000..17d7e05904 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Information about a Linux OS. + # + class LinuxOsInfoFragment + + include MsRestAzure + + # @return [LinuxOsState] The state of the Linux OS (i.e. + # NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). Possible + # values include: 'NonDeprovisioned', 'DeprovisionRequested', + # 'DeprovisionApplied' + attr_accessor :linux_os_state + + + # + # Mapper for LinuxOsInfoFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LinuxOsInfoFragment', + type: { + name: 'Composite', + class_name: 'LinuxOsInfoFragment', + model_properties: { + linux_os_state: { + required: false, + serialized_name: 'linuxOsState', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb new file mode 100644 index 0000000000..57cf82cc31 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_state.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for LinuxOsState + # + module LinuxOsState + NonDeprovisioned = "NonDeprovisioned" + DeprovisionRequested = "DeprovisionRequested" + DeprovisionApplied = "DeprovisionApplied" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb new file mode 100644 index 0000000000..68c0a2189d --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a network interface. + # + class NetworkInterfaceProperties + + include MsRestAzure + + # @return [String] The resource ID of the virtual network. + attr_accessor :virtual_network_id + + # @return [String] The resource ID of the sub net. + attr_accessor :subnet_id + + # @return [String] The resource ID of the public IP address. + attr_accessor :public_ip_address_id + + # @return [String] The public IP address. + attr_accessor :public_ip_address + + # @return [String] The private IP address. + attr_accessor :private_ip_address + + # @return [String] The DNS name. + attr_accessor :dns_name + + # @return [String] The RdpAuthority property is a server DNS host name or + # IP address followed by the service port number for RDP (Remote Desktop + # Protocol). + attr_accessor :rdp_authority + + # @return [String] The SshAuthority property is a server DNS host name or + # IP address followed by the service port number for SSH. + attr_accessor :ssh_authority + + # @return [SharedPublicIpAddressConfiguration] The configuration for + # sharing a public IP address across multiple virtual machines. + attr_accessor :shared_public_ip_address_configuration + + + # + # Mapper for NetworkInterfaceProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NetworkInterfaceProperties', + type: { + name: 'Composite', + class_name: 'NetworkInterfaceProperties', + model_properties: { + virtual_network_id: { + required: false, + serialized_name: 'virtualNetworkId', + type: { + name: 'String' + } + }, + subnet_id: { + required: false, + serialized_name: 'subnetId', + type: { + name: 'String' + } + }, + public_ip_address_id: { + required: false, + serialized_name: 'publicIpAddressId', + type: { + name: 'String' + } + }, + public_ip_address: { + required: false, + serialized_name: 'publicIpAddress', + type: { + name: 'String' + } + }, + private_ip_address: { + required: false, + serialized_name: 'privateIpAddress', + type: { + name: 'String' + } + }, + dns_name: { + required: false, + serialized_name: 'dnsName', + type: { + name: 'String' + } + }, + rdp_authority: { + required: false, + serialized_name: 'rdpAuthority', + type: { + name: 'String' + } + }, + ssh_authority: { + required: false, + serialized_name: 'sshAuthority', + type: { + name: 'String' + } + }, + shared_public_ip_address_configuration: { + required: false, + serialized_name: 'sharedPublicIpAddressConfiguration', + type: { + name: 'Composite', + class_name: 'SharedPublicIpAddressConfiguration' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb new file mode 100644 index 0000000000..111814c5e0 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a network interface. + # + class NetworkInterfacePropertiesFragment + + include MsRestAzure + + # @return [String] The resource ID of the virtual network. + attr_accessor :virtual_network_id + + # @return [String] The resource ID of the sub net. + attr_accessor :subnet_id + + # @return [String] The resource ID of the public IP address. + attr_accessor :public_ip_address_id + + # @return [String] The public IP address. + attr_accessor :public_ip_address + + # @return [String] The private IP address. + attr_accessor :private_ip_address + + # @return [String] The DNS name. + attr_accessor :dns_name + + # @return [String] The RdpAuthority property is a server DNS host name or + # IP address followed by the service port number for RDP (Remote Desktop + # Protocol). + attr_accessor :rdp_authority + + # @return [String] The SshAuthority property is a server DNS host name or + # IP address followed by the service port number for SSH. + attr_accessor :ssh_authority + + # @return [SharedPublicIpAddressConfigurationFragment] The configuration + # for sharing a public IP address across multiple virtual machines. + attr_accessor :shared_public_ip_address_configuration + + + # + # Mapper for NetworkInterfacePropertiesFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NetworkInterfacePropertiesFragment', + type: { + name: 'Composite', + class_name: 'NetworkInterfacePropertiesFragment', + model_properties: { + virtual_network_id: { + required: false, + serialized_name: 'virtualNetworkId', + type: { + name: 'String' + } + }, + subnet_id: { + required: false, + serialized_name: 'subnetId', + type: { + name: 'String' + } + }, + public_ip_address_id: { + required: false, + serialized_name: 'publicIpAddressId', + type: { + name: 'String' + } + }, + public_ip_address: { + required: false, + serialized_name: 'publicIpAddress', + type: { + name: 'String' + } + }, + private_ip_address: { + required: false, + serialized_name: 'privateIpAddress', + type: { + name: 'String' + } + }, + dns_name: { + required: false, + serialized_name: 'dnsName', + type: { + name: 'String' + } + }, + rdp_authority: { + required: false, + serialized_name: 'rdpAuthority', + type: { + name: 'String' + } + }, + ssh_authority: { + required: false, + serialized_name: 'sshAuthority', + type: { + name: 'String' + } + }, + shared_public_ip_address_configuration: { + required: false, + serialized_name: 'sharedPublicIpAddressConfiguration', + type: { + name: 'Composite', + class_name: 'SharedPublicIpAddressConfigurationFragment' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb new file mode 100644 index 0000000000..ba68faa6aa --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb @@ -0,0 +1,173 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A notification. + # + class NotificationChannel < Resource + + include MsRestAzure + + # @return [String] The webhook URL to send notifications to. + attr_accessor :web_hook_url + + # @return [String] The email recipient to send notifications to (can be a + # list of semi-colon separated email addresses). + attr_accessor :email_recipient + + # @return [String] The locale to use when sending a notification + # (fallback for unsupported languages is EN). + attr_accessor :notification_locale + + # @return [String] Description of notification. + attr_accessor :description + + # @return [Array] The list of event for which this notification is + # enabled. + attr_accessor :events + + # @return [DateTime] The creation date of the notification channel. + attr_accessor :created_date + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for NotificationChannel class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NotificationChannel', + type: { + name: 'Composite', + class_name: 'NotificationChannel', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + web_hook_url: { + required: false, + serialized_name: 'properties.webHookUrl', + type: { + name: 'String' + } + }, + email_recipient: { + required: false, + serialized_name: 'properties.emailRecipient', + type: { + name: 'String' + } + }, + notification_locale: { + required: false, + serialized_name: 'properties.notificationLocale', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + events: { + required: false, + serialized_name: 'properties.events', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'EventElementType', + type: { + name: 'Composite', + class_name: 'Event' + } + } + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb new file mode 100644 index 0000000000..6f0e1d1949 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_event_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for NotificationChannelEventType + # + module NotificationChannelEventType + AutoShutdown = "AutoShutdown" + Cost = "Cost" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb new file mode 100644 index 0000000000..ffeed3edef --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb @@ -0,0 +1,109 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A notification. + # + class NotificationChannelFragment < UpdateResource + + include MsRestAzure + + # @return [String] The webhook URL to send notifications to. + attr_accessor :web_hook_url + + # @return [String] The email recipient to send notifications to (can be a + # list of semi-colon separated email addresses). + attr_accessor :email_recipient + + # @return [String] The locale to use when sending a notification + # (fallback for unsupported languages is EN). + attr_accessor :notification_locale + + # @return [String] Description of notification. + attr_accessor :description + + # @return [Array] The list of event for which this + # notification is enabled. + attr_accessor :events + + + # + # Mapper for NotificationChannelFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NotificationChannelFragment', + type: { + name: 'Composite', + class_name: 'NotificationChannelFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + web_hook_url: { + required: false, + serialized_name: 'properties.webHookUrl', + type: { + name: 'String' + } + }, + email_recipient: { + required: false, + serialized_name: 'properties.emailRecipient', + type: { + name: 'String' + } + }, + notification_locale: { + required: false, + serialized_name: 'properties.notificationLocale', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + events: { + required: false, + serialized_name: 'properties.events', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'EventFragmentElementType', + type: { + name: 'Composite', + class_name: 'EventFragment' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_list.rb new file mode 100644 index 0000000000..8697ba35cc --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class NotificationChannelList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [NotificationChannelList] 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 NotificationChannelList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NotificationChannelList', + type: { + name: 'Composite', + class_name: 'NotificationChannelList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'NotificationChannelElementType', + type: { + name: 'Composite', + class_name: 'NotificationChannel' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb new file mode 100644 index 0000000000..b8e2ec1285 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Notification settings for a schedule. + # + class NotificationSettings + + include MsRestAzure + + # @return [EnableStatus] If notifications are enabled for this schedule + # (i.e. Enabled, Disabled). Possible values include: 'Enabled', + # 'Disabled' + attr_accessor :status + + # @return [Integer] Time in minutes before event at which notification + # will be sent. + attr_accessor :time_in_minutes + + # @return [String] The webhook URL to which the notification will be + # sent. + attr_accessor :webhook_url + + # @return [String] The email recipient to send notifications to (can be a + # list of semi-colon separated email addresses). + attr_accessor :email_recipient + + # @return [String] The locale to use when sending a notification + # (fallback for unsupported languages is EN). + attr_accessor :notification_locale + + + # + # Mapper for NotificationSettings class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NotificationSettings', + type: { + name: 'Composite', + class_name: 'NotificationSettings', + model_properties: { + status: { + required: false, + serialized_name: 'status', + type: { + name: 'String' + } + }, + time_in_minutes: { + required: false, + serialized_name: 'timeInMinutes', + type: { + name: 'Number' + } + }, + webhook_url: { + required: false, + serialized_name: 'webhookUrl', + type: { + name: 'String' + } + }, + email_recipient: { + required: false, + serialized_name: 'emailRecipient', + type: { + name: 'String' + } + }, + notification_locale: { + required: false, + serialized_name: 'notificationLocale', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb new file mode 100644 index 0000000000..228007e45a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Notification settings for a schedule. + # + class NotificationSettingsFragment + + include MsRestAzure + + # @return [EnableStatus] If notifications are enabled for this schedule + # (i.e. Enabled, Disabled). Possible values include: 'Enabled', + # 'Disabled' + attr_accessor :status + + # @return [Integer] Time in minutes before event at which notification + # will be sent. + attr_accessor :time_in_minutes + + # @return [String] The webhook URL to which the notification will be + # sent. + attr_accessor :webhook_url + + # @return [String] The email recipient to send notifications to (can be a + # list of semi-colon separated email addresses). + attr_accessor :email_recipient + + # @return [String] The locale to use when sending a notification + # (fallback for unsupported languages is EN). + attr_accessor :notification_locale + + + # + # Mapper for NotificationSettingsFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NotificationSettingsFragment', + type: { + name: 'Composite', + class_name: 'NotificationSettingsFragment', + model_properties: { + status: { + required: false, + serialized_name: 'status', + type: { + name: 'String' + } + }, + time_in_minutes: { + required: false, + serialized_name: 'timeInMinutes', + type: { + name: 'Number' + } + }, + webhook_url: { + required: false, + serialized_name: 'webhookUrl', + type: { + name: 'String' + } + }, + email_recipient: { + required: false, + serialized_name: 'emailRecipient', + type: { + name: 'String' + } + }, + notification_locale: { + required: false, + serialized_name: 'notificationLocale', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb new file mode 100644 index 0000000000..6d2b115f68 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notify_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for generating a Notification. + # + class NotifyParameters + + include MsRestAzure + + # @return [NotificationChannelEventType] The type of event (i.e. + # AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost' + attr_accessor :event_name + + # @return [String] Properties for the notification in json format. + attr_accessor :json_payload + + + # + # Mapper for NotifyParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NotifyParameters', + type: { + name: 'Composite', + class_name: 'NotifyParameters', + model_properties: { + event_name: { + required: false, + serialized_name: 'eventName', + type: { + name: 'String' + } + }, + json_payload: { + required: false, + serialized_name: 'jsonPayload', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb new file mode 100644 index 0000000000..4230a09c2c --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_error.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Error details for the operation in case of a failure. + # + class OperationError + + include MsRestAzure + + # @return [String] The error code of the operation error. + attr_accessor :code + + # @return [String] The error message of the operation error. + attr_accessor :message + + + # + # Mapper for OperationError class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationError', + type: { + name: 'Composite', + class_name: 'OperationError', + model_properties: { + code: { + required: false, + serialized_name: 'code', + type: { + name: 'String' + } + }, + message: { + required: false, + serialized_name: 'message', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb new file mode 100644 index 0000000000..7b71631b36 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The REST API operation supported by DevTestLab ResourceProvider. + # + class OperationMetadata + + include MsRestAzure + + # @return [String] Operation name: {provider}/{resource}/{operation} + attr_accessor :name + + # @return [OperationMetadataDisplay] The object that describes the + # operations + attr_accessor :display + + + # + # Mapper for OperationMetadata class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationMetadata', + type: { + name: 'Composite', + class_name: 'OperationMetadata', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + display: { + required: false, + serialized_name: 'display', + type: { + name: 'Composite', + class_name: 'OperationMetadataDisplay' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb new file mode 100644 index 0000000000..2fb49ab338 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The object that describes the operations + # + class OperationMetadataDisplay + + include MsRestAzure + + # @return [String] Friendly name of the resource provider + attr_accessor :provider + + # @return [String] Resource type on which the operation is performed. + attr_accessor :resource + + # @return [String] Operation type: read, write, delete, listKeys/action, + # etc. + attr_accessor :operation + + # @return [String] Friendly name of the operation + attr_accessor :description + + + # + # Mapper for OperationMetadataDisplay class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationMetadataDisplay', + type: { + name: 'Composite', + class_name: 'OperationMetadataDisplay', + model_properties: { + provider: { + required: false, + serialized_name: 'provider', + type: { + name: 'String' + } + }, + resource: { + required: false, + serialized_name: 'resource', + type: { + name: 'String' + } + }, + operation: { + required: false, + serialized_name: 'operation', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb new file mode 100644 index 0000000000..1735378040 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_result.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # An Operation Result + # + class OperationResult + + include MsRestAzure + + # @return [String] The operation status. + attr_accessor :status + + # @return [HttpStatusCode] The status code for the operation. Possible + # values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', + # 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + # 'PartialContent', 'MultipleChoices', 'MovedPermanently', 'Redirect', + # 'SeeOther', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', + # 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', + # 'NotFound', 'MethodNotAllowed', 'NotAcceptable', + # 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', + # 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge', + # 'RequestUriTooLong', 'UnsupportedMediaType', + # 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', + # 'InternalServerError', 'NotImplemented', 'BadGateway', + # 'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported' + attr_accessor :status_code + + # @return [OperationError] Error details for the operation in case of a + # failure. + attr_accessor :error + + + # + # Mapper for OperationResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationResult', + type: { + name: 'Composite', + class_name: 'OperationResult', + model_properties: { + status: { + required: false, + serialized_name: 'status', + type: { + name: 'String' + } + }, + status_code: { + required: false, + serialized_name: 'statusCode', + type: { + name: 'String' + } + }, + error: { + required: false, + serialized_name: 'error', + type: { + name: 'Composite', + class_name: 'OperationError' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb new file mode 100644 index 0000000000..456ebf5f92 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameter_info.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Information about an artifact's parameter. + # + class ParameterInfo + + include MsRestAzure + + # @return [String] The name of the artifact parameter. + attr_accessor :name + + # @return [String] The value of the artifact parameter. + attr_accessor :value + + + # + # Mapper for ParameterInfo class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ParameterInfo', + type: { + name: 'Composite', + class_name: 'ParameterInfo', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb new file mode 100644 index 0000000000..999d32e79f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A file containing a set of parameter values for an ARM template. + # + class ParametersValueFileInfo + + include MsRestAzure + + # @return [String] File name. + attr_accessor :file_name + + # @return Contents of the file. + attr_accessor :parameters_value_info + + + # + # Mapper for ParametersValueFileInfo class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ParametersValueFileInfo', + type: { + name: 'Composite', + class_name: 'ParametersValueFileInfo', + model_properties: { + file_name: { + required: false, + serialized_name: 'fileName', + type: { + name: 'String' + } + }, + parameters_value_info: { + required: false, + serialized_name: 'parametersValueInfo', + type: { + name: 'Object' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb new file mode 100644 index 0000000000..a960a0fa01 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a percentage cost threshold. + # + class PercentageCostThresholdProperties + + include MsRestAzure + + # @return [Float] The cost threshold value. + attr_accessor :threshold_value + + + # + # Mapper for PercentageCostThresholdProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PercentageCostThresholdProperties', + type: { + name: 'Composite', + class_name: 'PercentageCostThresholdProperties', + model_properties: { + threshold_value: { + required: false, + serialized_name: 'thresholdValue', + type: { + name: 'Double' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy.rb new file mode 100644 index 0000000000..9c3a8fad03 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy.rb @@ -0,0 +1,181 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A Policy. + # + class Policy < Resource + + include MsRestAzure + + # @return [String] The description of the policy. + attr_accessor :description + + # @return [PolicyStatus] The status of the policy. Possible values + # include: 'Enabled', 'Disabled' + attr_accessor :status + + # @return [PolicyFactName] The fact name of the policy (e.g. LabVmCount, + # LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: + # 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', + # 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', + # 'UserOwnedLabVmCountInSubnet', 'LabTargetCost', 'EnvironmentTemplate', + # 'ScheduleEditPermission' + attr_accessor :fact_name + + # @return [String] The fact data of the policy. + attr_accessor :fact_data + + # @return [String] The threshold of the policy (i.e. a number for + # MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). + attr_accessor :threshold + + # @return [PolicyEvaluatorType] The evaluator type of the policy (i.e. + # AllowedValuesPolicy, MaxValuePolicy). Possible values include: + # 'AllowedValuesPolicy', 'MaxValuePolicy' + attr_accessor :evaluator_type + + # @return [DateTime] The creation date of the policy. + attr_accessor :created_date + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for Policy class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Policy', + type: { + name: 'Composite', + class_name: 'Policy', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + status: { + required: false, + serialized_name: 'properties.status', + type: { + name: 'String' + } + }, + fact_name: { + required: false, + serialized_name: 'properties.factName', + type: { + name: 'String' + } + }, + fact_data: { + required: false, + serialized_name: 'properties.factData', + type: { + name: 'String' + } + }, + threshold: { + required: false, + serialized_name: 'properties.threshold', + type: { + name: 'String' + } + }, + evaluator_type: { + required: false, + serialized_name: 'properties.evaluatorType', + type: { + name: 'String' + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb new file mode 100644 index 0000000000..4a0e262aa0 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_evaluator_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for PolicyEvaluatorType + # + module PolicyEvaluatorType + AllowedValuesPolicy = "AllowedValuesPolicy" + MaxValuePolicy = "MaxValuePolicy" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb new file mode 100644 index 0000000000..b5259071d6 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb @@ -0,0 +1,24 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for PolicyFactName + # + module PolicyFactName + UserOwnedLabVmCount = "UserOwnedLabVmCount" + UserOwnedLabPremiumVmCount = "UserOwnedLabPremiumVmCount" + LabVmCount = "LabVmCount" + LabPremiumVmCount = "LabPremiumVmCount" + LabVmSize = "LabVmSize" + GalleryImage = "GalleryImage" + UserOwnedLabVmCountInSubnet = "UserOwnedLabVmCountInSubnet" + LabTargetCost = "LabTargetCost" + EnvironmentTemplate = "EnvironmentTemplate" + ScheduleEditPermission = "ScheduleEditPermission" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb new file mode 100644 index 0000000000..3c44667418 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb @@ -0,0 +1,117 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A Policy. + # + class PolicyFragment < UpdateResource + + include MsRestAzure + + # @return [String] The description of the policy. + attr_accessor :description + + # @return [PolicyStatus] The status of the policy. Possible values + # include: 'Enabled', 'Disabled' + attr_accessor :status + + # @return [PolicyFactName] The fact name of the policy (e.g. LabVmCount, + # LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: + # 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', + # 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', + # 'UserOwnedLabVmCountInSubnet', 'LabTargetCost', 'EnvironmentTemplate', + # 'ScheduleEditPermission' + attr_accessor :fact_name + + # @return [String] The fact data of the policy. + attr_accessor :fact_data + + # @return [String] The threshold of the policy (i.e. a number for + # MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy). + attr_accessor :threshold + + # @return [PolicyEvaluatorType] The evaluator type of the policy (i.e. + # AllowedValuesPolicy, MaxValuePolicy). Possible values include: + # 'AllowedValuesPolicy', 'MaxValuePolicy' + attr_accessor :evaluator_type + + + # + # Mapper for PolicyFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PolicyFragment', + type: { + name: 'Composite', + class_name: 'PolicyFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + status: { + required: false, + serialized_name: 'properties.status', + type: { + name: 'String' + } + }, + fact_name: { + required: false, + serialized_name: 'properties.factName', + type: { + name: 'String' + } + }, + fact_data: { + required: false, + serialized_name: 'properties.factData', + type: { + name: 'String' + } + }, + threshold: { + required: false, + serialized_name: 'properties.threshold', + type: { + name: 'String' + } + }, + evaluator_type: { + required: false, + serialized_name: 'properties.evaluatorType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_list.rb new file mode 100644 index 0000000000..7378cced64 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class PolicyList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [PolicyList] 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 PolicyList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PolicyList', + type: { + name: 'Composite', + class_name: 'PolicyList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PolicyElementType', + type: { + name: 'Composite', + class_name: 'Policy' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb new file mode 100644 index 0000000000..b99369b9ba --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb @@ -0,0 +1,63 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Result of a policy set evaluation. + # + class PolicySetResult + + include MsRestAzure + + # @return [Boolean] A value indicating whether this policy set evaluation + # has discovered violations. + attr_accessor :has_error + + # @return [Array] The list of policy violations. + attr_accessor :policy_violations + + + # + # Mapper for PolicySetResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PolicySetResult', + type: { + name: 'Composite', + class_name: 'PolicySetResult', + model_properties: { + has_error: { + required: false, + serialized_name: 'hasError', + type: { + name: 'Boolean' + } + }, + policy_violations: { + required: false, + serialized_name: 'policyViolations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PolicyViolationElementType', + type: { + name: 'Composite', + class_name: 'PolicyViolation' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_status.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_status.rb new file mode 100644 index 0000000000..0d48726687 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_status.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for PolicyStatus + # + module PolicyStatus + Enabled = "Enabled" + Disabled = "Disabled" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb new file mode 100644 index 0000000000..47b5bddecd --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_violation.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Policy violation. + # + class PolicyViolation + + include MsRestAzure + + # @return [String] The code of the policy violation. + attr_accessor :code + + # @return [String] The message of the policy violation. + attr_accessor :message + + + # + # Mapper for PolicyViolation class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PolicyViolation', + type: { + name: 'Composite', + class_name: 'PolicyViolation', + model_properties: { + code: { + required: false, + serialized_name: 'code', + type: { + name: 'String' + } + }, + message: { + required: false, + serialized_name: 'message', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port.rb new file mode 100644 index 0000000000..472cf39562 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a network port. + # + class Port + + include MsRestAzure + + # @return [TransportProtocol] Protocol type of the port. Possible values + # include: 'Tcp', 'Udp' + attr_accessor :transport_protocol + + # @return [Integer] Backend port of the target virtual machine. + attr_accessor :backend_port + + + # + # Mapper for Port class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Port', + type: { + name: 'Composite', + class_name: 'Port', + model_properties: { + transport_protocol: { + required: false, + serialized_name: 'transportProtocol', + type: { + name: 'String' + } + }, + backend_port: { + required: false, + serialized_name: 'backendPort', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb new file mode 100644 index 0000000000..cc03dd8a07 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a network port. + # + class PortFragment + + include MsRestAzure + + # @return [TransportProtocol] Protocol type of the port. Possible values + # include: 'Tcp', 'Udp' + attr_accessor :transport_protocol + + # @return [Integer] Backend port of the target virtual machine. + attr_accessor :backend_port + + + # + # Mapper for PortFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PortFragment', + type: { + name: 'Composite', + class_name: 'PortFragment', + model_properties: { + transport_protocol: { + required: false, + serialized_name: 'transportProtocol', + type: { + name: 'String' + } + }, + backend_port: { + required: false, + serialized_name: 'backendPort', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb new file mode 100644 index 0000000000..eb3c645a06 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/premium_data_disk.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for PremiumDataDisk + # + module PremiumDataDisk + Disabled = "Disabled" + Enabled = "Enabled" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb new file mode 100644 index 0000000000..e8c4844918 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/provider_operation_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Result of the request to list REST API operations + # + class ProviderOperationResult + + 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 [ProviderOperationResult] 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 ProviderOperationResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ProviderOperationResult', + type: { + name: 'Composite', + class_name: 'ProviderOperationResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'OperationMetadataElementType', + type: { + name: 'Composite', + class_name: 'OperationMetadata' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/rdp_connection.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/rdp_connection.rb new file mode 100644 index 0000000000..97de5fbb50 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/rdp_connection.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Represents a .rdp file + # + class RdpConnection + + include MsRestAzure + + # @return [String] The contents of the .rdp file + attr_accessor :contents + + + # + # Mapper for RdpConnection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RdpConnection', + type: { + name: 'Composite', + class_name: 'RdpConnection', + model_properties: { + contents: { + required: false, + serialized_name: 'contents', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb new file mode 100644 index 0000000000..418cae186b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/reporting_cycle_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for ReportingCycleType + # + module ReportingCycleType + CalendarMonth = "CalendarMonth" + Custom = "Custom" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resize_lab_virtual_machine_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resize_lab_virtual_machine_properties.rb new file mode 100644 index 0000000000..ea05e67f57 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resize_lab_virtual_machine_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Request body for resizing a virtual machine. + # + class ResizeLabVirtualMachineProperties + + include MsRestAzure + + # @return [String] Specifies the size of the virtual machine. + attr_accessor :size + + + # + # Mapper for ResizeLabVirtualMachineProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ResizeLabVirtualMachineProperties', + type: { + name: 'Composite', + class_name: 'ResizeLabVirtualMachineProperties', + model_properties: { + size: { + required: false, + serialized_name: 'size', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resource.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resource.rb new file mode 100644 index 0000000000..a740fe29a9 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resource.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # An Azure resource. + # + class Resource + + include MsRestAzure + + # @return [String] The identifier of the resource. + attr_accessor :id + + # @return [String] The name of the resource. + attr_accessor :name + + # @return [String] The type of the resource. + attr_accessor :type + + # @return [String] The location of the resource. + attr_accessor :location + + # @return [Hash{String => String}] The tags of the resource. + attr_accessor :tags + + + # + # 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' + } + }, + location: { + required: false, + serialized_name: 'location', + 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb new file mode 100644 index 0000000000..0bbd3bdcc2 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for retargeting a virtual machine schedule. + # + class RetargetScheduleProperties + + include MsRestAzure + + # @return [String] The resource Id of the virtual machine on which the + # schedule operates + attr_accessor :current_resource_id + + # @return [String] The resource Id of the virtual machine that the + # schedule should be retargeted to + attr_accessor :target_resource_id + + + # + # Mapper for RetargetScheduleProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RetargetScheduleProperties', + type: { + name: 'Composite', + class_name: 'RetargetScheduleProperties', + model_properties: { + current_resource_id: { + required: false, + serialized_name: 'currentResourceId', + type: { + name: 'String' + } + }, + target_resource_id: { + required: false, + serialized_name: 'targetResourceId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule.rb new file mode 100644 index 0000000000..f7df6078b6 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule.rb @@ -0,0 +1,201 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A schedule. + # + class Schedule < Resource + + include MsRestAzure + + # @return [EnableStatus] The status of the schedule (i.e. Enabled, + # Disabled). Possible values include: 'Enabled', 'Disabled' + attr_accessor :status + + # @return [String] The task type of the schedule (e.g. + # LabVmsShutdownTask, LabVmAutoStart). + attr_accessor :task_type + + # @return [WeekDetails] If the schedule will occur only some days of the + # week, specify the weekly recurrence. + attr_accessor :weekly_recurrence + + # @return [DayDetails] If the schedule will occur once each day of the + # week, specify the daily recurrence. + attr_accessor :daily_recurrence + + # @return [HourDetails] If the schedule will occur multiple times a day, + # specify the hourly recurrence. + attr_accessor :hourly_recurrence + + # @return [String] The time zone ID (e.g. Pacific Standard time). + attr_accessor :time_zone_id + + # @return [NotificationSettings] Notification settings. + attr_accessor :notification_settings + + # @return [DateTime] The creation date of the schedule. + attr_accessor :created_date + + # @return [String] The resource ID to which the schedule belongs + attr_accessor :target_resource_id + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for Schedule class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Schedule', + type: { + name: 'Composite', + class_name: 'Schedule', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + status: { + required: false, + serialized_name: 'properties.status', + type: { + name: 'String' + } + }, + task_type: { + required: false, + serialized_name: 'properties.taskType', + type: { + name: 'String' + } + }, + weekly_recurrence: { + required: false, + serialized_name: 'properties.weeklyRecurrence', + type: { + name: 'Composite', + class_name: 'WeekDetails' + } + }, + daily_recurrence: { + required: false, + serialized_name: 'properties.dailyRecurrence', + type: { + name: 'Composite', + class_name: 'DayDetails' + } + }, + hourly_recurrence: { + required: false, + serialized_name: 'properties.hourlyRecurrence', + type: { + name: 'Composite', + class_name: 'HourDetails' + } + }, + time_zone_id: { + required: false, + serialized_name: 'properties.timeZoneId', + type: { + name: 'String' + } + }, + notification_settings: { + required: false, + serialized_name: 'properties.notificationSettings', + type: { + name: 'Composite', + class_name: 'NotificationSettings' + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + target_resource_id: { + required: false, + serialized_name: 'properties.targetResourceId', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter.rb new file mode 100644 index 0000000000..78a7898210 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter.rb @@ -0,0 +1,160 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for creating a schedule. + # + class ScheduleCreationParameter + + include MsRestAzure + + # @return [EnableStatus] The status of the schedule (i.e. Enabled, + # Disabled). Possible values include: 'Enabled', 'Disabled' + attr_accessor :status + + # @return [String] The task type of the schedule (e.g. + # LabVmsShutdownTask, LabVmAutoStart). + attr_accessor :task_type + + # @return [WeekDetails] If the schedule will occur only some days of the + # week, specify the weekly recurrence. + attr_accessor :weekly_recurrence + + # @return [DayDetails] If the schedule will occur once each day of the + # week, specify the daily recurrence. + attr_accessor :daily_recurrence + + # @return [HourDetails] If the schedule will occur multiple times a day, + # specify the hourly recurrence. + attr_accessor :hourly_recurrence + + # @return [String] The time zone ID (e.g. Pacific Standard time). + attr_accessor :time_zone_id + + # @return [NotificationSettings] Notification settings. + attr_accessor :notification_settings + + # @return [String] The resource ID to which the schedule belongs + attr_accessor :target_resource_id + + # @return [String] The name of the virtual machine or environment + attr_accessor :name + + # @return [String] The location of the new virtual machine or environment + attr_accessor :location + + # @return [Hash{String => String}] The tags of the resource. + attr_accessor :tags + + + # + # Mapper for ScheduleCreationParameter class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ScheduleCreationParameter', + type: { + name: 'Composite', + class_name: 'ScheduleCreationParameter', + model_properties: { + status: { + required: false, + serialized_name: 'properties.status', + type: { + name: 'String' + } + }, + task_type: { + required: false, + serialized_name: 'properties.taskType', + type: { + name: 'String' + } + }, + weekly_recurrence: { + required: false, + serialized_name: 'properties.weeklyRecurrence', + type: { + name: 'Composite', + class_name: 'WeekDetails' + } + }, + daily_recurrence: { + required: false, + serialized_name: 'properties.dailyRecurrence', + type: { + name: 'Composite', + class_name: 'DayDetails' + } + }, + hourly_recurrence: { + required: false, + serialized_name: 'properties.hourlyRecurrence', + type: { + name: 'Composite', + class_name: 'HourDetails' + } + }, + time_zone_id: { + required: false, + serialized_name: 'properties.timeZoneId', + type: { + name: 'String' + } + }, + notification_settings: { + required: false, + serialized_name: 'properties.notificationSettings', + type: { + name: 'Composite', + class_name: 'NotificationSettings' + } + }, + target_resource_id: { + required: false, + serialized_name: 'properties.targetResourceId', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + location: { + required: false, + serialized_name: 'location', + 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter_fragment.rb new file mode 100644 index 0000000000..8133ac6f53 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter_fragment.rb @@ -0,0 +1,160 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties for creating a schedule. + # + class ScheduleCreationParameterFragment + + include MsRestAzure + + # @return [EnableStatus] The status of the schedule (i.e. Enabled, + # Disabled). Possible values include: 'Enabled', 'Disabled' + attr_accessor :status + + # @return [String] The task type of the schedule (e.g. + # LabVmsShutdownTask, LabVmAutoStart). + attr_accessor :task_type + + # @return [WeekDetailsFragment] If the schedule will occur only some days + # of the week, specify the weekly recurrence. + attr_accessor :weekly_recurrence + + # @return [DayDetailsFragment] If the schedule will occur once each day + # of the week, specify the daily recurrence. + attr_accessor :daily_recurrence + + # @return [HourDetailsFragment] If the schedule will occur multiple times + # a day, specify the hourly recurrence. + attr_accessor :hourly_recurrence + + # @return [String] The time zone ID (e.g. Pacific Standard time). + attr_accessor :time_zone_id + + # @return [NotificationSettingsFragment] Notification settings. + attr_accessor :notification_settings + + # @return [String] The resource ID to which the schedule belongs + attr_accessor :target_resource_id + + # @return [String] The name of the virtual machine or environment + attr_accessor :name + + # @return [String] The location of the new virtual machine or environment + attr_accessor :location + + # @return [Hash{String => String}] The tags of the resource. + attr_accessor :tags + + + # + # Mapper for ScheduleCreationParameterFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ScheduleCreationParameterFragment', + type: { + name: 'Composite', + class_name: 'ScheduleCreationParameterFragment', + model_properties: { + status: { + required: false, + serialized_name: 'properties.status', + type: { + name: 'String' + } + }, + task_type: { + required: false, + serialized_name: 'properties.taskType', + type: { + name: 'String' + } + }, + weekly_recurrence: { + required: false, + serialized_name: 'properties.weeklyRecurrence', + type: { + name: 'Composite', + class_name: 'WeekDetailsFragment' + } + }, + daily_recurrence: { + required: false, + serialized_name: 'properties.dailyRecurrence', + type: { + name: 'Composite', + class_name: 'DayDetailsFragment' + } + }, + hourly_recurrence: { + required: false, + serialized_name: 'properties.hourlyRecurrence', + type: { + name: 'Composite', + class_name: 'HourDetailsFragment' + } + }, + time_zone_id: { + required: false, + serialized_name: 'properties.timeZoneId', + type: { + name: 'String' + } + }, + notification_settings: { + required: false, + serialized_name: 'properties.notificationSettings', + type: { + name: 'Composite', + class_name: 'NotificationSettingsFragment' + } + }, + target_resource_id: { + required: false, + serialized_name: 'properties.targetResourceId', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + location: { + required: false, + serialized_name: 'location', + 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb new file mode 100644 index 0000000000..8a2adb922f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A schedule. + # + class ScheduleFragment < UpdateResource + + include MsRestAzure + + # @return [EnableStatus] The status of the schedule (i.e. Enabled, + # Disabled). Possible values include: 'Enabled', 'Disabled' + attr_accessor :status + + # @return [String] The task type of the schedule (e.g. + # LabVmsShutdownTask, LabVmAutoStart). + attr_accessor :task_type + + # @return [WeekDetailsFragment] If the schedule will occur only some days + # of the week, specify the weekly recurrence. + attr_accessor :weekly_recurrence + + # @return [DayDetailsFragment] If the schedule will occur once each day + # of the week, specify the daily recurrence. + attr_accessor :daily_recurrence + + # @return [HourDetailsFragment] If the schedule will occur multiple times + # a day, specify the hourly recurrence. + attr_accessor :hourly_recurrence + + # @return [String] The time zone ID (e.g. Pacific Standard time). + attr_accessor :time_zone_id + + # @return [NotificationSettingsFragment] Notification settings. + attr_accessor :notification_settings + + # @return [String] The resource ID to which the schedule belongs + attr_accessor :target_resource_id + + + # + # Mapper for ScheduleFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ScheduleFragment', + type: { + name: 'Composite', + class_name: 'ScheduleFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + status: { + required: false, + serialized_name: 'properties.status', + type: { + name: 'String' + } + }, + task_type: { + required: false, + serialized_name: 'properties.taskType', + type: { + name: 'String' + } + }, + weekly_recurrence: { + required: false, + serialized_name: 'properties.weeklyRecurrence', + type: { + name: 'Composite', + class_name: 'WeekDetailsFragment' + } + }, + daily_recurrence: { + required: false, + serialized_name: 'properties.dailyRecurrence', + type: { + name: 'Composite', + class_name: 'DayDetailsFragment' + } + }, + hourly_recurrence: { + required: false, + serialized_name: 'properties.hourlyRecurrence', + type: { + name: 'Composite', + class_name: 'HourDetailsFragment' + } + }, + time_zone_id: { + required: false, + serialized_name: 'properties.timeZoneId', + type: { + name: 'String' + } + }, + notification_settings: { + required: false, + serialized_name: 'properties.notificationSettings', + type: { + name: 'Composite', + class_name: 'NotificationSettingsFragment' + } + }, + target_resource_id: { + required: false, + serialized_name: 'properties.targetResourceId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_list.rb new file mode 100644 index 0000000000..401fbef17a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class ScheduleList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [ScheduleList] 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 ScheduleList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ScheduleList', + type: { + name: 'Composite', + class_name: 'ScheduleList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ScheduleElementType', + type: { + name: 'Composite', + class_name: 'Schedule' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret.rb new file mode 100644 index 0000000000..c956d42ca4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret.rb @@ -0,0 +1,111 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A secret. + # + class Secret < Resource + + include MsRestAzure + + # @return [String] The value of the secret for secret creation. + attr_accessor :value + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for Secret class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Secret', + type: { + name: 'Composite', + class_name: 'Secret', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + value: { + required: false, + serialized_name: 'properties.value', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_fragment.rb new file mode 100644 index 0000000000..9059eacc07 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A secret. + # + class SecretFragment < UpdateResource + + include MsRestAzure + + # @return [String] The value of the secret for secret creation. + attr_accessor :value + + + # + # Mapper for SecretFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SecretFragment', + type: { + name: 'Composite', + class_name: 'SecretFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + value: { + required: false, + serialized_name: 'properties.value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_list.rb new file mode 100644 index 0000000000..00f6a1279f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class SecretList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [SecretList] 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 SecretList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SecretList', + type: { + name: 'Composite', + class_name: 'SecretList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SecretElementType', + type: { + name: 'Composite', + class_name: 'Secret' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric.rb new file mode 100644 index 0000000000..0f78d5cef0 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric.rb @@ -0,0 +1,135 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A Service Fabric. + # + class ServiceFabric < Resource + + include MsRestAzure + + # @return [String] The backing service fabric resource's id + attr_accessor :external_service_fabric_id + + # @return [String] The resource id of the environment under which the + # service fabric resource is present + attr_accessor :environment_id + + # @return [ApplicableSchedule] The applicable schedule for the virtual + # machine. + attr_accessor :applicable_schedule + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for ServiceFabric class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ServiceFabric', + type: { + name: 'Composite', + class_name: 'ServiceFabric', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + external_service_fabric_id: { + required: false, + serialized_name: 'properties.externalServiceFabricId', + type: { + name: 'String' + } + }, + environment_id: { + required: false, + serialized_name: 'properties.environmentId', + type: { + name: 'String' + } + }, + applicable_schedule: { + required: false, + read_only: true, + serialized_name: 'properties.applicableSchedule', + type: { + name: 'Composite', + class_name: 'ApplicableSchedule' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_fragment.rb new file mode 100644 index 0000000000..e7ca4954a4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A Service Fabric. + # + class ServiceFabricFragment < UpdateResource + + include MsRestAzure + + # @return [String] The backing service fabric resource's id + attr_accessor :external_service_fabric_id + + # @return [String] The resource id of the environment under which the + # service fabric resource is present + attr_accessor :environment_id + + + # + # Mapper for ServiceFabricFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ServiceFabricFragment', + type: { + name: 'Composite', + class_name: 'ServiceFabricFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + external_service_fabric_id: { + required: false, + serialized_name: 'properties.externalServiceFabricId', + type: { + name: 'String' + } + }, + environment_id: { + required: false, + serialized_name: 'properties.environmentId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_list.rb new file mode 100644 index 0000000000..5df5e6f518 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class ServiceFabricList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [ServiceFabricList] 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 ServiceFabricList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ServiceFabricList', + type: { + name: 'Composite', + class_name: 'ServiceFabricList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ServiceFabricElementType', + type: { + name: 'Composite', + class_name: 'ServiceFabric' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb new file mode 100644 index 0000000000..ca7edd81db --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A container for a managed identity to execute DevTest lab services. + # + class ServiceRunner < Resource + + include MsRestAzure + + # @return [IdentityProperties] The identity of the resource. + attr_accessor :identity + + + # + # Mapper for ServiceRunner class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ServiceRunner', + type: { + name: 'Composite', + class_name: 'ServiceRunner', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + identity: { + required: false, + serialized_name: 'identity', + type: { + name: 'Composite', + class_name: 'IdentityProperties' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner_list.rb new file mode 100644 index 0000000000..3b921313a7 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class ServiceRunnerList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [ServiceRunnerList] 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 ServiceRunnerList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ServiceRunnerList', + type: { + name: 'Composite', + class_name: 'ServiceRunnerList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ServiceRunnerElementType', + type: { + name: 'Composite', + class_name: 'ServiceRunner' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb new file mode 100644 index 0000000000..635d9d5942 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb @@ -0,0 +1,53 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a virtual machine that determine how it is connected to a + # load balancer. + # + class SharedPublicIpAddressConfiguration + + include MsRestAzure + + # @return [Array] The incoming NAT rules + attr_accessor :inbound_nat_rules + + + # + # Mapper for SharedPublicIpAddressConfiguration class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SharedPublicIpAddressConfiguration', + type: { + name: 'Composite', + class_name: 'SharedPublicIpAddressConfiguration', + model_properties: { + inbound_nat_rules: { + required: false, + serialized_name: 'inboundNatRules', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'InboundNatRuleElementType', + type: { + name: 'Composite', + class_name: 'InboundNatRule' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb new file mode 100644 index 0000000000..eb508d5fc1 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a virtual machine that determine how it is connected to a + # load balancer. + # + class SharedPublicIpAddressConfigurationFragment + + include MsRestAzure + + # @return [Array] The incoming NAT rules + attr_accessor :inbound_nat_rules + + + # + # Mapper for SharedPublicIpAddressConfigurationFragment class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SharedPublicIpAddressConfigurationFragment', + type: { + name: 'Composite', + class_name: 'SharedPublicIpAddressConfigurationFragment', + model_properties: { + inbound_nat_rules: { + required: false, + serialized_name: 'inboundNatRules', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'InboundNatRuleFragmentElementType', + type: { + name: 'Composite', + class_name: 'InboundNatRuleFragment' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb new file mode 100644 index 0000000000..166423590a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb @@ -0,0 +1,166 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The contents of a shutdown notification. Webhooks can use this type to + # deserialize the request body when they get notified of an imminent + # shutdown. + # + class ShutdownNotificationContent + + include MsRestAzure + + # @return [String] The URL to skip auto-shutdown. + attr_accessor :skip_url + + # @return [String] The URL to delay shutdown by 60 minutes. + attr_accessor :delay_url60 + + # @return [String] The URL to delay shutdown by 2 hours. + attr_accessor :delay_url120 + + # @return [String] The virtual machine to be shut down. + attr_accessor :vm_name + + # @return [String] The GUID for the virtual machine to be shut down. + attr_accessor :guid + + # @return [String] The owner of the virtual machine. + attr_accessor :owner + + # @return [String] The URL of the virtual machine. + attr_accessor :vm_url + + # @return [String] Minutes remaining until shutdown + attr_accessor :minutes_until_shutdown + + # @return [String] The event for which a notification will be sent. + attr_accessor :event_type + + # @return [String] The text for the notification. + attr_accessor :text + + # @return [String] The subscription ID for the schedule. + attr_accessor :subscription_id + + # @return [String] The resource group name for the schedule. + attr_accessor :resource_group_name + + # @return [String] The lab for the schedule. + attr_accessor :lab_name + + + # + # Mapper for ShutdownNotificationContent class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ShutdownNotificationContent', + type: { + name: 'Composite', + class_name: 'ShutdownNotificationContent', + model_properties: { + skip_url: { + required: false, + serialized_name: 'skipUrl', + type: { + name: 'String' + } + }, + delay_url60: { + required: false, + serialized_name: 'delayUrl60', + type: { + name: 'String' + } + }, + delay_url120: { + required: false, + serialized_name: 'delayUrl120', + type: { + name: 'String' + } + }, + vm_name: { + required: false, + serialized_name: 'vmName', + type: { + name: 'String' + } + }, + guid: { + required: false, + serialized_name: 'guid', + type: { + name: 'String' + } + }, + owner: { + required: false, + serialized_name: 'owner', + type: { + name: 'String' + } + }, + vm_url: { + required: false, + serialized_name: 'vmUrl', + type: { + name: 'String' + } + }, + minutes_until_shutdown: { + required: false, + serialized_name: 'minutesUntilShutdown', + type: { + name: 'String' + } + }, + event_type: { + required: false, + serialized_name: 'eventType', + type: { + name: 'String' + } + }, + text: { + required: false, + serialized_name: 'text', + type: { + name: 'String' + } + }, + subscription_id: { + required: false, + serialized_name: 'subscriptionId', + type: { + name: 'String' + } + }, + resource_group_name: { + required: false, + serialized_name: 'resourceGroupName', + type: { + name: 'String' + } + }, + lab_name: { + required: false, + serialized_name: 'labName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/source_control_type.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/source_control_type.rb new file mode 100644 index 0000000000..30f7dc4479 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/source_control_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for SourceControlType + # + module SourceControlType + VsoGit = "VsoGit" + GitHub = "GitHub" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/storage_type.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/storage_type.rb new file mode 100644 index 0000000000..150f5ab32f --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/storage_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for StorageType + # + module StorageType + Standard = "Standard" + Premium = "Premium" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet.rb new file mode 100644 index 0000000000..8ef6071b99 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Subnet information. + # + class Subnet + + include MsRestAzure + + # @return [String] The resource ID of the subnet. + attr_accessor :resource_id + + # @return [String] The name of the subnet as seen in the lab. + attr_accessor :lab_subnet_name + + # @return [UsagePermissionType] The permission policy of the subnet for + # allowing public IP addresses (i.e. Allow, Deny)). Possible values + # include: 'Default', 'Deny', 'Allow' + attr_accessor :allow_public_ip + + + # + # Mapper for Subnet class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Subnet', + type: { + name: 'Composite', + class_name: 'Subnet', + model_properties: { + resource_id: { + required: false, + serialized_name: 'resourceId', + type: { + name: 'String' + } + }, + lab_subnet_name: { + required: false, + serialized_name: 'labSubnetName', + type: { + name: 'String' + } + }, + allow_public_ip: { + required: false, + serialized_name: 'allowPublicIp', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb new file mode 100644 index 0000000000..2644dc578b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Subnet information. + # + class SubnetFragment + + include MsRestAzure + + # @return [String] The resource ID of the subnet. + attr_accessor :resource_id + + # @return [String] The name of the subnet as seen in the lab. + attr_accessor :lab_subnet_name + + # @return [UsagePermissionType] The permission policy of the subnet for + # allowing public IP addresses (i.e. Allow, Deny)). Possible values + # include: 'Default', 'Deny', 'Allow' + attr_accessor :allow_public_ip + + + # + # Mapper for SubnetFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubnetFragment', + type: { + name: 'Composite', + class_name: 'SubnetFragment', + model_properties: { + resource_id: { + required: false, + serialized_name: 'resourceId', + type: { + name: 'String' + } + }, + lab_subnet_name: { + required: false, + serialized_name: 'labSubnetName', + type: { + name: 'String' + } + }, + allow_public_ip: { + required: false, + serialized_name: 'allowPublicIp', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb new file mode 100644 index 0000000000..68628efe3d --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Property overrides on a subnet of a virtual network. + # + class SubnetOverride + + include MsRestAzure + + # @return [String] The resource ID of the subnet. + attr_accessor :resource_id + + # @return [String] The name given to the subnet within the lab. + attr_accessor :lab_subnet_name + + # @return [UsagePermissionType] Indicates whether this subnet can be used + # during virtual machine creation (i.e. Allow, Deny). Possible values + # include: 'Default', 'Deny', 'Allow' + attr_accessor :use_in_vm_creation_permission + + # @return [UsagePermissionType] Indicates whether public IP addresses can + # be assigned to virtual machines on this subnet (i.e. Allow, Deny). + # Possible values include: 'Default', 'Deny', 'Allow' + attr_accessor :use_public_ip_address_permission + + # @return [SubnetSharedPublicIpAddressConfiguration] Properties that + # virtual machines on this subnet will share. + attr_accessor :shared_public_ip_address_configuration + + # @return [String] The virtual network pool associated with this subnet. + attr_accessor :virtual_network_pool_name + + + # + # Mapper for SubnetOverride class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubnetOverride', + type: { + name: 'Composite', + class_name: 'SubnetOverride', + model_properties: { + resource_id: { + required: false, + serialized_name: 'resourceId', + type: { + name: 'String' + } + }, + lab_subnet_name: { + required: false, + serialized_name: 'labSubnetName', + type: { + name: 'String' + } + }, + use_in_vm_creation_permission: { + required: false, + serialized_name: 'useInVmCreationPermission', + type: { + name: 'String' + } + }, + use_public_ip_address_permission: { + required: false, + serialized_name: 'usePublicIpAddressPermission', + type: { + name: 'String' + } + }, + shared_public_ip_address_configuration: { + required: false, + serialized_name: 'sharedPublicIpAddressConfiguration', + type: { + name: 'Composite', + class_name: 'SubnetSharedPublicIpAddressConfiguration' + } + }, + virtual_network_pool_name: { + required: false, + serialized_name: 'virtualNetworkPoolName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb new file mode 100644 index 0000000000..2e1c138b1d --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Property overrides on a subnet of a virtual network. + # + class SubnetOverrideFragment + + include MsRestAzure + + # @return [String] The resource ID of the subnet. + attr_accessor :resource_id + + # @return [String] The name given to the subnet within the lab. + attr_accessor :lab_subnet_name + + # @return [UsagePermissionType] Indicates whether this subnet can be used + # during virtual machine creation (i.e. Allow, Deny). Possible values + # include: 'Default', 'Deny', 'Allow' + attr_accessor :use_in_vm_creation_permission + + # @return [UsagePermissionType] Indicates whether public IP addresses can + # be assigned to virtual machines on this subnet (i.e. Allow, Deny). + # Possible values include: 'Default', 'Deny', 'Allow' + attr_accessor :use_public_ip_address_permission + + # @return [SubnetSharedPublicIpAddressConfigurationFragment] Properties + # that virtual machines on this subnet will share. + attr_accessor :shared_public_ip_address_configuration + + # @return [String] The virtual network pool associated with this subnet. + attr_accessor :virtual_network_pool_name + + + # + # Mapper for SubnetOverrideFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubnetOverrideFragment', + type: { + name: 'Composite', + class_name: 'SubnetOverrideFragment', + model_properties: { + resource_id: { + required: false, + serialized_name: 'resourceId', + type: { + name: 'String' + } + }, + lab_subnet_name: { + required: false, + serialized_name: 'labSubnetName', + type: { + name: 'String' + } + }, + use_in_vm_creation_permission: { + required: false, + serialized_name: 'useInVmCreationPermission', + type: { + name: 'String' + } + }, + use_public_ip_address_permission: { + required: false, + serialized_name: 'usePublicIpAddressPermission', + type: { + name: 'String' + } + }, + shared_public_ip_address_configuration: { + required: false, + serialized_name: 'sharedPublicIpAddressConfiguration', + type: { + name: 'Composite', + class_name: 'SubnetSharedPublicIpAddressConfigurationFragment' + } + }, + virtual_network_pool_name: { + required: false, + serialized_name: 'virtualNetworkPoolName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb new file mode 100644 index 0000000000..68b5368564 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb @@ -0,0 +1,53 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Configuration for public IP address sharing. + # + class SubnetSharedPublicIpAddressConfiguration + + include MsRestAzure + + # @return [Array] Backend ports that virtual machines on this + # subnet are allowed to expose + attr_accessor :allowed_ports + + + # + # Mapper for SubnetSharedPublicIpAddressConfiguration class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubnetSharedPublicIpAddressConfiguration', + type: { + name: 'Composite', + class_name: 'SubnetSharedPublicIpAddressConfiguration', + model_properties: { + allowed_ports: { + required: false, + serialized_name: 'allowedPorts', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PortElementType', + type: { + name: 'Composite', + class_name: 'Port' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb new file mode 100644 index 0000000000..981ad7a3d9 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Configuration for public IP address sharing. + # + class SubnetSharedPublicIpAddressConfigurationFragment + + include MsRestAzure + + # @return [Array] Backend ports that virtual machines on + # this subnet are allowed to expose + attr_accessor :allowed_ports + + + # + # Mapper for SubnetSharedPublicIpAddressConfigurationFragment class as + # Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubnetSharedPublicIpAddressConfigurationFragment', + type: { + name: 'Composite', + class_name: 'SubnetSharedPublicIpAddressConfigurationFragment', + model_properties: { + allowed_ports: { + required: false, + serialized_name: 'allowedPorts', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PortFragmentElementType', + type: { + name: 'Composite', + class_name: 'PortFragment' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb new file mode 100644 index 0000000000..ddb18f38f5 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a cost target. + # + class TargetCostProperties + + include MsRestAzure + + # @return [TargetCostStatus] Target cost status. Possible values include: + # 'Enabled', 'Disabled' + attr_accessor :status + + # @return [Integer] Lab target cost + attr_accessor :target + + # @return [Array] Cost thresholds. + attr_accessor :cost_thresholds + + # @return [DateTime] Reporting cycle start date. + attr_accessor :cycle_start_date_time + + # @return [DateTime] Reporting cycle end date. + attr_accessor :cycle_end_date_time + + # @return [ReportingCycleType] Reporting cycle type. Possible values + # include: 'CalendarMonth', 'Custom' + attr_accessor :cycle_type + + + # + # Mapper for TargetCostProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TargetCostProperties', + type: { + name: 'Composite', + class_name: 'TargetCostProperties', + model_properties: { + status: { + required: false, + serialized_name: 'status', + type: { + name: 'String' + } + }, + target: { + required: false, + serialized_name: 'target', + type: { + name: 'Number' + } + }, + cost_thresholds: { + required: false, + serialized_name: 'costThresholds', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'CostThresholdPropertiesElementType', + type: { + name: 'Composite', + class_name: 'CostThresholdProperties' + } + } + } + }, + cycle_start_date_time: { + required: false, + serialized_name: 'cycleStartDateTime', + type: { + name: 'DateTime' + } + }, + cycle_end_date_time: { + required: false, + serialized_name: 'cycleEndDateTime', + type: { + name: 'DateTime' + } + }, + cycle_type: { + required: false, + serialized_name: 'cycleType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb new file mode 100644 index 0000000000..04e96e3e6d --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_status.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for TargetCostStatus + # + module TargetCostStatus + Enabled = "Enabled" + Disabled = "Disabled" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb new file mode 100644 index 0000000000..e1dccaebcd --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/transport_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for TransportProtocol + # + module TransportProtocol + Tcp = "Tcp" + Udp = "Udp" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/update_resource.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/update_resource.rb new file mode 100644 index 0000000000..ddce513796 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/update_resource.rb @@ -0,0 +1,51 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Represents an update resource + # + class UpdateResource + + include MsRestAzure + + # @return [Hash{String => String}] The tags of the resource. + attr_accessor :tags + + + # + # Mapper for UpdateResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UpdateResource', + type: { + name: 'Composite', + class_name: 'UpdateResource', + model_properties: { + 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb new file mode 100644 index 0000000000..61ba57223c --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/usage_permission_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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for UsagePermissionType + # + module UsagePermissionType + Default = "Default" + Deny = "Deny" + Allow = "Allow" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user.rb new file mode 100644 index 0000000000..6ef32ac703 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user.rb @@ -0,0 +1,134 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Profile of a lab user. + # + class User < Resource + + include MsRestAzure + + # @return [UserIdentity] The identity of the user. + attr_accessor :identity + + # @return [UserSecretStore] The secret store of the user. + attr_accessor :secret_store + + # @return [DateTime] The creation date of the user profile. + attr_accessor :created_date + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for User class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'User', + type: { + name: 'Composite', + class_name: 'User', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + identity: { + required: false, + serialized_name: 'properties.identity', + type: { + name: 'Composite', + class_name: 'UserIdentity' + } + }, + secret_store: { + required: false, + serialized_name: 'properties.secretStore', + type: { + name: 'Composite', + class_name: 'UserSecretStore' + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb new file mode 100644 index 0000000000..c23465da25 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Profile of a lab user. + # + class UserFragment < UpdateResource + + include MsRestAzure + + # @return [UserIdentityFragment] The identity of the user. + attr_accessor :identity + + # @return [UserSecretStoreFragment] The secret store of the user. + attr_accessor :secret_store + + + # + # Mapper for UserFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserFragment', + type: { + name: 'Composite', + class_name: 'UserFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + identity: { + required: false, + serialized_name: 'properties.identity', + type: { + name: 'Composite', + class_name: 'UserIdentityFragment' + } + }, + secret_store: { + required: false, + serialized_name: 'properties.secretStore', + type: { + name: 'Composite', + class_name: 'UserSecretStoreFragment' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb new file mode 100644 index 0000000000..adda1ebcb1 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Identity attributes of a lab user. + # + class UserIdentity + + include MsRestAzure + + # @return [String] Set to the principal name / UPN of the client JWT + # making the request. + attr_accessor :principal_name + + # @return [String] Set to the principal Id of the client JWT making the + # request. Service principal will not have the principal Id. + attr_accessor :principal_id + + # @return [String] Set to the tenant ID of the client JWT making the + # request. + attr_accessor :tenant_id + + # @return [String] Set to the object Id of the client JWT making the + # request. Not all users have object Id. For CSP (reseller) scenarios for + # example, object Id is not available. + attr_accessor :object_id + + # @return [String] Set to the app Id of the client JWT making the + # request. + attr_accessor :app_id + + + # + # Mapper for UserIdentity class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserIdentity', + type: { + name: 'Composite', + class_name: 'UserIdentity', + model_properties: { + principal_name: { + required: false, + serialized_name: 'principalName', + type: { + name: 'String' + } + }, + principal_id: { + required: false, + serialized_name: 'principalId', + type: { + name: 'String' + } + }, + tenant_id: { + required: false, + serialized_name: 'tenantId', + type: { + name: 'String' + } + }, + object_id: { + required: false, + serialized_name: 'objectId', + type: { + name: 'String' + } + }, + app_id: { + required: false, + serialized_name: 'appId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb new file mode 100644 index 0000000000..386712ada9 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Identity attributes of a lab user. + # + class UserIdentityFragment + + include MsRestAzure + + # @return [String] Set to the principal name / UPN of the client JWT + # making the request. + attr_accessor :principal_name + + # @return [String] Set to the principal Id of the client JWT making the + # request. Service principal will not have the principal Id. + attr_accessor :principal_id + + # @return [String] Set to the tenant ID of the client JWT making the + # request. + attr_accessor :tenant_id + + # @return [String] Set to the object Id of the client JWT making the + # request. Not all users have object Id. For CSP (reseller) scenarios for + # example, object Id is not available. + attr_accessor :object_id + + # @return [String] Set to the app Id of the client JWT making the + # request. + attr_accessor :app_id + + + # + # Mapper for UserIdentityFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserIdentityFragment', + type: { + name: 'Composite', + class_name: 'UserIdentityFragment', + model_properties: { + principal_name: { + required: false, + serialized_name: 'principalName', + type: { + name: 'String' + } + }, + principal_id: { + required: false, + serialized_name: 'principalId', + type: { + name: 'String' + } + }, + tenant_id: { + required: false, + serialized_name: 'tenantId', + type: { + name: 'String' + } + }, + object_id: { + required: false, + serialized_name: 'objectId', + type: { + name: 'String' + } + }, + app_id: { + required: false, + serialized_name: 'appId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_list.rb new file mode 100644 index 0000000000..127ae4410b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class UserList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [UserList] 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 UserList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserList', + type: { + name: 'Composite', + class_name: 'UserList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'UserElementType', + type: { + name: 'Composite', + class_name: 'User' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb new file mode 100644 index 0000000000..96caf1a968 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a user's secret store. + # + class UserSecretStore + + include MsRestAzure + + # @return [String] The URI of the user's Key vault. + attr_accessor :key_vault_uri + + # @return [String] The ID of the user's Key vault. + attr_accessor :key_vault_id + + + # + # Mapper for UserSecretStore class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserSecretStore', + type: { + name: 'Composite', + class_name: 'UserSecretStore', + model_properties: { + key_vault_uri: { + required: false, + serialized_name: 'keyVaultUri', + type: { + name: 'String' + } + }, + key_vault_id: { + required: false, + serialized_name: 'keyVaultId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb new file mode 100644 index 0000000000..8febfa5932 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a user's secret store. + # + class UserSecretStoreFragment + + include MsRestAzure + + # @return [String] The URI of the user's Key vault. + attr_accessor :key_vault_uri + + # @return [String] The ID of the user's Key vault. + attr_accessor :key_vault_id + + + # + # Mapper for UserSecretStoreFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserSecretStoreFragment', + type: { + name: 'Composite', + class_name: 'UserSecretStoreFragment', + model_properties: { + key_vault_uri: { + required: false, + serialized_name: 'keyVaultUri', + type: { + name: 'String' + } + }, + key_vault_id: { + required: false, + serialized_name: 'keyVaultId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb new file mode 100644 index 0000000000..5416633ccd --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for VirtualMachineCreationSource + # + module VirtualMachineCreationSource + FromCustomImage = "FromCustomImage" + FromGalleryImage = "FromGalleryImage" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb new file mode 100644 index 0000000000..2b651e7751 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb @@ -0,0 +1,189 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A virtual network. + # + class VirtualNetwork < Resource + + include MsRestAzure + + # @return [Array] The allowed subnets of the virtual network. + attr_accessor :allowed_subnets + + # @return [String] The description of the virtual network. + attr_accessor :description + + # @return [String] The Microsoft.Network resource identifier of the + # virtual network. + attr_accessor :external_provider_resource_id + + # @return [Array] The external subnet properties. + attr_accessor :external_subnets + + # @return [Array] The subnet overrides of the virtual + # network. + attr_accessor :subnet_overrides + + # @return [DateTime] The creation date of the virtual network. + attr_accessor :created_date + + # @return [String] The provisioning status of the resource. + attr_accessor :provisioning_state + + # @return [String] The unique immutable identifier of a resource (Guid). + attr_accessor :unique_identifier + + + # + # Mapper for VirtualNetwork class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'VirtualNetwork', + type: { + name: 'Composite', + class_name: 'VirtualNetwork', + 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' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + allowed_subnets: { + required: false, + serialized_name: 'properties.allowedSubnets', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SubnetElementType', + type: { + name: 'Composite', + class_name: 'Subnet' + } + } + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + external_provider_resource_id: { + required: false, + serialized_name: 'properties.externalProviderResourceId', + type: { + name: 'String' + } + }, + external_subnets: { + required: false, + read_only: true, + serialized_name: 'properties.externalSubnets', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ExternalSubnetElementType', + type: { + name: 'Composite', + class_name: 'ExternalSubnet' + } + } + } + }, + subnet_overrides: { + required: false, + serialized_name: 'properties.subnetOverrides', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SubnetOverrideElementType', + type: { + name: 'Composite', + class_name: 'SubnetOverride' + } + } + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + unique_identifier: { + required: false, + read_only: true, + serialized_name: 'properties.uniqueIdentifier', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb new file mode 100644 index 0000000000..0ecd8999b2 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb @@ -0,0 +1,107 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # A virtual network. + # + class VirtualNetworkFragment < UpdateResource + + include MsRestAzure + + # @return [Array] The allowed subnets of the virtual + # network. + attr_accessor :allowed_subnets + + # @return [String] The description of the virtual network. + attr_accessor :description + + # @return [String] The Microsoft.Network resource identifier of the + # virtual network. + attr_accessor :external_provider_resource_id + + # @return [Array] The subnet overrides of the + # virtual network. + attr_accessor :subnet_overrides + + + # + # Mapper for VirtualNetworkFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'VirtualNetworkFragment', + type: { + name: 'Composite', + class_name: 'VirtualNetworkFragment', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + allowed_subnets: { + required: false, + serialized_name: 'properties.allowedSubnets', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SubnetFragmentElementType', + type: { + name: 'Composite', + class_name: 'SubnetFragment' + } + } + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + external_provider_resource_id: { + required: false, + serialized_name: 'properties.externalProviderResourceId', + type: { + name: 'String' + } + }, + subnet_overrides: { + required: false, + serialized_name: 'properties.subnetOverrides', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SubnetOverrideFragmentElementType', + type: { + name: 'Composite', + class_name: 'SubnetOverrideFragment' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_list.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_list.rb new file mode 100644 index 0000000000..a9d15ae07d --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_list.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # The response of a list operation. + # + class VirtualNetworkList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Results of the list operation. + attr_accessor :value + + # @return [String] Link for next set of results. + 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 [VirtualNetworkList] 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 VirtualNetworkList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'VirtualNetworkList', + type: { + name: 'Composite', + class_name: 'VirtualNetworkList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'VirtualNetworkElementType', + type: { + name: 'Composite', + class_name: 'VirtualNetwork' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details.rb new file mode 100644 index 0000000000..02d9276d53 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a weekly schedule. + # + class WeekDetails + + include MsRestAzure + + # @return [Array] The days of the week for which the schedule is + # set (e.g. Sunday, Monday, Tuesday, etc.). + attr_accessor :weekdays + + # @return [String] The time of the day the schedule will occur. + attr_accessor :time + + + # + # Mapper for WeekDetails class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'WeekDetails', + type: { + name: 'Composite', + class_name: 'WeekDetails', + model_properties: { + weekdays: { + required: false, + serialized_name: 'weekdays', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + time: { + required: false, + serialized_name: 'time', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb new file mode 100644 index 0000000000..16655b960a --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Properties of a weekly schedule. + # + class WeekDetailsFragment + + include MsRestAzure + + # @return [Array] The days of the week for which the schedule is + # set (e.g. Sunday, Monday, Tuesday, etc.). + attr_accessor :weekdays + + # @return [String] The time of the day the schedule will occur. + attr_accessor :time + + + # + # Mapper for WeekDetailsFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'WeekDetailsFragment', + type: { + name: 'Composite', + class_name: 'WeekDetailsFragment', + model_properties: { + weekdays: { + required: false, + serialized_name: 'weekdays', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + time: { + required: false, + serialized_name: 'time', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb new file mode 100644 index 0000000000..6e60bbee05 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Information about a Windows OS. + # + class WindowsOsInfo + + include MsRestAzure + + # @return [WindowsOsState] The state of the Windows OS (i.e. + # NonSysprepped, SysprepRequested, SysprepApplied). Possible values + # include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' + attr_accessor :windows_os_state + + + # + # Mapper for WindowsOsInfo class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'WindowsOsInfo', + type: { + name: 'Composite', + class_name: 'WindowsOsInfo', + model_properties: { + windows_os_state: { + required: false, + serialized_name: 'windowsOsState', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info_fragment.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info_fragment.rb new file mode 100644 index 0000000000..eef849d1be --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info_fragment.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Information about a Windows OS. + # + class WindowsOsInfoFragment + + include MsRestAzure + + # @return [WindowsOsState] The state of the Windows OS (i.e. + # NonSysprepped, SysprepRequested, SysprepApplied). Possible values + # include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied' + attr_accessor :windows_os_state + + + # + # Mapper for WindowsOsInfoFragment class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'WindowsOsInfoFragment', + type: { + name: 'Composite', + class_name: 'WindowsOsInfoFragment', + model_properties: { + windows_os_state: { + required: false, + serialized_name: 'windowsOsState', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb new file mode 100644 index 0000000000..30efe651c1 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_state.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::DevTestLabs::Mgmt::V2018_09_15 + module Models + # + # Defines values for WindowsOsState + # + module WindowsOsState + NonSysprepped = "NonSysprepped" + SysprepRequested = "SysprepRequested" + SysprepApplied = "SysprepApplied" + end + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/module_definition.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/module_definition.rb new file mode 100644 index 0000000000..870485f7a4 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/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::DevTestLabs end +module Azure::DevTestLabs::Mgmt end +module Azure::DevTestLabs::Mgmt::V2018_09_15 end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/notification_channels.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/notification_channels.rb new file mode 100644 index 0000000000..ed9b734a74 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/notification_channels.rb @@ -0,0 +1,768 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class NotificationChannels + include MsRestAzure + + # + # Creates and initializes a new instance of the NotificationChannels class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List notification channels in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=webHookUrl)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List notification channels in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=webHookUrl)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List notification channels in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=webHookUrl)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/notificationchannels' + + 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,'labName' => lab_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::NotificationChannelList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 notification channel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=webHookUrl)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NotificationChannel] operation results. + # + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get notification channel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=webHookUrl)' + # @param custom_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, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + end + + # + # Get notification channel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=webHookUrl)' + # @param [Hash{String => String}] 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, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/notificationchannels/{name}' + + 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,'labName' => lab_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::NotificationChannel.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing notificationChannel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param notification_channel [NotificationChannel] A notification. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NotificationChannel] operation results. + # + def create_or_update(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing notificationChannel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param notification_channel [NotificationChannel] A notification. + # @param custom_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, lab_name, name, notification_channel, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! + end + + # + # Create or replace an existing notificationChannel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param notification_channel [NotificationChannel] A notification. + # @param [Hash{String => String}] 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, lab_name, name, notification_channel, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'notification_channel is nil' if notification_channel.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::NotificationChannel.mapper() + request_content = @client.serialize(request_mapper, notification_channel) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::NotificationChannel.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::NotificationChannel.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 notification channel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Delete notification channel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param custom_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, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Delete notification channel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param [Hash{String => String}] 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, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/notificationchannels/{name}' + + 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,'labName' => lab_name,'name' => name}, + 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 + + # + # Modify properties of notification channels. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param notification_channel [NotificationChannelFragment] A notification. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NotificationChannel] operation results. + # + def update(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of notification channels. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param notification_channel [NotificationChannelFragment] A notification. + # @param custom_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, lab_name, name, notification_channel, custom_headers = nil) + update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! + end + + # + # Modify properties of notification channels. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param notification_channel [NotificationChannelFragment] A notification. + # @param [Hash{String => String}] 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, lab_name, name, notification_channel, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'notification_channel is nil' if notification_channel.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::NotificationChannelFragment.mapper() + request_content = @client.serialize(request_mapper, notification_channel) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::NotificationChannel.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Send notification to provided channel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param notify_parameters [NotifyParameters] Properties for generating a + # Notification. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def notify(resource_group_name, lab_name, name, notify_parameters, custom_headers = nil) + response = notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers).value! + nil + end + + # + # Send notification to provided channel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param notify_parameters [NotifyParameters] Properties for generating a + # Notification. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def notify_with_http_info(resource_group_name, lab_name, name, notify_parameters, custom_headers = nil) + notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers).value! + end + + # + # Send notification to provided channel. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the notificationChannel. + # @param notify_parameters [NotifyParameters] Properties for generating a + # Notification. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def notify_async(resource_group_name, lab_name, name, notify_parameters, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'notify_parameters is nil' if notify_parameters.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::NotifyParameters.mapper() + request_content = @client.serialize(request_mapper, notify_parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}/notify' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # List notification channels in a given lab. + # + # @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 [NotificationChannelList] 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 + + # + # List notification channels in a given lab. + # + # @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 + + # + # List notification channels in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::NotificationChannelList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 notification channels in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=webHookUrl)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NotificationChannelList] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/operations.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/operations.rb new file mode 100644 index 0000000000..a256b196b7 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/operations.rb @@ -0,0 +1,116 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Operations + include MsRestAzure + + # + # Creates and initializes a new instance of the Operations class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # Get operation. + # + # @param location_name [String] The name of the location. + # @param name [String] The name of the operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationResult] operation results. + # + def get(location_name, name, custom_headers = nil) + response = get_async(location_name, name, custom_headers).value! + response.body unless response.nil? + end + + # + # Get operation. + # + # @param location_name [String] The name of the location. + # @param name [String] The name of the 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 get_with_http_info(location_name, name, custom_headers = nil) + get_async(location_name, name, custom_headers).value! + end + + # + # Get operation. + # + # @param location_name [String] The name of the location. + # @param name [String] The name of the 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 get_async(location_name, name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'location_name is nil' if location_name.nil? + fail ArgumentError, 'name is nil' if 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}/providers/Microsoft.DevTestLab/locations/{locationName}/operations/{name}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'locationName' => location_name,'name' => 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::DevTestLabs::Mgmt::V2018_09_15::Models::OperationResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policies.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policies.rb new file mode 100644 index 0000000000..433efb3a8d --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policies.rb @@ -0,0 +1,688 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Policies + include MsRestAzure + + # + # Creates and initializes a new instance of the Policies class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List policies in a given policy set. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, policy_set_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List policies in a given policy set. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, policy_set_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List policies in a given policy set. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'policy_set_name is nil' if policy_set_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.DevTestLab/labs/{labName}/policysets/{policySetName}/policies' + + 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,'labName' => lab_name,'policySetName' => policy_set_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::PolicyList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Policy] operation results. + # + def get(resource_group_name, lab_name, policy_set_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, policy_set_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param custom_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, lab_name, policy_set_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, policy_set_name, name, expand, custom_headers).value! + end + + # + # Get policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param [Hash{String => String}] 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, lab_name, policy_set_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'policy_set_name is nil' if policy_set_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}' + + 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,'labName' => lab_name,'policySetName' => policy_set_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Policy.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param policy [Policy] A Policy. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Policy] operation results. + # + def create_or_update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param policy [Policy] A Policy. + # @param custom_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, lab_name, policy_set_name, name, policy, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! + end + + # + # Create or replace an existing policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param policy [Policy] A Policy. + # @param [Hash{String => String}] 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, lab_name, policy_set_name, name, policy, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'policy_set_name is nil' if policy_set_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'policy is nil' if policy.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Policy.mapper() + request_content = @client.serialize(request_mapper, policy) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}' + + 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,'labName' => lab_name,'policySetName' => policy_set_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::Policy.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::Policy.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, lab_name, policy_set_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers).value! + nil + end + + # + # Delete policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param custom_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, lab_name, policy_set_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers).value! + end + + # + # Delete policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param [Hash{String => String}] 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, lab_name, policy_set_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'policy_set_name is nil' if policy_set_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}' + + 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,'labName' => lab_name,'policySetName' => policy_set_name,'name' => name}, + 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 + + # + # Modify properties of policies. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param policy [PolicyFragment] A Policy. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Policy] operation results. + # + def update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) + response = update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of policies. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param policy [PolicyFragment] A Policy. + # @param custom_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, lab_name, policy_set_name, name, policy, custom_headers = nil) + update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! + end + + # + # Modify properties of policies. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param name [String] The name of the policy. + # @param policy [PolicyFragment] A Policy. + # @param [Hash{String => String}] 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, lab_name, policy_set_name, name, policy, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'policy_set_name is nil' if policy_set_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'policy is nil' if policy.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::PolicyFragment.mapper() + request_content = @client.serialize(request_mapper, policy) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{policySetName}/policies/{name}' + + 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,'labName' => lab_name,'policySetName' => policy_set_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::Policy.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 policies in a given policy set. + # + # @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 [PolicyList] 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 + + # + # List policies in a given policy set. + # + # @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 + + # + # List policies in a given policy set. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::PolicyList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 policies in a given policy set. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param policy_set_name [String] The name of the policy set. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=description)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, policy_set_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policy_sets.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policy_sets.rb new file mode 100644 index 0000000000..3fc61f73d3 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policy_sets.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::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class PolicySets + include MsRestAzure + + # + # Creates and initializes a new instance of the PolicySets class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # Evaluates lab policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the policy set. + # @param evaluate_policies_request [EvaluatePoliciesRequest] Request body for + # evaluating a policy set. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EvaluatePoliciesResponse] operation results. + # + def evaluate_policies(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers = nil) + response = evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers).value! + response.body unless response.nil? + end + + # + # Evaluates lab policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the policy set. + # @param evaluate_policies_request [EvaluatePoliciesRequest] Request body for + # evaluating a policy set. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def evaluate_policies_with_http_info(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers = nil) + evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers).value! + end + + # + # Evaluates lab policy. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the policy set. + # @param evaluate_policies_request [EvaluatePoliciesRequest] Request body for + # evaluating a policy set. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'evaluate_policies_request is nil' if evaluate_policies_request.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::EvaluatePoliciesRequest.mapper() + request_content = @client.serialize(request_mapper, evaluate_policies_request) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies' + + 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,'labName' => lab_name,'name' => 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 == 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::DevTestLabs::Mgmt::V2018_09_15::Models::EvaluatePoliciesResponse.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/provider_operations.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/provider_operations.rb new file mode 100644 index 0000000000..28c490e8ca --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/provider_operations.rb @@ -0,0 +1,213 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class ProviderOperations + include MsRestAzure + + # + # Creates and initializes a new instance of the ProviderOperations class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # Result of the request to list REST API operations + # + # @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 + + # + # Result of the request to list REST API operations + # + # @param custom_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 + + # + # Result of the request to list REST API operations + # + # @param [Hash{String => String}] 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.DevTestLab/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::DevTestLabs::Mgmt::V2018_09_15::Models::ProviderOperationResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Result of the request to list REST 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 [ProviderOperationResult] 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 + + # + # Result of the request to list REST 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_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Result of the request to list REST 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_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::DevTestLabs::Mgmt::V2018_09_15::Models::ProviderOperationResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Result of the request to list REST API operations + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ProviderOperationResult] 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/schedules.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/schedules.rb new file mode 100644 index 0000000000..da6a2e39a3 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/schedules.rb @@ -0,0 +1,995 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Schedules + include MsRestAzure + + # + # Creates and initializes a new instance of the Schedules class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List schedules in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List schedules in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List schedules in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/schedules' + + 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,'labName' => lab_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param custom_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, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + end + + # + # Get schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param [Hash{String => String}] 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, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/schedules/{name}' + + 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,'labName' => lab_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def create_or_update(resource_group_name, lab_name, name, schedule, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param custom_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, lab_name, name, schedule, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! + end + + # + # Create or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param [Hash{String => String}] 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, lab_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'schedule is nil' if schedule.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + request_content = @client.serialize(request_mapper, schedule) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Delete schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param custom_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, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Delete schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param [Hash{String => String}] 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, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/schedules/{name}' + + 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,'labName' => lab_name,'name' => name}, + 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 + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def update(resource_group_name, lab_name, name, schedule, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param custom_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, lab_name, name, schedule, custom_headers = nil) + update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! + end + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param [Hash{String => String}] 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, lab_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'schedule is nil' if schedule.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleFragment.mapper() + request_content = @client.serialize(request_mapper, schedule) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/schedules/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def execute(resource_group_name, lab_name, name, custom_headers = nil) + response = execute_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @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 execute_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_execute_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Lists all applicable schedules + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @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_applicable(resource_group_name, lab_name, name, custom_headers = nil) + first_page = list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers) + first_page.get_all_items + end + + # + # Lists all applicable schedules + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param custom_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_applicable_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + list_applicable_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Lists all applicable schedules + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param [Hash{String => String}] 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_applicable_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/schedules/{name}/listApplicable' + + 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,'labName' => lab_name,'name' => 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 == 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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_execute(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_execute_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param custom_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_execute_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_execute_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param [Hash{String => String}] 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_execute_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/schedules/{name}/execute' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # List schedules in a given lab. + # + # @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 [ScheduleList] 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 + + # + # List schedules in a given lab. + # + # @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 + + # + # List schedules in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 applicable schedules + # + # @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 [ScheduleList] operation results. + # + def list_applicable_next(next_page_link, custom_headers = nil) + response = list_applicable_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all applicable schedules + # + # @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_applicable_next_with_http_info(next_page_link, custom_headers = nil) + list_applicable_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all applicable schedules + # + # @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_applicable_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(: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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedules in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ScheduleList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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 + + # + # Lists all applicable schedules + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ScheduleList] which provide lazy access to pages of the response. + # + def list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers = nil) + response = list_applicable_async(resource_group_name, lab_name, name, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_applicable_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/secrets.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/secrets.rb new file mode 100644 index 0000000000..1620f806d8 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/secrets.rb @@ -0,0 +1,740 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Secrets + include MsRestAzure + + # + # Creates and initializes a new instance of the Secrets class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List secrets in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=value)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List secrets in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=value)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List secrets in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=value)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_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.DevTestLab/labs/{labName}/users/{userName}/secrets' + + 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,'labName' => lab_name,'userName' => user_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::SecretList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 secret. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=value)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Secret] operation results. + # + def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get secret. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=value)' + # @param custom_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, lab_name, user_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + end + + # + # Get secret. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=value)' + # @param [Hash{String => String}] 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, lab_name, user_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Secret.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing secret. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param secret [Secret] A secret. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Secret] operation results. + # + def create_or_update(resource_group_name, lab_name, user_name, name, secret, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param secret [Secret] A secret. + # @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, lab_name, user_name, name, secret, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Secret.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 + + # + # Delete secret. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # Delete secret. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param custom_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, lab_name, user_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + end + + # + # Delete secret. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param [Hash{String => String}] 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, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => name}, + 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 + + # + # Modify properties of secrets. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param secret [SecretFragment] A secret. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Secret] operation results. + # + def update(resource_group_name, lab_name, user_name, name, secret, custom_headers = nil) + response = update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of secrets. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param secret [SecretFragment] A secret. + # @param custom_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, lab_name, user_name, name, secret, custom_headers = nil) + update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers).value! + end + + # + # Modify properties of secrets. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param secret [SecretFragment] A secret. + # @param [Hash{String => String}] 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, lab_name, user_name, name, secret, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'secret is nil' if secret.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::SecretFragment.mapper() + request_content = @client.serialize(request_mapper, secret) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::Secret.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing secret. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param secret [Secret] A secret. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Secret] operation results. + # + def begin_create_or_update(resource_group_name, lab_name, user_name, name, secret, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing secret. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param secret [Secret] A secret. + # @param custom_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, lab_name, user_name, name, secret, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers).value! + end + + # + # Create or replace an existing secret. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the secret. + # @param secret [Secret] A secret. + # @param [Hash{String => String}] 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, lab_name, user_name, name, secret, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'secret is nil' if secret.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Secret.mapper() + request_content = @client.serialize(request_mapper, secret) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/secrets/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::Secret.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::Secret.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 secrets in a given user profile. + # + # @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 [SecretList] 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 + + # + # List secrets in a given user profile. + # + # @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 + + # + # List secrets in a given user profile. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::SecretList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 secrets in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=value)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SecretList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabric_schedules.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabric_schedules.rb new file mode 100644 index 0000000000..de14dfd725 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabric_schedules.rb @@ -0,0 +1,845 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class ServiceFabricSchedules + include MsRestAzure + + # + # Creates and initializes a new instance of the ServiceFabricSchedules class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List schedules in a given service fabric. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, user_name, service_fabric_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, service_fabric_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List schedules in a given service fabric. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, user_name, service_fabric_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, user_name, service_fabric_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List schedules in a given service fabric. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, user_name, service_fabric_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'service_fabric_name is nil' if service_fabric_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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules' + + 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,'labName' => lab_name,'userName' => user_name,'serviceFabricName' => service_fabric_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def get(resource_group_name, lab_name, user_name, service_fabric_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, user_name, service_fabric_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param custom_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, lab_name, user_name, service_fabric_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, user_name, service_fabric_name, name, expand, custom_headers).value! + end + + # + # Get schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param [Hash{String => String}] 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, lab_name, user_name, service_fabric_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'service_fabric_name is nil' if service_fabric_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'serviceFabricName' => service_fabric_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def create_or_update(resource_group_name, lab_name, user_name, service_fabric_name, name, schedule, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, service_fabric_name, name, schedule, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param custom_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, lab_name, user_name, service_fabric_name, name, schedule, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, user_name, service_fabric_name, name, schedule, custom_headers).value! + end + + # + # Create or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param [Hash{String => String}] 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, lab_name, user_name, service_fabric_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'service_fabric_name is nil' if service_fabric_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'schedule is nil' if schedule.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + request_content = @client.serialize(request_mapper, schedule) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'serviceFabricName' => service_fabric_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers).value! + nil + end + + # + # Delete schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param custom_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, lab_name, user_name, service_fabric_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers).value! + end + + # + # Delete schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param [Hash{String => String}] 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, lab_name, user_name, service_fabric_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'service_fabric_name is nil' if service_fabric_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'serviceFabricName' => service_fabric_name,'name' => name}, + 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 + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def update(resource_group_name, lab_name, user_name, service_fabric_name, name, schedule, custom_headers = nil) + response = update_async(resource_group_name, lab_name, user_name, service_fabric_name, name, schedule, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param custom_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, lab_name, user_name, service_fabric_name, name, schedule, custom_headers = nil) + update_async(resource_group_name, lab_name, user_name, service_fabric_name, name, schedule, custom_headers).value! + end + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param [Hash{String => String}] 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, lab_name, user_name, service_fabric_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'service_fabric_name is nil' if service_fabric_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'schedule is nil' if schedule.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleFragment.mapper() + request_content = @client.serialize(request_mapper, schedule) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'serviceFabricName' => service_fabric_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def execute(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers = nil) + response = execute_async(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @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 execute_async(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers = nil) + # Send request + promise = begin_execute_async(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_execute(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers = nil) + response = begin_execute_async(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers).value! + nil + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param custom_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_execute_with_http_info(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers = nil) + begin_execute_async(resource_group_name, lab_name, user_name, service_fabric_name, name, custom_headers).value! + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param name [String] The name of the schedule. + # @param [Hash{String => String}] 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_execute_async(resource_group_name, lab_name, user_name, service_fabric_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'service_fabric_name is nil' if service_fabric_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{serviceFabricName}/schedules/{name}/execute' + + 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,'labName' => lab_name,'userName' => user_name,'serviceFabricName' => service_fabric_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # List schedules in a given service fabric. + # + # @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 [ScheduleList] 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 + + # + # List schedules in a given service fabric. + # + # @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 + + # + # List schedules in a given service fabric. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedules in a given service fabric. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param service_fabric_name [String] The name of the service Fabric. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ScheduleList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, user_name, service_fabric_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, user_name, service_fabric_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabrics.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabrics.rb new file mode 100644 index 0000000000..0ef246c806 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabrics.rb @@ -0,0 +1,1142 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class ServiceFabrics + include MsRestAzure + + # + # Creates and initializes a new instance of the ServiceFabrics class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List service fabrics in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=applicableSchedule)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List service fabrics in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=applicableSchedule)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List service fabrics in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=applicableSchedule)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics' + + 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,'labName' => lab_name,'userName' => user_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceFabricList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 service fabric. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=applicableSchedule)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ServiceFabric] operation results. + # + def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get service fabric. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=applicableSchedule)' + # @param custom_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, lab_name, user_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + end + + # + # Get service fabric. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=applicableSchedule)' + # @param [Hash{String => String}] 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, lab_name, user_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceFabric.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing Service Fabric. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param service_fabric [ServiceFabric] A Service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ServiceFabric] operation results. + # + def create_or_update(resource_group_name, lab_name, user_name, name, service_fabric, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, service_fabric, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param service_fabric [ServiceFabric] A Service Fabric. + # @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, lab_name, user_name, name, service_fabric, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, service_fabric, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceFabric.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 + + # + # Delete service fabric. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @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 delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + # Send request + promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Modify properties of service fabrics. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param service_fabric [ServiceFabricFragment] A Service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ServiceFabric] operation results. + # + def update(resource_group_name, lab_name, user_name, name, service_fabric, custom_headers = nil) + response = update_async(resource_group_name, lab_name, user_name, name, service_fabric, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of service fabrics. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param service_fabric [ServiceFabricFragment] A Service Fabric. + # @param custom_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, lab_name, user_name, name, service_fabric, custom_headers = nil) + update_async(resource_group_name, lab_name, user_name, name, service_fabric, custom_headers).value! + end + + # + # Modify properties of service fabrics. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param service_fabric [ServiceFabricFragment] A Service Fabric. + # @param [Hash{String => String}] 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, lab_name, user_name, name, service_fabric, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'service_fabric is nil' if service_fabric.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceFabricFragment.mapper() + request_content = @client.serialize(request_mapper, service_fabric) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceFabric.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 applicable start/stop schedules, if any. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicableSchedule] operation results. + # + def list_applicable_schedules(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = list_applicable_schedules_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists the applicable start/stop schedules, if any. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_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_applicable_schedules_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) + list_applicable_schedules_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + end + + # + # Lists the applicable start/stop schedules, if any. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param [Hash{String => String}] 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_applicable_schedules_async(resource_group_name, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/listApplicableSchedules' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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 == 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::DevTestLabs::Mgmt::V2018_09_15::Models::ApplicableSchedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Start a service fabric. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def start(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = start_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @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 start_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + # Send request + promise = begin_start_async(resource_group_name, lab_name, user_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Stop a service fabric This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def stop(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = stop_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @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 stop_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + # Send request + promise = begin_stop_async(resource_group_name, lab_name, user_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Create or replace an existing Service Fabric. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param service_fabric [ServiceFabric] A Service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ServiceFabric] operation results. + # + def begin_create_or_update(resource_group_name, lab_name, user_name, name, service_fabric, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, service_fabric, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing Service Fabric. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param service_fabric [ServiceFabric] A Service Fabric. + # @param custom_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, lab_name, user_name, name, service_fabric, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, user_name, name, service_fabric, custom_headers).value! + end + + # + # Create or replace an existing Service Fabric. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param service_fabric [ServiceFabric] A Service Fabric. + # @param [Hash{String => String}] 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, lab_name, user_name, name, service_fabric, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'service_fabric is nil' if service_fabric.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceFabric.mapper() + request_content = @client.serialize(request_mapper, service_fabric) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceFabric.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceFabric.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 service fabric. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # Delete service fabric. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_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_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + end + + # + # Delete service fabric. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param [Hash{String => String}] 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_delete_async(resource_group_name, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}' + + 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,'labName' => lab_name,'userName' => user_name,'name' => name}, + 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 == 202 || 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 + + # + # Start a service fabric. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_start(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = begin_start_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # Start a service fabric. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_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_start_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) + begin_start_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + end + + # + # Start a service fabric. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param [Hash{String => String}] 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_start_async(resource_group_name, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/start' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Stop a service fabric This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_stop(resource_group_name, lab_name, user_name, name, custom_headers = nil) + response = begin_stop_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + nil + end + + # + # Stop a service fabric This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param custom_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_stop_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) + begin_stop_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + end + + # + # Stop a service fabric This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param name [String] The name of the service Fabric. + # @param [Hash{String => String}] 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_stop_async(resource_group_name, lab_name, user_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'user_name is nil' if user_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}/stop' + + 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,'labName' => lab_name,'userName' => user_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # List service fabrics in a given user profile. + # + # @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 [ServiceFabricList] 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 + + # + # List service fabrics in a given user profile. + # + # @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 + + # + # List service fabrics in a given user profile. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceFabricList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 service fabrics in a given user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param user_name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=applicableSchedule)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ServiceFabricList] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_runners.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_runners.rb new file mode 100644 index 0000000000..4b5f4417b5 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_runners.rb @@ -0,0 +1,549 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class ServiceRunners + include MsRestAzure + + # + # Creates and initializes a new instance of the ServiceRunners class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List service runners in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List service runners in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, filter, top, orderby, custom_headers).value! + end + + # + # List service runners in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/servicerunners' + + 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,'labName' => lab_name}, + query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceRunnerList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 service runner. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the service runner. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ServiceRunner] operation results. + # + def get(resource_group_name, lab_name, name, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, custom_headers).value! + response.body unless response.nil? + end + + # + # Get service runner. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the service runner. + # @param custom_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, lab_name, name, custom_headers = nil) + get_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Get service runner. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the service runner. + # @param [Hash{String => String}] 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, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/servicerunners/{name}' + + 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,'labName' => lab_name,'name' => 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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceRunner.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing Service runner. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the service runner. + # @param service_runner [ServiceRunner] A container for a managed identity to + # execute DevTest lab services. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ServiceRunner] operation results. + # + def create_or_update(resource_group_name, lab_name, name, service_runner, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing Service runner. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the service runner. + # @param service_runner [ServiceRunner] A container for a managed identity to + # execute DevTest lab services. + # @param custom_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, lab_name, name, service_runner, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers).value! + end + + # + # Create or replace an existing Service runner. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the service runner. + # @param service_runner [ServiceRunner] A container for a managed identity to + # execute DevTest lab services. + # @param [Hash{String => String}] 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, lab_name, name, service_runner, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'service_runner is nil' if service_runner.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceRunner.mapper() + request_content = @client.serialize(request_mapper, service_runner) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceRunner.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceRunner.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 service runner. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the service runner. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Delete service runner. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the service runner. + # @param custom_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, lab_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Delete service runner. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the service runner. + # @param [Hash{String => String}] 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, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/servicerunners/{name}' + + 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,'labName' => lab_name,'name' => name}, + 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 service runners in a given lab. + # + # @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 [ServiceRunnerList] 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 + + # + # List service runners in a given lab. + # + # @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 + + # + # List service runners in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::ServiceRunnerList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 service runners in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ServiceRunnerList] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/users.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/users.rb new file mode 100644 index 0000000000..e5e0ecb279 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/users.rb @@ -0,0 +1,757 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class Users + include MsRestAzure + + # + # Creates and initializes a new instance of the Users class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List user profiles in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=identity)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List user profiles in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=identity)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List user profiles in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=identity)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/users' + + 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,'labName' => lab_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::UserList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=identity)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [User] operation results. + # + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=identity)' + # @param custom_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, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + end + + # + # Get user profile. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=identity)' + # @param [Hash{String => String}] 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, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{name}' + + 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,'labName' => lab_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::User.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing user profile. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param user [User] Profile of a lab user. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [User] operation results. + # + def create_or_update(resource_group_name, lab_name, name, user, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, user, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param user [User] Profile of a lab user. + # @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, lab_name, name, user, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, lab_name, name, user, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::User.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 + + # + # Delete user profile. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @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 delete_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Modify properties of user profiles. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param user [UserFragment] Profile of a lab user. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [User] operation results. + # + def update(resource_group_name, lab_name, name, user, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, user, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of user profiles. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param user [UserFragment] Profile of a lab 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 update_with_http_info(resource_group_name, lab_name, name, user, custom_headers = nil) + update_async(resource_group_name, lab_name, name, user, custom_headers).value! + end + + # + # Modify properties of user profiles. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param user [UserFragment] Profile of a lab 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 update_async(resource_group_name, lab_name, name, user, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'user is nil' if user.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::UserFragment.mapper() + request_content = @client.serialize(request_mapper, user) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::User.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing user profile. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param user [User] Profile of a lab user. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [User] operation results. + # + def begin_create_or_update(resource_group_name, lab_name, name, user, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, user, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing user profile. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param user [User] Profile of a lab 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 begin_create_or_update_with_http_info(resource_group_name, lab_name, name, user, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, name, user, custom_headers).value! + end + + # + # Create or replace an existing user profile. This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param user [User] Profile of a lab 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 begin_create_or_update_async(resource_group_name, lab_name, name, user, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'user is nil' if user.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::User.mapper() + request_content = @client.serialize(request_mapper, user) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::User.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::User.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 user profile. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Delete user profile. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param custom_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_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Delete user profile. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the user profile. + # @param [Hash{String => String}] 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_delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/users/{name}' + + 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,'labName' => lab_name,'name' => name}, + 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 == 202 || 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 user profiles in a given lab. + # + # @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 [UserList] 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 + + # + # List user profiles in a given lab. + # + # @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 + + # + # List user profiles in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::UserList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 user profiles in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=identity)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/version.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/version.rb new file mode 100644 index 0000000000..fb1fc3cfc7 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/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::DevTestLabs::Mgmt::V2018_09_15 + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb new file mode 100644 index 0000000000..5dc8705cd3 --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.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::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class VirtualMachineSchedules + include MsRestAzure + + # + # Creates and initializes a new instance of the VirtualMachineSchedules class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List schedules in a given virtual machine. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List schedules in a given virtual machine. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List schedules in a given virtual machine. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_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.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules' + + 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,'labName' => lab_name,'virtualMachineName' => virtual_machine_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def get(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param custom_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, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value! + end + + # + # Get schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param [Hash{String => String}] 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, lab_name, virtual_machine_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}' + + 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,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def create_or_update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param custom_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, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! + end + + # + # Create or replace an existing schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param schedule [Schedule] A schedule. + # @param [Hash{String => String}] 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, lab_name, virtual_machine_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'schedule is nil' if schedule.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + request_content = @client.serialize(request_mapper, schedule) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}' + + 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,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + nil + end + + # + # Delete schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param custom_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, lab_name, virtual_machine_name, name, custom_headers = nil) + delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + end + + # + # Delete schedule. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param [Hash{String => String}] 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, lab_name, virtual_machine_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}' + + 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,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => name}, + 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 + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Schedule] operation results. + # + def update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + response = update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param custom_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, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! + end + + # + # Modify properties of schedules. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param schedule [ScheduleFragment] A schedule. + # @param [Hash{String => String}] 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, lab_name, virtual_machine_name, name, schedule, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'schedule is nil' if schedule.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleFragment.mapper() + request_content = @client.serialize(request_mapper, schedule) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}' + + 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,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::Schedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + response = execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @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 execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + # Send request + promise = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + response = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + nil + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param custom_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_execute_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + end + + # + # Execute a schedule. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param name [String] The name of the schedule. + # @param [Hash{String => String}] 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_execute_async(resource_group_name, lab_name, virtual_machine_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'virtual_machine_name is nil' if virtual_machine_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{virtualMachineName}/schedules/{name}/execute' + + 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,'labName' => lab_name,'virtualMachineName' => virtual_machine_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # List schedules in a given virtual machine. + # + # @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 [ScheduleList] 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 + + # + # List schedules in a given virtual machine. + # + # @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 + + # + # List schedules in a given virtual machine. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::ScheduleList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 schedules in a given virtual machine. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param virtual_machine_name [String] The name of the virtual machine. + # @param expand [String] Specify the $expand query. Example: + # 'properties($select=status)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ScheduleList] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb new file mode 100644 index 0000000000..963505c2dd --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb @@ -0,0 +1,2424 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class VirtualMachines + include MsRestAzure + + # + # Creates and initializes a new instance of the VirtualMachines class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List virtual machines in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List virtual machines in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List virtual machines in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/virtualmachines' + + 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,'labName' => lab_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachineList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 virtual machine. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabVirtualMachine] operation results. + # + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get virtual machine. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + # @param custom_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, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + end + + # + # Get virtual machine. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + # @param [Hash{String => String}] 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, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}' + + 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,'labName' => lab_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachine.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing Virtual machine. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param lab_virtual_machine [LabVirtualMachine] A virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabVirtualMachine] operation results. + # + def create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param lab_virtual_machine [LabVirtualMachine] A virtual machine. + # @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, lab_name, name, lab_virtual_machine, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachine.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 + + # + # Delete virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @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 delete_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Modify properties of virtual machines. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param lab_virtual_machine [LabVirtualMachineFragment] A virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabVirtualMachine] operation results. + # + def update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of virtual machines. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param lab_virtual_machine [LabVirtualMachineFragment] A virtual machine. + # @param custom_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, lab_name, name, lab_virtual_machine, custom_headers = nil) + update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + end + + # + # Modify properties of virtual machines. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param lab_virtual_machine [LabVirtualMachineFragment] A virtual machine. + # @param [Hash{String => String}] 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, lab_name, name, lab_virtual_machine, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'lab_virtual_machine is nil' if lab_virtual_machine.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachineFragment.mapper() + request_content = @client.serialize(request_mapper, lab_virtual_machine) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachine.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Attach a new or existing data disk to virtual machine. This operation can + # take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param data_disk_properties [DataDiskProperties] Request body for adding a + # new or existing data disk to a virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) + response = add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param data_disk_properties [DataDiskProperties] Request body for adding a + # new or existing data disk to a virtual machine. + # @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 add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) + # Send request + promise = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Apply artifacts to virtual machine. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param apply_artifacts_request [ApplyArtifactsRequest] Request body for + # applying artifacts to a virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) + response = apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param apply_artifacts_request [ApplyArtifactsRequest] Request body for + # applying artifacts to a virtual machine. + # @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_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) + # Send request + promise = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Take ownership of an existing virtual machine This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def claim(resource_group_name, lab_name, name, custom_headers = nil) + response = claim_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @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 claim_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_claim_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Detach the specified disk from the virtual machine. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param detach_data_disk_properties [DetachDataDiskProperties] Request body + # for detaching data disk from a virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) + response = detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param detach_data_disk_properties [DetachDataDiskProperties] Request body + # for detaching data disk from a virtual machine. + # @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 detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) + # Send request + promise = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Gets a string that represents the contents of the RDP file for the virtual + # machine + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [RdpConnection] operation results. + # + def get_rdp_file_contents(resource_group_name, lab_name, name, custom_headers = nil) + response = get_rdp_file_contents_async(resource_group_name, lab_name, name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets a string that represents the contents of the RDP file for the virtual + # machine + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_rdp_file_contents_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + get_rdp_file_contents_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Gets a string that represents the contents of the RDP file for the virtual + # machine + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_rdp_file_contents_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}/getRdpFileContents' + + 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,'labName' => lab_name,'name' => 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 == 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::DevTestLabs::Mgmt::V2018_09_15::Models::RdpConnection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 applicable start/stop schedules, if any. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicableSchedule] operation results. + # + def list_applicable_schedules(resource_group_name, lab_name, name, custom_headers = nil) + response = list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists the applicable start/stop schedules, if any. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_applicable_schedules_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Lists the applicable start/stop schedules, if any. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_applicable_schedules_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules' + + 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,'labName' => lab_name,'name' => 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 == 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::DevTestLabs::Mgmt::V2018_09_15::Models::ApplicableSchedule.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Redeploy a virtual machine This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def redeploy(resource_group_name, lab_name, name, custom_headers = nil) + response = redeploy_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @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 redeploy_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_redeploy_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Resize Virtual Machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param resize_lab_virtual_machine_properties + # [ResizeLabVirtualMachineProperties] Request body for resizing a virtual + # machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def resize(resource_group_name, lab_name, name, resize_lab_virtual_machine_properties, custom_headers = nil) + response = resize_async(resource_group_name, lab_name, name, resize_lab_virtual_machine_properties, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param resize_lab_virtual_machine_properties + # [ResizeLabVirtualMachineProperties] Request body for resizing a virtual + # machine. + # @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 resize_async(resource_group_name, lab_name, name, resize_lab_virtual_machine_properties, custom_headers = nil) + # Send request + promise = begin_resize_async(resource_group_name, lab_name, name, resize_lab_virtual_machine_properties, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Restart a virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def restart(resource_group_name, lab_name, name, custom_headers = nil) + response = restart_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @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 restart_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_restart_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Start a virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def start(resource_group_name, lab_name, name, custom_headers = nil) + response = start_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @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 start_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_start_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Stop a virtual machine This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def stop(resource_group_name, lab_name, name, custom_headers = nil) + response = stop_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @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 stop_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_stop_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Transfers all data disks attached to the virtual machine to be owned by the + # current user. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def transfer_disks(resource_group_name, lab_name, name, custom_headers = nil) + response = transfer_disks_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @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 transfer_disks_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_transfer_disks_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Release ownership of an existing virtual machine This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def un_claim(resource_group_name, lab_name, name, custom_headers = nil) + response = un_claim_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @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 un_claim_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_un_claim_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Create or replace an existing Virtual machine. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param lab_virtual_machine [LabVirtualMachine] A virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabVirtualMachine] operation results. + # + def begin_create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing Virtual machine. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param lab_virtual_machine [LabVirtualMachine] A virtual machine. + # @param custom_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, lab_name, name, lab_virtual_machine, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + end + + # + # Create or replace an existing Virtual machine. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param lab_virtual_machine [LabVirtualMachine] A virtual machine. + # @param [Hash{String => String}] 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, lab_name, name, lab_virtual_machine, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'lab_virtual_machine is nil' if lab_virtual_machine.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachine.mapper() + request_content = @client.serialize(request_mapper, lab_virtual_machine) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachine.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachine.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Delete virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Delete virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}' + + 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,'labName' => lab_name,'name' => name}, + 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 == 202 || 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 + + # + # Attach a new or existing data disk to virtual machine. This operation can + # take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param data_disk_properties [DataDiskProperties] Request body for adding a + # new or existing data disk to a virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) + response = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value! + nil + end + + # + # Attach a new or existing data disk to virtual machine. This operation can + # take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param data_disk_properties [DataDiskProperties] Request body for adding a + # new or existing data disk to a virtual machine. + # @param custom_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_add_data_disk_with_http_info(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) + begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value! + end + + # + # Attach a new or existing data disk to virtual machine. This operation can + # take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param data_disk_properties [DataDiskProperties] Request body for adding a + # new or existing data disk to a virtual machine. + # @param [Hash{String => String}] 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_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'data_disk_properties is nil' if data_disk_properties.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::DataDiskProperties.mapper() + request_content = @client.serialize(request_mapper, data_disk_properties) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/addDataDisk' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Apply artifacts to virtual machine. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param apply_artifacts_request [ApplyArtifactsRequest] Request body for + # applying artifacts to a virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) + response = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value! + nil + end + + # + # Apply artifacts to virtual machine. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param apply_artifacts_request [ApplyArtifactsRequest] Request body for + # applying artifacts to a virtual machine. + # @param custom_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_artifacts_with_http_info(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) + begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value! + end + + # + # Apply artifacts to virtual machine. This operation can take a while to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param apply_artifacts_request [ApplyArtifactsRequest] Request body for + # applying artifacts to a virtual machine. + # @param [Hash{String => String}] 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_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'apply_artifacts_request is nil' if apply_artifacts_request.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ApplyArtifactsRequest.mapper() + request_content = @client.serialize(request_mapper, apply_artifacts_request) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/applyArtifacts' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Take ownership of an existing virtual machine This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_claim(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_claim_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Take ownership of an existing virtual machine This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_claim_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_claim_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Take ownership of an existing virtual machine This operation can take a while + # to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_claim_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}/claim' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Detach the specified disk from the virtual machine. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param detach_data_disk_properties [DetachDataDiskProperties] Request body + # for detaching data disk from a virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) + response = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value! + nil + end + + # + # Detach the specified disk from the virtual machine. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param detach_data_disk_properties [DetachDataDiskProperties] Request body + # for detaching data disk from a virtual machine. + # @param custom_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_detach_data_disk_with_http_info(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) + begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value! + end + + # + # Detach the specified disk from the virtual machine. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param detach_data_disk_properties [DetachDataDiskProperties] Request body + # for detaching data disk from a virtual machine. + # @param [Hash{String => String}] 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_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'detach_data_disk_properties is nil' if detach_data_disk_properties.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::DetachDataDiskProperties.mapper() + request_content = @client.serialize(request_mapper, detach_data_disk_properties) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/detachDataDisk' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Redeploy a virtual machine This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_redeploy(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_redeploy_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Redeploy a virtual machine This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_redeploy_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_redeploy_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Redeploy a virtual machine This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_redeploy_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}/redeploy' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Resize Virtual Machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param resize_lab_virtual_machine_properties + # [ResizeLabVirtualMachineProperties] Request body for resizing a virtual + # machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_resize(resource_group_name, lab_name, name, resize_lab_virtual_machine_properties, custom_headers = nil) + response = begin_resize_async(resource_group_name, lab_name, name, resize_lab_virtual_machine_properties, custom_headers).value! + nil + end + + # + # Resize Virtual Machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param resize_lab_virtual_machine_properties + # [ResizeLabVirtualMachineProperties] Request body for resizing a virtual + # machine. + # @param custom_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_resize_with_http_info(resource_group_name, lab_name, name, resize_lab_virtual_machine_properties, custom_headers = nil) + begin_resize_async(resource_group_name, lab_name, name, resize_lab_virtual_machine_properties, custom_headers).value! + end + + # + # Resize Virtual Machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param resize_lab_virtual_machine_properties + # [ResizeLabVirtualMachineProperties] Request body for resizing a virtual + # machine. + # @param [Hash{String => String}] 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_resize_async(resource_group_name, lab_name, name, resize_lab_virtual_machine_properties, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'resize_lab_virtual_machine_properties is nil' if resize_lab_virtual_machine_properties.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ResizeLabVirtualMachineProperties.mapper() + request_content = @client.serialize(request_mapper, resize_lab_virtual_machine_properties) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/resize' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Restart a virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_restart(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_restart_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Restart a virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_restart_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_restart_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Restart a virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_restart_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}/restart' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Start a virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_start(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_start_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Start a virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_start_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_start_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Start a virtual machine. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_start_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}/start' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Stop a virtual machine This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_stop(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_stop_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Stop a virtual machine This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_stop_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_stop_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Stop a virtual machine This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_stop_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}/stop' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Transfers all data disks attached to the virtual machine to be owned by the + # current user. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_transfer_disks(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_transfer_disks_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Transfers all data disks attached to the virtual machine to be owned by the + # current user. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_transfer_disks_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_transfer_disks_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Transfers all data disks attached to the virtual machine to be owned by the + # current user. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_transfer_disks_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}/transferDisks' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # Release ownership of an existing virtual machine This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_un_claim(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_un_claim_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Release ownership of an existing virtual machine This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param custom_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_un_claim_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_un_claim_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Release ownership of an existing virtual machine This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual machine. + # @param [Hash{String => String}] 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_un_claim_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualmachines/{name}/unClaim' + + 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,'labName' => lab_name,'name' => 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 == 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? + + result + end + + promise.execute + end + + # + # List virtual machines in a given lab. + # + # @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 [LabVirtualMachineList] 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 + + # + # List virtual machines in a given lab. + # + # @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 + + # + # List virtual machines in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::LabVirtualMachineList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 virtual machines in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LabVirtualMachineList] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb new file mode 100644 index 0000000000..aba93b096b --- /dev/null +++ b/management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb @@ -0,0 +1,758 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::DevTestLabs::Mgmt::V2018_09_15 + # + # The DevTest Labs Client. + # + class VirtualNetworks + include MsRestAzure + + # + # Creates and initializes a new instance of the VirtualNetworks class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [DevTestLabsClient] reference to the DevTestLabsClient + attr_reader :client + + # + # List virtual networks in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=externalSubnets)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + first_page.get_all_items + end + + # + # List virtual networks in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=externalSubnets)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + end + + # + # List virtual networks in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=externalSubnets)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param [Hash{String => String}] 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, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, 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, 'lab_name is nil' if lab_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.DevTestLab/labs/{labName}/virtualnetworks' + + 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,'labName' => lab_name}, + query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'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::DevTestLabs::Mgmt::V2018_09_15::Models::VirtualNetworkList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 virtual network. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=externalSubnets)' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [VirtualNetwork] operation results. + # + def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + response.body unless response.nil? + end + + # + # Get virtual network. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=externalSubnets)' + # @param custom_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, lab_name, name, expand = nil, custom_headers = nil) + get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + end + + # + # Get virtual network. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=externalSubnets)' + # @param [Hash{String => String}] 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, lab_name, name, expand = nil, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualnetworks/{name}' + + 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,'labName' => lab_name,'name' => name}, + query_params: {'$expand' => expand,'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::DevTestLabs::Mgmt::V2018_09_15::Models::VirtualNetwork.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing virtual network. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param virtual_network [VirtualNetwork] A virtual network. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [VirtualNetwork] operation results. + # + def create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + response = create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param virtual_network [VirtualNetwork] A virtual network. + # @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, lab_name, name, virtual_network, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::VirtualNetwork.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 + + # + # Delete virtual network. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def delete(resource_group_name, lab_name, name, custom_headers = nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @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 delete_async(resource_group_name, lab_name, name, custom_headers = nil) + # Send request + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Modify properties of virtual networks. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param virtual_network [VirtualNetworkFragment] A virtual network. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [VirtualNetwork] operation results. + # + def update(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + response = update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + response.body unless response.nil? + end + + # + # Modify properties of virtual networks. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param virtual_network [VirtualNetworkFragment] A virtual network. + # @param custom_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, lab_name, name, virtual_network, custom_headers = nil) + update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + end + + # + # Modify properties of virtual networks. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param virtual_network [VirtualNetworkFragment] A virtual network. + # @param [Hash{String => String}] 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, lab_name, name, virtual_network, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'virtual_network is nil' if virtual_network.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::VirtualNetworkFragment.mapper() + request_content = @client.serialize(request_mapper, virtual_network) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 + 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::DevTestLabs::Mgmt::V2018_09_15::Models::VirtualNetwork.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 or replace an existing virtual network. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param virtual_network [VirtualNetwork] A virtual network. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [VirtualNetwork] operation results. + # + def begin_create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or replace an existing virtual network. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param virtual_network [VirtualNetwork] A virtual network. + # @param custom_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, lab_name, name, virtual_network, custom_headers = nil) + begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + end + + # + # Create or replace an existing virtual network. This operation can take a + # while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param virtual_network [VirtualNetwork] A virtual network. + # @param [Hash{String => String}] 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, lab_name, name, virtual_network, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'virtual_network is nil' if virtual_network.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? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::VirtualNetwork.mapper() + request_content = @client.serialize(request_mapper, virtual_network) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name}' + + 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,'labName' => lab_name,'name' => 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(: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 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::DevTestLabs::Mgmt::V2018_09_15::Models::VirtualNetwork.mapper() + result.body = @client.deserialize(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::DevTestLabs::Mgmt::V2018_09_15::Models::VirtualNetwork.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 virtual network. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + nil + end + + # + # Delete virtual network. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param custom_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_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + end + + # + # Delete virtual network. This operation can take a while to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param name [String] The name of the virtual network. + # @param [Hash{String => String}] 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_delete_async(resource_group_name, lab_name, 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, 'lab_name is nil' if lab_name.nil? + fail ArgumentError, 'name is nil' if 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.DevTestLab/labs/{labName}/virtualnetworks/{name}' + + 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,'labName' => lab_name,'name' => name}, + 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 == 202 || 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 virtual networks in a given lab. + # + # @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 [VirtualNetworkList] 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 + + # + # List virtual networks in a given lab. + # + # @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 + + # + # List virtual networks in a given lab. + # + # @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::DevTestLabs::Mgmt::V2018_09_15::Models::VirtualNetworkList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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 virtual networks in a given lab. + # + # @param resource_group_name [String] The name of the resource group. + # @param lab_name [String] The name of the lab. + # @param expand [String] Specify the $expand query. Example: + # 'properties($expand=externalSubnets)' + # @param filter [String] The filter to apply to the operation. Example: + # '$filter=contains(name,'myName') + # @param top [Integer] The maximum number of resources to return from the + # operation. Example: '$top=10' + # @param orderby [String] The ordering expression for the results, using OData + # notation. Example: '$orderby=name desc' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [VirtualNetworkList] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, 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_devtestlabs/lib/azure_mgmt_devtestlabs.rb b/management/azure_mgmt_devtestlabs/lib/azure_mgmt_devtestlabs.rb index fbc4ce88e3..66bbbabfdb 100644 --- a/management/azure_mgmt_devtestlabs/lib/azure_mgmt_devtestlabs.rb +++ b/management/azure_mgmt_devtestlabs/lib/azure_mgmt_devtestlabs.rb @@ -3,4 +3,5 @@ # Licensed under the MIT License. See License.txt in the project root for license information. require '2016-05-15/generated/azure_mgmt_devtestlabs' +require '2018-09-15/generated/azure_mgmt_devtestlabs' require 'profiles/latest/devtestlabs_latest_profile_client' diff --git a/management/azure_mgmt_devtestlabs/lib/profiles/latest/modules/devtestlabs_profile_module.rb b/management/azure_mgmt_devtestlabs/lib/profiles/latest/modules/devtestlabs_profile_module.rb index 0d4d4083c4..36ee2e73eb 100644 --- a/management/azure_mgmt_devtestlabs/lib/profiles/latest/modules/devtestlabs_profile_module.rb +++ b/management/azure_mgmt_devtestlabs/lib/profiles/latest/modules/devtestlabs_profile_module.rb @@ -19,7 +19,6 @@ module Mgmt 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 Schedules = Azure::DevTestLabs::Mgmt::V2016_05_15::Schedules ServiceRunners = Azure::DevTestLabs::Mgmt::V2016_05_15::ServiceRunners Users = Azure::DevTestLabs::Mgmt::V2016_05_15::Users @@ -29,6 +28,7 @@ module Mgmt VirtualMachines = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualMachines VirtualMachineSchedules = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualMachineSchedules VirtualNetworks = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualNetworks + Policies = Azure::DevTestLabs::Mgmt::V2016_05_15::Policies module Models ExternalSubnetFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ExternalSubnetFragment @@ -157,12 +157,12 @@ module Models 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 PolicyFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFragment Secret = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Secret ServiceRunner = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ServiceRunner User = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::User VirtualNetwork = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork + Policy = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy 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 @@ -193,7 +193,7 @@ module Models # DevTestLabsManagementClass # class DevTestLabsManagementClass - attr_reader :provider_operations, :labs, :operations, :global_schedules, :artifact_sources, :arm_templates, :artifacts, :costs, :custom_images, :formulas, :gallery_images, :notification_channels, :policy_sets, :policies, :schedules, :service_runners, :users, :disks, :environments, :secrets, :virtual_machines, :virtual_machine_schedules, :virtual_networks, :configurable, :base_url, :options, :model_classes + attr_reader :provider_operations, :labs, :operations, :global_schedules, :artifact_sources, :arm_templates, :artifacts, :costs, :custom_images, :formulas, :gallery_images, :notification_channels, :policy_sets, :schedules, :service_runners, :users, :disks, :environments, :secrets, :virtual_machines, :virtual_machine_schedules, :virtual_networks, :policies, :configurable, :base_url, :options, :model_classes def initialize(options = {}) if options.is_a?(Hash) && options.length == 0 @@ -226,7 +226,6 @@ def initialize(options = {}) @gallery_images = @client_0.gallery_images @notification_channels = @client_0.notification_channels @policy_sets = @client_0.policy_sets - @policies = @client_0.policies @schedules = @client_0.schedules @service_runners = @client_0.service_runners @users = @client_0.users @@ -236,6 +235,7 @@ def initialize(options = {}) @virtual_machines = @client_0.virtual_machines @virtual_machine_schedules = @client_0.virtual_machine_schedules @virtual_networks = @client_0.virtual_networks + @policies = @client_0.policies @model_classes = ModelClasses.new end @@ -634,9 +634,6 @@ def notification_channel def notification_channel_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelFragment end - def policy - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy - end def policy_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFragment end @@ -652,6 +649,9 @@ def user def virtual_network Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork end + def policy + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy + end def user_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserFragment end