From 2877c435bce4f6ea4a51481757dd12819b035d50 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 7 Jun 2018 11:12:26 -0700 Subject: [PATCH 1/3] Generated from dd1d82ca6db8078870ccf13fe430a75a1ebe90d7 (#1341) updating api version --- azure_sdk/lib/azure_sdk.rb | 2 +- .../containerinstance_profile_module.rb | 110 +++---- .../container_groups.rb | 91 +++--- .../container_instance_management_client.rb | 7 +- .../container_logs.rb | 11 +- .../models/azure_file_volume.rb | 5 - .../models/container.rb | 13 - .../models/container_event.rb | 6 - .../models/container_group.rb | 18 -- .../models/container_group_list_result.rb | 4 - .../models/container_port.rb | 2 - .../container_properties_instance_view.rb | 6 - .../models/container_state.rb | 6 - .../models/environment_variable.rb | 3 - .../models/image_registry_credential.rb | 4 - .../models/ip_address.rb | 5 - .../models/logs.rb | 2 - .../models/port.rb | 3 - .../models/resource.rb | 7 - .../models/resource_limits.rb | 3 - .../models/resource_requests.rb | 3 - .../models/resource_requirements.rb | 3 - .../models/volume.rb | 3 - .../models/volume_mount.rb | 4 - .../azure_mgmt_container_instance/version.rb | 8 + .../container_groups.rb | 91 +++--- .../container_instance_management_client.rb | 7 +- .../container_logs.rb | 11 +- .../models/azure_file_volume.rb | 5 - .../models/container.rb | 13 - .../models/container_group.rb | 18 -- .../models/container_group_list_result.rb | 4 - ...ontainer_group_properties_instance_view.rb | 4 - .../models/container_port.rb | 3 - .../container_properties_instance_view.rb | 6 - .../models/container_state.rb | 6 - .../models/environment_variable.rb | 3 - .../models/event.rb | 7 - .../models/image_registry_credential.rb | 4 - .../models/ip_address.rb | 5 - .../models/logs.rb | 2 - .../models/operation.rb | 4 - .../models/operation_display.rb | 5 - .../models/operation_list_result.rb | 3 - .../models/port.rb | 3 - .../models/resource.rb | 7 - .../models/resource_limits.rb | 3 - .../models/resource_requests.rb | 3 - .../models/resource_requirements.rb | 3 - .../models/volume.rb | 4 - .../models/volume_mount.rb | 4 - .../operations.rb | 11 +- .../azure_mgmt_container_instance/version.rb | 8 + .../container_group_usage.rb | 11 +- .../container_groups.rb | 91 +++--- .../container_instance_management_client.rb | 7 +- .../container_logs.rb | 11 +- .../models/azure_file_volume.rb | 5 - .../models/container.rb | 13 - .../models/container_group.rb | 18 -- .../models/container_group_list_result.rb | 4 - ...ontainer_group_properties_instance_view.rb | 4 - .../models/container_port.rb | 3 - .../container_properties_instance_view.rb | 6 - .../models/container_state.rb | 6 - .../models/environment_variable.rb | 3 - .../models/event.rb | 7 - .../models/git_repo_volume.rb | 4 - .../models/image_registry_credential.rb | 4 - .../models/ip_address.rb | 5 - .../models/logs.rb | 2 - .../models/operation.rb | 4 - .../models/operation_display.rb | 5 - .../models/operation_list_result.rb | 4 - .../models/port.rb | 3 - .../models/resource.rb | 7 - .../models/resource_limits.rb | 3 - .../models/resource_requests.rb | 3 - .../models/resource_requirements.rb | 3 - .../models/usage.rb | 5 - .../models/usage_list_result.rb | 3 - .../models/usage_name.rb | 3 - .../models/volume.rb | 7 - .../models/volume_mount.rb | 4 - .../operations.rb | 11 +- .../azure_mgmt_container_instance/version.rb | 8 + .../azure_mgmt_container_instance.rb | 32 ++- .../container_group_usage.rb | 11 +- .../container_groups.rb | 269 ++++++++++-------- .../container_instance_management_client.rb | 11 +- .../container_logs.rb | 11 +- .../models/azure_file_volume.rb | 5 - .../models/container.rb | 13 - .../models/container_exec_request.rb | 55 ++++ .../container_exec_request_terminal_size.rb | 54 ++++ .../models/container_exec_response.rb | 54 ++++ .../models/container_group.rb | 18 -- .../models/container_group_list_result.rb | 4 - ...ontainer_group_properties_instance_view.rb | 4 - .../models/container_port.rb | 3 - .../container_properties_instance_view.rb | 6 - .../models/container_state.rb | 6 - .../models/environment_variable.rb | 3 - .../models/event.rb | 7 - .../models/git_repo_volume.rb | 4 - .../models/image_registry_credential.rb | 4 - .../models/ip_address.rb | 7 - .../models/logs.rb | 2 - .../models/operation.rb | 4 - .../models/operation_display.rb | 5 - .../models/operation_list_result.rb | 4 - .../models/port.rb | 3 - .../models/resource.rb | 7 - .../models/resource_limits.rb | 3 - .../models/resource_requests.rb | 3 - .../models/resource_requirements.rb | 3 - .../models/usage.rb | 5 - .../models/usage_list_result.rb | 3 - .../models/usage_name.rb | 3 - .../models/volume.rb | 7 - .../models/volume_mount.rb | 4 - .../operations.rb | 11 +- .../start_container.rb | 145 ++++++++++ .../azure_mgmt_container_instance/version.rb | 8 + .../lib/azure_mgmt_container_instance.rb | 2 +- .../containerinstance_profile_module.rb | 110 +++---- 126 files changed, 831 insertions(+), 935 deletions(-) create mode 100644 management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/version.rb create mode 100644 management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/version.rb create mode 100644 management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/version.rb create mode 100644 management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request.rb create mode 100644 management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb create mode 100644 management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_response.rb create mode 100644 management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb create mode 100644 management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/version.rb diff --git a/azure_sdk/lib/azure_sdk.rb b/azure_sdk/lib/azure_sdk.rb index 4de13c3d8b..3d3eabaa94 100644 --- a/azure_sdk/lib/azure_sdk.rb +++ b/azure_sdk/lib/azure_sdk.rb @@ -2,5 +2,5 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -require 'latest/latest_profile_client' require 'v2017_03_09/v2017_03_09_profile_client' +require 'latest/latest_profile_client' diff --git a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb index 20968fced2..723d9c5178 100644 --- a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb @@ -11,33 +11,37 @@ module Mgmt Operations = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Operations ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerGroupUsage ContainerLogs = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerLogs + StartContainer = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::StartContainer module Models - ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential - Port = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port - EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable IpAddress = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::IpAddress - Event = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event + ContainerPort = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort ContainerGroupPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupPropertiesInstanceView + ContainerState = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState + Event = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event ResourceRequests = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequests - ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits - VolumeMount = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationDisplay - AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume + ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements Operation = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation - Volume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume + Container = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container OperationListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationListResult - ContainerState = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState + GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume UsageName = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageName - ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements + ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential Usage = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Usage - GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume + EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable UsageListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageListResult - ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView + ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupListResult - ContainerPort = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort + AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume Logs = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Logs - Container = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container + Port = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port + ContainerExecRequestTerminalSize = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequestTerminalSize + VolumeMount = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount + ContainerExecRequest = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequest + ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView + ContainerExecResponse = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecResponse + Volume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume Resource = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup ContainerNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerNetworkProtocol @@ -48,7 +52,7 @@ module Models end class ContainerInstanceManagementClass - attr_reader :container_groups, :operations, :container_group_usage, :container_logs, :configurable, :base_url, :options, :model_classes + attr_reader :container_groups, :operations, :container_group_usage, :container_logs, :start_container, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -62,6 +66,7 @@ def initialize(configurable, base_url=nil, options=nil) @operations = @client_0.operations @container_group_usage = @client_0.container_group_usage @container_logs = @client_0.container_logs + @start_container = @client_0.start_container @model_classes = ModelClasses.new end @@ -80,80 +85,89 @@ def method_missing(method, *args) end class ModelClasses - def image_registry_credential - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential - end - def port - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port - end - def environment_variable - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable - end def ip_address Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::IpAddress end - def event - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event + def container_port + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort end def container_group_properties_instance_view Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupPropertiesInstanceView end - def resource_requests - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequests + def container_state + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState end - def resource_limits - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits + def event + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event end - def volume_mount - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount + def resource_requests + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequests end def operation_display Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationDisplay end - def azure_file_volume - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume + def resource_requirements + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements end def operation Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation end - def volume - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume + def container + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container end def operation_list_result Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationListResult end - def container_state - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState + def git_repo_volume + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume end def usage_name Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageName end - def resource_requirements - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements + def image_registry_credential + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential end def usage Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Usage end - def git_repo_volume - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume + def environment_variable + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable end def usage_list_result Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageListResult end - def container_properties_instance_view - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView + def resource_limits + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits end def container_group_list_result Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupListResult end - def container_port - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort + def azure_file_volume + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume end def logs Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Logs end - def container - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container + def port + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port + end + def container_exec_request_terminal_size + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequestTerminalSize + end + def volume_mount + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount + end + def container_exec_request + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequest + end + def container_properties_instance_view + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView + end + def container_exec_response + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecResponse + end + def volume + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume end def resource Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_groups.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_groups.rb index 31b72b023e..c970aa209a 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_groups.rb @@ -34,8 +34,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 @@ -52,8 +52,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 # @@ -69,13 +69,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.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 @@ -136,8 +135,8 @@ def list_async(custom_headers:nil) # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end @@ -157,8 +156,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -177,14 +176,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -245,8 +243,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [ContainerGroup] operation results. # - def get(resource_group_name, container_group_name, custom_headers:nil) - response = get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def get(resource_group_name, container_group_name, custom_headers = nil) + response = get_async(resource_group_name, container_group_name, custom_headers).value! response.body unless response.nil? end @@ -266,8 +264,8 @@ def get(resource_group_name, container_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, container_group_name, custom_headers:nil) - get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, container_group_name, custom_headers = nil) + get_async(resource_group_name, container_group_name, custom_headers).value! end # @@ -286,7 +284,7 @@ def get_with_http_info(resource_group_name, container_group_name, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, container_group_name, custom_headers:nil) + def get_async(resource_group_name, container_group_name, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -294,7 +292,6 @@ def get_async(resource_group_name, container_group_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 @@ -355,8 +352,8 @@ def get_async(resource_group_name, container_group_name, custom_headers:nil) # # @return [ContainerGroup] operation results. # - def create_or_update(resource_group_name, container_group_name, container_group, custom_headers:nil) - response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, container_group_name, container_group, custom_headers = nil) + response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! response.body unless response.nil? end @@ -376,8 +373,8 @@ def create_or_update(resource_group_name, container_group_name, container_group, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers:nil) - create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers = nil) + create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! end # @@ -396,7 +393,7 @@ def create_or_update_with_http_info(resource_group_name, container_group_name, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:nil) + def create_or_update_async(resource_group_name, container_group_name, container_group, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -405,12 +402,13 @@ def create_or_update_async(resource_group_name, container_group_name, container_ 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::ContainerInstance::Mgmt::V2017_08_01_preview::Models::ContainerGroup.mapper() request_content = @client.serialize(request_mapper, container_group) @@ -483,8 +481,8 @@ def create_or_update_async(resource_group_name, container_group_name, container_ # # @return [ContainerGroup] operation results. # - def delete(resource_group_name, container_group_name, custom_headers:nil) - response = delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def delete(resource_group_name, container_group_name, custom_headers = nil) + response = delete_async(resource_group_name, container_group_name, custom_headers).value! response.body unless response.nil? end @@ -504,8 +502,8 @@ def delete(resource_group_name, container_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, container_group_name, custom_headers:nil) - delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, container_group_name, custom_headers = nil) + delete_async(resource_group_name, container_group_name, custom_headers).value! end # @@ -524,7 +522,7 @@ def delete_with_http_info(resource_group_name, container_group_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, container_group_name, custom_headers:nil) + def delete_async(resource_group_name, container_group_name, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -532,7 +530,6 @@ def delete_async(resource_group_name, container_group_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 @@ -592,8 +589,8 @@ def delete_async(resource_group_name, container_group_name, custom_headers:nil) # # @return [ContainerGroupListResult] 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 @@ -612,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 # @@ -631,12 +628,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 @@ -696,8 +692,8 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [ContainerGroupListResult] 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 @@ -717,8 +713,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 # @@ -737,12 +733,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 @@ -800,12 +795,12 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # @return [ContainerGroupListResult] 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 @@ -828,12 +823,12 @@ def list_as_lazy(custom_headers:nil) # @return [ContainerGroupListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb index adbc516b1f..617066c346 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb @@ -110,9 +110,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? @@ -129,7 +126,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_container_instance' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::ContainerInstance::Mgmt::V2017_08_01_preview::VERSION + sdk_information = "#{sdk_information}/#{Azure::ContainerInstance::Mgmt::V2017_08_01_preview::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_logs.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_logs.rb index d5f2f6377e..b08bda82a8 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_logs.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_logs.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Logs] operation results. # - def list(resource_group_name, container_name, container_group_name, tail:nil, custom_headers:nil) - response = list_async(resource_group_name, container_name, container_group_name, tail:tail, custom_headers:custom_headers).value! + def list(resource_group_name, container_name, container_group_name, tail = nil, custom_headers = nil) + response = list_async(resource_group_name, container_name, container_group_name, tail, custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ def list(resource_group_name, container_name, container_group_name, tail:nil, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, container_name, container_group_name, tail:nil, custom_headers:nil) - list_async(resource_group_name, container_name, container_group_name, tail:tail, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, container_name, container_group_name, tail = nil, custom_headers = nil) + list_async(resource_group_name, container_name, container_group_name, tail, custom_headers).value! end # @@ -87,7 +87,7 @@ def list_with_http_info(resource_group_name, container_name, container_group_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, container_name, container_group_name, tail:nil, custom_headers:nil) + def list_async(resource_group_name, container_name, container_group_name, tail = 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -96,7 +96,6 @@ def list_async(resource_group_name, container_name, container_group_name, tail:n 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_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb index c3f4a81d78..1f5bff2a89 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb @@ -36,7 +36,6 @@ class AzureFileVolume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AzureFileVolume', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'AzureFileVolume', model_properties: { share_name: { - client_side_validation: true, required: true, serialized_name: 'shareName', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, read_only: { - client_side_validation: true, required: false, serialized_name: 'readOnly', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, storage_account_name: { - client_side_validation: true, required: true, serialized_name: 'storageAccountName', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, storage_account_key: { - client_side_validation: true, required: false, serialized_name: 'storageAccountKey', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container.rb index 8954ed9c31..3f39462efd 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container.rb @@ -50,7 +50,6 @@ class Container # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Container', type: { @@ -58,7 +57,6 @@ def self.mapper() class_name: 'Container', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -66,7 +64,6 @@ def self.mapper() } }, image: { - client_side_validation: true, required: true, serialized_name: 'properties.image', type: { @@ -74,13 +71,11 @@ def self.mapper() } }, command: { - client_side_validation: true, required: false, serialized_name: 'properties.command', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -90,13 +85,11 @@ def self.mapper() } }, ports: { - client_side_validation: true, required: false, serialized_name: 'properties.ports', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerPortElementType', type: { @@ -107,13 +100,11 @@ def self.mapper() } }, environment_variables: { - client_side_validation: true, required: false, serialized_name: 'properties.environmentVariables', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EnvironmentVariableElementType', type: { @@ -124,7 +115,6 @@ def self.mapper() } }, instance_view: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceView', @@ -134,7 +124,6 @@ def self.mapper() } }, resources: { - client_side_validation: true, required: true, serialized_name: 'properties.resources', type: { @@ -143,13 +132,11 @@ def self.mapper() } }, volume_mounts: { - client_side_validation: true, required: false, serialized_name: 'properties.volumeMounts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VolumeMountElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_event.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_event.rb index 53679fa8ea..29bc612481 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_event.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_event.rb @@ -34,7 +34,6 @@ class ContainerEvent # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerEvent', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'ContainerEvent', model_properties: { count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, first_timestamp: { - client_side_validation: true, required: false, serialized_name: 'firstTimestamp', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, last_timestamp: { - client_side_validation: true, required: false, serialized_name: 'lastTimestamp', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -74,7 +69,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb index edd6b4da69..8e67bfb812 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb @@ -51,7 +51,6 @@ class ContainerGroup < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroup', type: { @@ -59,7 +58,6 @@ def self.mapper() class_name: 'ContainerGroup', 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: true, 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() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -119,13 +111,11 @@ def self.mapper() } }, containers: { - client_side_validation: true, required: false, serialized_name: 'properties.containers', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerElementType', type: { @@ -136,13 +126,11 @@ def self.mapper() } }, image_registry_credentials: { - client_side_validation: true, required: false, serialized_name: 'properties.imageRegistryCredentials', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ImageRegistryCredentialElementType', type: { @@ -153,7 +141,6 @@ def self.mapper() } }, restart_policy: { - client_side_validation: true, required: false, serialized_name: 'properties.restartPolicy', type: { @@ -161,7 +148,6 @@ def self.mapper() } }, ip_address: { - client_side_validation: true, required: false, serialized_name: 'properties.ipAddress', type: { @@ -170,7 +156,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'properties.osType', type: { @@ -178,7 +163,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.state', @@ -187,13 +171,11 @@ def self.mapper() } }, volumes: { - client_side_validation: true, required: false, serialized_name: 'properties.volumes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VolumeElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb index 8e878b195a..f9dca6b7a2 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroupListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'ContainerGroupListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerGroupElementType', 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_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb index 12a8d7f168..14973a4066 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb @@ -22,7 +22,6 @@ class ContainerPort # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerPort', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ContainerPort', model_properties: { port: { - client_side_validation: true, required: true, serialized_name: 'port', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb index 55dbf403c4..99ac57945a 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb @@ -32,7 +32,6 @@ class ContainerPropertiesInstanceView # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerProperties_instanceView', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'ContainerPropertiesInstanceView', model_properties: { restart_count: { - client_side_validation: true, required: false, serialized_name: 'restartCount', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, current_state: { - client_side_validation: true, required: false, serialized_name: 'currentState', type: { @@ -57,7 +54,6 @@ def self.mapper() } }, previous_state: { - client_side_validation: true, required: false, serialized_name: 'previousState', type: { @@ -66,13 +62,11 @@ def self.mapper() } }, events: { - client_side_validation: true, required: false, serialized_name: 'events', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerEventElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb index 81bfb3dbdd..111d4b57fa 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb @@ -38,7 +38,6 @@ class ContainerState # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerState', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'ContainerState', model_properties: { state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'startTime', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, exit_code: { - client_side_validation: true, required: false, serialized_name: 'exitCode', type: { @@ -70,7 +66,6 @@ def self.mapper() } }, finish_time: { - client_side_validation: true, required: false, serialized_name: 'finishTime', type: { @@ -78,7 +73,6 @@ def self.mapper() } }, detail_status: { - client_side_validation: true, required: false, serialized_name: 'detailStatus', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb index d97ee11460..7951c4f027 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb @@ -25,7 +25,6 @@ class EnvironmentVariable # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EnvironmentVariable', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'EnvironmentVariable', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb index 73ee660681..33f28e6c5c 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb @@ -29,7 +29,6 @@ class ImageRegistryCredential # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ImageRegistryCredential', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ImageRegistryCredential', model_properties: { server: { - client_side_validation: true, required: true, serialized_name: 'server', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, username: { - client_side_validation: true, required: true, serialized_name: 'username', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb index 7f67166640..25f9ae5842 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb @@ -29,7 +29,6 @@ class IpAddress # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IpAddress', type: { @@ -37,13 +36,11 @@ def self.mapper() class_name: 'IpAddress', model_properties: { ports: { - client_side_validation: true, required: true, serialized_name: 'ports', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PortElementType', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -64,7 +60,6 @@ def self.mapper() } }, ip: { - client_side_validation: true, required: false, serialized_name: 'ip', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/logs.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/logs.rb index fea77a7356..3bbdd75a7d 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/logs.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/logs.rb @@ -22,7 +22,6 @@ class Logs # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Logs', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'Logs', model_properties: { content: { - client_side_validation: true, required: false, serialized_name: 'content', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/port.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/port.rb index 72eb0c7828..c3a2125805 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/port.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/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: { protocol: { - client_side_validation: true, required: false, serialized_name: 'protocol', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, port: { - client_side_validation: true, required: true, serialized_name: 'port', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource.rb index 556eddfbb6..dacce45b72 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource.rb @@ -34,7 +34,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'Resource', 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: true, serialized_name: 'location', type: { @@ -77,13 +72,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb index 0a61209d3d..c35160b8a1 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb @@ -25,7 +25,6 @@ class ResourceLimits # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceLimits', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ResourceLimits', model_properties: { memory_in_gb: { - client_side_validation: true, required: false, serialized_name: 'memoryInGB', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, cpu: { - client_side_validation: true, required: false, serialized_name: 'cpu', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb index 04346db3d7..bef3909b5c 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb @@ -25,7 +25,6 @@ class ResourceRequests # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceRequests', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ResourceRequests', model_properties: { memory_in_gb: { - client_side_validation: true, required: true, serialized_name: 'memoryInGB', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, cpu: { - client_side_validation: true, required: true, serialized_name: 'cpu', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb index 7854e7914b..12fa450e70 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb @@ -27,7 +27,6 @@ class ResourceRequirements # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceRequirements', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'ResourceRequirements', model_properties: { requests: { - client_side_validation: true, required: true, serialized_name: 'requests', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, limits: { - client_side_validation: true, required: false, serialized_name: 'limits', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/volume.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/volume.rb index ccdd74fef9..b52c1ceb8b 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/volume.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/volume.rb @@ -25,7 +25,6 @@ class Volume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Volume', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Volume', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, azure_file: { - client_side_validation: true, required: true, serialized_name: 'azureFile', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb index b2a07bb1cd..9c82e7ccbc 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb @@ -30,7 +30,6 @@ class VolumeMount # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VolumeMount', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'VolumeMount', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, mount_path: { - client_side_validation: true, required: true, serialized_name: 'mountPath', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, read_only: { - client_side_validation: true, required: false, serialized_name: 'readOnly', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/version.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/version.rb new file mode 100644 index 0000000000..78b409ba2c --- /dev/null +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/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::ContainerInstance::Mgmt::V2017_08_01_preview + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_groups.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_groups.rb index 6ba2407d6a..04ad3d70c3 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_groups.rb @@ -34,8 +34,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 @@ -52,8 +52,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 # @@ -69,13 +69,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.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 @@ -135,8 +134,8 @@ def list_async(custom_headers:nil) # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end @@ -155,8 +154,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -174,14 +173,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +239,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [ContainerGroup] operation results. # - def get(resource_group_name, container_group_name, custom_headers:nil) - response = get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def get(resource_group_name, container_group_name, custom_headers = nil) + response = get_async(resource_group_name, container_group_name, custom_headers).value! response.body unless response.nil? end @@ -261,8 +259,8 @@ def get(resource_group_name, container_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, container_group_name, custom_headers:nil) - get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, container_group_name, custom_headers = nil) + get_async(resource_group_name, container_group_name, custom_headers).value! end # @@ -280,7 +278,7 @@ def get_with_http_info(resource_group_name, container_group_name, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, container_group_name, custom_headers:nil) + def get_async(resource_group_name, container_group_name, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -288,7 +286,6 @@ def get_async(resource_group_name, container_group_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 @@ -347,8 +344,8 @@ def get_async(resource_group_name, container_group_name, custom_headers:nil) # # @return [ContainerGroup] operation results. # - def create_or_update(resource_group_name, container_group_name, container_group, custom_headers:nil) - response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, container_group_name, container_group, custom_headers = nil) + response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! response.body unless response.nil? end @@ -366,8 +363,8 @@ def create_or_update(resource_group_name, container_group_name, container_group, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers:nil) - create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers = nil) + create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! end # @@ -384,7 +381,7 @@ def create_or_update_with_http_info(resource_group_name, container_group_name, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:nil) + def create_or_update_async(resource_group_name, container_group_name, container_group, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -393,12 +390,13 @@ def create_or_update_async(resource_group_name, container_group_name, container_ 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::ContainerInstance::Mgmt::V2017_10_01_preview::Models::ContainerGroup.mapper() request_content = @client.serialize(request_mapper, container_group) @@ -469,8 +467,8 @@ def create_or_update_async(resource_group_name, container_group_name, container_ # # @return [ContainerGroup] operation results. # - def delete(resource_group_name, container_group_name, custom_headers:nil) - response = delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def delete(resource_group_name, container_group_name, custom_headers = nil) + response = delete_async(resource_group_name, container_group_name, custom_headers).value! response.body unless response.nil? end @@ -488,8 +486,8 @@ def delete(resource_group_name, container_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, container_group_name, custom_headers:nil) - delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, container_group_name, custom_headers = nil) + delete_async(resource_group_name, container_group_name, custom_headers).value! end # @@ -506,7 +504,7 @@ def delete_with_http_info(resource_group_name, container_group_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, container_group_name, custom_headers:nil) + def delete_async(resource_group_name, container_group_name, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -514,7 +512,6 @@ def delete_async(resource_group_name, container_group_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 @@ -574,8 +571,8 @@ def delete_async(resource_group_name, container_group_name, custom_headers:nil) # # @return [ContainerGroupListResult] 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 @@ -594,8 +591,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 # @@ -613,12 +610,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 @@ -678,8 +674,8 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [ContainerGroupListResult] 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 @@ -699,8 +695,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 # @@ -719,12 +715,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 @@ -782,12 +777,12 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # @return [ContainerGroupListResult] 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 @@ -809,12 +804,12 @@ def list_as_lazy(custom_headers:nil) # @return [ContainerGroupListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb index fca234a175..44118d3043 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb @@ -114,9 +114,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? @@ -133,7 +130,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_container_instance' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::ContainerInstance::Mgmt::V2017_10_01_preview::VERSION + sdk_information = "#{sdk_information}/#{Azure::ContainerInstance::Mgmt::V2017_10_01_preview::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_logs.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_logs.rb index 4d1dddec06..0a4630e7c1 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_logs.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_logs.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Logs] operation results. # - def list(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) - response = list_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value! + def list(resource_group_name, container_group_name, container_name, tail = nil, custom_headers = nil) + response = list_async(resource_group_name, container_group_name, container_name, tail, custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ def list(resource_group_name, container_group_name, container_name, tail:nil, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) - list_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, container_group_name, container_name, tail = nil, custom_headers = nil) + list_async(resource_group_name, container_group_name, container_name, tail, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, container_group_name, container_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) + def list_async(resource_group_name, container_group_name, container_name, tail = 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -90,7 +90,6 @@ def list_async(resource_group_name, container_group_name, container_name, tail:n 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_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb index 4783d2965b..335251e466 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb @@ -36,7 +36,6 @@ class AzureFileVolume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AzureFileVolume', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'AzureFileVolume', model_properties: { share_name: { - client_side_validation: true, required: true, serialized_name: 'shareName', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, read_only: { - client_side_validation: true, required: false, serialized_name: 'readOnly', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, storage_account_name: { - client_side_validation: true, required: true, serialized_name: 'storageAccountName', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, storage_account_key: { - client_side_validation: true, required: false, serialized_name: 'storageAccountKey', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container.rb index cebf99a62a..b953d8c548 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container.rb @@ -50,7 +50,6 @@ class Container # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Container', type: { @@ -58,7 +57,6 @@ def self.mapper() class_name: 'Container', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -66,7 +64,6 @@ def self.mapper() } }, image: { - client_side_validation: true, required: true, serialized_name: 'properties.image', type: { @@ -74,13 +71,11 @@ def self.mapper() } }, command: { - client_side_validation: true, required: false, serialized_name: 'properties.command', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -90,13 +85,11 @@ def self.mapper() } }, ports: { - client_side_validation: true, required: false, serialized_name: 'properties.ports', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerPortElementType', type: { @@ -107,13 +100,11 @@ def self.mapper() } }, environment_variables: { - client_side_validation: true, required: false, serialized_name: 'properties.environmentVariables', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EnvironmentVariableElementType', type: { @@ -124,7 +115,6 @@ def self.mapper() } }, instance_view: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceView', @@ -134,7 +124,6 @@ def self.mapper() } }, resources: { - client_side_validation: true, required: true, serialized_name: 'properties.resources', type: { @@ -143,13 +132,11 @@ def self.mapper() } }, volume_mounts: { - client_side_validation: true, required: false, serialized_name: 'properties.volumeMounts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VolumeMountElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb index f024308a8b..5c698d6ff9 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb @@ -54,7 +54,6 @@ class ContainerGroup < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroup', type: { @@ -62,7 +61,6 @@ def self.mapper() class_name: 'ContainerGroup', 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: true, 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() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -122,13 +114,11 @@ def self.mapper() } }, containers: { - client_side_validation: true, required: false, serialized_name: 'properties.containers', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerElementType', type: { @@ -139,13 +129,11 @@ def self.mapper() } }, image_registry_credentials: { - client_side_validation: true, required: false, serialized_name: 'properties.imageRegistryCredentials', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ImageRegistryCredentialElementType', type: { @@ -156,7 +144,6 @@ def self.mapper() } }, restart_policy: { - client_side_validation: true, required: false, serialized_name: 'properties.restartPolicy', type: { @@ -164,7 +151,6 @@ def self.mapper() } }, ip_address: { - client_side_validation: true, required: false, serialized_name: 'properties.ipAddress', type: { @@ -173,7 +159,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'properties.osType', type: { @@ -181,13 +166,11 @@ def self.mapper() } }, volumes: { - client_side_validation: true, required: false, serialized_name: 'properties.volumes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VolumeElementType', type: { @@ -198,7 +181,6 @@ def self.mapper() } }, instance_view: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceView', diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb index 74c78a5dda..9cc485efe5 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroupListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'ContainerGroupListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerGroupElementType', 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_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb index 315598537e..09c094838e 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb @@ -26,7 +26,6 @@ class ContainerGroupPropertiesInstanceView # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroup_properties_instanceView', type: { @@ -34,14 +33,12 @@ def self.mapper() class_name: 'ContainerGroupPropertiesInstanceView', model_properties: { events: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'events', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EventElementType', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'state', diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb index 390e690eb8..7ae285f314 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb @@ -26,7 +26,6 @@ class ContainerPort # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerPort', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ContainerPort', model_properties: { protocol: { - client_side_validation: true, required: false, serialized_name: 'protocol', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, port: { - client_side_validation: true, required: true, serialized_name: 'port', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb index 6d9ce7c3a1..98341f6f14 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb @@ -32,7 +32,6 @@ class ContainerPropertiesInstanceView # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerProperties_instanceView', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'ContainerPropertiesInstanceView', model_properties: { restart_count: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'restartCount', @@ -49,7 +47,6 @@ def self.mapper() } }, current_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentState', @@ -59,7 +56,6 @@ def self.mapper() } }, previous_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'previousState', @@ -69,14 +65,12 @@ def self.mapper() } }, events: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'events', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EventElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb index 1c565e2924..8386d19c99 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb @@ -38,7 +38,6 @@ class ContainerState # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerState', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'ContainerState', model_properties: { state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'startTime', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, exit_code: { - client_side_validation: true, required: false, serialized_name: 'exitCode', type: { @@ -70,7 +66,6 @@ def self.mapper() } }, finish_time: { - client_side_validation: true, required: false, serialized_name: 'finishTime', type: { @@ -78,7 +73,6 @@ def self.mapper() } }, detail_status: { - client_side_validation: true, required: false, serialized_name: 'detailStatus', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb index 141050b03c..70913022a8 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb @@ -25,7 +25,6 @@ class EnvironmentVariable # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EnvironmentVariable', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'EnvironmentVariable', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/event.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/event.rb index abcb791556..eeda7dbb16 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/event.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/event.rb @@ -37,7 +37,6 @@ class Event # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Event', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'Event', model_properties: { count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -53,7 +51,6 @@ def self.mapper() } }, first_timestamp: { - client_side_validation: true, required: false, serialized_name: 'firstTimestamp', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, last_timestamp: { - client_side_validation: true, required: false, serialized_name: 'lastTimestamp', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -77,7 +72,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -85,7 +79,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb index f2aaee5e0f..2f582728e2 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb @@ -29,7 +29,6 @@ class ImageRegistryCredential # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ImageRegistryCredential', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ImageRegistryCredential', model_properties: { server: { - client_side_validation: true, required: true, serialized_name: 'server', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, username: { - client_side_validation: true, required: true, serialized_name: 'username', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb index 4c9e681d22..b7661a8b52 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb @@ -29,7 +29,6 @@ class IpAddress # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IpAddress', type: { @@ -37,13 +36,11 @@ def self.mapper() class_name: 'IpAddress', model_properties: { ports: { - client_side_validation: true, required: true, serialized_name: 'ports', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PortElementType', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -64,7 +60,6 @@ def self.mapper() } }, ip: { - client_side_validation: true, required: false, serialized_name: 'ip', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/logs.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/logs.rb index f6195dd0cc..5fa034e32c 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/logs.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/logs.rb @@ -22,7 +22,6 @@ class Logs # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Logs', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'Logs', model_properties: { content: { - client_side_validation: true, required: false, serialized_name: 'content', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation.rb index 1639a94267..14a039c604 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation.rb @@ -29,7 +29,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, origin: { - client_side_validation: true, required: false, serialized_name: 'origin', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb index 26202eb495..f547dc25d6 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb @@ -31,7 +31,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { @@ -63,7 +59,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb index 5efb1fb95b..a167ab34cf 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb @@ -23,7 +23,6 @@ class OperationListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'OperationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/port.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/port.rb index 7443626d0a..ff4be48bc8 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/port.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/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: { protocol: { - client_side_validation: true, required: false, serialized_name: 'protocol', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, port: { - client_side_validation: true, required: true, serialized_name: 'port', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource.rb index e7e3ad99d8..135bb38a35 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource.rb @@ -34,7 +34,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'Resource', 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: true, serialized_name: 'location', type: { @@ -77,13 +72,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb index 7b42b20530..80c82e2619 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb @@ -25,7 +25,6 @@ class ResourceLimits # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceLimits', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ResourceLimits', model_properties: { memory_in_gb: { - client_side_validation: true, required: false, serialized_name: 'memoryInGB', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, cpu: { - client_side_validation: true, required: false, serialized_name: 'cpu', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb index d7daefe6ee..1c27aaec01 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb @@ -25,7 +25,6 @@ class ResourceRequests # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceRequests', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ResourceRequests', model_properties: { memory_in_gb: { - client_side_validation: true, required: true, serialized_name: 'memoryInGB', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, cpu: { - client_side_validation: true, required: true, serialized_name: 'cpu', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb index a043e0e934..e95f4396bc 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb @@ -27,7 +27,6 @@ class ResourceRequirements # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceRequirements', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'ResourceRequirements', model_properties: { requests: { - client_side_validation: true, required: true, serialized_name: 'requests', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, limits: { - client_side_validation: true, required: false, serialized_name: 'limits', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/volume.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/volume.rb index 41cf1d2efc..cff83b5582 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/volume.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/volume.rb @@ -28,7 +28,6 @@ class Volume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Volume', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'Volume', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, azure_file: { - client_side_validation: true, required: false, serialized_name: 'azureFile', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, empty_dir: { - client_side_validation: true, required: false, serialized_name: 'emptyDir', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb index c0d473ad7e..2bd1c9c9c2 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb @@ -30,7 +30,6 @@ class VolumeMount # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VolumeMount', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'VolumeMount', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, mount_path: { - client_side_validation: true, required: true, serialized_name: 'mountPath', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, read_only: { - client_side_validation: true, required: false, serialized_name: 'readOnly', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/operations.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/operations.rb index f26dbdf8f4..682122476c 100644 --- a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/operations.rb +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/operations.rb @@ -29,8 +29,8 @@ def initialize(client) # # @return [OperationListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? 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 diff --git a/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/version.rb b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/version.rb new file mode 100644 index 0000000000..0f2580cb76 --- /dev/null +++ b/management/azure_mgmt_container_instance/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/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::ContainerInstance::Mgmt::V2017_10_01_preview + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb index a5896c18f8..20dd3dc99d 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list(location, custom_headers:nil) - response = list_async(location, custom_headers:custom_headers).value! + def list(location, custom_headers = nil) + response = list_async(location, custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(location, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers:nil) - list_async(location, custom_headers:custom_headers).value! + def list_with_http_info(location, custom_headers = nil) + list_async(location, custom_headers).value! end # @@ -57,14 +57,13 @@ def list_with_http_info(location, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers:nil) + def list_async(location, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_groups.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_groups.rb index f6b9ea9835..2d0656f955 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_groups.rb @@ -34,8 +34,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 @@ -52,8 +52,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 # @@ -69,13 +69,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.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 @@ -135,8 +134,8 @@ def list_async(custom_headers:nil) # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end @@ -155,8 +154,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -174,14 +173,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +239,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [ContainerGroup] operation results. # - def get(resource_group_name, container_group_name, custom_headers:nil) - response = get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def get(resource_group_name, container_group_name, custom_headers = nil) + response = get_async(resource_group_name, container_group_name, custom_headers).value! response.body unless response.nil? end @@ -261,8 +259,8 @@ def get(resource_group_name, container_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, container_group_name, custom_headers:nil) - get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, container_group_name, custom_headers = nil) + get_async(resource_group_name, container_group_name, custom_headers).value! end # @@ -280,7 +278,7 @@ def get_with_http_info(resource_group_name, container_group_name, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, container_group_name, custom_headers:nil) + def get_async(resource_group_name, container_group_name, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -288,7 +286,6 @@ def get_async(resource_group_name, container_group_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 @@ -347,8 +344,8 @@ def get_async(resource_group_name, container_group_name, custom_headers:nil) # # @return [ContainerGroup] operation results. # - def create_or_update(resource_group_name, container_group_name, container_group, custom_headers:nil) - response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, container_group_name, container_group, custom_headers = nil) + response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! response.body unless response.nil? end @@ -366,8 +363,8 @@ def create_or_update(resource_group_name, container_group_name, container_group, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers:nil) - create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers = nil) + create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! end # @@ -384,7 +381,7 @@ def create_or_update_with_http_info(resource_group_name, container_group_name, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:nil) + def create_or_update_async(resource_group_name, container_group_name, container_group, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -393,12 +390,13 @@ def create_or_update_async(resource_group_name, container_group_name, container_ 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::ContainerInstance::Mgmt::V2017_12_01_preview::Models::ContainerGroup.mapper() request_content = @client.serialize(request_mapper, container_group) @@ -469,8 +467,8 @@ def create_or_update_async(resource_group_name, container_group_name, container_ # # @return [ContainerGroup] operation results. # - def delete(resource_group_name, container_group_name, custom_headers:nil) - response = delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def delete(resource_group_name, container_group_name, custom_headers = nil) + response = delete_async(resource_group_name, container_group_name, custom_headers).value! response.body unless response.nil? end @@ -488,8 +486,8 @@ def delete(resource_group_name, container_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, container_group_name, custom_headers:nil) - delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, container_group_name, custom_headers = nil) + delete_async(resource_group_name, container_group_name, custom_headers).value! end # @@ -506,7 +504,7 @@ def delete_with_http_info(resource_group_name, container_group_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, container_group_name, custom_headers:nil) + def delete_async(resource_group_name, container_group_name, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -514,7 +512,6 @@ def delete_async(resource_group_name, container_group_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 @@ -574,8 +571,8 @@ def delete_async(resource_group_name, container_group_name, custom_headers:nil) # # @return [ContainerGroupListResult] 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 @@ -594,8 +591,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 # @@ -613,12 +610,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 @@ -678,8 +674,8 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [ContainerGroupListResult] 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 @@ -699,8 +695,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 # @@ -719,12 +715,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 @@ -782,12 +777,12 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # @return [ContainerGroupListResult] 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 @@ -809,12 +804,12 @@ def list_as_lazy(custom_headers:nil) # @return [ContainerGroupListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb index 2288538ba3..56ff0ff7cf 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb @@ -118,9 +118,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? @@ -137,7 +134,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_container_instance' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::ContainerInstance::Mgmt::V2017_12_01_preview::VERSION + sdk_information = "#{sdk_information}/#{Azure::ContainerInstance::Mgmt::V2017_12_01_preview::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_logs.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_logs.rb index dd75f45c43..94312e742b 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_logs.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_logs.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Logs] operation results. # - def list(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) - response = list_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value! + def list(resource_group_name, container_group_name, container_name, tail = nil, custom_headers = nil) + response = list_async(resource_group_name, container_group_name, container_name, tail, custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ def list(resource_group_name, container_group_name, container_name, tail:nil, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) - list_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, container_group_name, container_name, tail = nil, custom_headers = nil) + list_async(resource_group_name, container_group_name, container_name, tail, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, container_group_name, container_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) + def list_async(resource_group_name, container_group_name, container_name, tail = 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -90,7 +90,6 @@ def list_async(resource_group_name, container_group_name, container_name, tail:n 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_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb index 420dfb1c7e..eafabfd1c1 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb @@ -36,7 +36,6 @@ class AzureFileVolume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AzureFileVolume', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'AzureFileVolume', model_properties: { share_name: { - client_side_validation: true, required: true, serialized_name: 'shareName', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, read_only: { - client_side_validation: true, required: false, serialized_name: 'readOnly', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, storage_account_name: { - client_side_validation: true, required: true, serialized_name: 'storageAccountName', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, storage_account_key: { - client_side_validation: true, required: false, serialized_name: 'storageAccountKey', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container.rb index 9fb0afde90..ee5edf915c 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container.rb @@ -50,7 +50,6 @@ class Container # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Container', type: { @@ -58,7 +57,6 @@ def self.mapper() class_name: 'Container', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -66,7 +64,6 @@ def self.mapper() } }, image: { - client_side_validation: true, required: true, serialized_name: 'properties.image', type: { @@ -74,13 +71,11 @@ def self.mapper() } }, command: { - client_side_validation: true, required: false, serialized_name: 'properties.command', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -90,13 +85,11 @@ def self.mapper() } }, ports: { - client_side_validation: true, required: false, serialized_name: 'properties.ports', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerPortElementType', type: { @@ -107,13 +100,11 @@ def self.mapper() } }, environment_variables: { - client_side_validation: true, required: false, serialized_name: 'properties.environmentVariables', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EnvironmentVariableElementType', type: { @@ -124,7 +115,6 @@ def self.mapper() } }, instance_view: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceView', @@ -134,7 +124,6 @@ def self.mapper() } }, resources: { - client_side_validation: true, required: true, serialized_name: 'properties.resources', type: { @@ -143,13 +132,11 @@ def self.mapper() } }, volume_mounts: { - client_side_validation: true, required: false, serialized_name: 'properties.volumeMounts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VolumeMountElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb index d5ffaf1750..5905cf8551 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb @@ -54,7 +54,6 @@ class ContainerGroup < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroup', type: { @@ -62,7 +61,6 @@ def self.mapper() class_name: 'ContainerGroup', 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: true, 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() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -122,13 +114,11 @@ def self.mapper() } }, containers: { - client_side_validation: true, required: false, serialized_name: 'properties.containers', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerElementType', type: { @@ -139,13 +129,11 @@ def self.mapper() } }, image_registry_credentials: { - client_side_validation: true, required: false, serialized_name: 'properties.imageRegistryCredentials', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ImageRegistryCredentialElementType', type: { @@ -156,7 +144,6 @@ def self.mapper() } }, restart_policy: { - client_side_validation: true, required: false, serialized_name: 'properties.restartPolicy', type: { @@ -164,7 +151,6 @@ def self.mapper() } }, ip_address: { - client_side_validation: true, required: false, serialized_name: 'properties.ipAddress', type: { @@ -173,7 +159,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'properties.osType', type: { @@ -181,13 +166,11 @@ def self.mapper() } }, volumes: { - client_side_validation: true, required: false, serialized_name: 'properties.volumes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VolumeElementType', type: { @@ -198,7 +181,6 @@ def self.mapper() } }, instance_view: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceView', diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb index e86518d861..1f2523a8db 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroupListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'ContainerGroupListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerGroupElementType', 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_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb index 21cc509819..bcd95db1fb 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb @@ -26,7 +26,6 @@ class ContainerGroupPropertiesInstanceView # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroup_properties_instanceView', type: { @@ -34,14 +33,12 @@ def self.mapper() class_name: 'ContainerGroupPropertiesInstanceView', model_properties: { events: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'events', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EventElementType', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'state', diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb index d1fa8e675a..2a1c13a8e2 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb @@ -26,7 +26,6 @@ class ContainerPort # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerPort', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ContainerPort', model_properties: { protocol: { - client_side_validation: true, required: false, serialized_name: 'protocol', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, port: { - client_side_validation: true, required: true, serialized_name: 'port', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb index bbcd5da498..acd72a3aa4 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb @@ -32,7 +32,6 @@ class ContainerPropertiesInstanceView # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerProperties_instanceView', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'ContainerPropertiesInstanceView', model_properties: { restart_count: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'restartCount', @@ -49,7 +47,6 @@ def self.mapper() } }, current_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentState', @@ -59,7 +56,6 @@ def self.mapper() } }, previous_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'previousState', @@ -69,14 +65,12 @@ def self.mapper() } }, events: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'events', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EventElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb index 3d1baacea2..0d9adaa19f 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb @@ -38,7 +38,6 @@ class ContainerState # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerState', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'ContainerState', model_properties: { state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'startTime', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, exit_code: { - client_side_validation: true, required: false, serialized_name: 'exitCode', type: { @@ -70,7 +66,6 @@ def self.mapper() } }, finish_time: { - client_side_validation: true, required: false, serialized_name: 'finishTime', type: { @@ -78,7 +73,6 @@ def self.mapper() } }, detail_status: { - client_side_validation: true, required: false, serialized_name: 'detailStatus', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb index ebe29bea1d..06c71922fc 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb @@ -25,7 +25,6 @@ class EnvironmentVariable # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EnvironmentVariable', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'EnvironmentVariable', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/event.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/event.rb index 6d3fefe40f..58b8497628 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/event.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/event.rb @@ -37,7 +37,6 @@ class Event # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Event', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'Event', model_properties: { count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -53,7 +51,6 @@ def self.mapper() } }, first_timestamp: { - client_side_validation: true, required: false, serialized_name: 'firstTimestamp', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, last_timestamp: { - client_side_validation: true, required: false, serialized_name: 'lastTimestamp', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -77,7 +72,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -85,7 +79,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb index effdb13f4e..1060d0fa1f 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb @@ -32,7 +32,6 @@ class GitRepoVolume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GitRepoVolume', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'GitRepoVolume', model_properties: { directory: { - client_side_validation: true, required: false, serialized_name: 'directory', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, repository: { - client_side_validation: true, required: true, serialized_name: 'repository', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, revision: { - client_side_validation: true, required: false, serialized_name: 'revision', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb index dfcedb77d7..299bef4d27 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb @@ -29,7 +29,6 @@ class ImageRegistryCredential # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ImageRegistryCredential', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ImageRegistryCredential', model_properties: { server: { - client_side_validation: true, required: true, serialized_name: 'server', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, username: { - client_side_validation: true, required: true, serialized_name: 'username', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb index ccc5022124..3775384611 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb @@ -29,7 +29,6 @@ class IpAddress # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IpAddress', type: { @@ -37,13 +36,11 @@ def self.mapper() class_name: 'IpAddress', model_properties: { ports: { - client_side_validation: true, required: true, serialized_name: 'ports', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PortElementType', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -64,7 +60,6 @@ def self.mapper() } }, ip: { - client_side_validation: true, required: false, serialized_name: 'ip', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/logs.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/logs.rb index 7601952eef..5aef9c8048 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/logs.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/logs.rb @@ -22,7 +22,6 @@ class Logs # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Logs', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'Logs', model_properties: { content: { - client_side_validation: true, required: false, serialized_name: 'content', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation.rb index 7975e0e9d6..56bfd35c93 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation.rb @@ -29,7 +29,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: true, serialized_name: 'display', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, origin: { - client_side_validation: true, required: false, serialized_name: 'origin', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb index 456e9741ef..147df6a9d2 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb @@ -31,7 +31,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { @@ -63,7 +59,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb index 5554b3813b..77aa1141c5 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb @@ -26,7 +26,6 @@ class OperationListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationListResult', type: { @@ -34,13 +33,11 @@ def self.mapper() class_name: 'OperationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationElementType', type: { @@ -51,7 +48,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb index 22a249dc09..771b2ac5e2 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/port.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/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: { protocol: { - client_side_validation: true, required: false, serialized_name: 'protocol', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, port: { - client_side_validation: true, required: true, serialized_name: 'port', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource.rb index 0202b9c24c..c38685d6f8 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource.rb @@ -34,7 +34,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'Resource', 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: true, serialized_name: 'location', type: { @@ -77,13 +72,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb index f982a96217..1b40fa573c 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb @@ -25,7 +25,6 @@ class ResourceLimits # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceLimits', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ResourceLimits', model_properties: { memory_in_gb: { - client_side_validation: true, required: false, serialized_name: 'memoryInGB', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, cpu: { - client_side_validation: true, required: false, serialized_name: 'cpu', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb index d787ca5291..5d8c87ac34 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb @@ -25,7 +25,6 @@ class ResourceRequests # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceRequests', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ResourceRequests', model_properties: { memory_in_gb: { - client_side_validation: true, required: true, serialized_name: 'memoryInGB', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, cpu: { - client_side_validation: true, required: true, serialized_name: 'cpu', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb index 77d54d678e..38a615ff21 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb @@ -27,7 +27,6 @@ class ResourceRequirements # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceRequirements', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'ResourceRequirements', model_properties: { requests: { - client_side_validation: true, required: true, serialized_name: 'requests', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, limits: { - client_side_validation: true, required: false, serialized_name: 'limits', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage.rb index c5ba1ba74c..fee20e7928 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage.rb @@ -31,7 +31,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'Usage', model_properties: { unit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', @@ -48,7 +46,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', @@ -57,7 +54,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', @@ -66,7 +62,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb index ff16ec84e7..f49662c1b1 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb @@ -22,7 +22,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -30,14 +29,12 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb index 1affe801ca..3392e678af 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb @@ -25,7 +25,6 @@ class UsageName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage_name', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageName', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -42,7 +40,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'localizedValue', diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/volume.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/volume.rb index 15a45cdb3c..48bb058b0e 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/volume.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/volume.rb @@ -34,7 +34,6 @@ class Volume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Volume', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'Volume', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, azure_file: { - client_side_validation: true, required: false, serialized_name: 'azureFile', type: { @@ -59,7 +56,6 @@ def self.mapper() } }, empty_dir: { - client_side_validation: true, required: false, serialized_name: 'emptyDir', type: { @@ -67,13 +63,11 @@ def self.mapper() } }, secret: { - client_side_validation: true, required: false, serialized_name: 'secret', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -83,7 +77,6 @@ def self.mapper() } }, git_repo: { - client_side_validation: true, required: false, serialized_name: 'gitRepo', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb index 422d75fdbe..87f5628cde 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb @@ -30,7 +30,6 @@ class VolumeMount # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VolumeMount', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'VolumeMount', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, mount_path: { - client_side_validation: true, required: true, serialized_name: 'mountPath', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, read_only: { - client_side_validation: true, required: false, serialized_name: 'readOnly', type: { diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/operations.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/operations.rb index 47e31157f7..aca85f8d05 100644 --- a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/operations.rb +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/operations.rb @@ -29,8 +29,8 @@ def initialize(client) # # @return [OperationListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? 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 diff --git a/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/version.rb b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/version.rb new file mode 100644 index 0000000000..0953ba74b0 --- /dev/null +++ b/management/azure_mgmt_container_instance/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/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::ContainerInstance::Mgmt::V2017_12_01_preview + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance.rb index 591af52c8e..9b9c5a8db9 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance.rb @@ -24,34 +24,38 @@ module Azure::ContainerInstance::Mgmt::V2018_02_01_preview autoload :Operations, '2018-02-01-preview/generated/azure_mgmt_container_instance/operations.rb' autoload :ContainerGroupUsage, '2018-02-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb' autoload :ContainerLogs, '2018-02-01-preview/generated/azure_mgmt_container_instance/container_logs.rb' + autoload :StartContainer, '2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb' autoload :ContainerInstanceManagementClient, '2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb' module Models - autoload :ImageRegistryCredential, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb' - autoload :Port, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/port.rb' - autoload :EnvironmentVariable, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb' autoload :IpAddress, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb' - autoload :Event, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/event.rb' + autoload :ContainerPort, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb' autoload :ContainerGroupPropertiesInstanceView, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb' + autoload :ContainerState, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb' + autoload :Event, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/event.rb' autoload :ResourceRequests, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb' - autoload :ResourceLimits, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb' - autoload :VolumeMount, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb' autoload :OperationDisplay, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb' - autoload :AzureFileVolume, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb' + autoload :ResourceRequirements, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb' autoload :Operation, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation.rb' - autoload :Volume, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume.rb' + autoload :Container, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container.rb' autoload :OperationListResult, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb' - autoload :ContainerState, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb' + autoload :GitRepoVolume, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb' autoload :UsageName, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb' - autoload :ResourceRequirements, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb' + autoload :ImageRegistryCredential, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb' autoload :Usage, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage.rb' - autoload :GitRepoVolume, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb' + autoload :EnvironmentVariable, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb' autoload :UsageListResult, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb' - autoload :ContainerPropertiesInstanceView, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb' + autoload :ResourceLimits, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb' autoload :ContainerGroupListResult, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb' - autoload :ContainerPort, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb' + autoload :AzureFileVolume, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb' autoload :Logs, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/logs.rb' - autoload :Container, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container.rb' + autoload :Port, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/port.rb' + autoload :ContainerExecRequestTerminalSize, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb' + autoload :VolumeMount, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb' + autoload :ContainerExecRequest, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request.rb' + autoload :ContainerPropertiesInstanceView, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb' + autoload :ContainerExecResponse, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_response.rb' + autoload :Volume, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume.rb' autoload :Resource, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource.rb' autoload :ContainerGroup, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb' autoload :ContainerNetworkProtocol, '2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_network_protocol.rb' diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb index 4682175542..8fc45c23c4 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_group_usage.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list(location, custom_headers:nil) - response = list_async(location, custom_headers:custom_headers).value! + def list(location, custom_headers = nil) + response = list_async(location, custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(location, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers:nil) - list_async(location, custom_headers:custom_headers).value! + def list_with_http_info(location, custom_headers = nil) + list_async(location, custom_headers).value! end # @@ -57,14 +57,13 @@ def list_with_http_info(location, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers:nil) + def list_async(location, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_groups.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_groups.rb index db93191684..daf4b48b8a 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_groups.rb @@ -34,8 +34,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 @@ -52,8 +52,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 # @@ -69,13 +69,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.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 @@ -135,8 +134,8 @@ def list_async(custom_headers:nil) # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end @@ -155,8 +154,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -174,14 +173,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +239,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [ContainerGroup] operation results. # - def get(resource_group_name, container_group_name, custom_headers:nil) - response = get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def get(resource_group_name, container_group_name, custom_headers = nil) + response = get_async(resource_group_name, container_group_name, custom_headers).value! response.body unless response.nil? end @@ -261,8 +259,8 @@ def get(resource_group_name, container_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, container_group_name, custom_headers:nil) - get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, container_group_name, custom_headers = nil) + get_async(resource_group_name, container_group_name, custom_headers).value! end # @@ -280,7 +278,7 @@ def get_with_http_info(resource_group_name, container_group_name, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, container_group_name, custom_headers:nil) + def get_async(resource_group_name, container_group_name, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -288,7 +286,6 @@ def get_async(resource_group_name, container_group_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 @@ -347,15 +344,11 @@ def get_async(resource_group_name, container_group_name, custom_headers:nil) # # @return [ContainerGroup] operation results. # - def create_or_update(resource_group_name, container_group_name, container_group, custom_headers:nil) - response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, container_group_name, container_group, custom_headers = nil) + response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! response.body unless response.nil? end - # - # Create or update container groups. - # - # Create or update container groups with specified configurations. # # @param resource_group_name [String] The name of the resource group. # @param container_group_name [String] The name of the container group. @@ -364,44 +357,97 @@ def create_or_update(resource_group_name, container_group_name, container_group, # @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, container_group_name, container_group, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup.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 + + # + # Update container groups. + # + # Updates container group tags with specified values. + # + # @param resource_group_name [String] The name of the resource group. + # @param container_group_name [String] The name of the container group. + # @param resource [Resource] The container group resource with just the tags to + # be updated. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ContainerGroup] operation results. + # + def update(resource_group_name, container_group_name, resource, custom_headers = nil) + response = update_async(resource_group_name, container_group_name, resource, custom_headers).value! + response.body unless response.nil? + end + + # + # Update container groups. + # + # Updates container group tags with specified values. + # + # @param resource_group_name [String] The name of the resource group. + # @param container_group_name [String] The name of the container group. + # @param resource [Resource] The container group resource with just the tags to + # be updated. + # @param custom_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, container_group_name, container_group, custom_headers:nil) - create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, container_group_name, resource, custom_headers = nil) + update_async(resource_group_name, container_group_name, resource, custom_headers).value! end # - # Create or update container groups. + # Update container groups. # - # Create or update container groups with specified configurations. + # Updates container group tags with specified values. # # @param resource_group_name [String] The name of the resource group. # @param container_group_name [String] The name of the container group. - # @param container_group [ContainerGroup] The properties of the container group - # to be created or updated. + # @param resource [Resource] The container group resource with just the tags to + # be updated. # @param [Hash{String => String}] 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, container_group_name, container_group, custom_headers:nil) + def update_async(resource_group_name, container_group_name, resource, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_group_name is nil' if container_group_name.nil? - fail ArgumentError, 'container_group is nil' if container_group.nil? + fail ArgumentError, 'resource is nil' if resource.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::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup.mapper() - request_content = @client.serialize(request_mapper, container_group) + request_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource.mapper() + request_content = @client.serialize(request_mapper, resource) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}' @@ -416,13 +462,13 @@ def create_or_update_async(resource_group_name, container_group_name, container_ headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = @client.make_request_async(:put, path_template, options) + promise = @client.make_request_async(:patch, path_template, options) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 201 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -438,16 +484,6 @@ def create_or_update_async(resource_group_name, container_group_name, container_ 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::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -456,57 +492,57 @@ def create_or_update_async(resource_group_name, container_group_name, container_ end # - # Update container groups. + # Delete the specified container group. # - # Updates container group tags with specified values. + # Delete the specified container group in the specified subscription and + # resource group. The operation does not delete other resources provided by the + # user, such as volumes. # # @param resource_group_name [String] The name of the resource group. # @param container_group_name [String] The name of the container group. - # @param resource [Resource] The container group resource with just the tags to - # be updated. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ContainerGroup] operation results. # - def update(resource_group_name, container_group_name, resource:nil, custom_headers:nil) - response = update_async(resource_group_name, container_group_name, resource:resource, custom_headers:custom_headers).value! + def delete(resource_group_name, container_group_name, custom_headers = nil) + response = delete_async(resource_group_name, container_group_name, custom_headers).value! response.body unless response.nil? end # - # Update container groups. + # Delete the specified container group. # - # Updates container group tags with specified values. + # Delete the specified container group in the specified subscription and + # resource group. The operation does not delete other resources provided by the + # user, such as volumes. # # @param resource_group_name [String] The name of the resource group. # @param container_group_name [String] The name of the container group. - # @param resource [Resource] The container group resource with just the tags to - # be updated. # @param custom_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, container_group_name, resource:nil, custom_headers:nil) - update_async(resource_group_name, container_group_name, resource:resource, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, container_group_name, custom_headers = nil) + delete_async(resource_group_name, container_group_name, custom_headers).value! end # - # Update container groups. + # Delete the specified container group. # - # Updates container group tags with specified values. + # Delete the specified container group in the specified subscription and + # resource group. The operation does not delete other resources provided by the + # user, such as volumes. # # @param resource_group_name [String] The name of the resource group. # @param container_group_name [String] The name of the container group. - # @param resource [Resource] The container group resource with just the tags to - # be updated. # @param [Hash{String => String}] 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, container_group_name, resource:nil, custom_headers:nil) + def delete_async(resource_group_name, container_group_name, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -514,17 +550,10 @@ def update_async(resource_group_name, container_group_name, resource:nil, 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? - - # Serialize Request - request_mapper = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource.mapper() - request_content = @client.serialize(request_mapper, resource) - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}' request_url = @base_url || @client.base_url @@ -533,17 +562,16 @@ def update_async(resource_group_name, container_group_name, resource:nil, custom middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_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 = @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 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -567,69 +595,77 @@ def update_async(resource_group_name, container_group_name, resource:nil, custom end # - # Delete the specified container group. + # Create or update container groups. # - # Delete the specified container group in the specified subscription and - # resource group. The operation does not delete other resources provided by the - # user, such as volumes. + # Create or update container groups with specified configurations. # # @param resource_group_name [String] The name of the resource group. # @param container_group_name [String] The name of the container group. + # @param container_group [ContainerGroup] The properties of the container group + # to be created or updated. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ContainerGroup] operation results. # - def delete(resource_group_name, container_group_name, custom_headers:nil) - response = delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def begin_create_or_update(resource_group_name, container_group_name, container_group, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! response.body unless response.nil? end # - # Delete the specified container group. + # Create or update container groups. # - # Delete the specified container group in the specified subscription and - # resource group. The operation does not delete other resources provided by the - # user, such as volumes. + # Create or update container groups with specified configurations. # # @param resource_group_name [String] The name of the resource group. # @param container_group_name [String] The name of the container group. + # @param container_group [ContainerGroup] The properties of the container group + # to be created or updated. # @param custom_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, container_group_name, custom_headers:nil) - delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers = nil) + begin_create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! end # - # Delete the specified container group. + # Create or update container groups. # - # Delete the specified container group in the specified subscription and - # resource group. The operation does not delete other resources provided by the - # user, such as volumes. + # Create or update container groups with specified configurations. # # @param resource_group_name [String] The name of the resource group. # @param container_group_name [String] The name of the container group. + # @param container_group [ContainerGroup] The properties of the container group + # to be created or updated. # @param [Hash{String => String}] 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, container_group_name, custom_headers:nil) + def begin_create_or_update_async(resource_group_name, container_group_name, container_group, 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_group_name is nil' if container_group_name.nil? + fail ArgumentError, 'container_group is nil' if container_group.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::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup.mapper() + request_content = @client.serialize(request_mapper, container_group) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}' request_url = @base_url || @client.base_url @@ -638,16 +674,17 @@ def delete_async(resource_group_name, container_group_name, custom_headers:nil) middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'containerGroupName' => container_group_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(:delete, path_template, options) + 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 == 204 + unless status_code == 200 || status_code == 201 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end @@ -663,6 +700,16 @@ def delete_async(resource_group_name, container_group_name, custom_headers:nil) 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::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -685,8 +732,8 @@ def delete_async(resource_group_name, container_group_name, custom_headers:nil) # # @return [ContainerGroupListResult] 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 @@ -705,8 +752,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 # @@ -724,12 +771,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 @@ -789,8 +835,8 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [ContainerGroupListResult] 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 @@ -810,8 +856,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 # @@ -830,12 +876,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 @@ -893,12 +938,12 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # @return [ContainerGroupListResult] 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 @@ -920,12 +965,12 @@ def list_as_lazy(custom_headers:nil) # @return [ContainerGroupListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb index 32a9635bcb..7158a93af1 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb @@ -48,6 +48,9 @@ class ContainerInstanceManagementClient < MsRestAzure::AzureServiceClient # @return [ContainerLogs] container_logs attr_reader :container_logs + # @return [StartContainer] start_container + attr_reader :start_container + # # Creates initializes a new instance of the ContainerInstanceManagementClient class. # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client. @@ -65,6 +68,7 @@ def initialize(credentials = nil, base_url = nil, options = nil) @operations = Operations.new(self) @container_group_usage = ContainerGroupUsage.new(self) @container_logs = ContainerLogs.new(self) + @start_container = StartContainer.new(self) @api_version = '2018-02-01-preview' @accept_language = 'en-US' @long_running_operation_retry_timeout = 30 @@ -118,9 +122,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? @@ -137,7 +138,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_container_instance' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::ContainerInstance::Mgmt::V2018_02_01_preview::VERSION + sdk_information = "#{sdk_information}/#{Azure::ContainerInstance::Mgmt::V2018_02_01_preview::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_logs.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_logs.rb index fc4113003d..7e8a7723f9 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_logs.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_logs.rb @@ -38,8 +38,8 @@ def initialize(client) # # @return [Logs] operation results. # - def list(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) - response = list_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value! + def list(resource_group_name, container_group_name, container_name, tail = nil, custom_headers = nil) + response = list_async(resource_group_name, container_group_name, container_name, tail, custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ def list(resource_group_name, container_group_name, container_name, tail:nil, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) - list_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, container_group_name, container_name, tail = nil, custom_headers = nil) + list_async(resource_group_name, container_group_name, container_name, tail, custom_headers).value! end # @@ -81,7 +81,7 @@ def list_with_http_info(resource_group_name, container_group_name, container_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) + def list_async(resource_group_name, container_group_name, container_name, tail = 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? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -90,7 +90,6 @@ def list_async(resource_group_name, container_group_name, container_name, tail:n 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_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb index c13db7a29e..ca1fcc2318 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/azure_file_volume.rb @@ -36,7 +36,6 @@ class AzureFileVolume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AzureFileVolume', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'AzureFileVolume', model_properties: { share_name: { - client_side_validation: true, required: true, serialized_name: 'shareName', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, read_only: { - client_side_validation: true, required: false, serialized_name: 'readOnly', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, storage_account_name: { - client_side_validation: true, required: true, serialized_name: 'storageAccountName', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, storage_account_key: { - client_side_validation: true, required: false, serialized_name: 'storageAccountKey', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container.rb index 050b257bc3..5d78e7ceb2 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container.rb @@ -50,7 +50,6 @@ class Container # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Container', type: { @@ -58,7 +57,6 @@ def self.mapper() class_name: 'Container', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -66,7 +64,6 @@ def self.mapper() } }, image: { - client_side_validation: true, required: true, serialized_name: 'properties.image', type: { @@ -74,13 +71,11 @@ def self.mapper() } }, command: { - client_side_validation: true, required: false, serialized_name: 'properties.command', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -90,13 +85,11 @@ def self.mapper() } }, ports: { - client_side_validation: true, required: false, serialized_name: 'properties.ports', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerPortElementType', type: { @@ -107,13 +100,11 @@ def self.mapper() } }, environment_variables: { - client_side_validation: true, required: false, serialized_name: 'properties.environmentVariables', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EnvironmentVariableElementType', type: { @@ -124,7 +115,6 @@ def self.mapper() } }, instance_view: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceView', @@ -134,7 +124,6 @@ def self.mapper() } }, resources: { - client_side_validation: true, required: true, serialized_name: 'properties.resources', type: { @@ -143,13 +132,11 @@ def self.mapper() } }, volume_mounts: { - client_side_validation: true, required: false, serialized_name: 'properties.volumeMounts', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VolumeMountElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request.rb new file mode 100644 index 0000000000..e78c55b51e --- /dev/null +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request.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::ContainerInstance::Mgmt::V2018_02_01_preview + module Models + # + # The start container exec request. + # + class ContainerExecRequest + + include MsRestAzure + + # @return [String] The command to be executed. + attr_accessor :command + + # @return [ContainerExecRequestTerminalSize] The size of the terminal. + attr_accessor :terminal_size + + + # + # Mapper for ContainerExecRequest class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ContainerExecRequest', + type: { + name: 'Composite', + class_name: 'ContainerExecRequest', + model_properties: { + command: { + required: false, + serialized_name: 'command', + type: { + name: 'String' + } + }, + terminal_size: { + required: false, + serialized_name: 'terminalSize', + type: { + name: 'Composite', + class_name: 'ContainerExecRequestTerminalSize' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb new file mode 100644 index 0000000000..f7b939bfb2 --- /dev/null +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.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::ContainerInstance::Mgmt::V2018_02_01_preview + module Models + # + # The size of the terminal. + # + class ContainerExecRequestTerminalSize + + include MsRestAzure + + # @return [Integer] The row size of the terminal + attr_accessor :rows + + # @return [Integer] The column size of the terminal + attr_accessor :cols + + + # + # Mapper for ContainerExecRequestTerminalSize class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ContainerExecRequest_terminalSize', + type: { + name: 'Composite', + class_name: 'ContainerExecRequestTerminalSize', + model_properties: { + rows: { + required: false, + serialized_name: 'rows', + type: { + name: 'Number' + } + }, + cols: { + required: false, + serialized_name: 'cols', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_response.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_response.rb new file mode 100644 index 0000000000..c5079dab0b --- /dev/null +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_response.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::ContainerInstance::Mgmt::V2018_02_01_preview + module Models + # + # The information for the container exec command. + # + class ContainerExecResponse + + include MsRestAzure + + # @return [String] The uri for the exec websocket. + attr_accessor :web_socket_uri + + # @return [String] The password to start the exec command. + attr_accessor :password + + + # + # Mapper for ContainerExecResponse class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ContainerExecResponse', + type: { + name: 'Composite', + class_name: 'ContainerExecResponse', + model_properties: { + web_socket_uri: { + required: false, + serialized_name: 'webSocketUri', + type: { + name: 'String' + } + }, + password: { + required: false, + serialized_name: 'password', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb index 54d2d1d5f5..759a9c1a5b 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group.rb @@ -54,7 +54,6 @@ class ContainerGroup < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroup', type: { @@ -62,7 +61,6 @@ def self.mapper() class_name: 'ContainerGroup', 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() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -122,13 +114,11 @@ def self.mapper() } }, containers: { - client_side_validation: true, required: false, serialized_name: 'properties.containers', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerElementType', type: { @@ -139,13 +129,11 @@ def self.mapper() } }, image_registry_credentials: { - client_side_validation: true, required: false, serialized_name: 'properties.imageRegistryCredentials', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ImageRegistryCredentialElementType', type: { @@ -156,7 +144,6 @@ def self.mapper() } }, restart_policy: { - client_side_validation: true, required: false, serialized_name: 'properties.restartPolicy', type: { @@ -164,7 +151,6 @@ def self.mapper() } }, ip_address: { - client_side_validation: true, required: false, serialized_name: 'properties.ipAddress', type: { @@ -173,7 +159,6 @@ def self.mapper() } }, os_type: { - client_side_validation: true, required: false, serialized_name: 'properties.osType', type: { @@ -181,13 +166,11 @@ def self.mapper() } }, volumes: { - client_side_validation: true, required: false, serialized_name: 'properties.volumes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VolumeElementType', type: { @@ -198,7 +181,6 @@ def self.mapper() } }, instance_view: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.instanceView', diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb index 68a80ff460..8b6e25e433 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroupListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'ContainerGroupListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ContainerGroupElementType', 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_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb index 35fb2ade63..744fce441b 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb @@ -26,7 +26,6 @@ class ContainerGroupPropertiesInstanceView # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerGroup_properties_instanceView', type: { @@ -34,14 +33,12 @@ def self.mapper() class_name: 'ContainerGroupPropertiesInstanceView', model_properties: { events: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'events', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EventElementType', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'state', diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb index 59ab9cad43..77f5d53b1d 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_port.rb @@ -26,7 +26,6 @@ class ContainerPort # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerPort', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ContainerPort', model_properties: { protocol: { - client_side_validation: true, required: false, serialized_name: 'protocol', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, port: { - client_side_validation: true, required: true, serialized_name: 'port', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb index 9cad7c31cf..a66d37f60b 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb @@ -32,7 +32,6 @@ class ContainerPropertiesInstanceView # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerProperties_instanceView', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'ContainerPropertiesInstanceView', model_properties: { restart_count: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'restartCount', @@ -49,7 +47,6 @@ def self.mapper() } }, current_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentState', @@ -59,7 +56,6 @@ def self.mapper() } }, previous_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'previousState', @@ -69,14 +65,12 @@ def self.mapper() } }, events: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'events', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EventElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb index 07d328dfb5..14a4943e70 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_state.rb @@ -38,7 +38,6 @@ class ContainerState # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContainerState', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'ContainerState', model_properties: { state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'startTime', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, exit_code: { - client_side_validation: true, required: false, serialized_name: 'exitCode', type: { @@ -70,7 +66,6 @@ def self.mapper() } }, finish_time: { - client_side_validation: true, required: false, serialized_name: 'finishTime', type: { @@ -78,7 +73,6 @@ def self.mapper() } }, detail_status: { - client_side_validation: true, required: false, serialized_name: 'detailStatus', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb index 104f2d8d1b..e3dc96b94e 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/environment_variable.rb @@ -25,7 +25,6 @@ class EnvironmentVariable # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EnvironmentVariable', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'EnvironmentVariable', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/event.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/event.rb index 1a4a8fba89..7b6cd72690 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/event.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/event.rb @@ -37,7 +37,6 @@ class Event # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Event', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'Event', model_properties: { count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -53,7 +51,6 @@ def self.mapper() } }, first_timestamp: { - client_side_validation: true, required: false, serialized_name: 'firstTimestamp', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, last_timestamp: { - client_side_validation: true, required: false, serialized_name: 'lastTimestamp', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -77,7 +72,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -85,7 +79,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb index 1c35b85875..f4833422c1 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/git_repo_volume.rb @@ -32,7 +32,6 @@ class GitRepoVolume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GitRepoVolume', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'GitRepoVolume', model_properties: { directory: { - client_side_validation: true, required: false, serialized_name: 'directory', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, repository: { - client_side_validation: true, required: true, serialized_name: 'repository', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, revision: { - client_side_validation: true, required: false, serialized_name: 'revision', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb index 5502c83db6..e63da722d2 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/image_registry_credential.rb @@ -29,7 +29,6 @@ class ImageRegistryCredential # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ImageRegistryCredential', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ImageRegistryCredential', model_properties: { server: { - client_side_validation: true, required: true, serialized_name: 'server', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, username: { - client_side_validation: true, required: true, serialized_name: 'username', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb index e188709896..38e1f51e49 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/ip_address.rb @@ -35,7 +35,6 @@ class IpAddress # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IpAddress', type: { @@ -43,13 +42,11 @@ def self.mapper() class_name: 'IpAddress', model_properties: { ports: { - client_side_validation: true, required: true, serialized_name: 'ports', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PortElementType', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -70,7 +66,6 @@ def self.mapper() } }, ip: { - client_side_validation: true, required: false, serialized_name: 'ip', type: { @@ -78,7 +73,6 @@ def self.mapper() } }, dns_name_label: { - client_side_validation: true, required: false, serialized_name: 'dnsNameLabel', type: { @@ -86,7 +80,6 @@ def self.mapper() } }, fqdn: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'fqdn', diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/logs.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/logs.rb index 1c6361c291..051b0f7cdd 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/logs.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/logs.rb @@ -22,7 +22,6 @@ class Logs # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Logs', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'Logs', model_properties: { content: { - client_side_validation: true, required: false, serialized_name: 'content', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation.rb index e74f5e515b..1ed301a1a0 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation.rb @@ -29,7 +29,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: true, serialized_name: 'display', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, origin: { - client_side_validation: true, required: false, serialized_name: 'origin', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb index b384c4b45f..71d1e9cd16 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_display.rb @@ -31,7 +31,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { @@ -63,7 +59,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb index 1f406557f3..2892cfeb7d 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/operation_list_result.rb @@ -26,7 +26,6 @@ class OperationListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationListResult', type: { @@ -34,13 +33,11 @@ def self.mapper() class_name: 'OperationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationElementType', type: { @@ -51,7 +48,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/port.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/port.rb index 93ae0b3423..b70a97aa82 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/port.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/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: { protocol: { - client_side_validation: true, required: false, serialized_name: 'protocol', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, port: { - client_side_validation: true, required: true, serialized_name: 'port', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource.rb index 1345973d7a..93cbebcfd7 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource.rb @@ -34,7 +34,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'Resource', 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: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb index 446de78c6f..c154e380d5 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_limits.rb @@ -25,7 +25,6 @@ class ResourceLimits # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceLimits', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ResourceLimits', model_properties: { memory_in_gb: { - client_side_validation: true, required: false, serialized_name: 'memoryInGB', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, cpu: { - client_side_validation: true, required: false, serialized_name: 'cpu', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb index 2780fb9250..a389e68a92 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requests.rb @@ -25,7 +25,6 @@ class ResourceRequests # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceRequests', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ResourceRequests', model_properties: { memory_in_gb: { - client_side_validation: true, required: true, serialized_name: 'memoryInGB', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, cpu: { - client_side_validation: true, required: true, serialized_name: 'cpu', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb index 0a45df07a2..00e14e5f9b 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource_requirements.rb @@ -27,7 +27,6 @@ class ResourceRequirements # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceRequirements', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'ResourceRequirements', model_properties: { requests: { - client_side_validation: true, required: true, serialized_name: 'requests', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, limits: { - client_side_validation: true, required: false, serialized_name: 'limits', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage.rb index a1d1ba3bb7..6fa0dee48b 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage.rb @@ -31,7 +31,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'Usage', model_properties: { unit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', @@ -48,7 +46,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', @@ -57,7 +54,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', @@ -66,7 +62,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb index 2a099130a7..b6f90c49f4 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_list_result.rb @@ -22,7 +22,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -30,14 +29,12 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb index 808abda814..8dbd475b63 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/usage_name.rb @@ -25,7 +25,6 @@ class UsageName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage_name', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageName', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -42,7 +40,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'localizedValue', diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume.rb index 7713b758a3..5c7547594d 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume.rb @@ -34,7 +34,6 @@ class Volume # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Volume', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'Volume', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, azure_file: { - client_side_validation: true, required: false, serialized_name: 'azureFile', type: { @@ -59,7 +56,6 @@ def self.mapper() } }, empty_dir: { - client_side_validation: true, required: false, serialized_name: 'emptyDir', type: { @@ -67,13 +63,11 @@ def self.mapper() } }, secret: { - client_side_validation: true, required: false, serialized_name: 'secret', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -83,7 +77,6 @@ def self.mapper() } }, git_repo: { - client_side_validation: true, required: false, serialized_name: 'gitRepo', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb index 7f8c2e1a58..71d2041194 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/volume_mount.rb @@ -30,7 +30,6 @@ class VolumeMount # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VolumeMount', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'VolumeMount', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, mount_path: { - client_side_validation: true, required: true, serialized_name: 'mountPath', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, read_only: { - client_side_validation: true, required: false, serialized_name: 'readOnly', type: { diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/operations.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/operations.rb index 6337ac141d..2f86fa4ed7 100644 --- a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/operations.rb +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/operations.rb @@ -29,8 +29,8 @@ def initialize(client) # # @return [OperationListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? 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 diff --git a/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb new file mode 100644 index 0000000000..f4ba42f6bf --- /dev/null +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb @@ -0,0 +1,145 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ContainerInstance::Mgmt::V2018_02_01_preview + # + # StartContainer + # + class StartContainer + include MsRestAzure + + # + # Creates and initializes a new instance of the StartContainer class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ContainerInstanceManagementClient] reference to the ContainerInstanceManagementClient + attr_reader :client + + # + # Starts the exec command for a specific container instance. + # + # Starts the exec command for a specified container instance in a specified + # resource group and container group. + # + # @param resource_group_name [String] The name of the resource group. + # @param container_group_name [String] The name of the container group. + # @param container_name [String] The name of the container instance. + # @param container_exec_request [ContainerExecRequest] The request for the exec + # command. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ContainerExecResponse] operation results. + # + def launch_exec(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers = nil) + response = launch_exec_async(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers).value! + response.body unless response.nil? + end + + # + # Starts the exec command for a specific container instance. + # + # Starts the exec command for a specified container instance in a specified + # resource group and container group. + # + # @param resource_group_name [String] The name of the resource group. + # @param container_group_name [String] The name of the container group. + # @param container_name [String] The name of the container instance. + # @param container_exec_request [ContainerExecRequest] The request for the exec + # command. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def launch_exec_with_http_info(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers = nil) + launch_exec_async(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers).value! + end + + # + # Starts the exec command for a specific container instance. + # + # Starts the exec command for a specified container instance in a specified + # resource group and container group. + # + # @param resource_group_name [String] The name of the resource group. + # @param container_group_name [String] The name of the container group. + # @param container_name [String] The name of the container instance. + # @param container_exec_request [ContainerExecRequest] The request for the exec + # command. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def launch_exec_async(resource_group_name, container_group_name, container_name, container_exec_request, 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? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'container_group_name is nil' if container_group_name.nil? + fail ArgumentError, 'container_name is nil' if container_name.nil? + fail ArgumentError, 'container_exec_request is nil' if container_exec_request.nil? + + + request_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::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequest.mapper() + request_content = @client.serialize(request_mapper, container_exec_request) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec' + + 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,'containerGroupName' => container_group_name,'containerName' => container_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::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecResponse.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue 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_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/version.rb b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/version.rb new file mode 100644 index 0000000000..d53bf03778 --- /dev/null +++ b/management/azure_mgmt_container_instance/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/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::ContainerInstance::Mgmt::V2018_02_01_preview + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb b/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb index 0b7d3d6edb..7efe1f5cc1 100644 --- a/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb +++ b/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. require '2017-08-01-preview/generated/azure_mgmt_container_instance' +require 'profiles/latest/containerinstance_latest_profile_client' require '2017-10-01-preview/generated/azure_mgmt_container_instance' require '2017-12-01-preview/generated/azure_mgmt_container_instance' require '2018-02-01-preview/generated/azure_mgmt_container_instance' -require 'profiles/latest/containerinstance_latest_profile_client' diff --git a/management/azure_mgmt_container_instance/lib/profiles/latest/modules/containerinstance_profile_module.rb b/management/azure_mgmt_container_instance/lib/profiles/latest/modules/containerinstance_profile_module.rb index 6bf8a8358e..339154c9e2 100644 --- a/management/azure_mgmt_container_instance/lib/profiles/latest/modules/containerinstance_profile_module.rb +++ b/management/azure_mgmt_container_instance/lib/profiles/latest/modules/containerinstance_profile_module.rb @@ -10,33 +10,37 @@ module Mgmt Operations = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Operations ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerGroupUsage ContainerLogs = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerLogs + StartContainer = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::StartContainer module Models - ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential - Port = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port - EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable IpAddress = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::IpAddress - Event = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event + ContainerPort = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort ContainerGroupPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupPropertiesInstanceView + ContainerState = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState + Event = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event ResourceRequests = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequests - ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits - VolumeMount = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationDisplay - AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume + ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements Operation = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation - Volume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume + Container = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container OperationListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationListResult - ContainerState = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState + GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume UsageName = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageName - ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements + ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential Usage = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Usage - GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume + EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable UsageListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageListResult - ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView + ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupListResult - ContainerPort = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort + AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume Logs = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Logs - Container = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container + Port = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port + ContainerExecRequestTerminalSize = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequestTerminalSize + VolumeMount = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount + ContainerExecRequest = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequest + ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView + ContainerExecResponse = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecResponse + Volume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume Resource = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup ContainerNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerNetworkProtocol @@ -50,7 +54,7 @@ module Models # ContainerInstanceManagementClass # class ContainerInstanceManagementClass - attr_reader :container_groups, :operations, :container_group_usage, :container_logs, :configurable, :base_url, :options, :model_classes + attr_reader :container_groups, :operations, :container_group_usage, :container_logs, :start_container, :configurable, :base_url, :options, :model_classes def initialize(options = {}) if options.is_a?(Hash) && options.length == 0 @@ -74,6 +78,7 @@ def initialize(options = {}) @operations = @client_0.operations @container_group_usage = @client_0.container_group_usage @container_logs = @client_0.container_logs + @start_container = @client_0.start_container @model_classes = ModelClasses.new end @@ -94,80 +99,89 @@ def method_missing(method, *args) end class ModelClasses - def image_registry_credential - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential - end - def port - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port - end - def environment_variable - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable - end def ip_address Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::IpAddress end - def event - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event + def container_port + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort end def container_group_properties_instance_view Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupPropertiesInstanceView end - def resource_requests - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequests + def container_state + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState end - def resource_limits - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits + def event + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event end - def volume_mount - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount + def resource_requests + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequests end def operation_display Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationDisplay end - def azure_file_volume - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume + def resource_requirements + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements end def operation Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation end - def volume - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume + def container + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container end def operation_list_result Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationListResult end - def container_state - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState + def git_repo_volume + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume end def usage_name Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageName end - def resource_requirements - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements + def image_registry_credential + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential end def usage Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Usage end - def git_repo_volume - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume + def environment_variable + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable end def usage_list_result Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageListResult end - def container_properties_instance_view - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView + def resource_limits + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits end def container_group_list_result Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupListResult end - def container_port - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort + def azure_file_volume + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume end def logs Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Logs end - def container - Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container + def port + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port + end + def container_exec_request_terminal_size + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequestTerminalSize + end + def volume_mount + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount + end + def container_exec_request + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecRequest + end + def container_properties_instance_view + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView + end + def container_exec_response + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerExecResponse + end + def volume + Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume end def resource Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource From 6ae9799f5642965a6a82a80250275ecf5bad635d Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Wed, 13 Jun 2018 13:20:50 -0700 Subject: [PATCH 2/3] Minor Fix --- .../lib/azure_mgmt_container_instance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb b/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb index 7efe1f5cc1..0b7d3d6edb 100644 --- a/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb +++ b/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. require '2017-08-01-preview/generated/azure_mgmt_container_instance' -require 'profiles/latest/containerinstance_latest_profile_client' require '2017-10-01-preview/generated/azure_mgmt_container_instance' require '2017-12-01-preview/generated/azure_mgmt_container_instance' require '2018-02-01-preview/generated/azure_mgmt_container_instance' +require 'profiles/latest/containerinstance_latest_profile_client' From 11a98bad331bb54b10f22b57047d8c9ec5e0a18f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 13 Jun 2018 14:11:05 -0700 Subject: [PATCH 3/3] Generated from 1c3ce366b0de6230300a2293c500204e7a89e8db (#1371) Update readme.md --- .../lib/azure_mgmt_container_instance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb b/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb index 0b7d3d6edb..7efe1f5cc1 100644 --- a/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb +++ b/management/azure_mgmt_container_instance/lib/azure_mgmt_container_instance.rb @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. require '2017-08-01-preview/generated/azure_mgmt_container_instance' +require 'profiles/latest/containerinstance_latest_profile_client' require '2017-10-01-preview/generated/azure_mgmt_container_instance' require '2017-12-01-preview/generated/azure_mgmt_container_instance' require '2018-02-01-preview/generated/azure_mgmt_container_instance' -require 'profiles/latest/containerinstance_latest_profile_client'