Class: OCI::IdentityDomains::Models::AppRole
- Inherits:
-
Object
- Object
- OCI::IdentityDomains::Models::AppRole
- Defined in:
- lib/oci/identity_domains/models/app_role.rb
Overview
AppRole 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
Instance Attribute Summary collapse
-
#admin_role ⇒ BOOLEAN
If true, the role provides administrative access privileges.
-
#app ⇒ OCI::IdentityDomains::Models::AppRoleApp
This attribute is required.
-
#available_to_clients ⇒ BOOLEAN
If true, this AppRole can be granted to Apps.
-
#available_to_groups ⇒ BOOLEAN
If true, this AppRole can be granted to Groups.
-
#available_to_users ⇒ BOOLEAN
If true, this AppRole can be granted to Users.
-
#compartment_ocid ⇒ String
OCI Compartment Id (ocid) in which the resource lives.
-
#delete_in_progress ⇒ BOOLEAN
A boolean flag indicating this resource in the process of being deleted.
-
#description ⇒ String
AppRole description.
-
#display_name ⇒ String
[Required] AppRole name.
-
#domain_ocid ⇒ String
OCI Domain Id (ocid) in which the resource lives.
-
#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.
-
#legacy_group_name ⇒ String
The name of the legacy group associated with this AppRole.
-
#limited_to_one_or_more_groups ⇒ BOOLEAN
If true, indicates that this Oracle Identity Cloud Service AppRole can be granted to a delegated administrator whose scope is limited to users that are members of one or more groups.
-
#localized_display_name ⇒ String
AppRole localization name.
-
#members ⇒ Array<OCI::IdentityDomains::Models::AppRoleMembers>
AppRole members - when requesting members attribute, it is recommended to use startIndex and count to return members in pages instead of in a single response, eg : #attributes=members.
- #meta ⇒ OCI::IdentityDomains::Models::Meta
-
#ocid ⇒ String
Unique OCI identifier for the SCIM Resource.
-
#public ⇒ BOOLEAN
If true, this AppRole is available automatically to every Oracle Identity Cloud Service User in this tenancy.
-
#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.
-
#unique_name ⇒ String
AppRole unique name.
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 = {}) ⇒ AppRole
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 = {}) ⇒ AppRole
Initializes the object
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 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 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 440 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.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.unique_name = attributes[:'uniqueName'] if attributes[:'uniqueName'] raise 'You cannot provide both :uniqueName and :unique_name' if attributes.key?(:'uniqueName') && attributes.key?(:'unique_name') self.unique_name = attributes[:'unique_name'] if attributes[:'unique_name'] self.description = attributes[:'description'] if attributes[:'description'] self.legacy_group_name = attributes[:'legacyGroupName'] if attributes[:'legacyGroupName'] raise 'You cannot provide both :legacyGroupName and :legacy_group_name' if attributes.key?(:'legacyGroupName') && attributes.key?(:'legacy_group_name') self.legacy_group_name = attributes[:'legacy_group_name'] if attributes[:'legacy_group_name'] self.admin_role = attributes[:'adminRole'] unless attributes[:'adminRole'].nil? raise 'You cannot provide both :adminRole and :admin_role' if attributes.key?(:'adminRole') && attributes.key?(:'admin_role') self.admin_role = attributes[:'admin_role'] unless attributes[:'admin_role'].nil? self.limited_to_one_or_more_groups = attributes[:'limitedToOneOrMoreGroups'] unless attributes[:'limitedToOneOrMoreGroups'].nil? raise 'You cannot provide both :limitedToOneOrMoreGroups and :limited_to_one_or_more_groups' if attributes.key?(:'limitedToOneOrMoreGroups') && attributes.key?(:'limited_to_one_or_more_groups') self.limited_to_one_or_more_groups = attributes[:'limited_to_one_or_more_groups'] unless attributes[:'limited_to_one_or_more_groups'].nil? self.available_to_users = attributes[:'availableToUsers'] unless attributes[:'availableToUsers'].nil? raise 'You cannot provide both :availableToUsers and :available_to_users' if attributes.key?(:'availableToUsers') && attributes.key?(:'available_to_users') self.available_to_users = attributes[:'available_to_users'] unless attributes[:'available_to_users'].nil? self.available_to_groups = attributes[:'availableToGroups'] unless attributes[:'availableToGroups'].nil? raise 'You cannot provide both :availableToGroups and :available_to_groups' if attributes.key?(:'availableToGroups') && attributes.key?(:'available_to_groups') self.available_to_groups = attributes[:'available_to_groups'] unless attributes[:'available_to_groups'].nil? self.available_to_clients = attributes[:'availableToClients'] unless attributes[:'availableToClients'].nil? raise 'You cannot provide both :availableToClients and :available_to_clients' if attributes.key?(:'availableToClients') && attributes.key?(:'available_to_clients') self.available_to_clients = attributes[:'available_to_clients'] unless attributes[:'available_to_clients'].nil? self.public = attributes[:'public'] unless attributes[:'public'].nil? self.localized_display_name = attributes[:'localizedDisplayName'] if attributes[:'localizedDisplayName'] raise 'You cannot provide both :localizedDisplayName and :localized_display_name' if attributes.key?(:'localizedDisplayName') && attributes.key?(:'localized_display_name') self.localized_display_name = attributes[:'localized_display_name'] if attributes[:'localized_display_name'] self.app = attributes[:'app'] if attributes[:'app'] self.members = attributes[:'members'] if attributes[:'members'] end |
Instance Attribute Details
#admin_role ⇒ BOOLEAN
If true, the role provides administrative access privileges.
SCIM++ Properties: - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: boolean - uniqueness: none
235 236 237 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 235 def admin_role @admin_role end |
#app ⇒ OCI::IdentityDomains::Models::AppRoleApp
This attribute is required.
322 323 324 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 322 def app @app end |
#available_to_clients ⇒ BOOLEAN
If true, this AppRole can be granted to Apps.
SCIM++ Properties: - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: boolean - uniqueness: none
289 290 291 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 289 def available_to_clients @available_to_clients end |
#available_to_groups ⇒ BOOLEAN
If true, this AppRole can be granted to Groups.
SCIM++ Properties: - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: boolean - uniqueness: none
276 277 278 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 276 def available_to_groups @available_to_groups end |
#available_to_users ⇒ BOOLEAN
If true, this AppRole can be granted to Users.
SCIM++ Properties: - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: boolean - uniqueness: none
263 264 265 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 263 def available_to_users @available_to_users 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
151 152 153 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 151 def compartment_ocid @compartment_ocid 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
109 110 111 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 109 def delete_in_progress @delete_in_progress end |
#description ⇒ String
AppRole description
SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
208 209 210 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 208 def description @description end |
#display_name ⇒ String
[Required] AppRole name
SCIM++ Properties: - caseExact: false - idcsCsvAttributeName: Display Name - idcsCsvAttributeNameMappings: [[columnHeaderName:Entitlement Value]] - idcsSearchable: true - multiValued: false - mutability: immutable - required: true - returned: always - type: string - uniqueness: none
181 182 183 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 181 def display_name @display_name 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
137 138 139 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 137 def domain_ocid @domain_ocid 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
31 32 33 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 31 def id @id end |
#idcs_created_by ⇒ OCI::IdentityDomains::Models::IdcsCreatedBy
65 66 67 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 65 def idcs_created_by @idcs_created_by end |
#idcs_last_modified_by ⇒ OCI::IdentityDomains::Models::IdcsLastModifiedBy
68 69 70 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 68 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
123 124 125 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 123 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
81 82 83 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 81 def idcs_prevented_operations @idcs_prevented_operations end |
#legacy_group_name ⇒ String
The name of the legacy group associated with this AppRole.
SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: string - uniqueness: server
222 223 224 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 222 def legacy_group_name @legacy_group_name end |
#limited_to_one_or_more_groups ⇒ BOOLEAN
If true, indicates that this Oracle Identity Cloud Service AppRole can be granted to a delegated administrator whose scope is limited to users that are members of one or more groups.
Added In: 19.2.1
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: boolean - uniqueness: none
250 251 252 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 250 def limited_to_one_or_more_groups @limited_to_one_or_more_groups end |
#localized_display_name ⇒ String
AppRole localization name
Added In: 2109090424
SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none
318 319 320 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 318 def localized_display_name @localized_display_name end |
#members ⇒ Array<OCI::IdentityDomains::Models::AppRoleMembers>
AppRole members - when requesting members attribute, it is recommended to use startIndex and count to return members in pages instead of in a single response, eg : #attributes=members
SCIM++ Properties: - idcsCompositeKey: [value, type] - idcsCsvAttributeNameMappings: [[columnHeaderName:Grantee Name, mapsTo:members.value], [columnHeaderName:Grantee Type, mapsTo:members.type]] - idcsSearchable: true - multiValued: true - mutability: readOnly - required: false - returned: request - idcsPaginateResponse: true - type: complex - uniqueness: none
338 339 340 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 338 def members @members end |
#meta ⇒ OCI::IdentityDomains::Models::Meta
62 63 64 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 62 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
45 46 47 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 45 def ocid @ocid end |
#public ⇒ BOOLEAN
If true, this AppRole is available automatically to every Oracle Identity Cloud Service User in this tenancy. There is no need to grant it to individual Users or Groups.
SCIM++ Properties: - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none
302 303 304 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 302 def public @public 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
59 60 61 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 59 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
95 96 97 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 95 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
165 166 167 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 165 def tenancy_ocid @tenancy_ocid end |
#unique_name ⇒ String
AppRole unique name
SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: always - type: string - uniqueness: server
194 195 196 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 194 def unique_name @unique_name end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 341 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', 'display_name': :'displayName', 'unique_name': :'uniqueName', 'description': :'description', 'legacy_group_name': :'legacyGroupName', 'admin_role': :'adminRole', 'limited_to_one_or_more_groups': :'limitedToOneOrMoreGroups', 'available_to_users': :'availableToUsers', 'available_to_groups': :'availableToGroups', 'available_to_clients': :'availableToClients', 'public': :'public', 'localized_display_name': :'localizedDisplayName', 'app': :'app', 'members': :'members' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 375 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', 'display_name': :'String', 'unique_name': :'String', 'description': :'String', 'legacy_group_name': :'String', 'admin_role': :'BOOLEAN', 'limited_to_one_or_more_groups': :'BOOLEAN', 'available_to_users': :'BOOLEAN', 'available_to_groups': :'BOOLEAN', 'available_to_clients': :'BOOLEAN', 'public': :'BOOLEAN', 'localized_display_name': :'String', 'app': :'OCI::IdentityDomains::Models::AppRoleApp', 'members': :'Array<OCI::IdentityDomains::Models::AppRoleMembers>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 594 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 && display_name == other.display_name && unique_name == other.unique_name && description == other.description && legacy_group_name == other.legacy_group_name && admin_role == other.admin_role && limited_to_one_or_more_groups == other.limited_to_one_or_more_groups && available_to_users == other.available_to_users && available_to_groups == other.available_to_groups && available_to_clients == other.available_to_clients && public == other.public && localized_display_name == other.localized_display_name && app == other.app && members == other.members end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 649 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
629 630 631 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 629 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
638 639 640 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 638 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, display_name, unique_name, description, legacy_group_name, admin_role, limited_to_one_or_more_groups, available_to_users, available_to_groups, available_to_clients, public, localized_display_name, app, members].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
682 683 684 685 686 687 688 689 690 691 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 682 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
676 677 678 |
# File 'lib/oci/identity_domains/models/app_role.rb', line 676 def to_s to_hash.to_s end |