oci 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/core/compute_client.rb +2 -2
- data/lib/oci/core/core.rb +1 -0
- data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +1 -1
- data/lib/oci/core/models/boot_volume_attachment.rb +1 -1
- data/lib/oci/core/models/create_cross_connect_details.rb +20 -4
- data/lib/oci/core/models/create_cross_connect_group_details.rb +20 -4
- data/lib/oci/core/models/create_image_details.rb +1 -1
- data/lib/oci/core/models/create_virtual_circuit_details.rb +16 -1
- data/lib/oci/core/models/cross_connect.rb +17 -1
- data/lib/oci/core/models/cross_connect_group.rb +17 -1
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +3 -3
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +1 -1
- data/lib/oci/core/models/fast_connect_provider_service.rb +128 -1
- data/lib/oci/core/models/fast_connect_provider_service_key.rb +185 -0
- data/lib/oci/core/models/image_source_details.rb +2 -2
- data/lib/oci/core/models/launch_instance_details.rb +1 -1
- data/lib/oci/core/models/launch_options.rb +1 -1
- data/lib/oci/core/models/update_cross_connect_details.rb +20 -4
- data/lib/oci/core/models/update_cross_connect_group_details.rb +20 -4
- data/lib/oci/core/models/update_virtual_circuit_details.rb +16 -1
- data/lib/oci/core/models/virtual_circuit.rb +18 -2
- data/lib/oci/core/models/volume_attachment.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +57 -0
- data/lib/oci/key_management/kms_crypto_client.rb +4 -4
- data/lib/oci/key_management/kms_management_client.rb +13 -13
- data/lib/oci/key_management/kms_vault_client.rb +16 -16
- data/lib/oci/key_management/models/decrypted_data.rb +1 -1
- data/lib/oci/key_management/models/key.rb +3 -3
- data/lib/oci/key_management/models/schedule_vault_deletion_details.rb +4 -4
- data/lib/oci/key_management/models/vault.rb +1 -1
- data/lib/oci/key_management/models/vault_summary.rb +1 -1
- data/lib/oci/version.rb +1 -1
- metadata +3 -2
| @@ -0,0 +1,185 @@ | |
| 1 | 
            +
            # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            require 'date'
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            # rubocop:disable Lint/UnneededCopDisableDirective
         | 
| 6 | 
            +
            module OCI
         | 
| 7 | 
            +
              # A provider service key and its details. A provider service key is an identifier for a provider's
         | 
| 8 | 
            +
              # virtual circuit.
         | 
| 9 | 
            +
              #
         | 
| 10 | 
            +
              class Core::Models::FastConnectProviderServiceKey # rubocop:disable Metrics/LineLength
         | 
| 11 | 
            +
                # The name of the service key offered by the provider.
         | 
| 12 | 
            +
                #
         | 
| 13 | 
            +
                # @return [String]
         | 
| 14 | 
            +
                attr_accessor :name
         | 
| 15 | 
            +
             | 
| 16 | 
            +
                # The provisioned data rate of the connection.  To get a list of the
         | 
| 17 | 
            +
                # available bandwidth levels (that is, shapes), see
         | 
| 18 | 
            +
                # {#list_fast_connect_provider_virtual_circuit_bandwidth_shapes list_fast_connect_provider_virtual_circuit_bandwidth_shapes}.
         | 
| 19 | 
            +
                #
         | 
| 20 | 
            +
                # Example: `10 Gbps`
         | 
| 21 | 
            +
                #
         | 
| 22 | 
            +
                # @return [String]
         | 
| 23 | 
            +
                attr_accessor :bandwidth_shape_name
         | 
| 24 | 
            +
             | 
| 25 | 
            +
                # The provider's peering location.
         | 
| 26 | 
            +
                # @return [String]
         | 
| 27 | 
            +
                attr_accessor :peering_location
         | 
| 28 | 
            +
             | 
| 29 | 
            +
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 30 | 
            +
                def self.attribute_map
         | 
| 31 | 
            +
                  {
         | 
| 32 | 
            +
                    # rubocop:disable Style/SymbolLiteral
         | 
| 33 | 
            +
                    'name': :'name',
         | 
| 34 | 
            +
                    'bandwidth_shape_name': :'bandwidthShapeName',
         | 
| 35 | 
            +
                    'peering_location': :'peeringLocation'
         | 
| 36 | 
            +
                    # rubocop:enable Style/SymbolLiteral
         | 
| 37 | 
            +
                  }
         | 
| 38 | 
            +
                end
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                # Attribute type mapping.
         | 
| 41 | 
            +
                def self.swagger_types
         | 
