Class: OCI::IdentityDomains::Models::Grant
- Inherits:
-
Object
- Object
- OCI::IdentityDomains::Models::Grant
- Defined in:
- lib/oci/identity_domains/models/grant.rb
Overview
Schema for Grant Resource
Constant Summary collapse
- IDCS_PREVENTED_OPERATIONS_ENUM =
[ IDCS_PREVENTED_OPERATIONS_REPLACE = 'replace'.freeze, IDCS_PREVENTED_OPERATIONS_UPDATE = 'update'.freeze, IDCS_PREVENTED_OPERATIONS_DELETE = 'delete'.freeze, IDCS_PREVENTED_OPERATIONS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- GRANT_MECHANISM_ENUM =
[ GRANT_MECHANISM_IMPORT_APPROLE_MEMBERS = 'IMPORT_APPROLE_MEMBERS'.freeze, GRANT_MECHANISM_ADMINISTRATOR_TO_USER = 'ADMINISTRATOR_TO_USER'.freeze, GRANT_MECHANISM_ADMINISTRATOR_TO_DELEGATED_USER = 'ADMINISTRATOR_TO_DELEGATED_USER'.freeze, GRANT_MECHANISM_ADMINISTRATOR_TO_GROUP = 'ADMINISTRATOR_TO_GROUP'.freeze, GRANT_MECHANISM_SERVICE_MANAGER_TO_USER = 'SERVICE_MANAGER_TO_USER'.freeze, GRANT_MECHANISM_ADMINISTRATOR_TO_APP = 'ADMINISTRATOR_TO_APP'.freeze, GRANT_MECHANISM_SERVICE_MANAGER_TO_APP = 'SERVICE_MANAGER_TO_APP'.freeze, GRANT_MECHANISM_OPC_INFRA_TO_APP = 'OPC_INFRA_TO_APP'.freeze, GRANT_MECHANISM_GROUP_MEMBERSHIP = 'GROUP_MEMBERSHIP'.freeze, GRANT_MECHANISM_IMPORT_GRANTS = 'IMPORT_GRANTS'.freeze, GRANT_MECHANISM_SYNC_TO_USER = 'SYNC_TO_USER'.freeze, GRANT_MECHANISM_ACCESS_REQUEST = 'ACCESS_REQUEST'.freeze, GRANT_MECHANISM_APP_ENTITLEMENT_COLLECTION = 'APP_ENTITLEMENT_COLLECTION'.freeze, GRANT_MECHANISM_ADMINISTRATOR_TO_DYNAMIC_RESOURCE_GROUP = 'ADMINISTRATOR_TO_DYNAMIC_RESOURCE_GROUP'.freeze, GRANT_MECHANISM_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
- #app ⇒ OCI::IdentityDomains::Models::GrantApp
- #app_entitlement_collection ⇒ OCI::IdentityDomains::Models::GrantAppEntitlementCollection
-
#compartment_ocid ⇒ String
OCI Compartment Id (ocid) in which the resource lives.
-
#composite_key ⇒ String
Unique key of grant, composed by combining a subset of app, entitlement, grantee, grantor and grantMechanism.
-
#delete_in_progress ⇒ BOOLEAN
A boolean flag indicating this resource in the process of being deleted.
-
#domain_ocid ⇒ String
OCI Domain Id (ocid) in which the resource lives.
- #entitlement ⇒ OCI::IdentityDomains::Models::GrantEntitlement
-
#grant_mechanism ⇒ String
[Required] Each value of grantMechanism indicates how (or by what component) some App (or App-Entitlement) was granted.
-
#granted_attribute_values_json ⇒ String
Store granted attribute-values as a string in Javascript Object Notation (JSON) format.
-
#grantee ⇒ OCI::IdentityDomains::Models::GrantGrantee
This attribute is required.
- #grantor ⇒ OCI::IdentityDomains::Models::GrantGrantor
-
#id ⇒ String
Unique identifier for the SCIM Resource as defined by the Service Provider.
- #idcs_created_by ⇒ OCI::IdentityDomains::Models::IdcsCreatedBy
- #idcs_last_modified_by ⇒ OCI::IdentityDomains::Models::IdcsLastModifiedBy
-
#idcs_last_upgraded_in_release ⇒ String
The release number when the resource was upgraded.
-
#idcs_prevented_operations ⇒ Array<String>
Each value of this attribute specifies an operation that only an internal client may perform on this particular resource.
-
#is_fulfilled ⇒ BOOLEAN
If true, this Grant has been fulfilled successfully.
- #meta ⇒ OCI::IdentityDomains::Models::Meta
-
#ocid ⇒ String
Unique OCI identifier for the SCIM Resource.
-
#schemas ⇒ Array<String>
[Required] REQUIRED.
-
#tags ⇒ Array<OCI::IdentityDomains::Models::Tags>
A list of tags on this resource.
-
#tenancy_ocid ⇒ String
OCI Tenant Id (ocid) in which the resource lives.
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 = {}) ⇒ Grant
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 = {}) ⇒ Grant
Initializes the object
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 |
# File 'lib/oci/identity_domains/models/grant.rb', line 352 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.id = attributes[:'id'] if attributes[:'id'] self.ocid = attributes[:'ocid'] if attributes[:'ocid'] self.schemas = attributes[:'schemas'] if attributes[:'schemas'] self. = attributes[:'meta'] if attributes[:'meta'] self.idcs_created_by = attributes[:'idcsCreatedBy'] if attributes[:'idcsCreatedBy'] raise 'You cannot provide both :idcsCreatedBy and :idcs_created_by' if attributes.key?(:'idcsCreatedBy') && attributes.key?(:'idcs_created_by') self.idcs_created_by = attributes[:'idcs_created_by'] if attributes[:'idcs_created_by'] self.idcs_last_modified_by = attributes[:'idcsLastModifiedBy'] if attributes[:'idcsLastModifiedBy'] raise 'You cannot provide both :idcsLastModifiedBy and :idcs_last_modified_by' if attributes.key?(:'idcsLastModifiedBy') && attributes.key?(:'idcs_last_modified_by') self.idcs_last_modified_by = attributes[:'idcs_last_modified_by'] if attributes[:'idcs_last_modified_by'] self.idcs_prevented_operations = attributes[:'idcsPreventedOperations'] if attributes[:'idcsPreventedOperations'] raise 'You cannot provide both :idcsPreventedOperations and :idcs_prevented_operations' if attributes.key?(:'idcsPreventedOperations') && attributes.key?(:'idcs_prevented_operations') self.idcs_prevented_operations = attributes[:'idcs_prevented_operations'] if attributes[:'idcs_prevented_operations'] self. = attributes[:'tags'] if attributes[:'tags'] self.delete_in_progress = attributes[:'deleteInProgress'] unless attributes[:'deleteInProgress'].nil? raise 'You cannot provide both :deleteInProgress and :delete_in_progress' if attributes.key?(:'deleteInProgress') && attributes.key?(:'delete_in_progress') self.delete_in_progress = attributes[:'delete_in_progress'] unless attributes[:'delete_in_progress'].nil? self.idcs_last_upgraded_in_release = attributes[:'idcsLastUpgradedInRelease'] if attributes[:'idcsLastUpgradedInRelease'] raise 'You cannot provide both :idcsLastUpgradedInRelease and :idcs_last_upgraded_in_release' if attributes.key?(:'idcsLastUpgradedInRelease') && attributes.key?(:'idcs_last_upgraded_in_release') self.idcs_last_upgraded_in_release = attributes[:'idcs_last_upgraded_in_release'] if attributes[:'idcs_last_upgraded_in_release'] self.domain_ocid = attributes[:'domainOcid'] if attributes[:'domainOcid'] raise 'You cannot provide both :domainOcid and :domain_ocid' if attributes.key?(:'domainOcid') && attributes.key?(:'domain_ocid') self.domain_ocid = attributes[:'domain_ocid'] if attributes[:'domain_ocid'] self.compartment_ocid = attributes[:'compartmentOcid'] if attributes[:'compartmentOcid'] raise 'You cannot provide both :compartmentOcid and :compartment_ocid' if attributes.key?(:'compartmentOcid') && attributes.key?(:'compartment_ocid') self.compartment_ocid = attributes[:'compartment_ocid'] if attributes[:'compartment_ocid'] self.tenancy_ocid = attributes[:'tenancyOcid'] if attributes[:'tenancyOcid'] raise 'You cannot provide both :tenancyOcid and :tenancy_ocid' if attributes.key?(:'tenancyOcid') && attributes.key?(:'tenancy_ocid') self.tenancy_ocid = attributes[:'tenancy_ocid'] if attributes[:'tenancy_ocid'] self.grant_mechanism = attributes[:'grantMechanism'] if attributes[:'grantMechanism'] raise 'You cannot provide both :grantMechanism and :grant_mechanism' if attributes.key?(:'grantMechanism') && attributes.key?(:'grant_mechanism') self.grant_mechanism = attributes[:'grant_mechanism'] if attributes[:'grant_mechanism'] self.composite_key = attributes[:'compositeKey'] if attributes[:'compositeKey'] raise 'You cannot provide both :compositeKey and :composite_key' if attributes.key?(:'compositeKey') && attributes.key?(:'composite_key') self.composite_key = attributes[:'composite_key'] if attributes[:'composite_key'] self.is_fulfilled = attributes[:'isFulfilled'] unless attributes[:'isFulfilled'].nil? raise 'You cannot provide both :isFulfilled and :is_fulfilled' if attributes.key?(:'isFulfilled') && attributes.key?(:'is_fulfilled') self.is_fulfilled = attributes[:'is_fulfilled'] unless attributes[:'is_fulfilled'].nil? self.granted_attribute_values_json = attributes[:'grantedAttributeValuesJson'] if attributes[:'grantedAttributeValuesJson'] raise 'You cannot provide both :grantedAttributeValuesJson and :granted_attribute_values_json' if attributes.key?(:'grantedAttributeValuesJson') && attributes.key?(:'granted_attribute_values_json') self.granted_attribute_values_json = attributes[:'granted_attribute_values_json'] if attributes[:'granted_attribute_values_json'] self.app_entitlement_collection = attributes[:'appEntitlementCollection'] if attributes[:'appEntitlementCollection'] raise 'You cannot provide both :appEntitlementCollection and :app_entitlement_collection' if attributes.key?(:'appEntitlementCollection') && attributes.key?(:'app_entitlement_collection') self.app_entitlement_collection = attributes[:'app_entitlement_collection'] if attributes[:'app_entitlement_collection'] self.grantor = attributes[:'grantor'] if attributes[:'grantor'] self.grantee = attributes[:'grantee'] if attributes[:'grantee'] self.app = attributes[:'app'] if attributes[:'app'] self.entitlement = attributes[:'entitlement'] if attributes[:'entitlement'] end |
Instance Attribute Details
#app ⇒ OCI::IdentityDomains::Models::GrantApp
259 260 261 |
# File 'lib/oci/identity_domains/models/grant.rb', line 259 def app @app end |
#app_entitlement_collection ⇒ OCI::IdentityDomains::Models::GrantAppEntitlementCollection
249 250 251 |
# File 'lib/oci/identity_domains/models/grant.rb', line 249 def app_entitlement_collection @app_entitlement_collection end |
#compartment_ocid ⇒ String
OCI Compartment Id (ocid) in which the resource lives.
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none
169 170 171 |
# File 'lib/oci/identity_domains/models/grant.rb', line 169 def compartment_ocid @compartment_ocid end |
#composite_key ⇒ String
Unique key of grant, composed by combining a subset of app, entitlement, grantee, grantor and grantMechanism. Used to prevent duplicate Grants.
Added In: 18.1.2
SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: request - type: string - uniqueness: server
218 219 220 |
# File 'lib/oci/identity_domains/models/grant.rb', line 218 def composite_key @composite_key end |
#delete_in_progress ⇒ BOOLEAN
A boolean flag indicating this resource in the process of being deleted. Usually set to true when synchronous deletion of the resource would take too long.
SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: default - type: boolean - uniqueness: none
127 128 129 |
# File 'lib/oci/identity_domains/models/grant.rb', line 127 def delete_in_progress @delete_in_progress end |
#domain_ocid ⇒ String
OCI Domain Id (ocid) in which the resource lives.
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none
155 156 157 |
# File 'lib/oci/identity_domains/models/grant.rb', line 155 def domain_ocid @domain_ocid end |
#entitlement ⇒ OCI::IdentityDomains::Models::GrantEntitlement
262 263 264 |
# File 'lib/oci/identity_domains/models/grant.rb', line 262 def entitlement @entitlement end |
#grant_mechanism ⇒ String
[Required] Each value of grantMechanism indicates how (or by what component) some App (or App-Entitlement) was granted. A customer or the UI should use only grantMechanism values that start with 'ADMINISTRATOR': - 'ADMINISTRATOR_TO_USER' is for a direct grant to a specific User. - 'ADMINISTRATOR_TO_GROUP' is for a grant to a specific Group, which results in indirect grants to Users who are members of that Group. - 'ADMINISTRATOR_TO_APP' is for a grant to a specific App. The grantee (client) App gains access to the granted (server) App.
SCIM++ Properties: - caseExact: true - idcsCsvAttributeNameMappings: [[defaultValue:IMPORT_GRANTS]] - idcsSearchable: true - multiValued: false - mutability: immutable - required: true - returned: default - type: string - uniqueness: none
202 203 204 |
# File 'lib/oci/identity_domains/models/grant.rb', line 202 def grant_mechanism @grant_mechanism end |
#granted_attribute_values_json ⇒ String
Store granted attribute-values as a string in Javascript Object Notation (JSON) format.
Added In: 18.3.4
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
246 247 248 |
# File 'lib/oci/identity_domains/models/grant.rb', line 246 def granted_attribute_values_json @granted_attribute_values_json end |
#grantee ⇒ OCI::IdentityDomains::Models::GrantGrantee
This attribute is required.
256 257 258 |
# File 'lib/oci/identity_domains/models/grant.rb', line 256 def grantee @grantee end |
#grantor ⇒ OCI::IdentityDomains::Models::GrantGrantor
252 253 254 |
# File 'lib/oci/identity_domains/models/grant.rb', line 252 def grantor @grantor end |
#id ⇒ String
Unique identifier for the SCIM Resource as defined by the Service Provider. Each representation of the Resource MUST include a non-empty id value. This identifier MUST be unique across the Service Provider's entire set of Resources. It MUST be a stable, non-reassignable identifier that does not change when the same Resource is returned in subsequent requests. The value of the id attribute is always issued by the Service Provider and MUST never be specified by the Service Consumer. bulkId: is a reserved keyword and MUST NOT be used in the unique identifier.
SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: always - type: string - uniqueness: global
49 50 51 |
# File 'lib/oci/identity_domains/models/grant.rb', line 49 def id @id end |
#idcs_created_by ⇒ OCI::IdentityDomains::Models::IdcsCreatedBy
83 84 85 |
# File 'lib/oci/identity_domains/models/grant.rb', line 83 def idcs_created_by @idcs_created_by end |
#idcs_last_modified_by ⇒ OCI::IdentityDomains::Models::IdcsLastModifiedBy
86 87 88 |
# File 'lib/oci/identity_domains/models/grant.rb', line 86 def idcs_last_modified_by @idcs_last_modified_by end |
#idcs_last_upgraded_in_release ⇒ String
The release number when the resource was upgraded.
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none
141 142 143 |
# File 'lib/oci/identity_domains/models/grant.rb', line 141 def idcs_last_upgraded_in_release @idcs_last_upgraded_in_release end |
#idcs_prevented_operations ⇒ Array<String>
Each value of this attribute specifies an operation that only an internal client may perform on this particular resource.
SCIM++ Properties: - idcsSearchable: false - multiValued: true - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none
99 100 101 |
# File 'lib/oci/identity_domains/models/grant.rb', line 99 def idcs_prevented_operations @idcs_prevented_operations end |
#is_fulfilled ⇒ BOOLEAN
If true, this Grant has been fulfilled successfully.
SCIM++ Properties: - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: default - type: boolean - uniqueness: none
231 232 233 |
# File 'lib/oci/identity_domains/models/grant.rb', line 231 def is_fulfilled @is_fulfilled end |
#meta ⇒ OCI::IdentityDomains::Models::Meta
80 81 82 |
# File 'lib/oci/identity_domains/models/grant.rb', line 80 def @meta end |
#ocid ⇒ String
Unique OCI identifier for the SCIM Resource.
SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: string - uniqueness: global
63 64 65 |
# File 'lib/oci/identity_domains/models/grant.rb', line 63 def ocid @ocid end |
#schemas ⇒ Array<String>
[Required] REQUIRED. The schemas attribute is an array of Strings which allows introspection of the supported schema version for a SCIM representation as well any schema extensions supported by that representation. Each String value must be a unique URI. This specification defines URIs for User, Group, and a standard \“enterprise\” extension. All representations of SCIM schema MUST include a non-zero value array with value(s) of the URIs supported by that representation. Duplicate values MUST NOT be included. Value order is not specified and MUST not impact behavior.
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: true - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none
77 78 79 |
# File 'lib/oci/identity_domains/models/grant.rb', line 77 def schemas @schemas end |
#tags ⇒ Array<OCI::IdentityDomains::Models::Tags>
A list of tags on this resource.
SCIM++ Properties: - idcsCompositeKey: [key, value] - idcsSearchable: true - multiValued: true - mutability: readWrite - required: false - returned: request - type: complex - uniqueness: none
113 114 115 |
# File 'lib/oci/identity_domains/models/grant.rb', line 113 def @tags end |
#tenancy_ocid ⇒ String
OCI Tenant Id (ocid) in which the resource lives.
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none
183 184 185 |
# File 'lib/oci/identity_domains/models/grant.rb', line 183 def tenancy_ocid @tenancy_ocid end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'lib/oci/identity_domains/models/grant.rb', line 265 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'ocid': :'ocid', 'schemas': :'schemas', 'meta': :'meta', 'idcs_created_by': :'idcsCreatedBy', 'idcs_last_modified_by': :'idcsLastModifiedBy', 'idcs_prevented_operations': :'idcsPreventedOperations', 'tags': :'tags', 'delete_in_progress': :'deleteInProgress', 'idcs_last_upgraded_in_release': :'idcsLastUpgradedInRelease', 'domain_ocid': :'domainOcid', 'compartment_ocid': :'compartmentOcid', 'tenancy_ocid': :'tenancyOcid', 'grant_mechanism': :'grantMechanism', 'composite_key': :'compositeKey', 'is_fulfilled': :'isFulfilled', 'granted_attribute_values_json': :'grantedAttributeValuesJson', 'app_entitlement_collection': :'appEntitlementCollection', 'grantor': :'grantor', 'grantee': :'grantee', 'app': :'app', 'entitlement': :'entitlement' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/oci/identity_domains/models/grant.rb', line 295 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'ocid': :'String', 'schemas': :'Array<String>', 'meta': :'OCI::IdentityDomains::Models::Meta', 'idcs_created_by': :'OCI::IdentityDomains::Models::IdcsCreatedBy', 'idcs_last_modified_by': :'OCI::IdentityDomains::Models::IdcsLastModifiedBy', 'idcs_prevented_operations': :'Array<String>', 'tags': :'Array<OCI::IdentityDomains::Models::Tags>', 'delete_in_progress': :'BOOLEAN', 'idcs_last_upgraded_in_release': :'String', 'domain_ocid': :'String', 'compartment_ocid': :'String', 'tenancy_ocid': :'String', 'grant_mechanism': :'String', 'composite_key': :'String', 'is_fulfilled': :'BOOLEAN', 'granted_attribute_values_json': :'String', 'app_entitlement_collection': :'OCI::IdentityDomains::Models::GrantAppEntitlementCollection', 'grantor': :'OCI::IdentityDomains::Models::GrantGrantor', 'grantee': :'OCI::IdentityDomains::Models::GrantGrantee', 'app': :'OCI::IdentityDomains::Models::GrantApp', 'entitlement': :'OCI::IdentityDomains::Models::GrantEntitlement' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 |
# File 'lib/oci/identity_domains/models/grant.rb', line 495 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && ocid == other.ocid && schemas == other.schemas && == other. && idcs_created_by == other.idcs_created_by && idcs_last_modified_by == other.idcs_last_modified_by && idcs_prevented_operations == other.idcs_prevented_operations && == other. && delete_in_progress == other.delete_in_progress && idcs_last_upgraded_in_release == other.idcs_last_upgraded_in_release && domain_ocid == other.domain_ocid && compartment_ocid == other.compartment_ocid && tenancy_ocid == other.tenancy_ocid && grant_mechanism == other.grant_mechanism && composite_key == other.composite_key && is_fulfilled == other.is_fulfilled && granted_attribute_values_json == other.granted_attribute_values_json && app_entitlement_collection == other.app_entitlement_collection && grantor == other.grantor && grantee == other.grantee && app == other.app && entitlement == other.entitlement end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
# File 'lib/oci/identity_domains/models/grant.rb', line 546 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
526 527 528 |
# File 'lib/oci/identity_domains/models/grant.rb', line 526 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
535 536 537 |
# File 'lib/oci/identity_domains/models/grant.rb', line 535 def hash [id, ocid, schemas, , idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, , delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, grant_mechanism, composite_key, is_fulfilled, granted_attribute_values_json, app_entitlement_collection, grantor, grantee, app, entitlement].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
579 580 581 582 583 584 585 586 587 588 |
# File 'lib/oci/identity_domains/models/grant.rb', line 579 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
573 574 575 |
# File 'lib/oci/identity_domains/models/grant.rb', line 573 def to_s to_hash.to_s end |