diff --git a/api_names_out.yaml b/api_names_out.yaml index 32dd359ce..3e1cd4f79 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -153084,9 +153084,11 @@ "/streetviewpublish:v1/streetviewpublish.photos.list/pageToken": page_token "/streetviewpublish:v1/streetviewpublish.photos.list/view": view "/sts:v1/GoogleIdentityStsV1ExchangeTokenRequest": google_identity_sts_v1_exchange_token_request +"/sts:v1/GoogleIdentityStsV1ExchangeTokenRequest/audience": audience "/sts:v1/GoogleIdentityStsV1ExchangeTokenRequest/grantType": grant_type "/sts:v1/GoogleIdentityStsV1ExchangeTokenRequest/options": options "/sts:v1/GoogleIdentityStsV1ExchangeTokenRequest/requestedTokenType": requested_token_type +"/sts:v1/GoogleIdentityStsV1ExchangeTokenRequest/scope": scope "/sts:v1/GoogleIdentityStsV1ExchangeTokenRequest/subjectToken": subject_token "/sts:v1/GoogleIdentityStsV1ExchangeTokenRequest/subjectTokenType": subject_token_type "/sts:v1/GoogleIdentityStsV1ExchangeTokenResponse": google_identity_sts_v1_exchange_token_response diff --git a/generated/google-apis-sts_v1/CHANGELOG.md b/generated/google-apis-sts_v1/CHANGELOG.md index 3da4411cb..41c83a97b 100644 --- a/generated/google-apis-sts_v1/CHANGELOG.md +++ b/generated/google-apis-sts_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-sts_v1 +### v0.2.0 (2021-01-15) + +* Regenerated from discovery document revision 20210109 + ### v0.1.0 (2021-01-07) * Regenerated using generator version 0.1.1 diff --git a/generated/google-apis-sts_v1/lib/google/apis/sts_v1/classes.rb b/generated/google-apis-sts_v1/lib/google/apis/sts_v1/classes.rb index 818b1e739..4ae3633dd 100644 --- a/generated/google-apis-sts_v1/lib/google/apis/sts_v1/classes.rb +++ b/generated/google-apis-sts_v1/lib/google/apis/sts_v1/classes.rb @@ -26,6 +26,13 @@ module Google class GoogleIdentityStsV1ExchangeTokenRequest include Google::Apis::Core::Hashable + # The full resource name of the identity provider; for example: `//iam. + # googleapis.com/projects//workloadIdentityPools//providers/`. Required when + # exchanging an external credential for a Google access token. + # Corresponds to the JSON property `audience` + # @return [String] + attr_accessor :audience + # Required. The grant type. Must be `urn:ietf:params:oauth:grant-type:token- # exchange`, which indicates a token exchange. # Corresponds to the JSON property `grantType` @@ -45,6 +52,13 @@ module Google # @return [String] attr_accessor :requested_token_type + # The OAuth 2.0 scopes to include on the resulting access token, formatted as a + # list of space-delimited, case-sensitive strings. Required when exchanging an + # external credential for a Google access token. + # Corresponds to the JSON property `scope` + # @return [String] + attr_accessor :scope + # Required. The input token. You can use a Google-issued OAuth 2.0 access token # with this field to obtain an access token with new security attributes applied, # such as a Credential Access Boundary. If an access token already contains @@ -66,9 +80,11 @@ module Google # Update properties of this object def update!(**args) + @audience = args[:audience] if args.key?(:audience) @grant_type = args[:grant_type] if args.key?(:grant_type) @options = args[:options] if args.key?(:options) @requested_token_type = args[:requested_token_type] if args.key?(:requested_token_type) + @scope = args[:scope] if args.key?(:scope) @subject_token = args[:subject_token] if args.key?(:subject_token) @subject_token_type = args[:subject_token_type] if args.key?(:subject_token_type) end @@ -84,10 +100,10 @@ module Google # @return [String] attr_accessor :access_token - # The amount of time, in seconds, between the time when the `access_token` was - # issued and the time when the `access_token` will expire. This field is absent + # The amount of time, in seconds, between the time when the access token was + # issued and the time when the access token will expire. This field is absent # when the `subject_token` in the request is a Google-issued, short-lived access - # token. In this case, the `access_token` has the same expiration time as the ` + # token. In this case, the access token has the same expiration time as the ` # subject_token`. # Corresponds to the JSON property `expires_in` # @return [Fixnum] @@ -99,7 +115,7 @@ module Google # @return [String] attr_accessor :issued_token_type - # The type of `access_token`. Always has the value `Bearer`. + # The type of access token. Always has the value `Bearer`. # Corresponds to the JSON property `token_type` # @return [String] attr_accessor :token_type diff --git a/generated/google-apis-sts_v1/lib/google/apis/sts_v1/gem_version.rb b/generated/google-apis-sts_v1/lib/google/apis/sts_v1/gem_version.rb index fcd077514..323daf0ea 100644 --- a/generated/google-apis-sts_v1/lib/google/apis/sts_v1/gem_version.rb +++ b/generated/google-apis-sts_v1/lib/google/apis/sts_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module StsV1 # Version of the google-apis-sts_v1 gem - GEM_VERSION = "0.1.0" + GEM_VERSION = "0.2.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.1.1" # Revision of the discovery document this client was generated from - REVISION = "20201004" + REVISION = "20210109" end end end diff --git a/generated/google-apis-sts_v1/lib/google/apis/sts_v1/representations.rb b/generated/google-apis-sts_v1/lib/google/apis/sts_v1/representations.rb index eddbbd28d..77d7e7b87 100644 --- a/generated/google-apis-sts_v1/lib/google/apis/sts_v1/representations.rb +++ b/generated/google-apis-sts_v1/lib/google/apis/sts_v1/representations.rb @@ -37,9 +37,11 @@ module Google class GoogleIdentityStsV1ExchangeTokenRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :audience, as: 'audience' property :grant_type, as: 'grantType' property :options, as: 'options' property :requested_token_type, as: 'requestedTokenType' + property :scope, as: 'scope' property :subject_token, as: 'subjectToken' property :subject_token_type, as: 'subjectTokenType' end diff --git a/generated/google-apis-sts_v1/synth.metadata b/generated/google-apis-sts_v1/synth.metadata index 429012f74..9cee8f38c 100644 --- a/generated/google-apis-sts_v1/synth.metadata +++ b/generated/google-apis-sts_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" + "sha": "920c90729ba035ad1d159a09f865db6e0bc6b167" } } ]