| 42 | 
            +
                  {
         | 
| 43 | 
            +
                    # rubocop:disable Style/SymbolLiteral
         | 
| 44 | 
            +
                    'name': :'String',
         | 
| 45 | 
            +
                    'bandwidth_shape_name': :'String',
         | 
| 46 | 
            +
                    'peering_location': :'String'
         | 
| 47 | 
            +
                    # rubocop:enable Style/SymbolLiteral
         | 
| 48 | 
            +
                  }
         | 
| 49 | 
            +
                end
         | 
| 50 | 
            +
             | 
| 51 | 
            +
                # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
         | 
| 52 | 
            +
                # rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
         | 
| 53 | 
            +
             | 
| 54 | 
            +
             | 
| 55 | 
            +
                # Initializes the object
         | 
| 56 | 
            +
                # @param [Hash] attributes Model attributes in the form of hash
         | 
| 57 | 
            +
                # @option attributes [String] :name The value to assign to the {#name} property
         | 
| 58 | 
            +
                # @option attributes [String] :bandwidth_shape_name The value to assign to the {#bandwidth_shape_name} property
         | 
| 59 | 
            +
                # @option attributes [String] :peering_location The value to assign to the {#peering_location} property
         | 
| 60 | 
            +
                def initialize(attributes = {})
         | 
| 61 | 
            +
                  return unless attributes.is_a?(Hash)
         | 
| 62 | 
            +
             | 
| 63 | 
            +
                  # convert string to symbol for hash key
         | 
| 64 | 
            +
                  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
         | 
| 65 | 
            +
             | 
| 66 | 
            +
                  self.name = attributes[:'name'] if attributes[:'name']
         | 
| 67 | 
            +
             | 
| 68 | 
            +
                  self.bandwidth_shape_name = attributes[:'bandwidthShapeName'] if attributes[:'bandwidthShapeName']
         | 
| 69 | 
            +
             | 
| 70 | 
            +
                  raise 'You cannot provide both :bandwidthShapeName and :bandwidth_shape_name' if attributes.key?(:'bandwidthShapeName') && attributes.key?(:'bandwidth_shape_name')
         | 
| 71 | 
            +
             | 
| 72 | 
            +
                  self.bandwidth_shape_name = attributes[:'bandwidth_shape_name'] if attributes[:'bandwidth_shape_name']
         | 
| 73 | 
            +
             | 
| 74 | 
            +
                  self.peering_location = attributes[:'peeringLocation'] if attributes[:'peeringLocation']
         | 
| 75 | 
            +
             | 
| 76 | 
            +
                  raise 'You cannot provide both :peeringLocation and :peering_location' if attributes.key?(:'peeringLocation') && attributes.key?(:'peering_location')
         | 
| 77 | 
            +
             | 
| 78 | 
            +
                  self.peering_location = attributes[:'peering_location'] if attributes[:'peering_location']
         | 
| 79 | 
            +
                end
         | 
| 80 | 
            +
                # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
         | 
| 81 | 
            +
                # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
         | 
| 82 | 
            +
             | 
| 83 | 
            +
                # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
         | 
| 84 | 
            +
             | 
| 85 | 
            +
             | 
| 86 | 
            +
                # Checks equality by comparing each attribute.
         | 
| 87 | 
            +
                # @param [Object] other the other object to be compared
         | 
| 88 | 
            +
                def ==(other)
         | 
| 89 | 
            +
                  return true if equal?(other)
         | 
| 90 | 
            +
             | 
| 91 | 
            +
                  self.class == other.class &&
         | 
| 92 | 
            +
                    name == other.name &&
         | 
| 93 | 
            +
                    bandwidth_shape_name == other.bandwidth_shape_name &&
         | 
| 94 | 
            +
                    peering_location == other.peering_location
         | 
| 95 | 
            +
                end
         | 
| 96 | 
            +
                # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
         | 
| 97 | 
            +
             | 
| 98 | 
            +
                # @see the `==` method
         | 
| 99 | 
            +
                # @param [Object] other the other object to be compared
         | 
| 100 | 
            +
                def eql?(other)
         | 
| 101 | 
            +
                  self == other
         | 
| 102 | 
            +
                end
         | 
| 103 | 
            +
             | 
| 104 | 
            +
                # rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
         | 
| 105 | 
            +
             | 
| 106 | 
            +
             | 
| 107 | 
            +
                # Calculates hash code according to all attributes.
         | 
| 108 | 
            +
                # @return [Fixnum] Hash code
         | 
| 109 | 
            +
                def hash
         | 
| 110 | 
            +
                  [name, bandwidth_shape_name, peering_location].hash
         | 
| 111 | 
            +
                end
         | 
