Class: OCI::IdentityDomains::Models::AppExtensionEnterpriseAppApp
- Inherits:
-
Object
- Object
- OCI::IdentityDomains::Models::AppExtensionEnterpriseAppApp
- Defined in:
- lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb
Overview
This extension defines the Enterprise App related attributes.
Instance Attribute Summary collapse
-
#allow_authz_decision_ttl ⇒ Integer
Allow Authz policy decision expiry time in seconds.
- #allow_authz_policy ⇒ OCI::IdentityDomains::Models::AppAllowAuthzPolicy
-
#app_resources ⇒ Array<OCI::IdentityDomains::Models::AppAppResources>
A list of AppResources of this App.
-
#deny_authz_decision_ttl ⇒ Integer
Deny Authz policy decision expiry time in seconds.
- #deny_authz_policy ⇒ OCI::IdentityDomains::Models::AppDenyAuthzPolicy
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 = {}) ⇒ AppExtensionEnterpriseAppApp
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 = {}) ⇒ AppExtensionEnterpriseAppApp
Initializes the object
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 104 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.app_resources = attributes[:'appResources'] if attributes[:'appResources'] raise 'You cannot provide both :appResources and :app_resources' if attributes.key?(:'appResources') && attributes.key?(:'app_resources') self.app_resources = attributes[:'app_resources'] if attributes[:'app_resources'] self.deny_authz_policy = attributes[:'denyAuthzPolicy'] if attributes[:'denyAuthzPolicy'] raise 'You cannot provide both :denyAuthzPolicy and :deny_authz_policy' if attributes.key?(:'denyAuthzPolicy') && attributes.key?(:'deny_authz_policy') self.deny_authz_policy = attributes[:'deny_authz_policy'] if attributes[:'deny_authz_policy'] self.allow_authz_policy = attributes[:'allowAuthzPolicy'] if attributes[:'allowAuthzPolicy'] raise 'You cannot provide both :allowAuthzPolicy and :allow_authz_policy' if attributes.key?(:'allowAuthzPolicy') && attributes.key?(:'allow_authz_policy') self.allow_authz_policy = attributes[:'allow_authz_policy'] if attributes[:'allow_authz_policy'] self.allow_authz_decision_ttl = attributes[:'allowAuthzDecisionTTL'] if attributes[:'allowAuthzDecisionTTL'] raise 'You cannot provide both :allowAuthzDecisionTTL and :allow_authz_decision_ttl' if attributes.key?(:'allowAuthzDecisionTTL') && attributes.key?(:'allow_authz_decision_ttl') self.allow_authz_decision_ttl = attributes[:'allow_authz_decision_ttl'] if attributes[:'allow_authz_decision_ttl'] self.deny_authz_decision_ttl = attributes[:'denyAuthzDecisionTTL'] if attributes[:'denyAuthzDecisionTTL'] raise 'You cannot provide both :denyAuthzDecisionTTL and :deny_authz_decision_ttl' if attributes.key?(:'denyAuthzDecisionTTL') && attributes.key?(:'deny_authz_decision_ttl') self.deny_authz_decision_ttl = attributes[:'deny_authz_decision_ttl'] if attributes[:'deny_authz_decision_ttl'] end |
Instance Attribute Details
#allow_authz_decision_ttl ⇒ Integer
Allow Authz policy decision expiry time in seconds.
Added In: 19.2.1
SCIM++ Properties: - idcsMaxValue: 3600 - idcsMinValue: 0 - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: integer - uniqueness: none
48 49 50 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 48 def allow_authz_decision_ttl @allow_authz_decision_ttl end |
#allow_authz_policy ⇒ OCI::IdentityDomains::Models::AppAllowAuthzPolicy
31 32 33 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 31 def allow_authz_policy @allow_authz_policy end |
#app_resources ⇒ Array<OCI::IdentityDomains::Models::AppAppResources>
A list of AppResources of this App.
Added In: 19.2.1
SCIM++ Properties: - caseExact: true - idcsCompositeKey: [value] - idcsSearchable: true - multiValued: true - mutability: readWrite - required: false - returned: default - type: complex
25 26 27 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 25 def app_resources @app_resources end |
#deny_authz_decision_ttl ⇒ Integer
Deny Authz policy decision expiry time in seconds.
Added In: 19.2.1
SCIM++ Properties: - idcsMaxValue: 3600 - idcsMinValue: 0 - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: integer - uniqueness: none
65 66 67 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 65 def deny_authz_decision_ttl @deny_authz_decision_ttl end |
#deny_authz_policy ⇒ OCI::IdentityDomains::Models::AppDenyAuthzPolicy
28 29 30 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 28 def deny_authz_policy @deny_authz_policy end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 68 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'app_resources': :'appResources', 'deny_authz_policy': :'denyAuthzPolicy', 'allow_authz_policy': :'allowAuthzPolicy', 'allow_authz_decision_ttl': :'allowAuthzDecisionTTL', 'deny_authz_decision_ttl': :'denyAuthzDecisionTTL' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 81 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'app_resources': :'Array<OCI::IdentityDomains::Models::AppAppResources>', 'deny_authz_policy': :'OCI::IdentityDomains::Models::AppDenyAuthzPolicy', 'allow_authz_policy': :'OCI::IdentityDomains::Models::AppAllowAuthzPolicy', 'allow_authz_decision_ttl': :'Integer', 'deny_authz_decision_ttl': :'Integer' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
148 149 150 151 152 153 154 155 156 157 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 148 def ==(other) return true if equal?(other) self.class == other.class && app_resources == other.app_resources && deny_authz_policy == other.deny_authz_policy && allow_authz_policy == other.allow_authz_policy && allow_authz_decision_ttl == other.allow_authz_decision_ttl && deny_authz_decision_ttl == other.deny_authz_decision_ttl end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 182 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
162 163 164 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 162 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
171 172 173 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 171 def hash [app_resources, deny_authz_policy, allow_authz_policy, allow_authz_decision_ttl, deny_authz_decision_ttl].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
215 216 217 218 219 220 221 222 223 224 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 215 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
209 210 211 |
# File 'lib/oci/identity_domains/models/app_extension_enterprise_app_app.rb', line 209 def to_s to_hash.to_s end |