google-apis-developerconnect_v1 0.1.0 → 0.3.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 +9 -0
- data/lib/google/apis/developerconnect_v1/classes.rb +424 -0
- data/lib/google/apis/developerconnect_v1/gem_version.rb +3 -3
- data/lib/google/apis/developerconnect_v1/representations.rb +168 -0
- data/lib/google/apis/developerconnect_v1/service.rb +104 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa77fa2fbaec4a0ed8e508144775922868ffe9ea8c34d7bc158205a8606f753
|
4
|
+
data.tar.gz: 1de197a11534a842cf9016b4eb78bd58e62826701fc7cd286a380e2087b8832a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38577748de8fae4cd50e7054b04ca3b93ef1c3aa7b31b1ee2bc3830b1dac70df51962b66854a91f63f95182f115148b5bd7b9378114b3d5c8bcbfe6e2b8979c2
|
7
|
+
data.tar.gz: 175fb56440dec37bcd11f643ba943555d219e7f40f7e17724d0c93f6f648816596ea34c9dc586ce92729227a67204e2bcfe0a2f2b56a6e185421e3f453be8da1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-developerconnect_v1
|
2
2
|
|
3
|
+
### v0.3.0 (2024-10-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241017
|
6
|
+
|
7
|
+
### v0.2.0 (2024-09-29)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240919
|
10
|
+
* Regenerated using generator version 0.15.1
|
11
|
+
|
3
12
|
### v0.1.0 (2024-05-26)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240523
|
@@ -49,6 +49,12 @@ module Google
|
|
49
49
|
# @return [String]
|
50
50
|
attr_accessor :create_time
|
51
51
|
|
52
|
+
# The crypto key configuration. This field is used by the Customer-managed
|
53
|
+
# encryption keys (CMEK) feature.
|
54
|
+
# Corresponds to the JSON property `cryptoKeyConfig`
|
55
|
+
# @return [Google::Apis::DeveloperconnectV1::CryptoKeyConfig]
|
56
|
+
attr_accessor :crypto_key_config
|
57
|
+
|
52
58
|
# Output only. [Output only] Delete timestamp
|
53
59
|
# Corresponds to the JSON property `deleteTime`
|
54
60
|
# @return [String]
|
@@ -74,6 +80,21 @@ module Google
|
|
74
80
|
# @return [Google::Apis::DeveloperconnectV1::GitHubConfig]
|
75
81
|
attr_accessor :github_config
|
76
82
|
|
83
|
+
# Configuration for connections to an instance of GitHub Enterprise.
|
84
|
+
# Corresponds to the JSON property `githubEnterpriseConfig`
|
85
|
+
# @return [Google::Apis::DeveloperconnectV1::GitHubEnterpriseConfig]
|
86
|
+
attr_accessor :github_enterprise_config
|
87
|
+
|
88
|
+
# Configuration for connections to gitlab.com.
|
89
|
+
# Corresponds to the JSON property `gitlabConfig`
|
90
|
+
# @return [Google::Apis::DeveloperconnectV1::GitLabConfig]
|
91
|
+
attr_accessor :gitlab_config
|
92
|
+
|
93
|
+
# Configuration for connections to an instance of GitLab Enterprise.
|
94
|
+
# Corresponds to the JSON property `gitlabEnterpriseConfig`
|
95
|
+
# @return [Google::Apis::DeveloperconnectV1::GitLabEnterpriseConfig]
|
96
|
+
attr_accessor :gitlab_enterprise_config
|
97
|
+
|
77
98
|
# Describes stage and necessary actions to be taken by the user to complete the
|
78
99
|
# installation. Used for GitHub and GitHub Enterprise based connections.
|
79
100
|
# Corresponds to the JSON property `installationState`
|
@@ -116,10 +137,14 @@ module Google
|
|
116
137
|
def update!(**args)
|
117
138
|
@annotations = args[:annotations] if args.key?(:annotations)
|
118
139
|
@create_time = args[:create_time] if args.key?(:create_time)
|
140
|
+
@crypto_key_config = args[:crypto_key_config] if args.key?(:crypto_key_config)
|
119
141
|
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
120
142
|
@disabled = args[:disabled] if args.key?(:disabled)
|
121
143
|
@etag = args[:etag] if args.key?(:etag)
|
122
144
|
@github_config = args[:github_config] if args.key?(:github_config)
|
145
|
+
@github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
|
146
|
+
@gitlab_config = args[:gitlab_config] if args.key?(:gitlab_config)
|
147
|
+
@gitlab_enterprise_config = args[:gitlab_enterprise_config] if args.key?(:gitlab_enterprise_config)
|
123
148
|
@installation_state = args[:installation_state] if args.key?(:installation_state)
|
124
149
|
@labels = args[:labels] if args.key?(:labels)
|
125
150
|
@name = args[:name] if args.key?(:name)
|
@@ -129,6 +154,28 @@ module Google
|
|
129
154
|
end
|
130
155
|
end
|
131
156
|
|
157
|
+
# The crypto key configuration. This field is used by the Customer-managed
|
158
|
+
# encryption keys (CMEK) feature.
|
159
|
+
class CryptoKeyConfig
|
160
|
+
include Google::Apis::Core::Hashable
|
161
|
+
|
162
|
+
# Required. The name of the key which is used to encrypt/decrypt customer data.
|
163
|
+
# For key in Cloud KMS, the key should be in the format of `projects/*/locations/
|
164
|
+
# */keyRings/*/cryptoKeys/*`.
|
165
|
+
# Corresponds to the JSON property `keyReference`
|
166
|
+
# @return [String]
|
167
|
+
attr_accessor :key_reference
|
168
|
+
|
169
|
+
def initialize(**args)
|
170
|
+
update!(**args)
|
171
|
+
end
|
172
|
+
|
173
|
+
# Update properties of this object
|
174
|
+
def update!(**args)
|
175
|
+
@key_reference = args[:key_reference] if args.key?(:key_reference)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
132
179
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
133
180
|
# messages in your APIs. A typical example is to use it as the request or the
|
134
181
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -345,6 +392,179 @@ module Google
|
|
345
392
|
end
|
346
393
|
end
|
347
394
|
|
395
|
+
# Configuration for connections to an instance of GitHub Enterprise.
|
396
|
+
class GitHubEnterpriseConfig
|
397
|
+
include Google::Apis::Core::Hashable
|
398
|
+
|
399
|
+
# Optional. ID of the GitHub App created from the manifest.
|
400
|
+
# Corresponds to the JSON property `appId`
|
401
|
+
# @return [Fixnum]
|
402
|
+
attr_accessor :app_id
|
403
|
+
|
404
|
+
# Optional. ID of the installation of the GitHub App.
|
405
|
+
# Corresponds to the JSON property `appInstallationId`
|
406
|
+
# @return [Fixnum]
|
407
|
+
attr_accessor :app_installation_id
|
408
|
+
|
409
|
+
# Output only. The URL-friendly name of the GitHub App.
|
410
|
+
# Corresponds to the JSON property `appSlug`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :app_slug
|
413
|
+
|
414
|
+
# Required. The URI of the GitHub Enterprise host this connection is for.
|
415
|
+
# Corresponds to the JSON property `hostUri`
|
416
|
+
# @return [String]
|
417
|
+
attr_accessor :host_uri
|
418
|
+
|
419
|
+
# Output only. The URI to navigate to in order to manage the installation
|
420
|
+
# associated with this GitHubEnterpriseConfig.
|
421
|
+
# Corresponds to the JSON property `installationUri`
|
422
|
+
# @return [String]
|
423
|
+
attr_accessor :installation_uri
|
424
|
+
|
425
|
+
# Optional. SecretManager resource containing the private key of the GitHub App,
|
426
|
+
# formatted as `projects/*/secrets/*/versions/*`.
|
427
|
+
# Corresponds to the JSON property `privateKeySecretVersion`
|
428
|
+
# @return [String]
|
429
|
+
attr_accessor :private_key_secret_version
|
430
|
+
|
431
|
+
# Output only. GitHub Enterprise version installed at the host_uri.
|
432
|
+
# Corresponds to the JSON property `serverVersion`
|
433
|
+
# @return [String]
|
434
|
+
attr_accessor :server_version
|
435
|
+
|
436
|
+
# ServiceDirectoryConfig represents Service Directory configuration for a
|
437
|
+
# connection.
|
438
|
+
# Corresponds to the JSON property `serviceDirectoryConfig`
|
439
|
+
# @return [Google::Apis::DeveloperconnectV1::ServiceDirectoryConfig]
|
440
|
+
attr_accessor :service_directory_config
|
441
|
+
|
442
|
+
# Optional. SSL certificate to use for requests to GitHub Enterprise.
|
443
|
+
# Corresponds to the JSON property `sslCaCertificate`
|
444
|
+
# @return [String]
|
445
|
+
attr_accessor :ssl_ca_certificate
|
446
|
+
|
447
|
+
# Optional. SecretManager resource containing the webhook secret of the GitHub
|
448
|
+
# App, formatted as `projects/*/secrets/*/versions/*`.
|
449
|
+
# Corresponds to the JSON property `webhookSecretSecretVersion`
|
450
|
+
# @return [String]
|
451
|
+
attr_accessor :webhook_secret_secret_version
|
452
|
+
|
453
|
+
def initialize(**args)
|
454
|
+
update!(**args)
|
455
|
+
end
|
456
|
+
|
457
|
+
# Update properties of this object
|
458
|
+
def update!(**args)
|
459
|
+
@app_id = args[:app_id] if args.key?(:app_id)
|
460
|
+
@app_installation_id = args[:app_installation_id] if args.key?(:app_installation_id)
|
461
|
+
@app_slug = args[:app_slug] if args.key?(:app_slug)
|
462
|
+
@host_uri = args[:host_uri] if args.key?(:host_uri)
|
463
|
+
@installation_uri = args[:installation_uri] if args.key?(:installation_uri)
|
464
|
+
@private_key_secret_version = args[:private_key_secret_version] if args.key?(:private_key_secret_version)
|
465
|
+
@server_version = args[:server_version] if args.key?(:server_version)
|
466
|
+
@service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config)
|
467
|
+
@ssl_ca_certificate = args[:ssl_ca_certificate] if args.key?(:ssl_ca_certificate)
|
468
|
+
@webhook_secret_secret_version = args[:webhook_secret_secret_version] if args.key?(:webhook_secret_secret_version)
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
# Configuration for connections to gitlab.com.
|
473
|
+
class GitLabConfig
|
474
|
+
include Google::Apis::Core::Hashable
|
475
|
+
|
476
|
+
# Represents a personal access token that authorized the Connection, and
|
477
|
+
# associated metadata.
|
478
|
+
# Corresponds to the JSON property `authorizerCredential`
|
479
|
+
# @return [Google::Apis::DeveloperconnectV1::UserCredential]
|
480
|
+
attr_accessor :authorizer_credential
|
481
|
+
|
482
|
+
# Represents a personal access token that authorized the Connection, and
|
483
|
+
# associated metadata.
|
484
|
+
# Corresponds to the JSON property `readAuthorizerCredential`
|
485
|
+
# @return [Google::Apis::DeveloperconnectV1::UserCredential]
|
486
|
+
attr_accessor :read_authorizer_credential
|
487
|
+
|
488
|
+
# Required. Immutable. SecretManager resource containing the webhook secret of a
|
489
|
+
# GitLab project, formatted as `projects/*/secrets/*/versions/*`. This is used
|
490
|
+
# to validate webhooks.
|
491
|
+
# Corresponds to the JSON property `webhookSecretSecretVersion`
|
492
|
+
# @return [String]
|
493
|
+
attr_accessor :webhook_secret_secret_version
|
494
|
+
|
495
|
+
def initialize(**args)
|
496
|
+
update!(**args)
|
497
|
+
end
|
498
|
+
|
499
|
+
# Update properties of this object
|
500
|
+
def update!(**args)
|
501
|
+
@authorizer_credential = args[:authorizer_credential] if args.key?(:authorizer_credential)
|
502
|
+
@read_authorizer_credential = args[:read_authorizer_credential] if args.key?(:read_authorizer_credential)
|
503
|
+
@webhook_secret_secret_version = args[:webhook_secret_secret_version] if args.key?(:webhook_secret_secret_version)
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
507
|
+
# Configuration for connections to an instance of GitLab Enterprise.
|
508
|
+
class GitLabEnterpriseConfig
|
509
|
+
include Google::Apis::Core::Hashable
|
510
|
+
|
511
|
+
# Represents a personal access token that authorized the Connection, and
|
512
|
+
# associated metadata.
|
513
|
+
# Corresponds to the JSON property `authorizerCredential`
|
514
|
+
# @return [Google::Apis::DeveloperconnectV1::UserCredential]
|
515
|
+
attr_accessor :authorizer_credential
|
516
|
+
|
517
|
+
# Required. The URI of the GitLab Enterprise host this connection is for.
|
518
|
+
# Corresponds to the JSON property `hostUri`
|
519
|
+
# @return [String]
|
520
|
+
attr_accessor :host_uri
|
521
|
+
|
522
|
+
# Represents a personal access token that authorized the Connection, and
|
523
|
+
# associated metadata.
|
524
|
+
# Corresponds to the JSON property `readAuthorizerCredential`
|
525
|
+
# @return [Google::Apis::DeveloperconnectV1::UserCredential]
|
526
|
+
attr_accessor :read_authorizer_credential
|
527
|
+
|
528
|
+
# Output only. Version of the GitLab Enterprise server running on the `host_uri`.
|
529
|
+
# Corresponds to the JSON property `serverVersion`
|
530
|
+
# @return [String]
|
531
|
+
attr_accessor :server_version
|
532
|
+
|
533
|
+
# ServiceDirectoryConfig represents Service Directory configuration for a
|
534
|
+
# connection.
|
535
|
+
# Corresponds to the JSON property `serviceDirectoryConfig`
|
536
|
+
# @return [Google::Apis::DeveloperconnectV1::ServiceDirectoryConfig]
|
537
|
+
attr_accessor :service_directory_config
|
538
|
+
|
539
|
+
# Optional. SSL Certificate Authority certificate to use for requests to GitLab
|
540
|
+
# Enterprise instance.
|
541
|
+
# Corresponds to the JSON property `sslCaCertificate`
|
542
|
+
# @return [String]
|
543
|
+
attr_accessor :ssl_ca_certificate
|
544
|
+
|
545
|
+
# Required. Immutable. SecretManager resource containing the webhook secret of a
|
546
|
+
# GitLab project, formatted as `projects/*/secrets/*/versions/*`. This is used
|
547
|
+
# to validate webhooks.
|
548
|
+
# Corresponds to the JSON property `webhookSecretSecretVersion`
|
549
|
+
# @return [String]
|
550
|
+
attr_accessor :webhook_secret_secret_version
|
551
|
+
|
552
|
+
def initialize(**args)
|
553
|
+
update!(**args)
|
554
|
+
end
|
555
|
+
|
556
|
+
# Update properties of this object
|
557
|
+
def update!(**args)
|
558
|
+
@authorizer_credential = args[:authorizer_credential] if args.key?(:authorizer_credential)
|
559
|
+
@host_uri = args[:host_uri] if args.key?(:host_uri)
|
560
|
+
@read_authorizer_credential = args[:read_authorizer_credential] if args.key?(:read_authorizer_credential)
|
561
|
+
@server_version = args[:server_version] if args.key?(:server_version)
|
562
|
+
@service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config)
|
563
|
+
@ssl_ca_certificate = args[:ssl_ca_certificate] if args.key?(:ssl_ca_certificate)
|
564
|
+
@webhook_secret_secret_version = args[:webhook_secret_secret_version] if args.key?(:webhook_secret_secret_version)
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
348
568
|
# Message describing the GitRepositoryLink object
|
349
569
|
class GitRepositoryLink
|
350
570
|
include Google::Apis::Core::Hashable
|
@@ -404,6 +624,11 @@ module Google
|
|
404
624
|
# @return [String]
|
405
625
|
attr_accessor :update_time
|
406
626
|
|
627
|
+
# Output only. External ID of the webhook created for the repository.
|
628
|
+
# Corresponds to the JSON property `webhookId`
|
629
|
+
# @return [String]
|
630
|
+
attr_accessor :webhook_id
|
631
|
+
|
407
632
|
def initialize(**args)
|
408
633
|
update!(**args)
|
409
634
|
end
|
@@ -420,6 +645,55 @@ module Google
|
|
420
645
|
@reconciling = args[:reconciling] if args.key?(:reconciling)
|
421
646
|
@uid = args[:uid] if args.key?(:uid)
|
422
647
|
@update_time = args[:update_time] if args.key?(:update_time)
|
648
|
+
@webhook_id = args[:webhook_id] if args.key?(:webhook_id)
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
652
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
653
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
654
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
655
|
+
# methods in the request as well as the response. It can be used as a top-level
|
656
|
+
# request field, which is convenient if one wants to extract parameters from
|
657
|
+
# either the URL or HTTP template into the request fields and also want access
|
658
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
659
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
660
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
661
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
662
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
663
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
664
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
665
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
666
|
+
# only changes how the request and response bodies are handled, all other
|
667
|
+
# features will continue to work unchanged.
|
668
|
+
class HttpBody
|
669
|
+
include Google::Apis::Core::Hashable
|
670
|
+
|
671
|
+
# The HTTP Content-Type header value specifying the content type of the body.
|
672
|
+
# Corresponds to the JSON property `contentType`
|
673
|
+
# @return [String]
|
674
|
+
attr_accessor :content_type
|
675
|
+
|
676
|
+
# The HTTP request/response body as raw binary.
|
677
|
+
# Corresponds to the JSON property `data`
|
678
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
679
|
+
# @return [String]
|
680
|
+
attr_accessor :data
|
681
|
+
|
682
|
+
# Application specific response metadata. Must be set in the first response for
|
683
|
+
# streaming APIs.
|
684
|
+
# Corresponds to the JSON property `extensions`
|
685
|
+
# @return [Array<Hash<String,Object>>]
|
686
|
+
attr_accessor :extensions
|
687
|
+
|
688
|
+
def initialize(**args)
|
689
|
+
update!(**args)
|
690
|
+
end
|
691
|
+
|
692
|
+
# Update properties of this object
|
693
|
+
def update!(**args)
|
694
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
695
|
+
@data = args[:data] if args.key?(:data)
|
696
|
+
@extensions = args[:extensions] if args.key?(:extensions)
|
423
697
|
end
|
424
698
|
end
|
425
699
|
|
@@ -815,6 +1089,129 @@ module Google
|
|
815
1089
|
end
|
816
1090
|
end
|
817
1091
|
|
1092
|
+
# RPC request object accepted by the ProcessGitHubEnterpriseWebhook RPC method.
|
1093
|
+
class ProcessGitHubEnterpriseWebhookRequest
|
1094
|
+
include Google::Apis::Core::Hashable
|
1095
|
+
|
1096
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
1097
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
1098
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
1099
|
+
# methods in the request as well as the response. It can be used as a top-level
|
1100
|
+
# request field, which is convenient if one wants to extract parameters from
|
1101
|
+
# either the URL or HTTP template into the request fields and also want access
|
1102
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
1103
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
1104
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
1105
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
1106
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
1107
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
1108
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
1109
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
1110
|
+
# only changes how the request and response bodies are handled, all other
|
1111
|
+
# features will continue to work unchanged.
|
1112
|
+
# Corresponds to the JSON property `body`
|
1113
|
+
# @return [Google::Apis::DeveloperconnectV1::HttpBody]
|
1114
|
+
attr_accessor :body
|
1115
|
+
|
1116
|
+
def initialize(**args)
|
1117
|
+
update!(**args)
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# Update properties of this object
|
1121
|
+
def update!(**args)
|
1122
|
+
@body = args[:body] if args.key?(:body)
|
1123
|
+
end
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# RPC request object accepted by the ProcessGitLabEnterpriseWebhook RPC method.
|
1127
|
+
class ProcessGitLabEnterpriseWebhookRequest
|
1128
|
+
include Google::Apis::Core::Hashable
|
1129
|
+
|
1130
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
1131
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
1132
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
1133
|
+
# methods in the request as well as the response. It can be used as a top-level
|
1134
|
+
# request field, which is convenient if one wants to extract parameters from
|
1135
|
+
# either the URL or HTTP template into the request fields and also want access
|
1136
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
1137
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
1138
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
1139
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
1140
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
1141
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
1142
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
1143
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
1144
|
+
# only changes how the request and response bodies are handled, all other
|
1145
|
+
# features will continue to work unchanged.
|
1146
|
+
# Corresponds to the JSON property `body`
|
1147
|
+
# @return [Google::Apis::DeveloperconnectV1::HttpBody]
|
1148
|
+
attr_accessor :body
|
1149
|
+
|
1150
|
+
def initialize(**args)
|
1151
|
+
update!(**args)
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
# Update properties of this object
|
1155
|
+
def update!(**args)
|
1156
|
+
@body = args[:body] if args.key?(:body)
|
1157
|
+
end
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
# RPC request object accepted by the ProcessGitLabWebhook RPC method.
|
1161
|
+
class ProcessGitLabWebhookRequest
|
1162
|
+
include Google::Apis::Core::Hashable
|
1163
|
+
|
1164
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
1165
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
1166
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
1167
|
+
# methods in the request as well as the response. It can be used as a top-level
|
1168
|
+
# request field, which is convenient if one wants to extract parameters from
|
1169
|
+
# either the URL or HTTP template into the request fields and also want access
|
1170
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
1171
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
1172
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
1173
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
1174
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
1175
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
1176
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
1177
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
1178
|
+
# only changes how the request and response bodies are handled, all other
|
1179
|
+
# features will continue to work unchanged.
|
1180
|
+
# Corresponds to the JSON property `body`
|
1181
|
+
# @return [Google::Apis::DeveloperconnectV1::HttpBody]
|
1182
|
+
attr_accessor :body
|
1183
|
+
|
1184
|
+
def initialize(**args)
|
1185
|
+
update!(**args)
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
# Update properties of this object
|
1189
|
+
def update!(**args)
|
1190
|
+
@body = args[:body] if args.key?(:body)
|
1191
|
+
end
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
# ServiceDirectoryConfig represents Service Directory configuration for a
|
1195
|
+
# connection.
|
1196
|
+
class ServiceDirectoryConfig
|
1197
|
+
include Google::Apis::Core::Hashable
|
1198
|
+
|
1199
|
+
# Required. The Service Directory service name. Format: projects/`project`/
|
1200
|
+
# locations/`location`/namespaces/`namespace`/services/`service`.
|
1201
|
+
# Corresponds to the JSON property `service`
|
1202
|
+
# @return [String]
|
1203
|
+
attr_accessor :service
|
1204
|
+
|
1205
|
+
def initialize(**args)
|
1206
|
+
update!(**args)
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
# Update properties of this object
|
1210
|
+
def update!(**args)
|
1211
|
+
@service = args[:service] if args.key?(:service)
|
1212
|
+
end
|
1213
|
+
end
|
1214
|
+
|
818
1215
|
# The `Status` type defines a logical error model that is suitable for different
|
819
1216
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
820
1217
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -853,6 +1250,33 @@ module Google
|
|
853
1250
|
@message = args[:message] if args.key?(:message)
|
854
1251
|
end
|
855
1252
|
end
|
1253
|
+
|
1254
|
+
# Represents a personal access token that authorized the Connection, and
|
1255
|
+
# associated metadata.
|
1256
|
+
class UserCredential
|
1257
|
+
include Google::Apis::Core::Hashable
|
1258
|
+
|
1259
|
+
# Required. A SecretManager resource containing the user token that authorizes
|
1260
|
+
# the Developer Connect connection. Format: `projects/*/secrets/*/versions/*`.
|
1261
|
+
# Corresponds to the JSON property `userTokenSecretVersion`
|
1262
|
+
# @return [String]
|
1263
|
+
attr_accessor :user_token_secret_version
|
1264
|
+
|
1265
|
+
# Output only. The username associated with this token.
|
1266
|
+
# Corresponds to the JSON property `username`
|
1267
|
+
# @return [String]
|
1268
|
+
attr_accessor :username
|
1269
|
+
|
1270
|
+
def initialize(**args)
|
1271
|
+
update!(**args)
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# Update properties of this object
|
1275
|
+
def update!(**args)
|
1276
|
+
@user_token_secret_version = args[:user_token_secret_version] if args.key?(:user_token_secret_version)
|
1277
|
+
@username = args[:username] if args.key?(:username)
|
1278
|
+
end
|
1279
|
+
end
|
856
1280
|
end
|
857
1281
|
end
|
858
1282
|
end
|
@@ -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.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.15.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241017"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class CryptoKeyConfig
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class Empty
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -88,12 +94,36 @@ module Google
|
|
88
94
|
include Google::Apis::Core::JsonObjectSupport
|
89
95
|
end
|
90
96
|
|
97
|
+
class GitHubEnterpriseConfig
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class GitLabConfig
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class GitLabEnterpriseConfig
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
91
115
|
class GitRepositoryLink
|
92
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
117
|
|
94
118
|
include Google::Apis::Core::JsonObjectSupport
|
95
119
|
end
|
96
120
|
|
121
|
+
class HttpBody
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
97
127
|
class Installation
|
98
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
129
|
|
@@ -160,12 +190,42 @@ module Google
|
|
160
190
|
include Google::Apis::Core::JsonObjectSupport
|
161
191
|
end
|
162
192
|
|
193
|
+
class ProcessGitHubEnterpriseWebhookRequest
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class ProcessGitLabEnterpriseWebhookRequest
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class ProcessGitLabWebhookRequest
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class ServiceDirectoryConfig
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
163
217
|
class Status
|
164
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
219
|
|
166
220
|
include Google::Apis::Core::JsonObjectSupport
|
167
221
|
end
|
168
222
|
|
223
|
+
class UserCredential
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
169
229
|
class CancelOperationRequest
|
170
230
|
# @private
|
171
231
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -177,11 +237,19 @@ module Google
|
|
177
237
|
class Representation < Google::Apis::Core::JsonRepresentation
|
178
238
|
hash :annotations, as: 'annotations'
|
179
239
|
property :create_time, as: 'createTime'
|
240
|
+
property :crypto_key_config, as: 'cryptoKeyConfig', class: Google::Apis::DeveloperconnectV1::CryptoKeyConfig, decorator: Google::Apis::DeveloperconnectV1::CryptoKeyConfig::Representation
|
241
|
+
|
180
242
|
property :delete_time, as: 'deleteTime'
|
181
243
|
property :disabled, as: 'disabled'
|
182
244
|
property :etag, as: 'etag'
|
183
245
|
property :github_config, as: 'githubConfig', class: Google::Apis::DeveloperconnectV1::GitHubConfig, decorator: Google::Apis::DeveloperconnectV1::GitHubConfig::Representation
|
184
246
|
|
247
|
+
property :github_enterprise_config, as: 'githubEnterpriseConfig', class: Google::Apis::DeveloperconnectV1::GitHubEnterpriseConfig, decorator: Google::Apis::DeveloperconnectV1::GitHubEnterpriseConfig::Representation
|
248
|
+
|
249
|
+
property :gitlab_config, as: 'gitlabConfig', class: Google::Apis::DeveloperconnectV1::GitLabConfig, decorator: Google::Apis::DeveloperconnectV1::GitLabConfig::Representation
|
250
|
+
|
251
|
+
property :gitlab_enterprise_config, as: 'gitlabEnterpriseConfig', class: Google::Apis::DeveloperconnectV1::GitLabEnterpriseConfig, decorator: Google::Apis::DeveloperconnectV1::GitLabEnterpriseConfig::Representation
|
252
|
+
|
185
253
|
property :installation_state, as: 'installationState', class: Google::Apis::DeveloperconnectV1::InstallationState, decorator: Google::Apis::DeveloperconnectV1::InstallationState::Representation
|
186
254
|
|
187
255
|
hash :labels, as: 'labels'
|
@@ -192,6 +260,13 @@ module Google
|
|
192
260
|
end
|
193
261
|
end
|
194
262
|
|
263
|
+
class CryptoKeyConfig
|
264
|
+
# @private
|
265
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
266
|
+
property :key_reference, as: 'keyReference'
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
195
270
|
class Empty
|
196
271
|
# @private
|
197
272
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -264,6 +339,50 @@ module Google
|
|
264
339
|
end
|
265
340
|
end
|
266
341
|
|
342
|
+
class GitHubEnterpriseConfig
|
343
|
+
# @private
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
345
|
+
property :app_id, :numeric_string => true, as: 'appId'
|
346
|
+
property :app_installation_id, :numeric_string => true, as: 'appInstallationId'
|
347
|
+
property :app_slug, as: 'appSlug'
|
348
|
+
property :host_uri, as: 'hostUri'
|
349
|
+
property :installation_uri, as: 'installationUri'
|
350
|
+
property :private_key_secret_version, as: 'privateKeySecretVersion'
|
351
|
+
property :server_version, as: 'serverVersion'
|
352
|
+
property :service_directory_config, as: 'serviceDirectoryConfig', class: Google::Apis::DeveloperconnectV1::ServiceDirectoryConfig, decorator: Google::Apis::DeveloperconnectV1::ServiceDirectoryConfig::Representation
|
353
|
+
|
354
|
+
property :ssl_ca_certificate, as: 'sslCaCertificate'
|
355
|
+
property :webhook_secret_secret_version, as: 'webhookSecretSecretVersion'
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
class GitLabConfig
|
360
|
+
# @private
|
361
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
362
|
+
property :authorizer_credential, as: 'authorizerCredential', class: Google::Apis::DeveloperconnectV1::UserCredential, decorator: Google::Apis::DeveloperconnectV1::UserCredential::Representation
|
363
|
+
|
364
|
+
property :read_authorizer_credential, as: 'readAuthorizerCredential', class: Google::Apis::DeveloperconnectV1::UserCredential, decorator: Google::Apis::DeveloperconnectV1::UserCredential::Representation
|
365
|
+
|
366
|
+
property :webhook_secret_secret_version, as: 'webhookSecretSecretVersion'
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
class GitLabEnterpriseConfig
|
371
|
+
# @private
|
372
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
373
|
+
property :authorizer_credential, as: 'authorizerCredential', class: Google::Apis::DeveloperconnectV1::UserCredential, decorator: Google::Apis::DeveloperconnectV1::UserCredential::Representation
|
374
|
+
|
375
|
+
property :host_uri, as: 'hostUri'
|
376
|
+
property :read_authorizer_credential, as: 'readAuthorizerCredential', class: Google::Apis::DeveloperconnectV1::UserCredential, decorator: Google::Apis::DeveloperconnectV1::UserCredential::Representation
|
377
|
+
|
378
|
+
property :server_version, as: 'serverVersion'
|
379
|
+
property :service_directory_config, as: 'serviceDirectoryConfig', class: Google::Apis::DeveloperconnectV1::ServiceDirectoryConfig, decorator: Google::Apis::DeveloperconnectV1::ServiceDirectoryConfig::Representation
|
380
|
+
|
381
|
+
property :ssl_ca_certificate, as: 'sslCaCertificate'
|
382
|
+
property :webhook_secret_secret_version, as: 'webhookSecretSecretVersion'
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
267
386
|
class GitRepositoryLink
|
268
387
|
# @private
|
269
388
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -277,6 +396,16 @@ module Google
|
|
277
396
|
property :reconciling, as: 'reconciling'
|
278
397
|
property :uid, as: 'uid'
|
279
398
|
property :update_time, as: 'updateTime'
|
399
|
+
property :webhook_id, as: 'webhookId'
|
400
|
+
end
|
401
|
+
end
|
402
|
+
|
403
|
+
class HttpBody
|
404
|
+
# @private
|
405
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
406
|
+
property :content_type, as: 'contentType'
|
407
|
+
property :data, :base64 => true, as: 'data'
|
408
|
+
collection :extensions, as: 'extensions'
|
280
409
|
end
|
281
410
|
end
|
282
411
|
|
@@ -387,6 +516,37 @@ module Google
|
|
387
516
|
end
|
388
517
|
end
|
389
518
|
|
519
|
+
class ProcessGitHubEnterpriseWebhookRequest
|
520
|
+
# @private
|
521
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
522
|
+
property :body, as: 'body', class: Google::Apis::DeveloperconnectV1::HttpBody, decorator: Google::Apis::DeveloperconnectV1::HttpBody::Representation
|
523
|
+
|
524
|
+
end
|
525
|
+
end
|
526
|
+
|
527
|
+
class ProcessGitLabEnterpriseWebhookRequest
|
528
|
+
# @private
|
529
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
530
|
+
property :body, as: 'body', class: Google::Apis::DeveloperconnectV1::HttpBody, decorator: Google::Apis::DeveloperconnectV1::HttpBody::Representation
|
531
|
+
|
532
|
+
end
|
533
|
+
end
|
534
|
+
|
535
|
+
class ProcessGitLabWebhookRequest
|
536
|
+
# @private
|
537
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
538
|
+
property :body, as: 'body', class: Google::Apis::DeveloperconnectV1::HttpBody, decorator: Google::Apis::DeveloperconnectV1::HttpBody::Representation
|
539
|
+
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
543
|
+
class ServiceDirectoryConfig
|
544
|
+
# @private
|
545
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
546
|
+
property :service, as: 'service'
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
390
550
|
class Status
|
391
551
|
# @private
|
392
552
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -395,6 +555,14 @@ module Google
|
|
395
555
|
property :message, as: 'message'
|
396
556
|
end
|
397
557
|
end
|
558
|
+
|
559
|
+
class UserCredential
|
560
|
+
# @private
|
561
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
562
|
+
property :user_token_secret_version, as: 'userTokenSecretVersion'
|
563
|
+
property :username, as: 'username'
|
564
|
+
end
|
565
|
+
end
|
398
566
|
end
|
399
567
|
end
|
400
568
|
end
|
@@ -433,6 +433,41 @@ module Google
|
|
433
433
|
execute_or_queue_command(command, &block)
|
434
434
|
end
|
435
435
|
|
436
|
+
# ProcessGitHubEnterpriseWebhook is called by the external GitHub Enterprise
|
437
|
+
# instances for notifying events.
|
438
|
+
# @param [String] parent
|
439
|
+
# Required. Project and location where the webhook will be received. Format: `
|
440
|
+
# projects/*/locations/*`.
|
441
|
+
# @param [Google::Apis::DeveloperconnectV1::ProcessGitHubEnterpriseWebhookRequest] process_git_hub_enterprise_webhook_request_object
|
442
|
+
# @param [String] fields
|
443
|
+
# Selector specifying which fields to include in a partial response.
|
444
|
+
# @param [String] quota_user
|
445
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
446
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
447
|
+
# @param [Google::Apis::RequestOptions] options
|
448
|
+
# Request-specific options
|
449
|
+
#
|
450
|
+
# @yield [result, err] Result & error if block supplied
|
451
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Empty] parsed result object
|
452
|
+
# @yieldparam err [StandardError] error object if request failed
|
453
|
+
#
|
454
|
+
# @return [Google::Apis::DeveloperconnectV1::Empty]
|
455
|
+
#
|
456
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
457
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
458
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
459
|
+
def process_connection_git_hub_enterprise_webhook(parent, process_git_hub_enterprise_webhook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
460
|
+
command = make_simple_command(:post, 'v1/{+parent}/connections:processGitHubEnterpriseWebhook', options)
|
461
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::ProcessGitHubEnterpriseWebhookRequest::Representation
|
462
|
+
command.request_object = process_git_hub_enterprise_webhook_request_object
|
463
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Empty::Representation
|
464
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Empty
|
465
|
+
command.params['parent'] = parent unless parent.nil?
|
466
|
+
command.query['fields'] = fields unless fields.nil?
|
467
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
468
|
+
execute_or_queue_command(command, &block)
|
469
|
+
end
|
470
|
+
|
436
471
|
# Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect
|
437
472
|
# will configure the Git Repository to send webhook events to Developer Connect.
|
438
473
|
# Connections that use Firebase GitHub Application will have events forwarded to
|
@@ -721,6 +756,75 @@ module Google
|
|
721
756
|
execute_or_queue_command(command, &block)
|
722
757
|
end
|
723
758
|
|
759
|
+
# ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise
|
760
|
+
# instances for notifying events.
|
761
|
+
# @param [String] name
|
762
|
+
# Required. The GitRepositoryLink resource where the webhook will be received.
|
763
|
+
# Format: `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
764
|
+
# @param [Google::Apis::DeveloperconnectV1::ProcessGitLabEnterpriseWebhookRequest] process_git_lab_enterprise_webhook_request_object
|
765
|
+
# @param [String] fields
|
766
|
+
# Selector specifying which fields to include in a partial response.
|
767
|
+
# @param [String] quota_user
|
768
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
769
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
770
|
+
# @param [Google::Apis::RequestOptions] options
|
771
|
+
# Request-specific options
|
772
|
+
#
|
773
|
+
# @yield [result, err] Result & error if block supplied
|
774
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Empty] parsed result object
|
775
|
+
# @yieldparam err [StandardError] error object if request failed
|
776
|
+
#
|
777
|
+
# @return [Google::Apis::DeveloperconnectV1::Empty]
|
778
|
+
#
|
779
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
780
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
781
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
782
|
+
def process_git_repository_link_git_lab_enterprise_webhook(name, process_git_lab_enterprise_webhook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
783
|
+
command = make_simple_command(:post, 'v1/{+name}:processGitLabEnterpriseWebhook', options)
|
784
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::ProcessGitLabEnterpriseWebhookRequest::Representation
|
785
|
+
command.request_object = process_git_lab_enterprise_webhook_request_object
|
786
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Empty::Representation
|
787
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Empty
|
788
|
+
command.params['name'] = name unless name.nil?
|
789
|
+
command.query['fields'] = fields unless fields.nil?
|
790
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
791
|
+
execute_or_queue_command(command, &block)
|
792
|
+
end
|
793
|
+
|
794
|
+
# ProcessGitLabWebhook is called by the GitLab.com for notifying events.
|
795
|
+
# @param [String] name
|
796
|
+
# Required. The GitRepositoryLink resource where the webhook will be received.
|
797
|
+
# Format: `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
|
798
|
+
# @param [Google::Apis::DeveloperconnectV1::ProcessGitLabWebhookRequest] process_git_lab_webhook_request_object
|
799
|
+
# @param [String] fields
|
800
|
+
# Selector specifying which fields to include in a partial response.
|
801
|
+
# @param [String] quota_user
|
802
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
803
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
804
|
+
# @param [Google::Apis::RequestOptions] options
|
805
|
+
# Request-specific options
|
806
|
+
#
|
807
|
+
# @yield [result, err] Result & error if block supplied
|
808
|
+
# @yieldparam result [Google::Apis::DeveloperconnectV1::Empty] parsed result object
|
809
|
+
# @yieldparam err [StandardError] error object if request failed
|
810
|
+
#
|
811
|
+
# @return [Google::Apis::DeveloperconnectV1::Empty]
|
812
|
+
#
|
813
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
814
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
815
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
816
|
+
def process_git_repository_link_git_lab_webhook(name, process_git_lab_webhook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
817
|
+
command = make_simple_command(:post, 'v1/{+name}:processGitLabWebhook', options)
|
818
|
+
command.request_representation = Google::Apis::DeveloperconnectV1::ProcessGitLabWebhookRequest::Representation
|
819
|
+
command.request_object = process_git_lab_webhook_request_object
|
820
|
+
command.response_representation = Google::Apis::DeveloperconnectV1::Empty::Representation
|
821
|
+
command.response_class = Google::Apis::DeveloperconnectV1::Empty
|
822
|
+
command.params['name'] = name unless name.nil?
|
823
|
+
command.query['fields'] = fields unless fields.nil?
|
824
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
825
|
+
execute_or_queue_command(command, &block)
|
826
|
+
end
|
827
|
+
|
724
828
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
725
829
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
726
830
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-developerconnect_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-developerconnect_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-developerconnect_v1/v0.3.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-developerconnect_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.21
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Developer Connect API V1
|