| 112 | 
            +
                # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
         | 
| 113 | 
            +
             | 
| 114 | 
            +
                # rubocop:disable Metrics/AbcSize, Layout/EmptyLines
         | 
| 115 | 
            +
             | 
| 116 | 
            +
             | 
| 117 | 
            +
                # Builds the object from hash
         | 
| 118 | 
            +
                # @param [Hash] attributes Model attributes in the form of hash
         | 
| 119 | 
            +
                # @return [Object] Returns the model itself
         | 
| 120 | 
            +
                def build_from_hash(attributes)
         | 
| 121 | 
            +
                  return nil unless attributes.is_a?(Hash)
         | 
| 122 | 
            +
             | 
| 123 | 
            +
                  self.class.swagger_types.each_pair do |key, type|
         | 
| 124 | 
            +
                    if type =~ /^Array<(.*)>/i
         | 
| 125 | 
            +
                      # check to ensure the input is an array given that the the attribute
         | 
| 126 | 
            +
                      # is documented as an array but the input is not
         | 
| 127 | 
            +
                      if attributes[self.class.attribute_map[key]].is_a?(Array)
         | 
| 128 | 
            +
                        public_method("#{key}=").call(
         | 
| 129 | 
            +
                          attributes[self.class.attribute_map[key]]
         | 
| 130 | 
            +
                            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
         | 
| 131 | 
            +
                        )
         | 
| 132 | 
            +
                      end
         | 
| 133 | 
            +
                    elsif !attributes[self.class.attribute_map[key]].nil?
         | 
| 134 | 
            +
                      public_method("#{key}=").call(
         | 
| 135 | 
            +
                        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
         | 
| 136 | 
            +
                      )
         | 
| 137 | 
            +
                    end
         | 
| 138 | 
            +
                    # or else data not found in attributes(hash), not an issue as the data can be optional
         | 
| 139 | 
            +
                  end
         | 
| 140 | 
            +
             | 
| 141 | 
            +
                  self
         | 
| 142 | 
            +
                end
         | 
| 143 | 
            +
                # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
         | 
| 144 | 
            +
             | 
| 145 | 
            +
                # Returns the string representation of the object
         | 
| 146 | 
            +
                # @return [String] String presentation of the object
         | 
| 147 | 
            +
                def to_s
         | 
| 148 | 
            +
                  to_hash.to_s
         | 
| 149 | 
            +
                end
         | 
| 150 | 
            +
             | 
| 151 | 
            +
                # Returns the object in the form of hash
         | 
| 152 | 
            +
                # @return [Hash] Returns the object in the form of hash
         | 
| 153 | 
            +
                def to_hash
         | 
| 154 | 
            +
                  hash = {}
         | 
| 155 | 
            +
                  self.class.attribute_map.each_pair do |attr, param|
         | 
| 156 | 
            +
                    value = public_method(attr).call
         | 
| 157 | 
            +
                    next if value.nil? && !instance_variable_defined?("@#{attr}")
         | 
| 158 | 
            +
             | 
| 159 | 
            +
                    hash[param] = _to_hash(value)
         | 
| 160 | 
            +
                  end
         | 
| 161 | 
            +
                  hash
         | 
| 162 | 
            +
                end
         | 
| 163 | 
            +
             | 
| 164 | 
            +
                private
         | 
| 165 | 
            +
             | 
| 166 | 
            +
                # Outputs non-array value in the form of hash
         | 
| 167 | 
            +
                # For object, use to_hash. Otherwise, just return the value
         | 
| 168 | 
            +
                # @param [Object] value Any valid value
         | 
| 169 | 
            +
                # @return [Hash] Returns the value in the form of hash
         | 
| 170 | 
            +
                def _to_hash(value)
         | 
| 171 | 
            +
                  if value.is_a?(Array)
         | 
| 172 | 
            +
                    value.compact.map { |v| _to_hash(v) }
         | 
| 173 | 
            +
                  elsif value.is_a?(Hash)
         | 
| 174 | 
            +
                    {}.tap do |hash|
         | 
| 175 | 
            +
                      value.each { |k, v| hash[k] = _to_hash(v) }
         | 
| 176 | 
            +
                    end
         | 
| 177 | 
            +
                  elsif value.respond_to? :to_hash
         | 
| 178 | 
            +
                    value.to_hash
         | 
| 179 | 
            +
                  else
         | 
| 180 | 
            +
                    value
         | 
| 181 | 
            +
                  end
         | 
| 182 | 
            +
                end
         | 
| 183 | 
            +
              end
         | 
| 184 | 
            +
            end
         | 
