google-apis-agentidentitycredentials_v1 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/agentidentitycredentials_v1/classes.rb +26 -24
- data/lib/google/apis/agentidentitycredentials_v1/gem_version.rb +2 -2
- data/lib/google/apis/agentidentitycredentials_v1/service.rb +7 -6
- data/lib/google/apis/agentidentitycredentials_v1.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2431544ce07138e951ea07c72516b4cb6e3d70b2aff5565cc911ba5b1b6a79c2
|
|
4
|
+
data.tar.gz: 1d4589cbc5624b9e697b89f0f27d9e620c7308a2bc9c29dd0ccd4f12c9c455b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d3d1412ec52d8e1476ffad73f8591e7e8bd01337d1634a2bd8542545b5c212ec214823d7f3674b96532bf41a334280491599450353e86e3de6114b3ad7fd392
|
|
7
|
+
data.tar.gz: 14f6ba8a9439afc7bd7c8b41bf00b4a1086e116f120821cd4cfc40b56462b4c4000e56a5cb20819af61e125a68d46422675eea0589ea494d4e27a5ca5c1a7db6
|
data/CHANGELOG.md
CHANGED
|
@@ -22,7 +22,7 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module AgentidentitycredentialsV1
|
|
24
24
|
|
|
25
|
-
# Indicates the user has rejected the permission delegation or
|
|
25
|
+
# Indicates the user has rejected the permission delegation or canceled the
|
|
26
26
|
# request.
|
|
27
27
|
class GoogleCloudAgentidentitycredentialsV1ConsentRejected
|
|
28
28
|
include Google::Apis::Core::Hashable
|
|
@@ -36,12 +36,14 @@ module Google
|
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
# Request message for FinalizeCredentials
|
|
39
|
+
# Request message for `FinalizeCredentials`.
|
|
40
40
|
class GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest
|
|
41
41
|
include Google::Apis::Core::Hashable
|
|
42
42
|
|
|
43
|
-
# Required. The same consent_nonce value that was provided during
|
|
44
|
-
# the UriConsentRequired
|
|
43
|
+
# Required. The same `consent_nonce` value that was provided during retrieval in
|
|
44
|
+
# the [UriConsentRequired](https://cloud.google.com/iam/docs/reference/
|
|
45
|
+
# agentidentitycredentials/rest/v1/projects.locations.authProviders.credentials/
|
|
46
|
+
# retrieve#UriConsentRequired) metadata.
|
|
45
47
|
# Corresponds to the JSON property `consentNonce`
|
|
46
48
|
# @return [String]
|
|
47
49
|
attr_accessor :consent_nonce
|
|
@@ -69,7 +71,7 @@ module Google
|
|
|
69
71
|
end
|
|
70
72
|
end
|
|
71
73
|
|
|
72
|
-
# Response message for FinalizeCredentials
|
|
74
|
+
# Response message for `FinalizeCredentials`. Intentionally empty.
|
|
73
75
|
class GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsResponse
|
|
74
76
|
include Google::Apis::Core::Hashable
|
|
75
77
|
|
|
@@ -83,7 +85,7 @@ module Google
|
|
|
83
85
|
end
|
|
84
86
|
|
|
85
87
|
# Indicates that the credential retrieval is pending. The caller should retry
|
|
86
|
-
# the RetrieveCredentials request after some time.
|
|
88
|
+
# the `RetrieveCredentials` request after some time.
|
|
87
89
|
class GoogleCloudAgentidentitycredentialsV1Pending
|
|
88
90
|
include Google::Apis::Core::Hashable
|
|
89
91
|
|
|
@@ -96,21 +98,21 @@ module Google
|
|
|
96
98
|
end
|
|
97
99
|
end
|
|
98
100
|
|
|
99
|
-
# Request message for RetrieveCredentials
|
|
101
|
+
# Request message for `RetrieveCredentials`.
|
|
100
102
|
class GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest
|
|
101
103
|
include Google::Apis::Core::Hashable
|
|
102
104
|
|
|
103
105
|
# Optional. The URI to redirect the user to after consent is completed. This
|
|
104
|
-
# field is required for
|
|
105
|
-
#
|
|
106
|
+
# field is required for auth providers using the 3-legged OAuth flow. For other
|
|
107
|
+
# auth provider types, this field is unused but not rejected.
|
|
106
108
|
# Corresponds to the JSON property `continueUri`
|
|
107
109
|
# @return [String]
|
|
108
110
|
attr_accessor :continue_uri
|
|
109
111
|
|
|
110
112
|
# Optional. Input only. Set this field only if the previous token was expired or
|
|
111
|
-
# invalid. This value must be the full, previously returned token string.
|
|
112
|
-
#
|
|
113
|
-
# or a new consent flow.
|
|
113
|
+
# invalid. This value must be the full, previously returned token string.
|
|
114
|
+
# Setting this field triggers a refresh of the access token with a stored
|
|
115
|
+
# refresh token, if possible, or a new consent flow.
|
|
114
116
|
# Corresponds to the JSON property `forceRefreshToken`
|
|
115
117
|
# @return [String]
|
|
116
118
|
attr_accessor :force_refresh_token
|
|
@@ -138,19 +140,19 @@ module Google
|
|
|
138
140
|
end
|
|
139
141
|
end
|
|
140
142
|
|
|
141
|
-
# Response message for RetrieveCredentials
|
|
143
|
+
# Response message for `RetrieveCredentials`. Contains the access tokens and
|
|
142
144
|
# related artifacts.
|
|
143
145
|
class GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsResponse
|
|
144
146
|
include Google::Apis::Core::Hashable
|
|
145
147
|
|
|
146
|
-
# Indicates the user has rejected the permission delegation or
|
|
148
|
+
# Indicates the user has rejected the permission delegation or canceled the
|
|
147
149
|
# request.
|
|
148
150
|
# Corresponds to the JSON property `consentRejected`
|
|
149
151
|
# @return [Google::Apis::AgentidentitycredentialsV1::GoogleCloudAgentidentitycredentialsV1ConsentRejected]
|
|
150
152
|
attr_accessor :consent_rejected
|
|
151
153
|
|
|
152
154
|
# Indicates that the credential retrieval is pending. The caller should retry
|
|
153
|
-
# the RetrieveCredentials request after some time.
|
|
155
|
+
# the `RetrieveCredentials` request after some time.
|
|
154
156
|
# Corresponds to the JSON property `pending`
|
|
155
157
|
# @return [Google::Apis::AgentidentitycredentialsV1::GoogleCloudAgentidentitycredentialsV1Pending]
|
|
156
158
|
attr_accessor :pending
|
|
@@ -162,7 +164,7 @@ module Google
|
|
|
162
164
|
|
|
163
165
|
# Indicates that the user must visit the provided URI to consent to delegate
|
|
164
166
|
# permission to the agent to act on their behalf. The caller can either poll the
|
|
165
|
-
# `RetrieveCredentials` method, or await the /ValidateUserId callback
|
|
167
|
+
# `RetrieveCredentials` method, or await the /ValidateUserId callback.
|
|
166
168
|
# Corresponds to the JSON property `uriConsentRequired`
|
|
167
169
|
# @return [Google::Apis::AgentidentitycredentialsV1::GoogleCloudAgentidentitycredentialsV1UriConsentRequired]
|
|
168
170
|
attr_accessor :uri_consent_required
|
|
@@ -207,10 +209,10 @@ module Google
|
|
|
207
209
|
# @return [Array<String>]
|
|
208
210
|
attr_accessor :scopes
|
|
209
211
|
|
|
210
|
-
# The retrieved access token or credential for the end user. On
|
|
211
|
-
# for an invalid token OAuth spec
|
|
212
|
-
#
|
|
213
|
-
# PERMISSION_DENIED`, retry your original request to RetrieveCredentials with
|
|
212
|
+
# The retrieved access token or credential for the end user. On an MCP tool call,
|
|
213
|
+
# for an invalid token the OAuth spec states that this should return `401` or `
|
|
214
|
+
# 403`, but MCP servers may implement this differently. If you get any flavor of
|
|
215
|
+
# `PERMISSION_DENIED`, retry your original request to `RetrieveCredentials` with
|
|
214
216
|
# force_refresh_token set to the expired/invalid token string, which will fetch
|
|
215
217
|
# a new token or initiate a new consent flow.
|
|
216
218
|
# Corresponds to the JSON property `token`
|
|
@@ -232,7 +234,7 @@ module Google
|
|
|
232
234
|
|
|
233
235
|
# Indicates that the user must visit the provided URI to consent to delegate
|
|
234
236
|
# permission to the agent to act on their behalf. The caller can either poll the
|
|
235
|
-
# `RetrieveCredentials` method, or await the /ValidateUserId callback
|
|
237
|
+
# `RetrieveCredentials` method, or await the /ValidateUserId callback.
|
|
236
238
|
class GoogleCloudAgentidentitycredentialsV1UriConsentRequired
|
|
237
239
|
include Google::Apis::Core::Hashable
|
|
238
240
|
|
|
@@ -244,9 +246,9 @@ module Google
|
|
|
244
246
|
|
|
245
247
|
# Output only. A one-time, randomly generated value that validates the entire
|
|
246
248
|
# consent flow is handled by a single user, avoiding CSRF attacks. It must be
|
|
247
|
-
# submitted with the FinalizeCredentials request to complete the OAuth
|
|
248
|
-
# This will always be present. Implemented per
|
|
249
|
-
# rfc6819#section-5.3.5
|
|
249
|
+
# submitted with the `FinalizeCredentials` request to complete the OAuth
|
|
250
|
+
# exchange. This will always be present. Implemented per [RFC 6819 Section 5.3.5]
|
|
251
|
+
# (https://www.rfc-editor.org/rfc/rfc6819#section-5.3.5).
|
|
250
252
|
# Corresponds to the JSON property `consentNonce`
|
|
251
253
|
# @return [String]
|
|
252
254
|
attr_accessor :consent_nonce
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module AgentidentitycredentialsV1
|
|
18
18
|
# Version of the google-apis-agentidentitycredentials_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.2.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260813"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -22,7 +22,8 @@ module Google
|
|
|
22
22
|
module AgentidentitycredentialsV1
|
|
23
23
|
# Agent Identity Credentials API
|
|
24
24
|
#
|
|
25
|
-
#
|
|
25
|
+
# The Agent Identity Credentials API retrieves and finalizes authorization
|
|
26
|
+
# credentials for auth providers.
|
|
26
27
|
#
|
|
27
28
|
# @example
|
|
28
29
|
# require 'google/apis/agentidentitycredentials_v1'
|
|
@@ -53,7 +54,7 @@ module Google
|
|
|
53
54
|
|
|
54
55
|
# Finalizes the credentials after a successful consent flow.
|
|
55
56
|
# @param [String] auth_provider
|
|
56
|
-
# Required. The resource name of the
|
|
57
|
+
# Required. The resource name of the auth provider. Format: `projects/`project`/
|
|
57
58
|
# locations/`location`/authProviders/`auth_provider``
|
|
58
59
|
# @param [Google::Apis::AgentidentitycredentialsV1::GoogleCloudAgentidentitycredentialsV1FinalizeCredentialsRequest] google_cloud_agentidentitycredentials_v1_finalize_credentials_request_object
|
|
59
60
|
# @param [String] fields
|
|
@@ -85,15 +86,15 @@ module Google
|
|
|
85
86
|
execute_or_queue_command(command, &block)
|
|
86
87
|
end
|
|
87
88
|
|
|
88
|
-
# Retrieves authorization credentials for an
|
|
89
|
+
# Retrieves authorization credentials for an auth provider, or indicates what
|
|
89
90
|
# action needs to be taken to obtain credentials. If the `token` field in the
|
|
90
91
|
# response is populated, credential retrieval was successful. If one of the
|
|
91
|
-
# fields in the `
|
|
92
|
+
# fields in the `result` oneof is populated, further action is required to
|
|
92
93
|
# obtain credentials, such as redirecting the user for consent. View comments on
|
|
93
94
|
# `RetrieveCredentialsResponse` for more information.
|
|
94
95
|
# @param [String] auth_provider
|
|
95
|
-
# Required. The
|
|
96
|
-
#
|
|
96
|
+
# Required. The resource name of the auth provider. Format: `projects/`project`/
|
|
97
|
+
# locations/`location`/authProviders/`auth_provider``
|
|
97
98
|
# @param [Google::Apis::AgentidentitycredentialsV1::GoogleCloudAgentidentitycredentialsV1RetrieveCredentialsRequest] google_cloud_agentidentitycredentials_v1_retrieve_credentials_request_object
|
|
98
99
|
# @param [String] fields
|
|
99
100
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -21,7 +21,8 @@ module Google
|
|
|
21
21
|
module Apis
|
|
22
22
|
# Agent Identity Credentials API
|
|
23
23
|
#
|
|
24
|
-
#
|
|
24
|
+
# The Agent Identity Credentials API retrieves and finalizes authorization
|
|
25
|
+
# credentials for auth providers.
|
|
25
26
|
#
|
|
26
27
|
# @see https://cloud.google.com/iam/docs/
|
|
27
28
|
module AgentidentitycredentialsV1
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-agentidentitycredentials_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-agentidentitycredentials_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-agentidentitycredentials_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-agentidentitycredentials_v1/v0.2.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-agentidentitycredentials_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|