From cf514f72e23bd902b45b79be4543ab40a01481c0 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 6 Sep 2018 21:39:26 +0000 Subject: [PATCH] Generated from 41afecad86851cf0f2955c9042941e245b85d15a Adding ability to use private ip --- .../generated/azure_mgmt_container_instance.rb | 1 + .../models/container_group_ip_address_type.rb | 16 ++++++++++++++++ .../models/ip_address.rb | 6 ++---- 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb diff --git a/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance.rb b/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance.rb index 398acb277c..0978594d66 100644 --- a/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance.rb +++ b/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance.rb @@ -66,6 +66,7 @@ module Models autoload :ContainerNetworkProtocol, '2018-09-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb' autoload :ContainerGroupRestartPolicy, '2018-09-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb' autoload :ContainerGroupNetworkProtocol, '2018-09-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb' + autoload :ContainerGroupIpAddressType, '2018-09-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb' autoload :OperatingSystemTypes, '2018-09-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb' autoload :LogAnalyticsLogType, '2018-09-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb' autoload :ContainerInstanceOperationsOrigin, '2018-09-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb' diff --git a/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb b/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb new file mode 100644 index 0000000000..af81d7622b --- /dev/null +++ b/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ContainerInstance::Mgmt::V2018_02_01_preview + module Models + # + # Defines values for ContainerGroupIpAddressType + # + module ContainerGroupIpAddressType + Public = "Public" + Private = "Private" + end + end +end diff --git a/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/models/ip_address.rb b/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/models/ip_address.rb index 38e1f51e49..4ef9c5b921 100644 --- a/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/models/ip_address.rb +++ b/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/models/ip_address.rb @@ -15,8 +15,8 @@ class IpAddress # @return [Array] The list of ports exposed on the container group. attr_accessor :ports - # @return [String] Specifies if the IP is exposed to the public internet. - # Default value: 'Public' . + # @return [ContainerGroupIpAddressType] Specifies if the IP is exposed to + # the public internet. Possible values include: 'Public', 'Private' attr_accessor :type # @return [String] The IP exposed to the public internet. @@ -58,9 +58,7 @@ def self.mapper() }, type: { required: true, - is_constant: true, serialized_name: 'type', - default_value: 'Public', type: { name: 'String' }