| 185 | 
            +
            # rubocop:enable Lint/UnneededCopDisableDirective
         | 
| @@ -12,8 +12,8 @@ module OCI | |
| 12 12 | 
             
                  SOURCE_IMAGE_TYPE_VMDK = 'VMDK'.freeze
         | 
| 13 13 | 
             
                ].freeze
         | 
| 14 14 |  | 
| 15 | 
            -
                # The format of the image to be imported.   | 
| 16 | 
            -
                # images are supported.
         | 
| 15 | 
            +
                # The format of the image to be imported.  Only monolithic
         | 
| 16 | 
            +
                # images are supported. This attribute is not used for exported Oracle images with the OCI image format.
         | 
| 17 17 | 
             
                #
         | 
| 18 18 | 
             
                # @return [String]
         | 
| 19 19 | 
             
                attr_reader :source_image_type
         | 
| @@ -202,7 +202,7 @@ module OCI | |
| 202 202 | 
             
                # @return [String]
         | 
| 203 203 | 
             
                attr_accessor :subnet_id
         | 
| 204 204 |  | 
| 205 | 
            -
                # Whether to enable  | 
| 205 | 
            +
                # Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false.
         | 
| 206 206 | 
             
                # @return [BOOLEAN]
         | 
| 207 207 | 
             
                attr_accessor :is_pv_encryption_in_transit_enabled
         | 
| 208 208 |  | 
| @@ -80,7 +80,7 @@ module OCI | |
| 80 80 | 
             
                # @return [String]
         | 
| 81 81 | 
             
                attr_reader :remote_data_volume_type
         | 
| 82 82 |  | 
| 83 | 
            -
                # Whether to enable  | 
| 83 | 
            +
                # Whether to enable in-transit encryption for the boot volume's paravirtualized attachment. The default value is false.
         | 
| 84 84 | 
             
                # @return [BOOLEAN]
         | 
| 85 85 | 
             
                attr_accessor :is_pv_encryption_in_transit_enabled
         | 
| 86 86 |  | 
| @@ -22,12 +22,19 @@ module OCI | |
| 22 22 | 
             
                # @return [BOOLEAN]
         | 
| 23 23 | 
             
                attr_accessor :is_active
         | 
| 24 24 |  | 
| 25 | 
            +
                # A reference name or identifier for the physical fiber connection that this cross-connect
         | 
| 26 | 
            +
                # uses.
         | 
| 27 | 
            +
                #
         | 
| 28 | 
            +
                # @return [String]
         | 
| 29 | 
            +
                attr_accessor :customer_reference_name
         | 
| 30 | 
            +
             | 
| 25 31 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 26 32 | 
             
                def self.attribute_map
         | 
| 27 33 | 
             
                  {
         | 
| 28 34 | 
             
                    # rubocop:disable Style/SymbolLiteral
         | 
| 29 35 | 
             
                    'display_name': :'displayName',
         | 
| 30 | 
            -
                    'is_active': :'isActive'
         | 
| 36 | 
            +
                    'is_active': :'isActive',
         | 
| 37 | 
            +
                    'customer_reference_name': :'customerReferenceName'
         | 
| 31 38 | 
             
                    # rubocop:enable Style/SymbolLiteral
         | 
| 32 39 | 
             
                  }
         | 
| 33 40 | 
             
                end
         | 
| @@ -37,7 +44,8 @@ module OCI | |
| 37 44 | 
             
                  {
         | 
| 38 45 | 
             
                    # rubocop:disable Style/SymbolLiteral
         | 
| 39 46 | 
             
                    'display_name': :'String',
         | 
| 40 | 
            -
                    'is_active': :'BOOLEAN'
         | 
| 47 | 
            +
                    'is_active': :'BOOLEAN',
         | 
| 48 | 
            +
                    'customer_reference_name': :'String'
         | 
| 41 49 | 
             
                    # rubocop:enable Style/SymbolLiteral
         | 
| 42 50 | 
             
                  }
         | 
| 43 51 | 
             
                end
         | 
| @@ -50,6 +58,7 @@ module OCI | |
| 50 58 | 
             
                # @param [Hash] attributes Model attributes in the form of hash
         | 
| 51 59 | 
             
                # @option attributes [String] :display_name The value to assign to the {#display_name} property
         | 
| 52 60 | 
             
                # @option attributes [BOOLEAN] :is_active The value to assign to the {#is_active} property
         | 
| 61 | 
            +
                # @option attributes [String] :customer_reference_name The value to assign to the {#customer_reference_name} property
         | 
| 53 62 | 
             
                def initialize(attributes = {})
         | 
| 54 63 | 
             
                  return unless attributes.is_a?(Hash)
         | 
