Class: OCI::IdentityDomains::Models::CloudGateExtMappings

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb

Overview

A list of Cloud Gate Mappings that map Apps to this Cloud Gate

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ CloudGateExtMappings

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):

  • :mapping_id (String)

    The value to assign to the #mapping_id property

  • :resource_prefix (String)

    The value to assign to the #resource_prefix property

  • :proxy_pass (String)

    The value to assign to the #proxy_pass property

  • :server_id (String)

    The value to assign to the #server_id property

  • :nginx_settings (String)

    The value to assign to the #nginx_settings property

  • :app_id (String)

    The value to assign to the #app_id property

  • :value (String)

    The value to assign to the #value property

  • :name (String)

    The value to assign to the #name property

  • :ref (String)

    The value to assign to the #ref property

  • :policy_name (String)

    The value to assign to the #policy_name property

  • :upstream_server_group_id (String)

    The value to assign to the #upstream_server_group_id property



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 224

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.mapping_id = attributes[:'mappingId'] if attributes[:'mappingId']

  raise 'You cannot provide both :mappingId and :mapping_id' if attributes.key?(:'mappingId') && attributes.key?(:'mapping_id')

  self.mapping_id = attributes[:'mapping_id'] if attributes[:'mapping_id']

  self.resource_prefix = attributes[:'resourcePrefix'] if attributes[:'resourcePrefix']

  raise 'You cannot provide both :resourcePrefix and :resource_prefix' if attributes.key?(:'resourcePrefix') && attributes.key?(:'resource_prefix')

  self.resource_prefix = attributes[:'resource_prefix'] if attributes[:'resource_prefix']

  self.proxy_pass = attributes[:'proxyPass'] if attributes[:'proxyPass']

  raise 'You cannot provide both :proxyPass and :proxy_pass' if attributes.key?(:'proxyPass') && attributes.key?(:'proxy_pass')

  self.proxy_pass = attributes[:'proxy_pass'] if attributes[:'proxy_pass']

  self.server_id = attributes[:'serverId'] if attributes[:'serverId']

  raise 'You cannot provide both :serverId and :server_id' if attributes.key?(:'serverId') && attributes.key?(:'server_id')

  self.server_id = attributes[:'server_id'] if attributes[:'server_id']

  self.nginx_settings = attributes[:'nginxSettings'] if attributes[:'nginxSettings']

  raise 'You cannot provide both :nginxSettings and :nginx_settings' if attributes.key?(:'nginxSettings') && attributes.key?(:'nginx_settings')

  self.nginx_settings = attributes[:'nginx_settings'] if attributes[:'nginx_settings']

  self.app_id = attributes[:'appId'] if attributes[:'appId']

  raise 'You cannot provide both :appId and :app_id' if attributes.key?(:'appId') && attributes.key?(:'app_id')

  self.app_id = attributes[:'app_id'] if attributes[:'app_id']

  self.value = attributes[:'value'] if attributes[:'value']

  self.name = attributes[:'name'] if attributes[:'name']

  self.ref = attributes[:'$ref'] if attributes[:'$ref']

  self.policy_name = attributes[:'policyName'] if attributes[:'policyName']

  raise 'You cannot provide both :policyName and :policy_name' if attributes.key?(:'policyName') && attributes.key?(:'policy_name')

  self.policy_name = attributes[:'policy_name'] if attributes[:'policy_name']

  self.upstream_server_group_id = attributes[:'upstreamServerGroupId'] if attributes[:'upstreamServerGroupId']

  raise 'You cannot provide both :upstreamServerGroupId and :upstream_server_group_id' if attributes.key?(:'upstreamServerGroupId') && attributes.key?(:'upstream_server_group_id')

  self.upstream_server_group_id = attributes[:'upstream_server_group_id'] if attributes[:'upstream_server_group_id']
end

Instance Attribute Details

#app_idString

The ID of the App being mapped to

SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


93
94
95
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 93

def app_id
  @app_id
end

#mapping_idString

The id of the Cloud Gate Mapping

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


23
24
25
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 23

def mapping_id
  @mapping_id
end

#nameString

The name (Client ID) of the App being mapped to

Added In: 19.2.1

SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


123
124
125
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 123

def name
  @name
end

#nginx_settingsString

More NGINX Settings. JSON encoded key value pairs similar to WTP encoding

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


79
80
81
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 79

def nginx_settings
  @nginx_settings
end

#policy_nameString

The Web Tier policy name used for the App that is mapped to this Cloud Gate

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


151
152
153
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 151

def policy_name
  @policy_name
end

#proxy_passString

NGINX ProxyPass entry for this Mapping

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


51
52
53
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 51

def proxy_pass
  @proxy_pass
end

#refString

URI of the App being mapped to

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: reference - uniqueness: none

Returns:

  • (String)


137
138
139
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 137

def ref
  @ref
end

#resource_prefixString

[Required] Resource prefix for this mapping. This will be used to define the location block

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readOnly - required: true - returned: default - type: string - uniqueness: none

Returns:

  • (String)


37
38
39
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 37

def resource_prefix
  @resource_prefix
end

#server_idString

[Required] Server Instance for the Mapping. This is one of the server IDs(server blocks) from the associated Cloud Gate list

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readOnly - required: true - returned: default - type: string - uniqueness: none

Returns:

  • (String)


65
66
67
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 65

def server_id
  @server_id
end

#upstream_server_group_idString

Upstream server group instance for the Mapping. This is one of the upstream server group IDs(upstream blocks) from the associated Cloud Gate list

Added In: 20.1.3

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


167
168
169
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 167

def upstream_server_group_id
  @upstream_server_group_id
end

#valueString

The id of the App being mapped to

SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


107
108
109
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 107

def value
  @value
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 170

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'mapping_id': :'mappingId',
    'resource_prefix': :'resourcePrefix',
    'proxy_pass': :'proxyPass',
    'server_id': :'serverId',
    'nginx_settings': :'nginxSettings',
    'app_id': :'appId',
    'value': :'value',
    'name': :'name',
    'ref': :'$ref',
    'policy_name': :'policyName',
    'upstream_server_group_id': :'upstreamServerGroupId'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 189

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'mapping_id': :'String',
    'resource_prefix': :'String',
    'proxy_pass': :'String',
    'server_id': :'String',
    'nginx_settings': :'String',
    'app_id': :'String',
    'value': :'String',
    'name': :'String',
    'ref': :'String',
    'policy_name': :'String',
    'upstream_server_group_id': :'String'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 292

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    mapping_id == other.mapping_id &&
    resource_prefix == other.resource_prefix &&
    proxy_pass == other.proxy_pass &&
    server_id == other.server_id &&
    nginx_settings == other.nginx_settings &&
    app_id == other.app_id &&
    value == other.value &&
    name == other.name &&
    ref == other.ref &&
    policy_name == other.policy_name &&
    upstream_server_group_id == other.upstream_server_group_id
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 332

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


312
313
314
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 312

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



321
322
323
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 321

def hash
  [mapping_id, resource_prefix, proxy_pass, server_id, nginx_settings, app_id, value, name, ref, policy_name, upstream_server_group_id].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



365
366
367
368
369
370
371
372
373
374
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 365

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



359
360
361
# File 'lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb', line 359

def to_s
  to_hash.to_s
end