Class: Google::Apis::StsV1::GoogleIdentityStsV1betaOptions
- Inherits:
-
Object
- Object
- Google::Apis::StsV1::GoogleIdentityStsV1betaOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sts_v1/classes.rb,
lib/google/apis/sts_v1/representations.rb,
lib/google/apis/sts_v1/representations.rb
Overview
An Options
object configures features that the Security Token Service
supports, but that are not supported by standard OAuth 2.0 token exchange
endpoints, as defined in https://tools.ietf.org/html/rfc8693.
Instance Attribute Summary collapse
-
#access_boundary ⇒ Google::Apis::StsV1::GoogleIdentityStsV1betaAccessBoundary
An access boundary defines the upper bound of what a principal may access.
-
#audiences ⇒ Array<String>
The intended audience(s) of the credential.
-
#user_project ⇒ String
A Google project used for quota and billing purposes when the credential is used to access Google APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleIdentityStsV1betaOptions
constructor
A new instance of GoogleIdentityStsV1betaOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleIdentityStsV1betaOptions
Returns a new instance of GoogleIdentityStsV1betaOptions.
538 539 540 |
# File 'lib/google/apis/sts_v1/classes.rb', line 538 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_boundary ⇒ Google::Apis::StsV1::GoogleIdentityStsV1betaAccessBoundary
An access boundary defines the upper bound of what a principal may access. It
includes a list of access boundary rules that each defines the resource that
may be allowed as well as permissions that may be used on those resources.
Corresponds to the JSON property accessBoundary
519 520 521 |
# File 'lib/google/apis/sts_v1/classes.rb', line 519 def access_boundary @access_boundary end |
#audiences ⇒ Array<String>
The intended audience(s) of the credential. The audience value(s) should be
the name(s) of services intended to receive the credential. Example: ["https:/
/pubsub.googleapis.com/", "https://storage.googleapis.com/"]
. A maximum of 5
audiences can be included. For each provided audience, the maximum length is
262 characters.
Corresponds to the JSON property audiences
528 529 530 |
# File 'lib/google/apis/sts_v1/classes.rb', line 528 def audiences @audiences end |
#user_project ⇒ String
A Google project used for quota and billing purposes when the credential is
used to access Google APIs. The provided project overrides the project bound
to the credential. The value must be a project number or a project ID. Example:
my-sample-project-191923
. The maximum length is 32 characters.
Corresponds to the JSON property userProject
536 537 538 |
# File 'lib/google/apis/sts_v1/classes.rb', line 536 def user_project @user_project end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
543 544 545 546 547 |
# File 'lib/google/apis/sts_v1/classes.rb', line 543 def update!(**args) @access_boundary = args[:access_boundary] if args.key?(:access_boundary) @audiences = args[:audiences] if args.key?(:audiences) @user_project = args[:user_project] if args.key?(:user_project) end |