| 55 64 |  | 
| @@ -67,6 +76,12 @@ module OCI | |
| 67 76 | 
             
                  raise 'You cannot provide both :isActive and :is_active' if attributes.key?(:'isActive') && attributes.key?(:'is_active')
         | 
| 68 77 |  | 
| 69 78 | 
             
                  self.is_active = attributes[:'is_active'] unless attributes[:'is_active'].nil?
         | 
| 79 | 
            +
             | 
| 80 | 
            +
                  self.customer_reference_name = attributes[:'customerReferenceName'] if attributes[:'customerReferenceName']
         | 
| 81 | 
            +
             | 
| 82 | 
            +
                  raise 'You cannot provide both :customerReferenceName and :customer_reference_name' if attributes.key?(:'customerReferenceName') && attributes.key?(:'customer_reference_name')
         | 
| 83 | 
            +
             | 
| 84 | 
            +
                  self.customer_reference_name = attributes[:'customer_reference_name'] if attributes[:'customer_reference_name']
         | 
| 70 85 | 
             
                end
         | 
| 71 86 | 
             
                # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
         | 
| 72 87 | 
             
                # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
         | 
| @@ -81,7 +96,8 @@ module OCI | |
| 81 96 |  | 
| 82 97 | 
             
                  self.class == other.class &&
         | 
| 83 98 | 
             
                    display_name == other.display_name &&
         | 
| 84 | 
            -
                    is_active == other.is_active
         | 
| 99 | 
            +
                    is_active == other.is_active &&
         | 
| 100 | 
            +
                    customer_reference_name == other.customer_reference_name
         | 
| 85 101 | 
             
                end
         | 
| 86 102 | 
             
                # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
         | 
| 87 103 |  | 
| @@ -97,7 +113,7 @@ module OCI | |
| 97 113 | 
             
                # Calculates hash code according to all attributes.
         | 
| 98 114 | 
             
                # @return [Fixnum] Hash code
         | 
| 99 115 | 
             
                def hash
         | 
| 100 | 
            -
                  [display_name, is_active].hash
         | 
| 116 | 
            +
                  [display_name, is_active, customer_reference_name].hash
         | 
| 101 117 | 
             
                end
         | 
| 102 118 | 
             
                # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
         | 
| 103 119 |  | 
| @@ -12,11 +12,18 @@ module OCI | |
| 12 12 | 
             
                # @return [String]
         | 
| 13 13 | 
             
                attr_accessor :display_name
         | 
| 14 14 |  | 
| 15 | 
            +
                # A reference name or identifier for the physical fiber connection that this cross-connect
         | 
| 16 | 
            +
                # group uses.
         | 
| 17 | 
            +
                #
         | 
| 18 | 
            +
                # @return [String]
         | 
| 19 | 
            +
                attr_accessor :customer_reference_name
         | 
| 20 | 
            +
             | 
| 15 21 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 16 22 | 
             
                def self.attribute_map
         | 
| 17 23 | 
             
                  {
         | 
| 18 24 | 
             
                    # rubocop:disable Style/SymbolLiteral
         | 
| 19 | 
            -
                    'display_name': :'displayName'
         | 
| 25 | 
            +
                    'display_name': :'displayName',
         | 
| 26 | 
            +
                    'customer_reference_name': :'customerReferenceName'
         | 
| 20 27 | 
             
                    # rubocop:enable Style/SymbolLiteral
         | 
| 21 28 | 
             
                  }
         | 
| 22 29 | 
             
                end
         | 
| @@ -25,7 +32,8 @@ module OCI | |
| 25 32 | 
             
                def self.swagger_types
         | 
| 26 33 | 
             
                  {
         | 
| 27 34 | 
             
                    # rubocop:disable Style/SymbolLiteral
         | 
| 28 | 
            -
                    'display_name': :'String'
         | 
| 35 | 
            +
                    'display_name': :'String',
         | 
| 36 | 
            +
                    'customer_reference_name': :'String'
         | 
| 29 37 | 
             
                    # rubocop:enable Style/SymbolLiteral
         | 
| 30 38 | 
             
                  }
         | 
| 31 39 | 
             
                end
         | 
| @@ -37,6 +45,7 @@ module OCI | |
| 37 45 | 
             
                # Initializes the object
         | 
| 38 46 | 
             
                # @param [Hash] attributes Model attributes in the form of hash
         | 
| 39 47 | 
             
                # @option attributes [String] :display_name The value to assign to the {#display_name} property
         | 
| 48 | 
            +
                # @option attributes [String] :customer_reference_name The value to assign to the {#customer_reference_name} property
         | 
