google-cloud-build-v2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +151 -0
- data/LICENSE.md +201 -0
- data/README.md +144 -0
- data/lib/google/cloud/build/v2/repository_manager/client.rb +1713 -0
- data/lib/google/cloud/build/v2/repository_manager/credentials.rb +51 -0
- data/lib/google/cloud/build/v2/repository_manager/operations.rb +768 -0
- data/lib/google/cloud/build/v2/repository_manager/paths.rb +130 -0
- data/lib/google/cloud/build/v2/repository_manager.rb +50 -0
- data/lib/google/cloud/build/v2/version.rb +28 -0
- data/lib/google/cloud/build/v2.rb +40 -0
- data/lib/google/devtools/cloudbuild/v2/cloudbuild_pb.rb +44 -0
- data/lib/google/devtools/cloudbuild/v2/repositories_pb.rb +193 -0
- data/lib/google/devtools/cloudbuild/v2/repositories_services_pb.rb +70 -0
- data/lib/google-cloud-build-v2.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/httpbody.rb +80 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/devtools/cloudbuild/v2/cloudbuild.rb +88 -0
- data/proto_docs/google/devtools/cloudbuild/v2/repositories.rb +511 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +264 -0
@@ -0,0 +1,130 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Build
|
23
|
+
module V2
|
24
|
+
module RepositoryManager
|
25
|
+
# Path helper methods for the RepositoryManager API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Connection resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/connections/{connection}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param connection [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def connection_path project:, location:, connection:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/connections/#{connection}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Location resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
#
|
56
|
+
# @return [::String]
|
57
|
+
def location_path project:, location:
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/locations/#{location}"
|
61
|
+
end
|
62
|
+
|
63
|
+
##
|
64
|
+
# Create a fully-qualified Repository resource string.
|
65
|
+
#
|
66
|
+
# The resource will be in the following format:
|
67
|
+
#
|
68
|
+
# `projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}`
|
69
|
+
#
|
70
|
+
# @param project [String]
|
71
|
+
# @param location [String]
|
72
|
+
# @param connection [String]
|
73
|
+
# @param repository [String]
|
74
|
+
#
|
75
|
+
# @return [::String]
|
76
|
+
def repository_path project:, location:, connection:, repository:
|
77
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
78
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
79
|
+
raise ::ArgumentError, "connection cannot contain /" if connection.to_s.include? "/"
|
80
|
+
|
81
|
+
"projects/#{project}/locations/#{location}/connections/#{connection}/repositories/#{repository}"
|
82
|
+
end
|
83
|
+
|
84
|
+
##
|
85
|
+
# Create a fully-qualified SecretVersion resource string.
|
86
|
+
#
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `projects/{project}/secrets/{secret}/versions/{version}`
|
90
|
+
#
|
91
|
+
# @param project [String]
|
92
|
+
# @param secret [String]
|
93
|
+
# @param version [String]
|
94
|
+
#
|
95
|
+
# @return [::String]
|
96
|
+
def secret_version_path project:, secret:, version:
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/secrets/#{secret}/versions/#{version}"
|
101
|
+
end
|
102
|
+
|
103
|
+
##
|
104
|
+
# Create a fully-qualified Service resource string.
|
105
|
+
#
|
106
|
+
# The resource will be in the following format:
|
107
|
+
#
|
108
|
+
# `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`
|
109
|
+
#
|
110
|
+
# @param project [String]
|
111
|
+
# @param location [String]
|
112
|
+
# @param namespace [String]
|
113
|
+
# @param service [String]
|
114
|
+
#
|
115
|
+
# @return [::String]
|
116
|
+
def service_path project:, location:, namespace:, service:
|
117
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
118
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
119
|
+
raise ::ArgumentError, "namespace cannot contain /" if namespace.to_s.include? "/"
|
120
|
+
|
121
|
+
"projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}"
|
122
|
+
end
|
123
|
+
|
124
|
+
extend self
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/build/v2/version"
|
24
|
+
|
25
|
+
require "google/cloud/build/v2/repository_manager/credentials"
|
26
|
+
require "google/cloud/build/v2/repository_manager/paths"
|
27
|
+
require "google/cloud/build/v2/repository_manager/operations"
|
28
|
+
require "google/cloud/build/v2/repository_manager/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Build
|
33
|
+
module V2
|
34
|
+
##
|
35
|
+
# Manages connections to source code repostiories.
|
36
|
+
#
|
37
|
+
# @example Load this service and instantiate a gRPC client
|
38
|
+
#
|
39
|
+
# require "google/cloud/build/v2/repository_manager"
|
40
|
+
# client = ::Google::Cloud::Build::V2::RepositoryManager::Client.new
|
41
|
+
#
|
42
|
+
module RepositoryManager
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
helper_path = ::File.join __dir__, "repository_manager", "helpers.rb"
|
50
|
+
require "google/cloud/build/v2/repository_manager/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Build
|
23
|
+
module V2
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/build/v2/repository_manager"
|
20
|
+
require "google/cloud/build/v2/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Build
|
25
|
+
##
|
26
|
+
# API client module.
|
27
|
+
#
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
|
+
#
|
30
|
+
# require "google/cloud/build/v2"
|
31
|
+
# client = ::Google::Cloud::Build::V2::RepositoryManager::Client.new
|
32
|
+
#
|
33
|
+
module V2
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
helper_path = ::File.join __dir__, "v2", "_helpers.rb"
|
40
|
+
require "google/cloud/build/v2/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/cloudbuild/v2/cloudbuild.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/devtools/cloudbuild/v2/cloudbuild.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.devtools.cloudbuild.v2.OperationMetadata" do
|
15
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
16
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
17
|
+
optional :target, :string, 3
|
18
|
+
optional :verb, :string, 4
|
19
|
+
optional :status_message, :string, 5
|
20
|
+
optional :requested_cancellation, :bool, 6
|
21
|
+
optional :api_version, :string, 7
|
22
|
+
end
|
23
|
+
add_message "google.devtools.cloudbuild.v2.RunWorkflowCustomOperationMetadata" do
|
24
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
25
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
26
|
+
optional :verb, :string, 3
|
27
|
+
optional :requested_cancellation, :bool, 4
|
28
|
+
optional :api_version, :string, 5
|
29
|
+
optional :target, :string, 6
|
30
|
+
optional :pipeline_run_id, :string, 7
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
module Google
|
36
|
+
module Cloud
|
37
|
+
module Build
|
38
|
+
module V2
|
39
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.OperationMetadata").msgclass
|
40
|
+
RunWorkflowCustomOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.RunWorkflowCustomOperationMetadata").msgclass
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,193 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/cloudbuild/v2/repositories.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/httpbody_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/longrunning/operations_pb'
|
12
|
+
require 'google/protobuf/empty_pb'
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
14
|
+
require 'google/protobuf/timestamp_pb'
|
15
|
+
|
16
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
|
+
add_file("google/devtools/cloudbuild/v2/repositories.proto", :syntax => :proto3) do
|
18
|
+
add_message "google.devtools.cloudbuild.v2.Connection" do
|
19
|
+
optional :name, :string, 1
|
20
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
21
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
22
|
+
optional :installation_state, :message, 12, "google.devtools.cloudbuild.v2.InstallationState"
|
23
|
+
optional :disabled, :bool, 13
|
24
|
+
optional :reconciling, :bool, 14
|
25
|
+
map :annotations, :string, :string, 15
|
26
|
+
optional :etag, :string, 16
|
27
|
+
oneof :connection_config do
|
28
|
+
optional :github_config, :message, 5, "google.devtools.cloudbuild.v2.GitHubConfig"
|
29
|
+
optional :github_enterprise_config, :message, 6, "google.devtools.cloudbuild.v2.GitHubEnterpriseConfig"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
add_message "google.devtools.cloudbuild.v2.InstallationState" do
|
33
|
+
optional :stage, :enum, 1, "google.devtools.cloudbuild.v2.InstallationState.Stage"
|
34
|
+
optional :message, :string, 2
|
35
|
+
optional :action_uri, :string, 3
|
36
|
+
end
|
37
|
+
add_enum "google.devtools.cloudbuild.v2.InstallationState.Stage" do
|
38
|
+
value :STAGE_UNSPECIFIED, 0
|
39
|
+
value :PENDING_CREATE_APP, 1
|
40
|
+
value :PENDING_USER_OAUTH, 2
|
41
|
+
value :PENDING_INSTALL_APP, 3
|
42
|
+
value :COMPLETE, 10
|
43
|
+
end
|
44
|
+
add_message "google.devtools.cloudbuild.v2.FetchLinkableRepositoriesRequest" do
|
45
|
+
optional :connection, :string, 1
|
46
|
+
optional :page_size, :int32, 2
|
47
|
+
optional :page_token, :string, 3
|
48
|
+
end
|
49
|
+
add_message "google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse" do
|
50
|
+
repeated :repositories, :message, 1, "google.devtools.cloudbuild.v2.Repository"
|
51
|
+
optional :next_page_token, :string, 2
|
52
|
+
end
|
53
|
+
add_message "google.devtools.cloudbuild.v2.GitHubConfig" do
|
54
|
+
optional :authorizer_credential, :message, 1, "google.devtools.cloudbuild.v2.OAuthCredential"
|
55
|
+
optional :app_installation_id, :int64, 2
|
56
|
+
end
|
57
|
+
add_message "google.devtools.cloudbuild.v2.GitHubEnterpriseConfig" do
|
58
|
+
optional :host_uri, :string, 1
|
59
|
+
optional :api_key, :string, 12
|
60
|
+
optional :app_id, :int64, 2
|
61
|
+
optional :app_slug, :string, 13
|
62
|
+
optional :private_key_secret_version, :string, 4
|
63
|
+
optional :webhook_secret_secret_version, :string, 5
|
64
|
+
optional :app_installation_id, :int64, 9
|
65
|
+
optional :service_directory_config, :message, 10, "google.devtools.cloudbuild.v2.ServiceDirectoryConfig"
|
66
|
+
optional :ssl_ca, :string, 11
|
67
|
+
optional :server_version, :string, 14
|
68
|
+
end
|
69
|
+
add_message "google.devtools.cloudbuild.v2.ServiceDirectoryConfig" do
|
70
|
+
optional :service, :string, 1
|
71
|
+
end
|
72
|
+
add_message "google.devtools.cloudbuild.v2.Repository" do
|
73
|
+
optional :name, :string, 1
|
74
|
+
optional :remote_uri, :string, 2
|
75
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
76
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
77
|
+
map :annotations, :string, :string, 6
|
78
|
+
optional :etag, :string, 7
|
79
|
+
end
|
80
|
+
add_message "google.devtools.cloudbuild.v2.OAuthCredential" do
|
81
|
+
optional :oauth_token_secret_version, :string, 1
|
82
|
+
optional :username, :string, 2
|
83
|
+
end
|
84
|
+
add_message "google.devtools.cloudbuild.v2.CreateConnectionRequest" do
|
85
|
+
optional :parent, :string, 1
|
86
|
+
optional :connection, :message, 2, "google.devtools.cloudbuild.v2.Connection"
|
87
|
+
optional :connection_id, :string, 3
|
88
|
+
end
|
89
|
+
add_message "google.devtools.cloudbuild.v2.GetConnectionRequest" do
|
90
|
+
optional :name, :string, 1
|
91
|
+
end
|
92
|
+
add_message "google.devtools.cloudbuild.v2.ListConnectionsRequest" do
|
93
|
+
optional :parent, :string, 1
|
94
|
+
optional :page_size, :int32, 2
|
95
|
+
optional :page_token, :string, 3
|
96
|
+
end
|
97
|
+
add_message "google.devtools.cloudbuild.v2.ListConnectionsResponse" do
|
98
|
+
repeated :connections, :message, 1, "google.devtools.cloudbuild.v2.Connection"
|
99
|
+
optional :next_page_token, :string, 2
|
100
|
+
end
|
101
|
+
add_message "google.devtools.cloudbuild.v2.UpdateConnectionRequest" do
|
102
|
+
optional :connection, :message, 1, "google.devtools.cloudbuild.v2.Connection"
|
103
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
104
|
+
optional :allow_missing, :bool, 3
|
105
|
+
optional :etag, :string, 4
|
106
|
+
end
|
107
|
+
add_message "google.devtools.cloudbuild.v2.DeleteConnectionRequest" do
|
108
|
+
optional :name, :string, 1
|
109
|
+
optional :etag, :string, 2
|
110
|
+
optional :validate_only, :bool, 3
|
111
|
+
end
|
112
|
+
add_message "google.devtools.cloudbuild.v2.CreateRepositoryRequest" do
|
113
|
+
optional :parent, :string, 1
|
114
|
+
optional :repository, :message, 2, "google.devtools.cloudbuild.v2.Repository"
|
115
|
+
optional :repository_id, :string, 3
|
116
|
+
end
|
117
|
+
add_message "google.devtools.cloudbuild.v2.BatchCreateRepositoriesRequest" do
|
118
|
+
optional :parent, :string, 1
|
119
|
+
repeated :requests, :message, 2, "google.devtools.cloudbuild.v2.CreateRepositoryRequest"
|
120
|
+
end
|
121
|
+
add_message "google.devtools.cloudbuild.v2.BatchCreateRepositoriesResponse" do
|
122
|
+
repeated :repositories, :message, 1, "google.devtools.cloudbuild.v2.Repository"
|
123
|
+
end
|
124
|
+
add_message "google.devtools.cloudbuild.v2.GetRepositoryRequest" do
|
125
|
+
optional :name, :string, 1
|
126
|
+
end
|
127
|
+
add_message "google.devtools.cloudbuild.v2.ListRepositoriesRequest" do
|
128
|
+
optional :parent, :string, 1
|
129
|
+
optional :page_size, :int32, 2
|
130
|
+
optional :page_token, :string, 3
|
131
|
+
optional :filter, :string, 4
|
132
|
+
end
|
133
|
+
add_message "google.devtools.cloudbuild.v2.ListRepositoriesResponse" do
|
134
|
+
repeated :repositories, :message, 1, "google.devtools.cloudbuild.v2.Repository"
|
135
|
+
optional :next_page_token, :string, 2
|
136
|
+
end
|
137
|
+
add_message "google.devtools.cloudbuild.v2.DeleteRepositoryRequest" do
|
138
|
+
optional :name, :string, 1
|
139
|
+
optional :etag, :string, 2
|
140
|
+
optional :validate_only, :bool, 3
|
141
|
+
end
|
142
|
+
add_message "google.devtools.cloudbuild.v2.FetchReadWriteTokenRequest" do
|
143
|
+
optional :repository, :string, 1
|
144
|
+
end
|
145
|
+
add_message "google.devtools.cloudbuild.v2.FetchReadTokenRequest" do
|
146
|
+
optional :repository, :string, 1
|
147
|
+
end
|
148
|
+
add_message "google.devtools.cloudbuild.v2.FetchReadTokenResponse" do
|
149
|
+
optional :token, :string, 1
|
150
|
+
optional :expiration_time, :message, 2, "google.protobuf.Timestamp"
|
151
|
+
end
|
152
|
+
add_message "google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse" do
|
153
|
+
optional :token, :string, 1
|
154
|
+
optional :expiration_time, :message, 2, "google.protobuf.Timestamp"
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
module Google
|
160
|
+
module Cloud
|
161
|
+
module Build
|
162
|
+
module V2
|
163
|
+
Connection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.Connection").msgclass
|
164
|
+
InstallationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.InstallationState").msgclass
|
165
|
+
InstallationState::Stage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.InstallationState.Stage").enummodule
|
166
|
+
FetchLinkableRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchLinkableRepositoriesRequest").msgclass
|
167
|
+
FetchLinkableRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse").msgclass
|
168
|
+
GitHubConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GitHubConfig").msgclass
|
169
|
+
GitHubEnterpriseConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GitHubEnterpriseConfig").msgclass
|
170
|
+
ServiceDirectoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ServiceDirectoryConfig").msgclass
|
171
|
+
Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.Repository").msgclass
|
172
|
+
OAuthCredential = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.OAuthCredential").msgclass
|
173
|
+
CreateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.CreateConnectionRequest").msgclass
|
174
|
+
GetConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GetConnectionRequest").msgclass
|
175
|
+
ListConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListConnectionsRequest").msgclass
|
176
|
+
ListConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListConnectionsResponse").msgclass
|
177
|
+
UpdateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.UpdateConnectionRequest").msgclass
|
178
|
+
DeleteConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.DeleteConnectionRequest").msgclass
|
179
|
+
CreateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.CreateRepositoryRequest").msgclass
|
180
|
+
BatchCreateRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.BatchCreateRepositoriesRequest").msgclass
|
181
|
+
BatchCreateRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.BatchCreateRepositoriesResponse").msgclass
|
182
|
+
GetRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GetRepositoryRequest").msgclass
|
183
|
+
ListRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListRepositoriesRequest").msgclass
|
184
|
+
ListRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListRepositoriesResponse").msgclass
|
185
|
+
DeleteRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.DeleteRepositoryRequest").msgclass
|
186
|
+
FetchReadWriteTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadWriteTokenRequest").msgclass
|
187
|
+
FetchReadTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadTokenRequest").msgclass
|
188
|
+
FetchReadTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadTokenResponse").msgclass
|
189
|
+
FetchReadWriteTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse").msgclass
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/devtools/cloudbuild/v2/repositories.proto for package 'Google.Cloud.Build.V2'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/devtools/cloudbuild/v2/repositories_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Build
|
25
|
+
module V2
|
26
|
+
module RepositoryManager
|
27
|
+
# Manages connections to source code repostiories.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.devtools.cloudbuild.v2.RepositoryManager'
|
35
|
+
|
36
|
+
# Creates a Connection.
|
37
|
+
rpc :CreateConnection, ::Google::Cloud::Build::V2::CreateConnectionRequest, ::Google::Longrunning::Operation
|
38
|
+
# Gets details of a single connection.
|
39
|
+
rpc :GetConnection, ::Google::Cloud::Build::V2::GetConnectionRequest, ::Google::Cloud::Build::V2::Connection
|
40
|
+
# Lists Connections in a given project and location.
|
41
|
+
rpc :ListConnections, ::Google::Cloud::Build::V2::ListConnectionsRequest, ::Google::Cloud::Build::V2::ListConnectionsResponse
|
42
|
+
# Updates a single connection.
|
43
|
+
rpc :UpdateConnection, ::Google::Cloud::Build::V2::UpdateConnectionRequest, ::Google::Longrunning::Operation
|
44
|
+
# Deletes a single connection.
|
45
|
+
rpc :DeleteConnection, ::Google::Cloud::Build::V2::DeleteConnectionRequest, ::Google::Longrunning::Operation
|
46
|
+
# Creates a Repository.
|
47
|
+
rpc :CreateRepository, ::Google::Cloud::Build::V2::CreateRepositoryRequest, ::Google::Longrunning::Operation
|
48
|
+
# Creates multiple repositories inside a connection.
|
49
|
+
rpc :BatchCreateRepositories, ::Google::Cloud::Build::V2::BatchCreateRepositoriesRequest, ::Google::Longrunning::Operation
|
50
|
+
# Gets details of a single repository.
|
51
|
+
rpc :GetRepository, ::Google::Cloud::Build::V2::GetRepositoryRequest, ::Google::Cloud::Build::V2::Repository
|
52
|
+
# Lists Repositories in a given connection.
|
53
|
+
rpc :ListRepositories, ::Google::Cloud::Build::V2::ListRepositoriesRequest, ::Google::Cloud::Build::V2::ListRepositoriesResponse
|
54
|
+
# Deletes a single repository.
|
55
|
+
rpc :DeleteRepository, ::Google::Cloud::Build::V2::DeleteRepositoryRequest, ::Google::Longrunning::Operation
|
56
|
+
# Fetches read/write token of a given repository.
|
57
|
+
rpc :FetchReadWriteToken, ::Google::Cloud::Build::V2::FetchReadWriteTokenRequest, ::Google::Cloud::Build::V2::FetchReadWriteTokenResponse
|
58
|
+
# Fetches read token of a given repository.
|
59
|
+
rpc :FetchReadToken, ::Google::Cloud::Build::V2::FetchReadTokenRequest, ::Google::Cloud::Build::V2::FetchReadTokenResponse
|
60
|
+
# FetchLinkableRepositories get repositories from SCM that are
|
61
|
+
# accessible and could be added to the connection.
|
62
|
+
rpc :FetchLinkableRepositories, ::Google::Cloud::Build::V2::FetchLinkableRepositoriesRequest, ::Google::Cloud::Build::V2::FetchLinkableRepositoriesResponse
|
63
|
+
end
|
64
|
+
|
65
|
+
Stub = Service.rpc_stub_class
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/build/v2"
|