google-apis-developerconnect_v1 0.6.0 → 0.7.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/developerconnect_v1/classes.rb +271 -0
- data/lib/google/apis/developerconnect_v1/gem_version.rb +2 -2
- data/lib/google/apis/developerconnect_v1/representations.rb +126 -0
- data/lib/google/apis/developerconnect_v1/service.rb +432 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9e488bfa4a1b444cd6e0aa503fa6c560e618f04bc9c452b27476a8b817e5a47
|
4
|
+
data.tar.gz: 52371a30e82a6704159e8b8bdeb188a79a7108651f2830ea558ed45af8aeae38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 050ce8ce9ada8cf21a7ad5b06665152a24e2d6230a184a84c470e649d568d21c67440a66179558cf563be2bdf7050835f29e2d60f497b2541c275790bba8292d
|
7
|
+
data.tar.gz: 1e0f07f0d71b0638cf750c529ef51244d0debb7b6358612b62a83fbd56cbd2867c535416d8731aa55057ba3d254889332c5cfc126c42f2cd162883b714d06457
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,73 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DeveloperconnectV1
|
24
24
|
|
25
|
+
# AccountConnector encapsulates what a platform administrator needs to configure
|
26
|
+
# for users to connect to the service providers, which includes, among other
|
27
|
+
# fields, the OAuth client ID, client secret, and authorization and token
|
28
|
+
# endpoints.
|
29
|
+
class AccountConnector
|
30
|
+
include Google::Apis::Core::Hashable
|
31
|
+
|
32
|
+
# Optional. Allows users to store small amounts of arbitrary data.
|
33
|
+
# Corresponds to the JSON property `annotations`
|
34
|
+
# @return [Hash<String,String>]
|
35
|
+
attr_accessor :annotations
|
36
|
+
|
37
|
+
# Output only. The timestamp when the userConnection was created.
|
38
|
+
# Corresponds to the JSON property `createTime`
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :create_time
|
41
|
+
|
42
|
+
# Optional. This checksum is computed by the server based on the value of other
|
43
|
+
# fields, and may be sent on update and delete requests to ensure the client has
|
44
|
+
# an up-to-date value before proceeding.
|
45
|
+
# Corresponds to the JSON property `etag`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :etag
|
48
|
+
|
49
|
+
# Optional. Labels as key value pairs
|
50
|
+
# Corresponds to the JSON property `labels`
|
51
|
+
# @return [Hash<String,String>]
|
52
|
+
attr_accessor :labels
|
53
|
+
|
54
|
+
# Identifier. The resource name of the userConnection, in the format `projects/`
|
55
|
+
# project`/locations/`location`/accountConnectors/`account_connector_id``.
|
56
|
+
# Corresponds to the JSON property `name`
|
57
|
+
# @return [String]
|
58
|
+
attr_accessor :name
|
59
|
+
|
60
|
+
# Output only. Start OAuth flow by clicking on this URL.
|
61
|
+
# Corresponds to the JSON property `oauthStartUri`
|
62
|
+
# @return [String]
|
63
|
+
attr_accessor :oauth_start_uri
|
64
|
+
|
65
|
+
# ProviderOAuthConfig is the OAuth config for a provider.
|
66
|
+
# Corresponds to the JSON property `providerOauthConfig`
|
67
|
+
# @return [Google::Apis::DeveloperconnectV1::ProviderOAuthConfig]
|
68
|
+
attr_accessor :provider_oauth_config
|
69
|
+
|
70
|
+
# Output only. The timestamp when the userConnection was updated.
|
71
|
+
# Corresponds to the JSON property `updateTime`
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :update_time
|
74
|
+
|
75
|
+
def initialize(**args)
|
76
|
+
update!(**args)
|
77
|
+
end
|
78
|
+
|
79
|
+
# Update properties of this object
|
80
|
+
def update!(**args)
|
81
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
82
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
83
|
+
@etag = args[:etag] if args.key?(:etag)
|
84
|
+
@labels = args[:labels] if args.key?(:labels)
|
85
|
+
@name = args[:name] if args.key?(:name)
|
86
|
+
@oauth_start_uri = args[:oauth_start_uri] if args.key?(:oauth_start_uri)
|
87
|
+
@provider_oauth_config = args[:provider_oauth_config] if args.key?(:provider_oauth_config)
|
88
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
25
92
|
# Configuration for connections to an instance of Bitbucket Cloud.
|
26
93
|
class BitbucketCloudConfig
|
27
94
|
include Google::Apis::Core::Hashable
|
@@ -314,6 +381,81 @@ module Google
|
|
314
381
|
end
|
315
382
|
end
|
316
383
|
|
384
|
+
# Message for representing an error from exchanging OAuth tokens.
|
385
|
+
class ExchangeError
|
386
|
+
include Google::Apis::Core::Hashable
|
387
|
+
|
388
|
+
# https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error
|
389
|
+
# Corresponds to the JSON property `code`
|
390
|
+
# @return [String]
|
391
|
+
attr_accessor :code
|
392
|
+
|
393
|
+
# https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error_description
|
394
|
+
# Corresponds to the JSON property `description`
|
395
|
+
# @return [String]
|
396
|
+
attr_accessor :description
|
397
|
+
|
398
|
+
def initialize(**args)
|
399
|
+
update!(**args)
|
400
|
+
end
|
401
|
+
|
402
|
+
# Update properties of this object
|
403
|
+
def update!(**args)
|
404
|
+
@code = args[:code] if args.key?(:code)
|
405
|
+
@description = args[:description] if args.key?(:description)
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
409
|
+
# Message for fetching an OAuth access token.
|
410
|
+
class FetchAccessTokenRequest
|
411
|
+
include Google::Apis::Core::Hashable
|
412
|
+
|
413
|
+
def initialize(**args)
|
414
|
+
update!(**args)
|
415
|
+
end
|
416
|
+
|
417
|
+
# Update properties of this object
|
418
|
+
def update!(**args)
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
# Message for responding to getting an OAuth access token.
|
423
|
+
class FetchAccessTokenResponse
|
424
|
+
include Google::Apis::Core::Hashable
|
425
|
+
|
426
|
+
# Message for representing an error from exchanging OAuth tokens.
|
427
|
+
# Corresponds to the JSON property `exchangeError`
|
428
|
+
# @return [Google::Apis::DeveloperconnectV1::ExchangeError]
|
429
|
+
attr_accessor :exchange_error
|
430
|
+
|
431
|
+
# Expiration timestamp. Can be empty if unknown or non-expiring.
|
432
|
+
# Corresponds to the JSON property `expirationTime`
|
433
|
+
# @return [String]
|
434
|
+
attr_accessor :expiration_time
|
435
|
+
|
436
|
+
# The scopes of the access token.
|
437
|
+
# Corresponds to the JSON property `scopes`
|
438
|
+
# @return [Array<String>]
|
439
|
+
attr_accessor :scopes
|
440
|
+
|
441
|
+
# The token content.
|
442
|
+
# Corresponds to the JSON property `token`
|
443
|
+
# @return [String]
|
444
|
+
attr_accessor :token
|
445
|
+
|
446
|
+
def initialize(**args)
|
447
|
+
update!(**args)
|
448
|
+
end
|
449
|
+
|
450
|
+
# Update properties of this object
|
451
|
+
def update!(**args)
|
452
|
+
@exchange_error = args[:exchange_error] if args.key?(:exchange_error)
|
453
|
+
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
454
|
+
@scopes = args[:scopes] if args.key?(:scopes)
|
455
|
+
@token = args[:token] if args.key?(:token)
|
456
|
+
end
|
457
|
+
end
|
458
|
+
|
317
459
|
# Response of fetching github installations.
|
318
460
|
class FetchGitHubInstallationsResponse
|
319
461
|
include Google::Apis::Core::Hashable
|
@@ -932,6 +1074,37 @@ module Google
|
|
932
1074
|
end
|
933
1075
|
end
|
934
1076
|
|
1077
|
+
# Message for response to listing AccountConnectors
|
1078
|
+
class ListAccountConnectorsResponse
|
1079
|
+
include Google::Apis::Core::Hashable
|
1080
|
+
|
1081
|
+
# The list of AccountConnectors
|
1082
|
+
# Corresponds to the JSON property `accountConnectors`
|
1083
|
+
# @return [Array<Google::Apis::DeveloperconnectV1::AccountConnector>]
|
1084
|
+
attr_accessor :account_connectors
|
1085
|
+
|
1086
|
+
# A token identifying a page of results the server should return.
|
1087
|
+
# Corresponds to the JSON property `nextPageToken`
|
1088
|
+
# @return [String]
|
1089
|
+
attr_accessor :next_page_token
|
1090
|
+
|
1091
|
+
# Locations that could not be reached.
|
1092
|
+
# Corresponds to the JSON property `unreachable`
|
1093
|
+
# @return [Array<String>]
|
1094
|
+
attr_accessor :unreachable
|
1095
|
+
|
1096
|
+
def initialize(**args)
|
1097
|
+
update!(**args)
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# Update properties of this object
|
1101
|
+
def update!(**args)
|
1102
|
+
@account_connectors = args[:account_connectors] if args.key?(:account_connectors)
|
1103
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1104
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1105
|
+
end
|
1106
|
+
end
|
1107
|
+
|
935
1108
|
# Message for response to listing Connections
|
936
1109
|
class ListConnectionsResponse
|
937
1110
|
include Google::Apis::Core::Hashable
|
@@ -1044,6 +1217,37 @@ module Google
|
|
1044
1217
|
end
|
1045
1218
|
end
|
1046
1219
|
|
1220
|
+
# Message for response to listing Users
|
1221
|
+
class ListUsersResponse
|
1222
|
+
include Google::Apis::Core::Hashable
|
1223
|
+
|
1224
|
+
# A token identifying a page of results the server should return.
|
1225
|
+
# Corresponds to the JSON property `nextPageToken`
|
1226
|
+
# @return [String]
|
1227
|
+
attr_accessor :next_page_token
|
1228
|
+
|
1229
|
+
# Locations that could not be reached.
|
1230
|
+
# Corresponds to the JSON property `unreachable`
|
1231
|
+
# @return [Array<String>]
|
1232
|
+
attr_accessor :unreachable
|
1233
|
+
|
1234
|
+
# The list of Users
|
1235
|
+
# Corresponds to the JSON property `users`
|
1236
|
+
# @return [Array<Google::Apis::DeveloperconnectV1::User>]
|
1237
|
+
attr_accessor :users
|
1238
|
+
|
1239
|
+
def initialize(**args)
|
1240
|
+
update!(**args)
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
# Update properties of this object
|
1244
|
+
def update!(**args)
|
1245
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1246
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
1247
|
+
@users = args[:users] if args.key?(:users)
|
1248
|
+
end
|
1249
|
+
end
|
1250
|
+
|
1047
1251
|
# A resource that represents a Google Cloud location.
|
1048
1252
|
class Location
|
1049
1253
|
include Google::Apis::Core::Hashable
|
@@ -1410,6 +1614,33 @@ module Google
|
|
1410
1614
|
end
|
1411
1615
|
end
|
1412
1616
|
|
1617
|
+
# ProviderOAuthConfig is the OAuth config for a provider.
|
1618
|
+
class ProviderOAuthConfig
|
1619
|
+
include Google::Apis::Core::Hashable
|
1620
|
+
|
1621
|
+
# Required. User selected scopes to apply to the Oauth config In the event of
|
1622
|
+
# changing scopes, user records under AccountConnector will be deleted and users
|
1623
|
+
# will re-auth again.
|
1624
|
+
# Corresponds to the JSON property `scopes`
|
1625
|
+
# @return [Array<String>]
|
1626
|
+
attr_accessor :scopes
|
1627
|
+
|
1628
|
+
# Immutable. Developer Connect provided OAuth.
|
1629
|
+
# Corresponds to the JSON property `systemProviderId`
|
1630
|
+
# @return [String]
|
1631
|
+
attr_accessor :system_provider_id
|
1632
|
+
|
1633
|
+
def initialize(**args)
|
1634
|
+
update!(**args)
|
1635
|
+
end
|
1636
|
+
|
1637
|
+
# Update properties of this object
|
1638
|
+
def update!(**args)
|
1639
|
+
@scopes = args[:scopes] if args.key?(:scopes)
|
1640
|
+
@system_provider_id = args[:system_provider_id] if args.key?(:system_provider_id)
|
1641
|
+
end
|
1642
|
+
end
|
1643
|
+
|
1413
1644
|
# ServiceDirectoryConfig represents Service Directory configuration for a
|
1414
1645
|
# connection.
|
1415
1646
|
class ServiceDirectoryConfig
|
@@ -1470,6 +1701,46 @@ module Google
|
|
1470
1701
|
end
|
1471
1702
|
end
|
1472
1703
|
|
1704
|
+
# User represents a user connected to the service providers through a
|
1705
|
+
# AccountConnector.
|
1706
|
+
class User
|
1707
|
+
include Google::Apis::Core::Hashable
|
1708
|
+
|
1709
|
+
# Output only. The timestamp when the user was created.
|
1710
|
+
# Corresponds to the JSON property `createTime`
|
1711
|
+
# @return [String]
|
1712
|
+
attr_accessor :create_time
|
1713
|
+
|
1714
|
+
# Output only. Developer Connect automatically converts user identity to some
|
1715
|
+
# human readable description, e.g., email address.
|
1716
|
+
# Corresponds to the JSON property `displayName`
|
1717
|
+
# @return [String]
|
1718
|
+
attr_accessor :display_name
|
1719
|
+
|
1720
|
+
# Output only. The timestamp when the token was last requested.
|
1721
|
+
# Corresponds to the JSON property `lastTokenRequestTime`
|
1722
|
+
# @return [String]
|
1723
|
+
attr_accessor :last_token_request_time
|
1724
|
+
|
1725
|
+
# Identifier. Resource name of the user, in the format `projects/*/locations/*/
|
1726
|
+
# accountConnectors/*/users/*`.
|
1727
|
+
# Corresponds to the JSON property `name`
|
1728
|
+
# @return [String]
|
1729
|
+
attr_accessor :name
|
1730
|
+
|
1731
|
+
def initialize(**args)
|
1732
|
+
update!(**args)
|
1733
|
+
end
|
1734
|
+
|
1735
|
+
# Update properties of this object
|
1736
|
+
def update!(**args)
|
1737
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1738
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1739
|
+
@last_token_request_time = args[:last_token_request_time] if args.key?(:last_token_request_time)
|
1740
|
+
@name = args[:name] if args.key?(:name)
|
1741
|
+
end
|
1742
|
+
end
|
1743
|
+
|
1473
1744
|
# Represents a personal access token that authorized the Connection, and
|
1474
1745
|
# associated metadata.
|
1475
1746
|
class UserCredential
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DeveloperconnectV1
|
18
18
|
# Version of the google-apis-developerconnect_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250324"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DeveloperconnectV1
|
24
24
|
|
25
|
+
class AccountConnector
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class BitbucketCloudConfig
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -58,6 +64,24 @@ module Google
|
|
58
64
|
include Google::Apis::Core::JsonObjectSupport
|
59
65
|
end
|
60
66
|
|
67
|
+
class ExchangeError
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class FetchAccessTokenRequest
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class FetchAccessTokenResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
61
85
|
class FetchGitHubInstallationsResponse
|
62
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
87
|
|
@@ -160,6 +184,12 @@ module Google
|
|
160
184
|
include Google::Apis::Core::JsonObjectSupport
|
161
185
|
end
|
162
186
|
|
187
|
+
class ListAccountConnectorsResponse
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
163
193
|
class ListConnectionsResponse
|
164
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
195
|
|
@@ -184,6 +214,12 @@ module Google
|
|
184
214
|
include Google::Apis::Core::JsonObjectSupport
|
185
215
|
end
|
186
216
|
|
217
|
+
class ListUsersResponse
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
187
223
|
class Location
|
188
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
225
|
|
@@ -238,6 +274,12 @@ module Google
|
|
238
274
|
include Google::Apis::Core::JsonObjectSupport
|
239
275
|
end
|
240
276
|
|
277
|
+
class ProviderOAuthConfig
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
241
283
|
class ServiceDirectoryConfig
|
242
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
285
|
|
@@ -250,12 +292,33 @@ module Google
|
|
250
292
|
include Google::Apis::Core::JsonObjectSupport
|
251
293
|
end
|
252
294
|
|
295
|
+
class User
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
253
301
|
class UserCredential
|
254
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
303
|
|
256
304
|
include Google::Apis::Core::JsonObjectSupport
|
257
305
|
end
|
258
306
|
|
307
|
+
class AccountConnector
|
308
|
+
# @private
|
309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
+
hash :annotations, as: 'annotations'
|
311
|
+
property :create_time, as: 'createTime'
|
312
|
+
property :etag, as: 'etag'
|
313
|
+
hash :labels, as: 'labels'
|
314
|
+
property :name, as: 'name'
|
315
|
+
property :oauth_start_uri, as: 'oauthStartUri'
|
316
|
+
property :provider_oauth_config, as: 'providerOauthConfig', class: Google::Apis::DeveloperconnectV1::ProviderOAuthConfig, decorator: Google::Apis::DeveloperconnectV1::ProviderOAuthConfig::Representation
|
317
|
+
|
318
|
+
property :update_time, as: 'updateTime'
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
259
322
|
class BitbucketCloudConfig
|
260
323
|
# @private
|
261
324
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -337,6 +400,31 @@ module Google
|
|
337
400
|
end
|
338
401
|
end
|
339
402
|
|
403
|
+
class ExchangeError
|
404
|
+
# @private
|
405
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
406
|
+
property :code, as: 'code'
|
407
|
+
property :description, as: 'description'
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
class FetchAccessTokenRequest
|
412
|
+
# @private
|
413
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
class FetchAccessTokenResponse
|
418
|
+
# @private
|
419
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
420
|
+
property :exchange_error, as: 'exchangeError', class: Google::Apis::DeveloperconnectV1::ExchangeError, decorator: Google::Apis::DeveloperconnectV1::ExchangeError::Representation
|
421
|
+
|
422
|
+
property :expiration_time, as: 'expirationTime'
|
423
|
+
collection :scopes, as: 'scopes'
|
424
|
+
property :token, as: 'token'
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
340
428
|
class FetchGitHubInstallationsResponse
|
341
429
|
# @private
|
342
430
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -506,6 +594,16 @@ module Google
|
|
506
594
|
end
|
507
595
|
end
|
508
596
|
|
597
|
+
class ListAccountConnectorsResponse
|
598
|
+
# @private
|
599
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
600
|
+
collection :account_connectors, as: 'accountConnectors', class: Google::Apis::DeveloperconnectV1::AccountConnector, decorator: Google::Apis::DeveloperconnectV1::AccountConnector::Representation
|
601
|
+
|
602
|
+
property :next_page_token, as: 'nextPageToken'
|
603
|
+
collection :unreachable, as: 'unreachable'
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
509
607
|
class ListConnectionsResponse
|
510
608
|
# @private
|
511
609
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -544,6 +642,16 @@ module Google
|
|
544
642
|
end
|
545
643
|
end
|
546
644
|
|
645
|
+
class ListUsersResponse
|
646
|
+
# @private
|
647
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
648
|
+
property :next_page_token, as: 'nextPageToken'
|
649
|
+
collection :unreachable, as: 'unreachable'
|
650
|
+
collection :users, as: 'users', class: Google::Apis::DeveloperconnectV1::User, decorator: Google::Apis::DeveloperconnectV1::User::Representation
|
651
|
+
|
652
|
+
end
|
653
|
+
end
|
654
|
+
|
547
655
|
class Location
|
548
656
|
# @private
|
549
657
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -628,6 +736,14 @@ module Google
|
|
628
736
|
end
|
629
737
|
end
|
630
738
|
|
739
|
+
class ProviderOAuthConfig
|
740
|
+
# @private
|
741
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
742
|
+
collection :scopes, as: 'scopes'
|
743
|
+
property :system_provider_id, as: 'systemProviderId'
|
744
|
+
end
|
745
|
+
end
|
746
|
+
|
631
747
|
class ServiceDirectoryConfig
|
632
748
|
# @private
|
633
749
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -644,6 +760,16 @@ module Google
|
|
644
760
|
end
|
645
761
|
end
|
646
762
|
|
763
|
+
class User
|
764
|
+
# @private
|
765
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
766
|
+
property :create_time, as: 'createTime'
|
767
|
+
property :display_name, as: 'displayName'
|
768
|
+
property :last_token_request_time, as: 'lastTokenRequestTime'
|
769
|
+
property :name, as: 'name'
|
770
|
+
end
|
771
|
+
end
|
772
|
+
|
647
773
|
class UserCredential
|
648
774
|
# @private
|
649
775
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -84,6 +84,9 @@ module Google
|
|
84
84
|
# Lists information about the supported locations for this service.
|
85
85
|
# @param [String] name
|
86
86
|
# The resource that owns the locations collection, if applicable.
|
87
|
+
# @param [Array<String>, String] extra_location_types
|
88
|
+
# Optional. A list of extra location types that should be used as conditions for
|
89
|
+
# controlling the visibility of the locations.
|
87
90
|
# @param [String] filter
|
88
91
|
# A filter to narrow down results to a preferred subset. The filtering language
|
89
92
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -111,11 +114,12 @@ module Google
|
|
111
114
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
115
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
116
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
-
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
+
def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
118
|
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
116
119
|
command.response_representation = Google::Apis::DeveloperconnectV1::ListLocationsResponse::Representation
|
117
120
|
command.response_class = Google::Apis::DeveloperconnectV1::ListLocationsResponse
|
118
121
|
command.params['name'] = name unless name.nil?
|
122
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
119
123
|
command.query['filter'] = filter unless filter.nil?
|
120
124
|
command.query['pageSize'] = page_size unless page_size.nil?
|
121
125
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -124,6 +128,433 @@ module Google
|
|
124
128
|
execute_or_queue_command(command, &block)
|
125
129
|
end
|
126
130
|
|
131
|
+
# Creates a new AccountConnector in a given project and location.
|
132
|
+
# @param [String] parent
|
133
|
+
# Required. Location resource name as the account_connector’s parent.
|
134
|
+
# @param [Google::Apis::DeveloperconnectV1::AccountConnector] account_connector_object
|
135
|
+
# @param [String] account_connector_id
|
136
|
+
# Required. The ID to use for the AccountConnector, which will become the final
|
137
|
+
# component of the AccountConnector's resource name. Its format should adhere to
|
138
|
+
# https://google.aip.dev/122#resource-id-segments Names must be unique per-
|
139
|
+
# project per-location.
|
140
|
+
# @param [String] request_id
|
141
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
142
|
+
# request ID so that if you must retry your request, the server will know to
|
143
|
+
# ignore the request if it has already been completed. The server will guarantee
|
144
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
145
|
+
# situation where you make an initial request and the request times out. If you
|
146
|
+
# make the request again with the same request ID, the server can check if
|
147
|
+
# original operation with the same request ID was received, and if so, will
|
148
|
+
# ignore the second request. This prevents clients from accidentally creating
|
149
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
150
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
151
|
+
# @param [Boolean] validate_only
|
152
|
+
# Optional. If set, validate the request, but do not actually post it.
|
153
|
+
# @param [String] fields
|
154
|
+
# Selector specifying which fields to include in a partial response.
|
155
|
+
# @param [String] quota_user
|
156
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
157
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
158
|
+
# @param [Google::Apis::RequestOptions] options
|
159
|
+
# Request-specific options
|
160
|
+
#
|
161
|
+
# @yield [result, err] Result & error if block supplied
|
162
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
163
|
+
# @yieldparam err [StandardError] error object if request failed
|
164
|
+
#
|
165
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
166
|
+
#
|
167
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
168
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
169
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
170
|
+
def create_project_location_account_connector(parent, account_connector_object = nil, account_connector_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
171
|
+
command = make_simple_command(:post, 'v1/{+parent}/accountConnectors', options)
|
172
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::AccountConnector::Representation
|
173
|
+
command.request_object = account_connector_object
|
174
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
175
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
176
|
+
command.params['parent'] = parent unless parent.nil?
|
177
|
+
command.query['accountConnectorId'] = account_connector_id unless account_connector_id.nil?
|
178
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
179
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
180
|
+
command.query['fields'] = fields unless fields.nil?
|
181
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
182
|
+
execute_or_queue_command(command, &block)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Deletes a single AccountConnector.
|
186
|
+
# @param [String] name
|
187
|
+
# Required. Name of the resource
|
188
|
+
# @param [String] etag
|
189
|
+
# Optional. The current etag of the AccountConnectorn. If an etag is provided
|
190
|
+
# and does not match the current etag of the AccountConnector, deletion will be
|
191
|
+
# blocked and an ABORTED error will be returned.
|
192
|
+
# @param [Boolean] force
|
193
|
+
# Optional. If set to true, any Users from this AccountConnector will also be
|
194
|
+
# deleted. (Otherwise, the request will only work if the AccountConnector has no
|
195
|
+
# Users.)
|
196
|
+
# @param [String] request_id
|
197
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
198
|
+
# request ID so that if you must retry your request, the server will know to
|
199
|
+
# ignore the request if it has already been completed. The server will guarantee
|
200
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
201
|
+
# situation where you make an initial request and the request times out. If you
|
202
|
+
# make the request again with the same request ID, the server can check if
|
203
|
+
# original operation with the same request ID was received, and if so, will
|
204
|
+
# ignore the second request. This prevents clients from accidentally creating
|
205
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
206
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
207
|
+
# @param [Boolean] validate_only
|
208
|
+
# Optional. If set, validate the request, but do not actually post it.
|
209
|
+
# @param [String] fields
|
210
|
+
# Selector specifying which fields to include in a partial response.
|
211
|
+
# @param [String] quota_user
|
212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
214
|
+
# @param [Google::Apis::RequestOptions] options
|
215
|
+
# Request-specific options
|
216
|
+
#
|
217
|
+
# @yield [result, err] Result & error if block supplied
|
218
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
219
|
+
# @yieldparam err [StandardError] error object if request failed
|
220
|
+
#
|
221
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
222
|
+
#
|
223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
226
|
+
def delete_project_location_account_connector(name, etag: nil, force: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
227
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
228
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
229
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
230
|
+
command.params['name'] = name unless name.nil?
|
231
|
+
command.query['etag'] = etag unless etag.nil?
|
232
|
+
command.query['force'] = force unless force.nil?
|
233
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
234
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
237
|
+
execute_or_queue_command(command, &block)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Gets details of a single AccountConnector.
|
241
|
+
# @param [String] name
|
242
|
+
# Required. Name of the resource
|
243
|
+
# @param [String] fields
|
244
|
+
# Selector specifying which fields to include in a partial response.
|
245
|
+
# @param [String] quota_user
|
246
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
247
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
248
|
+
# @param [Google::Apis::RequestOptions] options
|
249
|
+
# Request-specific options
|
250
|
+
#
|
251
|
+
# @yield [result, err] Result & error if block supplied
|
252
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::AccountConnector] parsed result object
|
253
|
+
# @yieldparam err [StandardError] error object if request failed
|
254
|
+
#
|
255
|
+
# @return [Google::Apis::DeveloperconnectV1::AccountConnector]
|
256
|
+
#
|
257
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
258
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
259
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
260
|
+
def get_project_location_account_connector(name, fields: nil, quota_user: nil, options: nil, &block)
|
261
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
262
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::AccountConnector::Representation
|
263
|
+
command.response_class = Google::Apis::DeveloperconnectV1::AccountConnector
|
264
|
+
command.params['name'] = name unless name.nil?
|
265
|
+
command.query['fields'] = fields unless fields.nil?
|
266
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
267
|
+
execute_or_queue_command(command, &block)
|
268
|
+
end
|
269
|
+
|
270
|
+
# Lists AccountConnectors in a given project and location.
|
271
|
+
# @param [String] parent
|
272
|
+
# Required. Parent value for ListAccountConnectorsRequest
|
273
|
+
# @param [String] filter
|
274
|
+
# Optional. Filtering results
|
275
|
+
# @param [String] order_by
|
276
|
+
# Optional. Hint for how to order the results
|
277
|
+
# @param [Fixnum] page_size
|
278
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
279
|
+
# If unspecified, server will pick an appropriate default.
|
280
|
+
# @param [String] page_token
|
281
|
+
# Optional. A token identifying a page of results the server should return.
|
282
|
+
# @param [String] fields
|
283
|
+
# Selector specifying which fields to include in a partial response.
|
284
|
+
# @param [String] quota_user
|
285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
287
|
+
# @param [Google::Apis::RequestOptions] options
|
288
|
+
# Request-specific options
|
289
|
+
#
|
290
|
+
# @yield [result, err] Result & error if block supplied
|
291
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::ListAccountConnectorsResponse] parsed result object
|
292
|
+
# @yieldparam err [StandardError] error object if request failed
|
293
|
+
#
|
294
|
+
# @return [Google::Apis::DeveloperconnectV1::ListAccountConnectorsResponse]
|
295
|
+
#
|
296
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
297
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
298
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
299
|
+
def list_project_location_account_connectors(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
300
|
+
command = make_simple_command(:get, 'v1/{+parent}/accountConnectors', options)
|
301
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::ListAccountConnectorsResponse::Representation
|
302
|
+
command.response_class = Google::Apis::DeveloperconnectV1::ListAccountConnectorsResponse
|
303
|
+
command.params['parent'] = parent unless parent.nil?
|
304
|
+
command.query['filter'] = filter unless filter.nil?
|
305
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
306
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
307
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
308
|
+
command.query['fields'] = fields unless fields.nil?
|
309
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
310
|
+
execute_or_queue_command(command, &block)
|
311
|
+
end
|
312
|
+
|
313
|
+
# Updates the parameters of a single AccountConnector.
|
314
|
+
# @param [String] name
|
315
|
+
# Identifier. The resource name of the userConnection, in the format `projects/`
|
316
|
+
# project`/locations/`location`/accountConnectors/`account_connector_id``.
|
317
|
+
# @param [Google::Apis::DeveloperconnectV1::AccountConnector] account_connector_object
|
318
|
+
# @param [Boolean] allow_missing
|
319
|
+
# Optional. If set to true, and the userConnection is not found a new
|
320
|
+
# userConnection will be created. In this situation `update_mask` is ignored.
|
321
|
+
# The creation will succeed only if the input userConnection has all the
|
322
|
+
# necessary
|
323
|
+
# @param [String] request_id
|
324
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
325
|
+
# request ID so that if you must retry your request, the server will know to
|
326
|
+
# ignore the request if it has already been completed. The server will guarantee
|
327
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
328
|
+
# situation where you make an initial request and the request times out. If you
|
329
|
+
# make the request again with the same request ID, the server can check if
|
330
|
+
# original operation with the same request ID was received, and if so, will
|
331
|
+
# ignore the second request. This prevents clients from accidentally creating
|
332
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
333
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
334
|
+
# @param [String] update_mask
|
335
|
+
# Optional. The list of fields to be updated.
|
336
|
+
# @param [Boolean] validate_only
|
337
|
+
# Optional. If set, validate the request, but do not actually post it.
|
338
|
+
# @param [String] fields
|
339
|
+
# Selector specifying which fields to include in a partial response.
|
340
|
+
# @param [String] quota_user
|
341
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
342
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
343
|
+
# @param [Google::Apis::RequestOptions] options
|
344
|
+
# Request-specific options
|
345
|
+
#
|
346
|
+
# @yield [result, err] Result & error if block supplied
|
347
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
348
|
+
# @yieldparam err [StandardError] error object if request failed
|
349
|
+
#
|
350
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
351
|
+
#
|
352
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
353
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
354
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
355
|
+
def patch_project_location_account_connector(name, account_connector_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
356
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
357
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::AccountConnector::Representation
|
358
|
+
command.request_object = account_connector_object
|
359
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
360
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
361
|
+
command.params['name'] = name unless name.nil?
|
362
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
363
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
364
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
365
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
366
|
+
command.query['fields'] = fields unless fields.nil?
|
367
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
368
|
+
execute_or_queue_command(command, &block)
|
369
|
+
end
|
370
|
+
|
371
|
+
# Deletes a single User.
|
372
|
+
# @param [String] name
|
373
|
+
# Required. Name of the resource
|
374
|
+
# @param [String] etag
|
375
|
+
# Optional. This checksum is computed by the server based on the value of other
|
376
|
+
# fields, and may be sent on update and delete requests to ensure the client has
|
377
|
+
# an up-to-date value before proceeding.
|
378
|
+
# @param [String] request_id
|
379
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
380
|
+
# request ID so that if you must retry your request, the server will know to
|
381
|
+
# ignore the request if it has already been completed. The server will guarantee
|
382
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
383
|
+
# situation where you make an initial request and the request times out. If you
|
384
|
+
# make the request again with the same request ID, the server can check if
|
385
|
+
# original operation with the same request ID was received, and if so, will
|
386
|
+
# ignore the second request. This prevents clients from accidentally creating
|
387
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
388
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
389
|
+
# @param [Boolean] validate_only
|
390
|
+
# Optional. If set, validate the request, but do not actually post it.
|
391
|
+
# @param [String] fields
|
392
|
+
# Selector specifying which fields to include in a partial response.
|
393
|
+
# @param [String] quota_user
|
394
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
395
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
396
|
+
# @param [Google::Apis::RequestOptions] options
|
397
|
+
# Request-specific options
|
398
|
+
#
|
399
|
+
# @yield [result, err] Result & error if block supplied
|
400
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
401
|
+
# @yieldparam err [StandardError] error object if request failed
|
402
|
+
#
|
403
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
404
|
+
#
|
405
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
406
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
407
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
408
|
+
def delete_project_location_account_connector_user(name, etag: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
409
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
410
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
411
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
412
|
+
command.params['name'] = name unless name.nil?
|
413
|
+
command.query['etag'] = etag unless etag.nil?
|
414
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
415
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
416
|
+
command.query['fields'] = fields unless fields.nil?
|
417
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
418
|
+
execute_or_queue_command(command, &block)
|
419
|
+
end
|
420
|
+
|
421
|
+
# Delete the User of the user themselves.
|
422
|
+
# @param [String] name
|
423
|
+
# Required. Name of the AccountConnector resource
|
424
|
+
# @param [String] fields
|
425
|
+
# Selector specifying which fields to include in a partial response.
|
426
|
+
# @param [String] quota_user
|
427
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
428
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
429
|
+
# @param [Google::Apis::RequestOptions] options
|
430
|
+
# Request-specific options
|
431
|
+
#
|
432
|
+
# @yield [result, err] Result & error if block supplied
|
433
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Operation] parsed result object
|
434
|
+
# @yieldparam err [StandardError] error object if request failed
|
435
|
+
#
|
436
|
+
# @return [Google::Apis::DeveloperconnectV1::Operation]
|
437
|
+
#
|
438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
441
|
+
def delete_project_location_account_connector_user_self(name, fields: nil, quota_user: nil, options: nil, &block)
|
442
|
+
command = make_simple_command(:delete, 'v1/{+name}/users:deleteSelf', options)
|
443
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Operation::Representation
|
444
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Operation
|
445
|
+
command.params['name'] = name unless name.nil?
|
446
|
+
command.query['fields'] = fields unless fields.nil?
|
447
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
448
|
+
execute_or_queue_command(command, &block)
|
449
|
+
end
|
450
|
+
|
451
|
+
# Fetches OAuth access token based on end user credentials.
|
452
|
+
# @param [String] account_connector
|
453
|
+
# Required. The resource name of the AccountConnector in the format `projects/*/
|
454
|
+
# locations/*/accountConnectors/*`.
|
455
|
+
# @param [Google::Apis::DeveloperconnectV1::FetchAccessTokenRequest] fetch_access_token_request_object
|
456
|
+
# @param [String] fields
|
457
|
+
# Selector specifying which fields to include in a partial response.
|
458
|
+
# @param [String] quota_user
|
459
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
460
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
461
|
+
# @param [Google::Apis::RequestOptions] options
|
462
|
+
# Request-specific options
|
463
|
+
#
|
464
|
+
# @yield [result, err] Result & error if block supplied
|
465
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse] parsed result object
|
466
|
+
# @yieldparam err [StandardError] error object if request failed
|
467
|
+
#
|
468
|
+
# @return [Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse]
|
469
|
+
#
|
470
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
471
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
472
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
473
|
+
def fetch_user_access_token(account_connector, fetch_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
474
|
+
command = make_simple_command(:post, 'v1/{+accountConnector}/users:fetchAccessToken', options)
|
475
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::FetchAccessTokenRequest::Representation
|
476
|
+
command.request_object = fetch_access_token_request_object
|
477
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse::Representation
|
478
|
+
command.response_class = Google::Apis::DeveloperconnectV1::FetchAccessTokenResponse
|
479
|
+
command.params['accountConnector'] = account_connector unless account_connector.nil?
|
480
|
+
command.query['fields'] = fields unless fields.nil?
|
481
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
482
|
+
execute_or_queue_command(command, &block)
|
483
|
+
end
|
484
|
+
|
485
|
+
# Fetches the User of the user themselves.
|
486
|
+
# @param [String] name
|
487
|
+
# Required. Name of the AccountConnector resource
|
488
|
+
# @param [String] fields
|
489
|
+
# Selector specifying which fields to include in a partial response.
|
490
|
+
# @param [String] quota_user
|
491
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
492
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
493
|
+
# @param [Google::Apis::RequestOptions] options
|
494
|
+
# Request-specific options
|
495
|
+
#
|
496
|
+
# @yield [result, err] Result & error if block supplied
|
497
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::User] parsed result object
|
498
|
+
# @yieldparam err [StandardError] error object if request failed
|
499
|
+
#
|
500
|
+
# @return [Google::Apis::DeveloperconnectV1::User]
|
501
|
+
#
|
502
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
503
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
504
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
505
|
+
def fetch_project_location_account_connector_user_self(name, fields: nil, quota_user: nil, options: nil, &block)
|
506
|
+
command = make_simple_command(:get, 'v1/{+name}/users:fetchSelf', options)
|
507
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::User::Representation
|
508
|
+
command.response_class = Google::Apis::DeveloperconnectV1::User
|
509
|
+
command.params['name'] = name unless name.nil?
|
510
|
+
command.query['fields'] = fields unless fields.nil?
|
511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
512
|
+
execute_or_queue_command(command, &block)
|
513
|
+
end
|
514
|
+
|
515
|
+
# Lists Users in a given project, location, and account_connector.
|
516
|
+
# @param [String] parent
|
517
|
+
# Required. Parent value for ListUsersRequest
|
518
|
+
# @param [String] filter
|
519
|
+
# Optional. Filtering results
|
520
|
+
# @param [String] order_by
|
521
|
+
# Optional. Hint for how to order the results
|
522
|
+
# @param [Fixnum] page_size
|
523
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
524
|
+
# If unspecified, server will pick an appropriate default.
|
525
|
+
# @param [String] page_token
|
526
|
+
# Optional. A token identifying a page of results the server should return.
|
527
|
+
# @param [String] fields
|
528
|
+
# Selector specifying which fields to include in a partial response.
|
529
|
+
# @param [String] quota_user
|
530
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
531
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
532
|
+
# @param [Google::Apis::RequestOptions] options
|
533
|
+
# Request-specific options
|
534
|
+
#
|
535
|
+
# @yield [result, err] Result & error if block supplied
|
536
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::ListUsersResponse] parsed result object
|
537
|
+
# @yieldparam err [StandardError] error object if request failed
|
538
|
+
#
|
539
|
+
# @return [Google::Apis::DeveloperconnectV1::ListUsersResponse]
|
540
|
+
#
|
541
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
542
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
543
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
544
|
+
def list_project_location_account_connector_users(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
545
|
+
command = make_simple_command(:get, 'v1/{+parent}/users', options)
|
546
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::ListUsersResponse::Representation
|
547
|
+
command.response_class = Google::Apis::DeveloperconnectV1::ListUsersResponse
|
548
|
+
command.params['parent'] = parent unless parent.nil?
|
549
|
+
command.query['filter'] = filter unless filter.nil?
|
550
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
551
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
552
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
553
|
+
command.query['fields'] = fields unless fields.nil?
|
554
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
555
|
+
execute_or_queue_command(command, &block)
|
556
|
+
end
|
557
|
+
|
127
558
|
# Creates a new Connection in a given project and location.
|
128
559
|
# @param [String] parent
|
129
560
|
# Required. Value for parent.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-developerconnect_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-30 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -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-developerconnect_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-developerconnect_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-developerconnect_v1/v0.7.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-developerconnect_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|