| 40 49 | 
             
                def initialize(attributes = {})
         | 
| 41 50 | 
             
                  return unless attributes.is_a?(Hash)
         | 
| 42 51 |  | 
| @@ -48,6 +57,12 @@ module OCI | |
| 48 57 | 
             
                  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
         | 
| 49 58 |  | 
| 50 59 | 
             
                  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
         | 
| 60 | 
            +
             | 
| 61 | 
            +
                  self.customer_reference_name = attributes[:'customerReferenceName'] if attributes[:'customerReferenceName']
         | 
| 62 | 
            +
             | 
| 63 | 
            +
                  raise 'You cannot provide both :customerReferenceName and :customer_reference_name' if attributes.key?(:'customerReferenceName') && attributes.key?(:'customer_reference_name')
         | 
| 64 | 
            +
             | 
| 65 | 
            +
                  self.customer_reference_name = attributes[:'customer_reference_name'] if attributes[:'customer_reference_name']
         | 
| 51 66 | 
             
                end
         | 
| 52 67 | 
             
                # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
         | 
| 53 68 | 
             
                # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
         | 
| @@ -61,7 +76,8 @@ module OCI | |
| 61 76 | 
             
                  return true if equal?(other)
         | 
| 62 77 |  | 
| 63 78 | 
             
                  self.class == other.class &&
         | 
| 64 | 
            -
                    display_name == other.display_name
         | 
| 79 | 
            +
                    display_name == other.display_name &&
         | 
| 80 | 
            +
                    customer_reference_name == other.customer_reference_name
         | 
| 65 81 | 
             
                end
         | 
| 66 82 | 
             
                # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
         | 
| 67 83 |  | 
| @@ -77,7 +93,7 @@ module OCI | |
| 77 93 | 
             
                # Calculates hash code according to all attributes.
         | 
| 78 94 | 
             
                # @return [Fixnum] Hash code
         | 
| 79 95 | 
             
                def hash
         | 
| 80 | 
            -
                  [display_name].hash
         | 
| 96 | 
            +
                  [display_name, customer_reference_name].hash
         | 
| 81 97 | 
             
                end
         | 
| 82 98 | 
             
                # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
         | 
| 83 99 |  | 
| @@ -70,6 +70,11 @@ module OCI | |
| 70 70 | 
             
                # @return [String]
         | 
| 71 71 | 
             
                attr_reader :provider_state
         | 
| 72 72 |  | 
| 73 | 
            +
                # The service key name offered by the provider (if the customer is connecting via a provider).
         | 
| 74 | 
            +
                #
         | 
| 75 | 
            +
                # @return [String]
         | 
| 76 | 
            +
                attr_accessor :provider_service_key_name
         | 
| 77 | 
            +
             | 
| 73 78 | 
             
                # Provider-supplied reference information about this virtual circuit.
         | 
| 74 79 | 
             
                # Relevant only if the customer is using FastConnect via a provider.
         | 
| 75 80 | 
             
                #
         | 
| @@ -88,6 +93,7 @@ module OCI | |
| 88 93 | 
             
                    'display_name': :'displayName',
         | 
| 89 94 | 
             
                    'gateway_id': :'gatewayId',
         | 
| 90 95 | 
             
                    'provider_state': :'providerState',
         | 
| 96 | 
            +
                    'provider_service_key_name': :'providerServiceKeyName',
         | 
| 91 97 | 
             
                    'reference_comment': :'referenceComment'
         | 
| 92 98 | 
             
                    # rubocop:enable Style/SymbolLiteral
         | 
| 93 99 | 
             
                  }
         | 
| @@ -103,6 +109,7 @@ module OCI | |
| 103 109 | 
             
                    'display_name': :'String',
         | 
| 104 110 | 
             
                    'gateway_id': :'String',
         | 
| 105 111 | 
             
                    'provider_state': :'String',
         | 
| 112 | 
            +
                    'provider_service_key_name': :'String',
         | 
| 106 113 | 
             
                    'reference_comment': :'String'
         | 
| 107 114 | 
             
                    # rubocop:enable Style/SymbolLiteral
         | 
| 108 115 | 
             
                  }
         | 
| @@ -120,6 +127,7 @@ module OCI | |
| 120 127 | 
             
                # @option attributes [String] :display_name The value to assign to the {#display_name} property
         | 
| 121 128 | 
             
                # @option attributes [String] :gateway_id The value to assign to the {#gateway_id} property
         | 
| 122 129 | 
             
                # @option attributes [String] :provider_state The value to assign to the {#provider_state} property
         | 
| 130 | 
            +
                # @option attributes [String] :provider_service_key_name The value to assign to the {#provider_service_key_name} property
         | 
