Class: Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/accesscontextmanager_v1/classes.rb,
lib/google/apis/accesscontextmanager_v1/representations.rb,
lib/google/apis/accesscontextmanager_v1/representations.rb
Overview
AuthorizedOrgsDesc
contains data for an organization's authorization policy.
Instance Attribute Summary collapse
-
#asset_type ⇒ String
The asset type of this authorized orgs desc.
-
#authorization_direction ⇒ String
The direction of the authorization relationship between this organization and the organizations listed in the
orgs
field. -
#authorization_type ⇒ String
A granular control type for authorization levels.
-
#name ⇒ String
Identifier.
-
#orgs ⇒ Array<String>
The list of organization ids in this AuthorizedOrgsDesc.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthorizedOrgsDesc
constructor
A new instance of AuthorizedOrgsDesc.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthorizedOrgsDesc
Returns a new instance of AuthorizedOrgsDesc.
374 375 376 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 374 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_type ⇒ String
The asset type of this authorized orgs desc. Valid values are
ASSET_TYPE_DEVICE
, and ASSET_TYPE_CREDENTIAL_STRENGTH
.
Corresponds to the JSON property assetType
335 336 337 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 335 def asset_type @asset_type end |
#authorization_direction ⇒ String
The direction of the authorization relationship between this organization and
the organizations listed in the orgs
field. The valid values for this field
include the following: AUTHORIZATION_DIRECTION_FROM
: Allows this
organization to evaluate traffic in the organizations listed in the orgs
field. AUTHORIZATION_DIRECTION_TO
: Allows the organizations listed in the
orgs
field to evaluate the traffic in this organization. For the
authorization relationship to take effect, all of the organizations must
authorize and specify the appropriate relationship direction. For example, if
organization A authorized organization B and C to evaluate its traffic, by
specifying AUTHORIZATION_DIRECTION_TO
as the authorization direction,
organizations B and C must specify AUTHORIZATION_DIRECTION_FROM
as the
authorization direction in their AuthorizedOrgsDesc
resource.
Corresponds to the JSON property authorizationDirection
351 352 353 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 351 def @authorization_direction end |
#authorization_type ⇒ String
A granular control type for authorization levels. Valid value is
AUTHORIZATION_TYPE_TRUST
.
Corresponds to the JSON property authorizationType
357 358 359 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 357 def @authorization_type end |
#name ⇒ String
Identifier. Resource name for the AuthorizedOrgsDesc
. Format:
accessPolicies/
access_policy/authorizedOrgsDescs/
authorized_orgs_desc`.
The
authorized_orgs_desccomponent must begin with a letter, followed by
alphanumeric characters or
_. After you create an
AuthorizedOrgsDesc, you
cannot change its
name.
Corresponds to the JSON property
name`
366 367 368 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 366 def name @name end |
#orgs ⇒ Array<String>
The list of organization ids in this AuthorizedOrgsDesc. Format:
organizations/
Example: organizations/123456
Corresponds to the JSON property orgs
372 373 374 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 372 def orgs @orgs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
379 380 381 382 383 384 385 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 379 def update!(**args) @asset_type = args[:asset_type] if args.key?(:asset_type) @authorization_direction = args[:authorization_direction] if args.key?(:authorization_direction) @authorization_type = args[:authorization_type] if args.key?(:authorization_type) @name = args[:name] if args.key?(:name) @orgs = args[:orgs] if args.key?(:orgs) end |