Class: OCI::IdentityDomains::Models::AppExtensionOpcServiceApp

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

Overview

This extension defines attributes specific to Apps that represent instances of an Oracle Public Cloud (OPC) service.

Constant Summary collapse

CURRENT_FEDERATION_MODE_ENUM =
[
  CURRENT_FEDERATION_MODE_NONE = 'None'.freeze,
  CURRENT_FEDERATION_MODE_APP_AS_SERVICE_PROVIDER = 'AppAsServiceProvider'.freeze,
  CURRENT_FEDERATION_MODE_APP_AS_IDENTITY_PROVIDER = 'AppAsIdentityProvider'.freeze,
  CURRENT_FEDERATION_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
CURRENT_SYNCHRONIZATION_MODE_ENUM =
[
  CURRENT_SYNCHRONIZATION_MODE_NONE = 'None'.freeze,
  CURRENT_SYNCHRONIZATION_MODE_APP_AS_TARGET = 'AppAsTarget'.freeze,
  CURRENT_SYNCHRONIZATION_MODE_APP_AS_SOURCE = 'AppAsSource'.freeze,
  CURRENT_SYNCHRONIZATION_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
NEXT_FEDERATION_MODE_ENUM =
[
  NEXT_FEDERATION_MODE_NONE = 'None'.freeze,
  NEXT_FEDERATION_MODE_APP_AS_SERVICE_PROVIDER = 'AppAsServiceProvider'.freeze,
  NEXT_FEDERATION_MODE_APP_AS_IDENTITY_PROVIDER = 'AppAsIdentityProvider'.freeze,
  NEXT_FEDERATION_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
NEXT_SYNCHRONIZATION_MODE_ENUM =
[
  NEXT_SYNCHRONIZATION_MODE_NONE = 'None'.freeze,
  NEXT_SYNCHRONIZATION_MODE_APP_AS_TARGET = 'AppAsTarget'.freeze,
  NEXT_SYNCHRONIZATION_MODE_APP_AS_SOURCE = 'AppAsSource'.freeze,
  NEXT_SYNCHRONIZATION_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AppExtensionOpcServiceApp

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 187

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.service_instance_identifier = attributes[:'serviceInstanceIdentifier'] if attributes[:'serviceInstanceIdentifier']

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

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

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

  self.current_federation_mode = attributes[:'currentFederationMode'] if attributes[:'currentFederationMode']

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

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

  self.current_synchronization_mode = attributes[:'currentSynchronizationMode'] if attributes[:'currentSynchronizationMode']

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

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

  self.next_federation_mode = attributes[:'nextFederationMode'] if attributes[:'nextFederationMode']

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

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

  self.next_synchronization_mode = attributes[:'nextSynchronizationMode'] if attributes[:'nextSynchronizationMode']

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

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

  self.enabling_next_fed_sync_modes = attributes[:'enablingNextFedSyncModes'] unless attributes[:'enablingNextFedSyncModes'].nil?

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

  self.enabling_next_fed_sync_modes = attributes[:'enabling_next_fed_sync_modes'] unless attributes[:'enabling_next_fed_sync_modes'].nil?
end

Instance Attribute Details

#current_federation_modeString

Current Federation Mode

Added In: 18.2.6

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string

Returns:

  • (String)


83
84
85
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 83

def current_federation_mode
  @current_federation_mode
end

#current_synchronization_modeString

Current Synchronization Mode

Added In: 18.2.6

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string

Returns:

  • (String)


98
99
100
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 98

def current_synchronization_mode
  @current_synchronization_mode
end

#enabling_next_fed_sync_modesBOOLEAN

If true, indicates that enablement is in progress started but not completed

Added In: 18.2.6

SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: boolean

Returns:

  • (BOOLEAN)


142
143
144
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 142

def enabling_next_fed_sync_modes
  @enabling_next_fed_sync_modes
end

#next_federation_modeString

Next Federation Mode

Added In: 18.2.6

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string

Returns:

  • (String)


113
114
115
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 113

def next_federation_mode
  @next_federation_mode
end

#next_synchronization_modeString

Next Synchronization Mode

Added In: 18.2.6

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string

Returns:

  • (String)


128
129
130
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 128

def next_synchronization_mode
  @next_synchronization_mode
end

#regionString

This value identifies the OPC region in which the service is running.

Added In: 19.1.4

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

Returns:

  • (String)


68
69
70
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 68

def region
  @region
end

#service_instance_identifierString

This value specifies the unique identifier assigned to an instance of an Oracle Public Cloud service app.

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

Returns:

  • (String)


52
53
54
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 52

def service_instance_identifier
  @service_instance_identifier
end

Class Method Details

.attribute_mapObject

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



145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 145

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'service_instance_identifier': :'serviceInstanceIdentifier',
    'region': :'region',
    'current_federation_mode': :'currentFederationMode',
    'current_synchronization_mode': :'currentSynchronizationMode',
    'next_federation_mode': :'nextFederationMode',
    'next_synchronization_mode': :'nextSynchronizationMode',
    'enabling_next_fed_sync_modes': :'enablingNextFedSyncModes'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 160

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'service_instance_identifier': :'String',
    'region': :'String',
    'current_federation_mode': :'String',
    'current_synchronization_mode': :'String',
    'next_federation_mode': :'String',
    'next_synchronization_mode': :'String',
    'enabling_next_fed_sync_modes': :'BOOLEAN'
    # 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



291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 291

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

  self.class == other.class &&
    service_instance_identifier == other.service_instance_identifier &&
    region == other.region &&
    current_federation_mode == other.current_federation_mode &&
    current_synchronization_mode == other.current_synchronization_mode &&
    next_federation_mode == other.next_federation_mode &&
    next_synchronization_mode == other.next_synchronization_mode &&
    enabling_next_fed_sync_modes == other.enabling_next_fed_sync_modes
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



327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 327

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


307
308
309
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 307

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



316
317
318
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 316

def hash
  [service_instance_identifier, region, current_federation_mode, current_synchronization_mode, next_federation_mode, next_synchronization_mode, enabling_next_fed_sync_modes].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



360
361
362
363
364
365
366
367
368
369
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 360

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



354
355
356
# File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 354

def to_s
  to_hash.to_s
end