| 123 131 | 
             
                # @option attributes [String] :reference_comment The value to assign to the {#reference_comment} property
         | 
| 124 132 | 
             
                def initialize(attributes = {})
         | 
| 125 133 | 
             
                  return unless attributes.is_a?(Hash)
         | 
| @@ -163,6 +171,12 @@ module OCI | |
| 163 171 |  | 
| 164 172 | 
             
                  self.provider_state = attributes[:'provider_state'] if attributes[:'provider_state']
         | 
| 165 173 |  | 
| 174 | 
            +
                  self.provider_service_key_name = attributes[:'providerServiceKeyName'] if attributes[:'providerServiceKeyName']
         | 
| 175 | 
            +
             | 
| 176 | 
            +
                  raise 'You cannot provide both :providerServiceKeyName and :provider_service_key_name' if attributes.key?(:'providerServiceKeyName') && attributes.key?(:'provider_service_key_name')
         | 
| 177 | 
            +
             | 
| 178 | 
            +
                  self.provider_service_key_name = attributes[:'provider_service_key_name'] if attributes[:'provider_service_key_name']
         | 
| 179 | 
            +
             | 
| 166 180 | 
             
                  self.reference_comment = attributes[:'referenceComment'] if attributes[:'referenceComment']
         | 
| 167 181 |  | 
| 168 182 | 
             
                  raise 'You cannot provide both :referenceComment and :reference_comment' if attributes.key?(:'referenceComment') && attributes.key?(:'reference_comment')
         | 
| @@ -197,6 +211,7 @@ module OCI | |
| 197 211 | 
             
                    display_name == other.display_name &&
         | 
| 198 212 | 
             
                    gateway_id == other.gateway_id &&
         | 
| 199 213 | 
             
                    provider_state == other.provider_state &&
         | 
| 214 | 
            +
                    provider_service_key_name == other.provider_service_key_name &&
         | 
| 200 215 | 
             
                    reference_comment == other.reference_comment
         | 
| 201 216 | 
             
                end
         | 
| 202 217 | 
             
                # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
         | 
| @@ -213,7 +228,7 @@ module OCI | |
| 213 228 | 
             
                # Calculates hash code according to all attributes.
         | 
| 214 229 | 
             
                # @return [Fixnum] Hash code
         | 
| 215 230 | 
             
                def hash
         | 
| 216 | 
            -
                  [bandwidth_shape_name, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, provider_state, reference_comment].hash
         | 
| 231 | 
            +
                  [bandwidth_shape_name, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, provider_state, provider_service_key_name, reference_comment].hash
         | 
| 217 232 | 
             
                end
         | 
| 218 233 | 
             
                # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
         | 
| 219 234 |  | 
| @@ -82,7 +82,8 @@ module OCI | |
| 82 82 | 
             
                # @return [String]
         | 
| 83 83 | 
             
                attr_accessor :bandwidth_shape_name
         | 
| 84 84 |  | 
| 85 | 
            -
                #  | 
| 85 | 
            +
                # Deprecated. Instead use the information in
         | 
| 86 | 
            +
                # {FastConnectProviderService}.
         | 
| 86 87 | 
             
                #
         | 
| 87 88 | 
             
                # @return [String]
         | 
| 88 89 | 
             
                attr_reader :bgp_management
         | 
| @@ -148,6 +149,11 @@ module OCI | |
| 148 149 | 
             
                # @return [String]
         | 
| 149 150 | 
             
                attr_accessor :provider_service_id
         | 
| 150 151 |  | 
| 152 | 
            +
                # The service key name offered by the provider (if the customer is connecting via a provider).
         | 
| 153 | 
            +
                #
         | 
| 154 | 
            +
                # @return [String]
         | 
| 155 | 
            +
                attr_accessor :provider_service_key_name
         | 
| 156 | 
            +
             | 
| 151 157 | 
             
                # Deprecated. Instead use `providerServiceId`.
         | 
| 152 158 | 
             
                #
         | 
| 153 159 | 
             
                # @return [String]
         | 
| @@ -216,6 +222,7 @@ module OCI | |
| 216 222 | 
             
                    'oracle_bgp_asn': :'oracleBgpAsn',
         | 
| 217 223 | 
             
                    'provider_name': :'providerName',
         | 
| 218 224 | 
             
                    'provider_service_id': :'providerServiceId',
         | 
| 225 | 
            +
                    'provider_service_key_name': :'providerServiceKeyName',
         | 
| 219 226 | 
             
                    'provider_service_name': :'providerServiceName',
         | 
| 220 227 | 
             
                    'provider_state': :'providerState',
         | 
