Class: OCI::IdentityDomains::Models::AppExtensionOpcServiceApp
- Inherits:
- 
      Object
      
        - Object
- OCI::IdentityDomains::Models::AppExtensionOpcServiceApp
 
- 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
- 
  
    
      #current_federation_mode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Current Federation Mode. 
- 
  
    
      #current_synchronization_mode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Current Synchronization Mode. 
- 
  
    
      #enabling_next_fed_sync_modes  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If true, indicates that enablement is in progress started but not completed. 
- 
  
    
      #next_federation_mode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Next Federation Mode. 
- 
  
    
      #next_synchronization_mode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Next Synchronization Mode. 
- 
  
    
      #region  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This value identifies the OPC region in which the service is running. 
- 
  
    
      #service_instance_identifier  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This value specifies the unique identifier assigned to an instance of an Oracle Public Cloud service app. 
Class Method Summary collapse
- 
  
    
      .attribute_map  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute mapping from ruby-style variable name to JSON key. 
- 
  
    
      .swagger_types  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Attribute type mapping. 
Instance Method Summary collapse
- 
  
    
      #==(other)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Checks equality by comparing each attribute. 
- 
  
    
      #build_from_hash(attributes)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Builds the object from hash. 
- #eql?(other) ⇒ Boolean
- 
  
    
      #hash  ⇒ Fixnum 
    
    
  
  
  
  
  
  
  
  
  
    Calculates hash code according to all attributes. 
- 
  
    
      #initialize(attributes = {})  ⇒ AppExtensionOpcServiceApp 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Initializes the object. 
- 
  
    
      #to_hash  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    Returns the object in the form of hash. 
- 
  
    
      #to_s  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Returns the string representation of the object. 
Constructor Details
#initialize(attributes = {}) ⇒ AppExtensionOpcServiceApp
Initializes the object
| 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_mode ⇒ String
Current Federation Mode
Added In: 18.2.6
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: 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_mode ⇒ String
Current Synchronization Mode
Added In: 18.2.6
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: 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_modes ⇒ BOOLEAN
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
| 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_mode ⇒ String
Next Federation Mode
Added In: 18.2.6
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: 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_mode ⇒ String
Next Synchronization Mode
Added In: 18.2.6
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: 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 | 
#region ⇒ String
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
| 68 69 70 | # File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 68 def region @region end | 
#service_instance_identifier ⇒ String
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
| 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_map ⇒ Object
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_types ⇒ Object
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.
| 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
| 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
| 307 308 309 | # File 'lib/oci/identity_domains/models/app_extension_opc_service_app.rb', line 307 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 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_hash ⇒ 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_s ⇒ String
Returns the string representation 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 |