You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValidateTokenRequest represents a request to validate whether
2174
+
an API token is valid to be used for triggering pipelines
2175
+
tags:
2176
+
- MgmtPrivateService
2096
2177
/v1alpha/{user.name}/exist:
2097
2178
get:
2098
2179
summary: |-
@@ -2111,7 +2192,7 @@ paths:
2111
2192
parameters:
2112
2193
- name: user.name
2113
2194
description: |-
2114
-
The resource name of the user to be deleted,
2195
+
The resource name of the user to check,
2115
2196
for example: "users/local-user"
2116
2197
in: path
2117
2198
required: true
@@ -3749,6 +3830,63 @@ paths:
3749
3830
- source_connector
3750
3831
tags:
3751
3832
- ConnectorPublicService
3833
+
/v1alpha/tokens:
3834
+
get:
3835
+
summary: |-
3836
+
ListTokens method receives a ListTokensRequest message and returns a
3837
+
ListTokensResponse message.
3838
+
operationId: MgmtPublicService_ListTokens
3839
+
responses:
3840
+
"200":
3841
+
description: A successful response.
3842
+
schema:
3843
+
$ref: '#/definitions/v1alphaListTokensResponse'
3844
+
default:
3845
+
description: An unexpected error response.
3846
+
schema:
3847
+
$ref: '#/definitions/rpcStatus'
3848
+
parameters:
3849
+
- name: page_size
3850
+
description: |-
3851
+
The maximum number of API tokens to return. The service may return fewer
3852
+
than this value. If unspecified, at most 10 API tokens will be returned. The
3853
+
maximum value is 100; values above 100 will be coerced to 100.
3854
+
in: query
3855
+
required: false
3856
+
type: string
3857
+
format: int64
3858
+
- name: page_token
3859
+
description: Page token
3860
+
in: query
3861
+
required: false
3862
+
type: string
3863
+
tags:
3864
+
- MgmtPublicService
3865
+
post:
3866
+
summary: |-
3867
+
CreateToken method receives a CreateTokenRequest message and returns
3868
+
a CreateTokenResponse message.
3869
+
operationId: MgmtPublicService_CreateToken
3870
+
responses:
3871
+
"200":
3872
+
description: A successful response.
3873
+
schema:
3874
+
$ref: '#/definitions/v1alphaCreateTokenResponse'
3875
+
default:
3876
+
description: An unexpected error response.
3877
+
schema:
3878
+
$ref: '#/definitions/rpcStatus'
3879
+
parameters:
3880
+
- name: token
3881
+
description: A token resource to create
3882
+
in: body
3883
+
required: true
3884
+
schema:
3885
+
$ref: '#/definitions/v1alphaApiToken'
3886
+
required:
3887
+
- token
3888
+
tags:
3889
+
- MgmtPublicService
3752
3890
/v1alpha/users/me:
3753
3891
get:
3754
3892
summary: |-
@@ -3983,6 +4121,10 @@ definitions:
3983
4121
if (any.is(Foo.class)) {
3984
4122
foo = any.unpack(Foo.class);
3985
4123
}
4124
+
// or ...
4125
+
if (any.isSameTypeAs(Foo.getDefaultInstance())) {
4126
+
foo = any.unpack(Foo.getDefaultInstance());
4127
+
}
3986
4128
3987
4129
Example 3: Pack and unpack a message in Python.
3988
4130
@@ -4013,7 +4155,6 @@ definitions:
4013
4155
in the type URL, for example "foo.bar.com/x/y.z" will yield type
4014
4156
name "y.z".
4015
4157
4016
-
4017
4158
JSON
4018
4159
4019
4160
The JSON representation of an `Any` value uses the regular
@@ -4159,6 +4300,71 @@ definitions:
4159
4300
instance or workspace admins beforehand. The trade-off is that the user does
4160
4301
not have to provide as many technical inputs anymore and the auth process is
4161
4302
faster and easier to complete.
4303
+
v1alphaApiToken:
4304
+
type: object
4305
+
properties:
4306
+
name:
4307
+
type: string
4308
+
title: API token resource name. It must have the format of "tokens/*"
4309
+
readOnly: true
4310
+
uid:
4311
+
type: string
4312
+
title: API token UUID
4313
+
readOnly: true
4314
+
id:
4315
+
type: string
4316
+
description: |-
4317
+
API token resource ID (the last segment of the resource name) used to
4318
+
construct the resource name. This conforms to RFC-1034, which restricts to
4319
+
letters, numbers, and hyphen, with the first character a letter, the last a
4320
+
letter or a number, and a 63 character maximum.
4321
+
Use this field to define where it's being used.
4322
+
create_time:
4323
+
type: string
4324
+
format: date-time
4325
+
title: API token creation time
4326
+
readOnly: true
4327
+
update_time:
4328
+
type: string
4329
+
format: date-time
4330
+
title: API token update time
4331
+
readOnly: true
4332
+
access_token:
4333
+
type: string
4334
+
description: "An opaque access token representing the API token string. \nTo validate the token, the recipient of the token needs to call the server that issued the token."
4335
+
readOnly: true
4336
+
state:
4337
+
$ref: '#/definitions/v1alphaApiTokenState'
4338
+
title: API token state
4339
+
readOnly: true
4340
+
token_type:
4341
+
type: string
4342
+
title: API token type, value is fixed to "Bearer"
4343
+
readOnly: true
4344
+
lifetime:
4345
+
type: string
4346
+
format: int64
4347
+
title: The amount of time (in seconds) the API token will live. If set to -1, indicating a non-expire token
4348
+
expires_in:
4349
+
type: string
4350
+
format: int64
4351
+
title: The amount of time (in seconds) the API token will expire. If value is -1, indicating a non-expire token
4352
+
readOnly: true
4353
+
title: ApiToken represents the content of a API token
4354
+
v1alphaApiTokenState:
4355
+
type: string
4356
+
enum:
4357
+
- STATE_UNSPECIFIED
4358
+
- STATE_INACTIVE
4359
+
- STATE_ACTIVE
4360
+
- STATE_EXPIRED
4361
+
default: STATE_UNSPECIFIED
4362
+
description: |-
4363
+
- STATE_UNSPECIFIED: State: UNSPECIFIED
4364
+
- STATE_INACTIVE: State: INACTIVE
4365
+
- STATE_ACTIVE: State: ACTIVE
4366
+
- STATE_EXPIRED: State: EXPIRED
4367
+
title: State enumerates the state of an API token
4162
4368
v1alphaBoundingBox:
4163
4369
type: object
4164
4370
properties:
@@ -4498,6 +4704,13 @@ definitions:
4498
4704
title: |-
4499
4705
CreateSourceConnectorResponse represents a response for a
4500
4706
SourceConnector resource
4707
+
v1alphaCreateTokenResponse:
4708
+
type: object
4709
+
properties:
4710
+
token:
4711
+
$ref: '#/definitions/v1alphaApiToken'
4712
+
title: The created API token resource
4713
+
title: CreateTokenResponse represents a response for a API token resource
4501
4714
v1alphaCreateUserAdminResponse:
4502
4715
type: object
4503
4716
properties:
@@ -4527,6 +4740,9 @@ definitions:
4527
4740
v1alphaDeleteSourceConnectorResponse:
4528
4741
type: object
4529
4742
title: DeleteSourceConnectorResponse represents an empty response
4743
+
v1alphaDeleteTokenResponse:
4744
+
type: object
4745
+
title: DeleteTokenResponse represents an empty response
4530
4746
v1alphaDeleteUserAdminResponse:
4531
4747
type: object
4532
4748
title: DeleteUserAdminResponse represents an empty response
@@ -5128,6 +5344,13 @@ definitions:
5128
5344
title: |-
5129
5345
GetSourceConnectorResponse represents a response for a
5130
5346
SourceConnector resource
5347
+
v1alphaGetTokenResponse:
5348
+
type: object
5349
+
properties:
5350
+
token:
5351
+
$ref: '#/definitions/v1alphaApiToken'
5352
+
title: An API token resource
5353
+
title: GetTokenResponse represents a response for an API token resource
5131
5354
v1alphaGetUserAdminResponse:
5132
5355
type: object
5133
5356
properties:
@@ -5508,6 +5731,22 @@ definitions:
5508
5731
title: |-
5509
5732
ListSourceConnectorsResponse represents a response for a list of
5510
5733
SourceConnector resources
5734
+
v1alphaListTokensResponse:
5735
+
type: object
5736
+
properties:
5737
+
tokens:
5738
+
type: array
5739
+
items:
5740
+
$ref: '#/definitions/v1alphaApiToken'
5741
+
title: A list of API tokens resources
5742
+
next_page_token:
5743
+
type: string
5744
+
title: Next page token
5745
+
total_size:
5746
+
type: string
5747
+
format: int64
5748
+
title: Total count of API tokens resources
5749
+
title: ListTokensResponse represents a response for a list of API tokens
5511
5750
v1alphaListUsersAdminResponse:
5512
5751
type: object
5513
5752
properties:
@@ -7165,6 +7404,15 @@ definitions:
7165
7404
title: User records definition
7166
7405
required:
7167
7406
- uid
7407
+
v1alphaValidateTokenResponse:
7408
+
type: object
7409
+
properties:
7410
+
valid:
7411
+
type: boolean
7412
+
title: A boolean value indicating whether the token is valid
7413
+
title: |-
7414
+
ValidateTokenResponse represents a response about whether
0 commit comments