| 221 228 | 
             
                    'public_prefixes': :'publicPrefixes',
         | 
| @@ -245,6 +252,7 @@ module OCI | |
| 245 252 | 
             
                    'oracle_bgp_asn': :'Integer',
         | 
| 246 253 | 
             
                    'provider_name': :'String',
         | 
| 247 254 | 
             
                    'provider_service_id': :'String',
         | 
| 255 | 
            +
                    'provider_service_key_name': :'String',
         | 
| 248 256 | 
             
                    'provider_service_name': :'String',
         | 
| 249 257 | 
             
                    'provider_state': :'String',
         | 
| 250 258 | 
             
                    'public_prefixes': :'Array<String>',
         | 
| @@ -276,6 +284,7 @@ module OCI | |
| 276 284 | 
             
                # @option attributes [Integer] :oracle_bgp_asn The value to assign to the {#oracle_bgp_asn} property
         | 
| 277 285 | 
             
                # @option attributes [String] :provider_name The value to assign to the {#provider_name} property
         | 
| 278 286 | 
             
                # @option attributes [String] :provider_service_id The value to assign to the {#provider_service_id} property
         | 
| 287 | 
            +
                # @option attributes [String] :provider_service_key_name The value to assign to the {#provider_service_key_name} property
         | 
| 279 288 | 
             
                # @option attributes [String] :provider_service_name The value to assign to the {#provider_service_name} property
         | 
| 280 289 | 
             
                # @option attributes [String] :provider_state The value to assign to the {#provider_state} property
         | 
| 281 290 | 
             
                # @option attributes [Array<String>] :public_prefixes The value to assign to the {#public_prefixes} property
         | 
| @@ -364,6 +373,12 @@ module OCI | |
| 364 373 |  | 
| 365 374 | 
             
                  self.provider_service_id = attributes[:'provider_service_id'] if attributes[:'provider_service_id']
         | 
| 366 375 |  | 
| 376 | 
            +
                  self.provider_service_key_name = attributes[:'providerServiceKeyName'] if attributes[:'providerServiceKeyName']
         | 
| 377 | 
            +
             | 
| 378 | 
            +
                  raise 'You cannot provide both :providerServiceKeyName and :provider_service_key_name' if attributes.key?(:'providerServiceKeyName') && attributes.key?(:'provider_service_key_name')
         | 
| 379 | 
            +
             | 
| 380 | 
            +
                  self.provider_service_key_name = attributes[:'provider_service_key_name'] if attributes[:'provider_service_key_name']
         | 
| 381 | 
            +
             | 
| 367 382 | 
             
                  self.provider_service_name = attributes[:'providerServiceName'] if attributes[:'providerServiceName']
         | 
| 368 383 |  | 
| 369 384 | 
             
                  raise 'You cannot provide both :providerServiceName and :provider_service_name' if attributes.key?(:'providerServiceName') && attributes.key?(:'provider_service_name')
         | 
| @@ -519,6 +534,7 @@ module OCI | |
| 519 534 | 
             
                    oracle_bgp_asn == other.oracle_bgp_asn &&
         | 
| 520 535 | 
             
                    provider_name == other.provider_name &&
         | 
| 521 536 | 
             
                    provider_service_id == other.provider_service_id &&
         | 
| 537 | 
            +
                    provider_service_key_name == other.provider_service_key_name &&
         | 
| 522 538 | 
             
                    provider_service_name == other.provider_service_name &&
         | 
| 523 539 | 
             
                    provider_state == other.provider_state &&
         | 
| 524 540 | 
             
                    public_prefixes == other.public_prefixes &&
         | 
| @@ -542,7 +558,7 @@ module OCI | |
| 542 558 | 
             
                # Calculates hash code according to all attributes.
         | 
| 543 559 | 
             
                # @return [Fixnum] Hash code
         | 
| 544 560 | 
             
                def hash
         | 
| 545 | 
            -
                  [bandwidth_shape_name, bgp_management, bgp_session_state, compartment_id, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, id, lifecycle_state, oracle_bgp_asn, provider_name, provider_service_id, provider_service_name, provider_state, public_prefixes, reference_comment, region, service_type, time_created, type].hash
         | 
| 561 | 
            +
                  [bandwidth_shape_name, bgp_management, bgp_session_state, compartment_id, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, id, lifecycle_state, oracle_bgp_asn, provider_name, provider_service_id, provider_service_key_name, provider_service_name, provider_state, public_prefixes, reference_comment, region, service_type, time_created, type].hash
         | 
| 546 562 | 
             
                end
         | 
| 547 563 | 
             
                # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
         | 
| 548 564 |  |