google-cloud-build-v2 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/README.md +1 -1
- data/lib/google/cloud/build/v2/repository_manager/client.rb +102 -5
- data/lib/google/cloud/build/v2/repository_manager/operations.rb +5 -3
- data/lib/google/cloud/build/v2/repository_manager.rb +1 -1
- data/lib/google/cloud/build/v2/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v2/cloudbuild_pb.rb +25 -19
- data/lib/google/devtools/cloudbuild/v2/repositories_pb.rb +33 -139
- data/lib/google/devtools/cloudbuild/v2/repositories_services_pb.rb +3 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/devtools/cloudbuild/v2/repositories.rb +110 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- 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: e0fd90e926e2ab577fb19ee1260fc3cc95ca60d5d4e2e3cb7027cf099bc6d09c
|
|
4
|
+
data.tar.gz: f398b9ef7a7f6c1746a8ca59b813f5cbd7b8c83ed74d95ae60c76705a7f74e07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff2b9af2fcb1a1f323c6dd97d34b4739503f9861fbe9b5aa69dd64c46e66cd4570e485297b1ec6563335d5699b056d71388d3b9d4b22af6620d9b421244b4c3a
|
|
7
|
+
data.tar.gz: fec44fd43d895a5d74424cb15a8df7634b305d2a0f1009dcd876274be722e84b7ff5d459252ffd29a4c9f351f76547ebf2f604174272e0607ee4583f22ccab8c
|
data/README.md
CHANGED
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
|
47
47
|
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
53
53
|
|
|
@@ -29,7 +29,7 @@ module Google
|
|
|
29
29
|
##
|
|
30
30
|
# Client for the RepositoryManager service.
|
|
31
31
|
#
|
|
32
|
-
# Manages connections to source code
|
|
32
|
+
# Manages connections to source code repositories.
|
|
33
33
|
#
|
|
34
34
|
class Client
|
|
35
35
|
include Paths
|
|
@@ -170,7 +170,7 @@ module Google
|
|
|
170
170
|
credentials = @config.credentials
|
|
171
171
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
172
172
|
# but only if the default endpoint does not have a region prefix.
|
|
173
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
173
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
174
174
|
!@config.endpoint.split(".").first.include?("-")
|
|
175
175
|
credentials ||= Credentials.default scope: @config.scope,
|
|
176
176
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1471,6 +1471,94 @@ module Google
|
|
|
1471
1471
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1472
1472
|
end
|
|
1473
1473
|
|
|
1474
|
+
##
|
|
1475
|
+
# Fetch the list of branches or tags for a given repository.
|
|
1476
|
+
#
|
|
1477
|
+
# @overload fetch_git_refs(request, options = nil)
|
|
1478
|
+
# Pass arguments to `fetch_git_refs` via a request object, either of type
|
|
1479
|
+
# {::Google::Cloud::Build::V2::FetchGitRefsRequest} or an equivalent Hash.
|
|
1480
|
+
#
|
|
1481
|
+
# @param request [::Google::Cloud::Build::V2::FetchGitRefsRequest, ::Hash]
|
|
1482
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1483
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1484
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1485
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1486
|
+
#
|
|
1487
|
+
# @overload fetch_git_refs(repository: nil, ref_type: nil)
|
|
1488
|
+
# Pass arguments to `fetch_git_refs` via keyword arguments. Note that at
|
|
1489
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1490
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1491
|
+
#
|
|
1492
|
+
# @param repository [::String]
|
|
1493
|
+
# Required. The resource name of the repository in the format
|
|
1494
|
+
# `projects/*/locations/*/connections/*/repositories/*`.
|
|
1495
|
+
# @param ref_type [::Google::Cloud::Build::V2::FetchGitRefsRequest::RefType]
|
|
1496
|
+
# Type of refs to fetch
|
|
1497
|
+
#
|
|
1498
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1499
|
+
# @yieldparam response [::Google::Cloud::Build::V2::FetchGitRefsResponse]
|
|
1500
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1501
|
+
#
|
|
1502
|
+
# @return [::Google::Cloud::Build::V2::FetchGitRefsResponse]
|
|
1503
|
+
#
|
|
1504
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1505
|
+
#
|
|
1506
|
+
# @example Basic example
|
|
1507
|
+
# require "google/cloud/build/v2"
|
|
1508
|
+
#
|
|
1509
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1510
|
+
# client = Google::Cloud::Build::V2::RepositoryManager::Client.new
|
|
1511
|
+
#
|
|
1512
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1513
|
+
# request = Google::Cloud::Build::V2::FetchGitRefsRequest.new
|
|
1514
|
+
#
|
|
1515
|
+
# # Call the fetch_git_refs method.
|
|
1516
|
+
# result = client.fetch_git_refs request
|
|
1517
|
+
#
|
|
1518
|
+
# # The returned object is of type Google::Cloud::Build::V2::FetchGitRefsResponse.
|
|
1519
|
+
# p result
|
|
1520
|
+
#
|
|
1521
|
+
def fetch_git_refs request, options = nil
|
|
1522
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1523
|
+
|
|
1524
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Build::V2::FetchGitRefsRequest
|
|
1525
|
+
|
|
1526
|
+
# Converts hash and nil to an options object
|
|
1527
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1528
|
+
|
|
1529
|
+
# Customize the options with defaults
|
|
1530
|
+
metadata = @config.rpcs.fetch_git_refs.metadata.to_h
|
|
1531
|
+
|
|
1532
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
1533
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1534
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1535
|
+
gapic_version: ::Google::Cloud::Build::V2::VERSION
|
|
1536
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1537
|
+
|
|
1538
|
+
header_params = {}
|
|
1539
|
+
if request.repository
|
|
1540
|
+
header_params["repository"] = request.repository
|
|
1541
|
+
end
|
|
1542
|
+
|
|
1543
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1544
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1545
|
+
|
|
1546
|
+
options.apply_defaults timeout: @config.rpcs.fetch_git_refs.timeout,
|
|
1547
|
+
metadata: metadata,
|
|
1548
|
+
retry_policy: @config.rpcs.fetch_git_refs.retry_policy
|
|
1549
|
+
|
|
1550
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1551
|
+
metadata: @config.metadata,
|
|
1552
|
+
retry_policy: @config.retry_policy
|
|
1553
|
+
|
|
1554
|
+
@repository_manager_stub.call_rpc :fetch_git_refs, request, options: options do |response, operation|
|
|
1555
|
+
yield response, operation if block_given?
|
|
1556
|
+
return response
|
|
1557
|
+
end
|
|
1558
|
+
rescue ::GRPC::BadStatus => e
|
|
1559
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1560
|
+
end
|
|
1561
|
+
|
|
1474
1562
|
##
|
|
1475
1563
|
# Configuration class for the RepositoryManager API.
|
|
1476
1564
|
#
|
|
@@ -1509,9 +1597,9 @@ module Google
|
|
|
1509
1597
|
# * (`String`) The path to a service account key file in JSON format
|
|
1510
1598
|
# * (`Hash`) A service account key as a Hash
|
|
1511
1599
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1512
|
-
# (see the [googleauth docs](https://
|
|
1600
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1513
1601
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1514
|
-
# (see the [signet docs](https://
|
|
1602
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1515
1603
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
1516
1604
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
1517
1605
|
# * (`nil`) indicating no credentials
|
|
@@ -1553,7 +1641,9 @@ module Google
|
|
|
1553
1641
|
class Configuration
|
|
1554
1642
|
extend ::Gapic::Config
|
|
1555
1643
|
|
|
1556
|
-
|
|
1644
|
+
DEFAULT_ENDPOINT = "cloudbuild.googleapis.com"
|
|
1645
|
+
|
|
1646
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1557
1647
|
config_attr :credentials, nil do |value|
|
|
1558
1648
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1559
1649
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -1671,6 +1761,11 @@ module Google
|
|
|
1671
1761
|
# @return [::Gapic::Config::Method]
|
|
1672
1762
|
#
|
|
1673
1763
|
attr_reader :fetch_linkable_repositories
|
|
1764
|
+
##
|
|
1765
|
+
# RPC-specific configuration for `fetch_git_refs`
|
|
1766
|
+
# @return [::Gapic::Config::Method]
|
|
1767
|
+
#
|
|
1768
|
+
attr_reader :fetch_git_refs
|
|
1674
1769
|
|
|
1675
1770
|
# @private
|
|
1676
1771
|
def initialize parent_rpcs = nil
|
|
@@ -1700,6 +1795,8 @@ module Google
|
|
|
1700
1795
|
@fetch_read_token = ::Gapic::Config::Method.new fetch_read_token_config
|
|
1701
1796
|
fetch_linkable_repositories_config = parent_rpcs.fetch_linkable_repositories if parent_rpcs.respond_to? :fetch_linkable_repositories
|
|
1702
1797
|
@fetch_linkable_repositories = ::Gapic::Config::Method.new fetch_linkable_repositories_config
|
|
1798
|
+
fetch_git_refs_config = parent_rpcs.fetch_git_refs if parent_rpcs.respond_to? :fetch_git_refs
|
|
1799
|
+
@fetch_git_refs = ::Gapic::Config::Method.new fetch_git_refs_config
|
|
1703
1800
|
|
|
1704
1801
|
yield self if block_given?
|
|
1705
1802
|
end
|
|
@@ -620,9 +620,9 @@ module Google
|
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
623
|
-
# (see the [googleauth docs](https://
|
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
625
|
-
# (see the [signet docs](https://
|
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
628
628
|
# * (`nil`) indicating no credentials
|
|
@@ -664,7 +664,9 @@ module Google
|
|
|
664
664
|
class Configuration
|
|
665
665
|
extend ::Gapic::Config
|
|
666
666
|
|
|
667
|
-
|
|
667
|
+
DEFAULT_ENDPOINT = "cloudbuild.googleapis.com"
|
|
668
|
+
|
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
668
670
|
config_attr :credentials, nil do |value|
|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/devtools/cloudbuild/v2/cloudbuild.proto
|
|
3
4
|
|
|
@@ -9,27 +10,32 @@ require 'google/api/field_behavior_pb'
|
|
|
9
10
|
require 'google/api/resource_pb'
|
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
13
|
+
|
|
14
|
+
descriptor_data = "\n.google/devtools/cloudbuild/v2/cloudbuild.proto\x12\x1dgoogle.devtools.cloudbuild.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\x92\x02\n\"RunWorkflowCustomOperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fpipeline_run_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x42\xa3\x05\n\x18\x63om.google.cloudbuild.v2B\x0f\x43loudBuildProtoP\x01Z>cloud.google.com/go/cloudbuild/apiv2/cloudbuildpb;cloudbuildpb\xa2\x02\x03GCB\xaa\x02\x1aGoogle.Cloud.CloudBuild.V2\xca\x02\x15Google\\Cloud\\Build\\V2\xea\x02\x18Google::Cloud::Build::V2\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}\xea\x41Y\n!iam.googleapis.com/ServiceAccount\x12\x34projects/{project}/serviceAccounts/{service_account}\xea\x41J\n#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\xea\x41\x64\n*secretmanager.googleapis.com/SecretVersion\x12\x36projects/{project}/secrets/{secret}/versions/{version}\xea\x41|\n0cloudbuild.googleapis.com/githubEnterpriseConfig\x12Hprojects/{project}/locations/{location}/githubEnterpriseConfigs/{config}b\x06proto3"
|
|
15
|
+
|
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
|
|
18
|
+
begin
|
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
|
20
|
+
rescue TypeError => e
|
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
24
|
+
parsed.clear_dependency
|
|
25
|
+
serialized = parsed.class.encode(parsed)
|
|
26
|
+
file = pool.add_serialized_file(serialized)
|
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
28
|
+
imports = [
|
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
30
|
+
]
|
|
31
|
+
imports.each do |type_name, expected_filename|
|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
33
|
+
if import_file.name != expected_filename
|
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
31
35
|
end
|
|
32
36
|
end
|
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
38
|
+
warn "This will become an error in the next major version."
|
|
33
39
|
end
|
|
34
40
|
|
|
35
41
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/devtools/cloudbuild/v2/repositories.proto
|
|
3
4
|
|
|
@@ -13,147 +14,34 @@ require 'google/protobuf/empty_pb'
|
|
|
13
14
|
require 'google/protobuf/field_mask_pb'
|
|
14
15
|
require 'google/protobuf/timestamp_pb'
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
add_file("google/devtools/cloudbuild/v2/repositories.proto", :syntax => :proto3) do
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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"
|
|
17
|
+
|
|
18
|
+
descriptor_data = "\n0google/devtools/cloudbuild/v2/repositories.proto\x12\x1dgoogle.devtools.cloudbuild.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa4\x06\n\nConnection\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\rgithub_config\x18\x05 \x01(\x0b\x32+.google.devtools.cloudbuild.v2.GitHubConfigH\x00\x12Y\n\x18github_enterprise_config\x18\x06 \x01(\x0b\x32\x35.google.devtools.cloudbuild.v2.GitHubEnterpriseConfigH\x00\x12\x44\n\rgitlab_config\x18\x07 \x01(\x0b\x32+.google.devtools.cloudbuild.v2.GitLabConfigH\x00\x12Q\n\x12installation_state\x18\x0c \x01(\x0b\x32\x30.google.devtools.cloudbuild.v2.InstallationStateB\x03\xe0\x41\x03\x12\x10\n\x08\x64isabled\x18\r \x01(\x08\x12\x18\n\x0breconciling\x18\x0e \x01(\x08\x42\x03\xe0\x41\x03\x12O\n\x0b\x61nnotations\x18\x0f \x03(\x0b\x32:.google.devtools.cloudbuild.v2.Connection.AnnotationsEntry\x12\x0c\n\x04\x65tag\x18\x10 \x01(\t\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x88\x01\xea\x41\x84\x01\n$cloudbuild.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}*\x0b\x63onnections2\nconnectionR\x01\x01\x42\x13\n\x11\x63onnection_config\"\x85\x02\n\x11InstallationState\x12J\n\x05stage\x18\x01 \x01(\x0e\x32\x36.google.devtools.cloudbuild.v2.InstallationState.StageB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\naction_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"u\n\x05Stage\x12\x15\n\x11STAGE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_CREATE_APP\x10\x01\x12\x16\n\x12PENDING_USER_OAUTH\x10\x02\x12\x17\n\x13PENDING_INSTALL_APP\x10\x03\x12\x0c\n\x08\x43OMPLETE\x10\n\"\x8b\x01\n FetchLinkableRepositoriesRequest\x12@\n\nconnection\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"}\n!FetchLinkableRepositoriesResponse\x12?\n\x0crepositories\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v2.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"z\n\x0cGitHubConfig\x12M\n\x15\x61uthorizer_credential\x18\x01 \x01(\x0b\x32..google.devtools.cloudbuild.v2.OAuthCredential\x12\x1b\n\x13\x61pp_installation_id\x18\x02 \x01(\x03\"\xb7\x03\n\x16GitHubEnterpriseConfig\x12\x15\n\x08host_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x61pi_key\x18\x0c \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\x03\x12\x10\n\x08\x61pp_slug\x18\r \x01(\t\x12S\n\x1aprivate_key_secret_version\x18\x04 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12V\n\x1dwebhook_secret_secret_version\x18\x05 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1b\n\x13\x61pp_installation_id\x18\t \x01(\x03\x12W\n\x18service_directory_config\x18\n \x01(\x0b\x32\x35.google.devtools.cloudbuild.v2.ServiceDirectoryConfig\x12\x0e\n\x06ssl_ca\x18\x0b \x01(\t\x12\x1b\n\x0eserver_version\x18\x0e \x01(\tB\x03\xe0\x41\x03\"\xaf\x03\n\x0cGitLabConfig\x12\x10\n\x08host_uri\x18\x01 \x01(\t\x12\\\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12V\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32-.google.devtools.cloudbuild.v2.UserCredentialB\x03\xe0\x41\x02\x12Q\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32-.google.devtools.cloudbuild.v2.UserCredentialB\x03\xe0\x41\x02\x12W\n\x18service_directory_config\x18\x05 \x01(\x0b\x32\x35.google.devtools.cloudbuild.v2.ServiceDirectoryConfig\x12\x0e\n\x06ssl_ca\x18\x06 \x01(\t\x12\x1b\n\x0eserver_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"Z\n\x16ServiceDirectoryConfig\x12@\n\x07service\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\"\xf6\x03\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x17\n\nremote_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32:.google.devtools.cloudbuild.v2.Repository.AnnotationsEntry\x12\x0c\n\x04\x65tag\x18\x07 \x01(\t\x12\x17\n\nwebhook_id\x18\x08 \x01(\tB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xa3\x01\xea\x41\x9f\x01\n$cloudbuild.googleapis.com/Repository\x12Zprojects/{project}/locations/{location}/connections/{connection}/repositories/{repository}*\x0crepositories2\nrepositoryR\x01\x01\"}\n\x0fOAuthCredential\x12S\n\x1aoauth_token_secret_version\x18\x01 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x03\"~\n\x0eUserCredential\x12U\n\x19user_token_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xb7\x01\n\x17\x43reateConnectionRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudbuild.googleapis.com/Connection\x12\x42\n\nconnection\x18\x02 \x01(\x0b\x32).google.devtools.cloudbuild.v2.ConnectionB\x03\xe0\x41\x02\x12\x1a\n\rconnection_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"R\n\x14GetConnectionRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\"}\n\x16ListConnectionsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudbuild.googleapis.com/Connection\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x17ListConnectionsResponse\x12>\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v2.Connection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb3\x01\n\x17UpdateConnectionRequest\x12\x42\n\nconnection\x18\x01 \x01(\x0b\x32).google.devtools.cloudbuild.v2.ConnectionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rallow_missing\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"z\n\x17\x44\x65leteConnectionRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xb7\x01\n\x17\x43reateRepositoryRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\x12\x42\n\nrepository\x18\x02 \x01(\x0b\x32).google.devtools.cloudbuild.v2.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xad\x01\n\x1e\x42\x61tchCreateRepositoriesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\x12M\n\x08requests\x18\x02 \x03(\x0b\x32\x36.google.devtools.cloudbuild.v2.CreateRepositoryRequestB\x03\xe0\x41\x02\"b\n\x1f\x42\x61tchCreateRepositoriesResponse\x12?\n\x0crepositories\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v2.Repository\"R\n\x14GetRepositoryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\"\x8e\x01\n\x17ListRepositoriesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudbuild.googleapis.com/Repository\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"t\n\x18ListRepositoriesResponse\x12?\n\x0crepositories\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v2.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"z\n\x17\x44\x65leteRepositoryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"^\n\x1a\x46\x65tchReadWriteTokenRequest\x12@\n\nrepository\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\"Y\n\x15\x46\x65tchReadTokenRequest\x12@\n\nrepository\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\"\\\n\x16\x46\x65tchReadTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1b\x46\x65tchReadWriteTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8e\x01\n\x15ProcessWebhookRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudbuild.googleapis.com/Connection\x12\"\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x14.google.api.HttpBody\x12\x13\n\x0bwebhook_key\x18\x03 \x01(\t\"\xdf\x01\n\x13\x46\x65tchGitRefsRequest\x12@\n\nrepository\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\x12L\n\x08ref_type\x18\x02 \x01(\x0e\x32:.google.devtools.cloudbuild.v2.FetchGitRefsRequest.RefType\"8\n\x07RefType\x12\x18\n\x14REF_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03TAG\x10\x01\x12\n\n\x06\x42RANCH\x10\x02\")\n\x14\x46\x65tchGitRefsResponse\x12\x11\n\tref_names\x18\x01 \x03(\t2\xc2\x1b\n\x11RepositoryManager\x12\x91\x02\n\x10\x43reateConnection\x12\x36.google.devtools.cloudbuild.v2.CreateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\xa5\x01\x82\xd3\xe4\x93\x02=\"//v2/{parent=projects/*/locations/*}/connections:\nconnection\xda\x41\x1fparent,connection,connection_id\xca\x41=\n\nConnection\x12/google.devtools.cloudbuild.v2.OperationMetadata\x12\xaf\x01\n\rGetConnection\x12\x33.google.devtools.cloudbuild.v2.GetConnectionRequest\x1a).google.devtools.cloudbuild.v2.Connection\">\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/locations/*/connections/*}\xda\x41\x04name\x12\xc2\x01\n\x0fListConnections\x12\x35.google.devtools.cloudbuild.v2.ListConnectionsRequest\x1a\x36.google.devtools.cloudbuild.v2.ListConnectionsResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/locations/*}/connections\xda\x41\x06parent\x12\x93\x02\n\x10UpdateConnection\x12\x36.google.devtools.cloudbuild.v2.UpdateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\xa7\x01\x82\xd3\xe4\x93\x02H2:/v2/{connection.name=projects/*/locations/*/connections/*}:\nconnection\xda\x41\x16\x63onnection,update_mask\xca\x41=\n\nConnection\x12/google.devtools.cloudbuild.v2.OperationMetadata\x12\xf5\x01\n\x10\x44\x65leteConnection\x12\x36.google.devtools.cloudbuild.v2.DeleteConnectionRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/locations/*/connections/*}\xda\x41\x04name\xca\x41H\n\x15google.protobuf.Empty\x12/google.devtools.cloudbuild.v2.OperationMetadata\x12\xa0\x02\n\x10\x43reateRepository\x12\x36.google.devtools.cloudbuild.v2.CreateRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\x82\xd3\xe4\x93\x02L\">/v2/{parent=projects/*/locations/*/connections/*}/repositories:\nrepository\xda\x41\x1fparent,repository,repository_id\xca\x41=\n\nRepository\x12/google.devtools.cloudbuild.v2.OperationMetadata\x12\xb6\x02\n\x17\x42\x61tchCreateRepositories\x12=.google.devtools.cloudbuild.v2.BatchCreateRepositoriesRequest\x1a\x1d.google.longrunning.Operation\"\xbc\x01\x82\xd3\xe4\x93\x02O\"J/v2/{parent=projects/*/locations/*/connections/*}/repositories:batchCreate:\x01*\xda\x41\x0fparent,requests\xca\x41R\n\x1f\x42\x61tchCreateRepositoriesResponse\x12/google.devtools.cloudbuild.v2.OperationMetadata\x12\xbe\x01\n\rGetRepository\x12\x33.google.devtools.cloudbuild.v2.GetRepositoryRequest\x1a).google.devtools.cloudbuild.v2.Repository\"M\x82\xd3\xe4\x93\x02@\x12>/v2/{name=projects/*/locations/*/connections/*/repositories/*}\xda\x41\x04name\x12\xd4\x01\n\x10ListRepositories\x12\x36.google.devtools.cloudbuild.v2.ListRepositoriesRequest\x1a\x37.google.devtools.cloudbuild.v2.ListRepositoriesResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v2/{parent=projects/*/locations/*/connections/*}/repositories\xda\x41\x06parent\x12\x84\x02\n\x10\x44\x65leteRepository\x12\x36.google.devtools.cloudbuild.v2.DeleteRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\x82\xd3\xe4\x93\x02@*>/v2/{name=projects/*/locations/*/connections/*/repositories/*}\xda\x41\x04name\xca\x41H\n\x15google.protobuf.Empty\x12/google.devtools.cloudbuild.v2.OperationMetadata\x12\xff\x01\n\x13\x46\x65tchReadWriteToken\x12\x39.google.devtools.cloudbuild.v2.FetchReadWriteTokenRequest\x1a:.google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse\"q\x82\xd3\xe4\x93\x02^\"Y/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:accessReadWriteToken:\x01*\xda\x41\nrepository\x12\xeb\x01\n\x0e\x46\x65tchReadToken\x12\x34.google.devtools.cloudbuild.v2.FetchReadTokenRequest\x1a\x35.google.devtools.cloudbuild.v2.FetchReadTokenResponse\"l\x82\xd3\xe4\x93\x02Y\"T/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:accessReadToken:\x01*\xda\x41\nrepository\x12\xf7\x01\n\x19\x46\x65tchLinkableRepositories\x12?.google.devtools.cloudbuild.v2.FetchLinkableRepositoriesRequest\x1a@.google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/v2/{connection=projects/*/locations/*/connections/*}:fetchLinkableRepositories\x12\xdf\x01\n\x0c\x46\x65tchGitRefs\x12\x32.google.devtools.cloudbuild.v2.FetchGitRefsRequest\x1a\x33.google.devtools.cloudbuild.v2.FetchGitRefsResponse\"f\x82\xd3\xe4\x93\x02S\x12Q/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:fetchGitRefs\xda\x41\nrepository\x1aM\xca\x41\x19\x63loudbuild.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc9\x02\n\x18\x63om.google.cloudbuild.v2B\x16RepositoryManagerProtoP\x01Z>cloud.google.com/go/cloudbuild/apiv2/cloudbuildpb;cloudbuildpb\xa2\x02\x03GCB\xaa\x02\x1aGoogle.Cloud.CloudBuild.V2\xca\x02\x15Google\\Cloud\\Build\\V2\xea\x02\x18Google::Cloud::Build::V2\xea\x41|\n\'servicedirectory.googleapis.com/Service\x12Qprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\x06proto3"
|
|
19
|
+
|
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
21
|
+
|
|
22
|
+
begin
|
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
|
24
|
+
rescue TypeError => e
|
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
28
|
+
parsed.clear_dependency
|
|
29
|
+
serialized = parsed.class.encode(parsed)
|
|
30
|
+
file = pool.add_serialized_file(serialized)
|
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
32
|
+
imports = [
|
|
33
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
34
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
|
35
|
+
["google.api.HttpBody", "google/api/httpbody.proto"],
|
|
36
|
+
]
|
|
37
|
+
imports.each do |type_name, expected_filename|
|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
39
|
+
if import_file.name != expected_filename
|
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
155
41
|
end
|
|
156
42
|
end
|
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
44
|
+
warn "This will become an error in the next major version."
|
|
157
45
|
end
|
|
158
46
|
|
|
159
47
|
module Google
|
|
@@ -167,9 +55,11 @@ module Google
|
|
|
167
55
|
FetchLinkableRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse").msgclass
|
|
168
56
|
GitHubConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GitHubConfig").msgclass
|
|
169
57
|
GitHubEnterpriseConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GitHubEnterpriseConfig").msgclass
|
|
58
|
+
GitLabConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GitLabConfig").msgclass
|
|
170
59
|
ServiceDirectoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ServiceDirectoryConfig").msgclass
|
|
171
60
|
Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.Repository").msgclass
|
|
172
61
|
OAuthCredential = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.OAuthCredential").msgclass
|
|
62
|
+
UserCredential = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.UserCredential").msgclass
|
|
173
63
|
CreateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.CreateConnectionRequest").msgclass
|
|
174
64
|
GetConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GetConnectionRequest").msgclass
|
|
175
65
|
ListConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListConnectionsRequest").msgclass
|
|
@@ -187,6 +77,10 @@ module Google
|
|
|
187
77
|
FetchReadTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadTokenRequest").msgclass
|
|
188
78
|
FetchReadTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadTokenResponse").msgclass
|
|
189
79
|
FetchReadWriteTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse").msgclass
|
|
80
|
+
ProcessWebhookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ProcessWebhookRequest").msgclass
|
|
81
|
+
FetchGitRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchGitRefsRequest").msgclass
|
|
82
|
+
FetchGitRefsRequest::RefType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchGitRefsRequest.RefType").enummodule
|
|
83
|
+
FetchGitRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchGitRefsResponse").msgclass
|
|
190
84
|
end
|
|
191
85
|
end
|
|
192
86
|
end
|
|
@@ -24,7 +24,7 @@ module Google
|
|
|
24
24
|
module Build
|
|
25
25
|
module V2
|
|
26
26
|
module RepositoryManager
|
|
27
|
-
# Manages connections to source code
|
|
27
|
+
# Manages connections to source code repositories.
|
|
28
28
|
class Service
|
|
29
29
|
|
|
30
30
|
include ::GRPC::GenericService
|
|
@@ -60,6 +60,8 @@ module Google
|
|
|
60
60
|
# FetchLinkableRepositories get repositories from SCM that are
|
|
61
61
|
# accessible and could be added to the connection.
|
|
62
62
|
rpc :FetchLinkableRepositories, ::Google::Cloud::Build::V2::FetchLinkableRepositoriesRequest, ::Google::Cloud::Build::V2::FetchLinkableRepositoriesResponse
|
|
63
|
+
# Fetch the list of branches or tags for a given repository.
|
|
64
|
+
rpc :FetchGitRefs, ::Google::Cloud::Build::V2::FetchGitRefsRequest, ::Google::Cloud::Build::V2::FetchGitRefsResponse
|
|
63
65
|
end
|
|
64
66
|
|
|
65
67
|
Stub = Service.rpc_stub_class
|
|
@@ -35,7 +35,9 @@ module Google
|
|
|
35
35
|
# Details about how and where to publish client libraries.
|
|
36
36
|
# @!attribute [rw] version
|
|
37
37
|
# @return [::String]
|
|
38
|
-
# Version of the API to apply these settings to.
|
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
|
39
|
+
# package for the API, ending in the version element.
|
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
|
39
41
|
# @!attribute [rw] launch_stage
|
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
|
41
43
|
# Launch stage of this version of the API.
|
|
@@ -81,7 +83,7 @@ module Google
|
|
|
81
83
|
# long-running operation pattern.
|
|
82
84
|
# @!attribute [rw] new_issue_uri
|
|
83
85
|
# @return [::String]
|
|
84
|
-
# Link to a
|
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
|
86
88
|
# @!attribute [rw] documentation_uri
|
|
87
89
|
# @return [::String]
|
|
@@ -111,6 +113,10 @@ module Google
|
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
|
113
115
|
# settings with the same version string are discarded.
|
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
|
117
|
+
# @return [::String]
|
|
118
|
+
# Optional link to proto reference documentation. Example:
|
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
|
114
120
|
class Publishing
|
|
115
121
|
include ::Google::Protobuf::MessageExts
|
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -203,9 +209,57 @@ module Google
|
|
|
203
209
|
# @!attribute [rw] common
|
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
205
211
|
# Some settings.
|
|
212
|
+
# @!attribute [rw] renamed_services
|
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
214
|
+
# Map from original service names to renamed versions.
|
|
215
|
+
# This is used when the default generated types
|
|
216
|
+
# would cause a naming conflict. (Neither name is
|
|
217
|
+
# fully-qualified.)
|
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
|
219
|
+
# @!attribute [rw] renamed_resources
|
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
221
|
+
# Map from full resource types to the effective short name
|
|
222
|
+
# for the resource. This is used when otherwise resource
|
|
223
|
+
# named from different services would cause naming collisions.
|
|
224
|
+
# Example entry:
|
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
|
226
|
+
# @!attribute [rw] ignored_resources
|
|
227
|
+
# @return [::Array<::String>]
|
|
228
|
+
# List of full resource types to ignore during generation.
|
|
229
|
+
# This is typically used for API-specific Location resources,
|
|
230
|
+
# which should be handled by the generator as if they were actually
|
|
231
|
+
# the common Location resources.
|
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
|
234
|
+
# @return [::Array<::String>]
|
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
|
238
|
+
# @return [::Array<::String>]
|
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
|
206
242
|
class DotnetSettings
|
|
207
243
|
include ::Google::Protobuf::MessageExts
|
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
245
|
+
|
|
246
|
+
# @!attribute [rw] key
|
|
247
|
+
# @return [::String]
|
|
248
|
+
# @!attribute [rw] value
|
|
249
|
+
# @return [::String]
|
|
250
|
+
class RenamedServicesEntry
|
|
251
|
+
include ::Google::Protobuf::MessageExts
|
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# @!attribute [rw] key
|
|
256
|
+
# @return [::String]
|
|
257
|
+
# @!attribute [rw] value
|
|
258
|
+
# @return [::String]
|
|
259
|
+
class RenamedResourcesEntry
|
|
260
|
+
include ::Google::Protobuf::MessageExts
|
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
262
|
+
end
|
|
209
263
|
end
|
|
210
264
|
|
|
211
265
|
# Settings for Ruby client libraries.
|
|
@@ -240,8 +294,8 @@ module Google
|
|
|
240
294
|
# Example of a YAML configuration::
|
|
241
295
|
#
|
|
242
296
|
# publishing:
|
|
243
|
-
#
|
|
244
|
-
# - selector:
|
|
297
|
+
# method_settings:
|
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
245
299
|
# long_running:
|
|
246
300
|
# initial_poll_delay:
|
|
247
301
|
# seconds: 60 # 1 minute
|
|
@@ -299,6 +353,15 @@ module Google
|
|
|
299
353
|
|
|
300
354
|
# Street View Org.
|
|
301
355
|
STREET_VIEW = 4
|
|
356
|
+
|
|
357
|
+
# Shopping Org.
|
|
358
|
+
SHOPPING = 5
|
|
359
|
+
|
|
360
|
+
# Geo Org.
|
|
361
|
+
GEO = 6
|
|
362
|
+
|
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
|
364
|
+
GENERATIVE_AI = 7
|
|
302
365
|
end
|
|
303
366
|
|
|
304
367
|
# To where should client libraries be published?
|
|
@@ -39,6 +39,10 @@ module Google
|
|
|
39
39
|
# @!attribute [rw] github_enterprise_config
|
|
40
40
|
# @return [::Google::Cloud::Build::V2::GitHubEnterpriseConfig]
|
|
41
41
|
# Configuration for connections to an instance of GitHub Enterprise.
|
|
42
|
+
# @!attribute [rw] gitlab_config
|
|
43
|
+
# @return [::Google::Cloud::Build::V2::GitLabConfig]
|
|
44
|
+
# Configuration for connections to gitlab.com or an instance of GitLab
|
|
45
|
+
# Enterprise.
|
|
42
46
|
# @!attribute [r] installation_state
|
|
43
47
|
# @return [::Google::Cloud::Build::V2::InstallationState]
|
|
44
48
|
# Output only. Installation state of the Connection.
|
|
@@ -195,6 +199,43 @@ module Google
|
|
|
195
199
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
196
200
|
end
|
|
197
201
|
|
|
202
|
+
# Configuration for connections to gitlab.com or an instance of GitLab
|
|
203
|
+
# Enterprise.
|
|
204
|
+
# @!attribute [rw] host_uri
|
|
205
|
+
# @return [::String]
|
|
206
|
+
# The URI of the GitLab Enterprise host this connection is for.
|
|
207
|
+
# If not specified, the default value is https://gitlab.com.
|
|
208
|
+
# @!attribute [rw] webhook_secret_secret_version
|
|
209
|
+
# @return [::String]
|
|
210
|
+
# Required. Immutable. SecretManager resource containing the webhook secret
|
|
211
|
+
# of a GitLab Enterprise project, formatted as
|
|
212
|
+
# `projects/*/secrets/*/versions/*`.
|
|
213
|
+
# @!attribute [rw] read_authorizer_credential
|
|
214
|
+
# @return [::Google::Cloud::Build::V2::UserCredential]
|
|
215
|
+
# Required. A GitLab personal access token with the minimum `read_api` scope
|
|
216
|
+
# access.
|
|
217
|
+
# @!attribute [rw] authorizer_credential
|
|
218
|
+
# @return [::Google::Cloud::Build::V2::UserCredential]
|
|
219
|
+
# Required. A GitLab personal access token with the `api` scope access.
|
|
220
|
+
# @!attribute [rw] service_directory_config
|
|
221
|
+
# @return [::Google::Cloud::Build::V2::ServiceDirectoryConfig]
|
|
222
|
+
# Configuration for using Service Directory to privately connect to a GitLab
|
|
223
|
+
# Enterprise server. This should only be set if the GitLab Enterprise server
|
|
224
|
+
# is hosted on-premises and not reachable by public internet. If this field
|
|
225
|
+
# is left empty, calls to the GitLab Enterprise server will be made over the
|
|
226
|
+
# public internet.
|
|
227
|
+
# @!attribute [rw] ssl_ca
|
|
228
|
+
# @return [::String]
|
|
229
|
+
# SSL certificate to use for requests to GitLab Enterprise.
|
|
230
|
+
# @!attribute [r] server_version
|
|
231
|
+
# @return [::String]
|
|
232
|
+
# Output only. Version of the GitLab Enterprise server running on the
|
|
233
|
+
# `host_uri`.
|
|
234
|
+
class GitLabConfig
|
|
235
|
+
include ::Google::Protobuf::MessageExts
|
|
236
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
237
|
+
end
|
|
238
|
+
|
|
198
239
|
# ServiceDirectoryConfig represents Service Directory configuration for a
|
|
199
240
|
# connection.
|
|
200
241
|
# @!attribute [rw] service
|
|
@@ -229,6 +270,9 @@ module Google
|
|
|
229
270
|
# This checksum is computed by the server based on the value of other
|
|
230
271
|
# fields, and may be sent on update and delete requests to ensure the
|
|
231
272
|
# client has an up-to-date value before proceeding.
|
|
273
|
+
# @!attribute [r] webhook_id
|
|
274
|
+
# @return [::String]
|
|
275
|
+
# Output only. External ID of the webhook created for the repository.
|
|
232
276
|
class Repository
|
|
233
277
|
include ::Google::Protobuf::MessageExts
|
|
234
278
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -257,6 +301,21 @@ module Google
|
|
|
257
301
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
258
302
|
end
|
|
259
303
|
|
|
304
|
+
# Represents a personal access token that authorized the Connection,
|
|
305
|
+
# and associated metadata.
|
|
306
|
+
# @!attribute [rw] user_token_secret_version
|
|
307
|
+
# @return [::String]
|
|
308
|
+
# Required. A SecretManager resource containing the user token that
|
|
309
|
+
# authorizes the Cloud Build connection. Format:
|
|
310
|
+
# `projects/*/secrets/*/versions/*`.
|
|
311
|
+
# @!attribute [r] username
|
|
312
|
+
# @return [::String]
|
|
313
|
+
# Output only. The username associated to this token.
|
|
314
|
+
class UserCredential
|
|
315
|
+
include ::Google::Protobuf::MessageExts
|
|
316
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
317
|
+
end
|
|
318
|
+
|
|
260
319
|
# Message for creating a Connection
|
|
261
320
|
# @!attribute [rw] parent
|
|
262
321
|
# @return [::String]
|
|
@@ -505,6 +564,57 @@ module Google
|
|
|
505
564
|
include ::Google::Protobuf::MessageExts
|
|
506
565
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
507
566
|
end
|
|
567
|
+
|
|
568
|
+
# RPC request object accepted by the ProcessWebhook RPC method.
|
|
569
|
+
# @!attribute [rw] parent
|
|
570
|
+
# @return [::String]
|
|
571
|
+
# Required. Project and location where the webhook will be received.
|
|
572
|
+
# Format: `projects/*/locations/*`.
|
|
573
|
+
# @!attribute [rw] body
|
|
574
|
+
# @return [::Google::Api::HttpBody]
|
|
575
|
+
# HTTP request body.
|
|
576
|
+
# @!attribute [rw] webhook_key
|
|
577
|
+
# @return [::String]
|
|
578
|
+
# Arbitrary additional key to find the maching repository for a webhook event
|
|
579
|
+
# if needed.
|
|
580
|
+
class ProcessWebhookRequest
|
|
581
|
+
include ::Google::Protobuf::MessageExts
|
|
582
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# Request for fetching git refs
|
|
586
|
+
# @!attribute [rw] repository
|
|
587
|
+
# @return [::String]
|
|
588
|
+
# Required. The resource name of the repository in the format
|
|
589
|
+
# `projects/*/locations/*/connections/*/repositories/*`.
|
|
590
|
+
# @!attribute [rw] ref_type
|
|
591
|
+
# @return [::Google::Cloud::Build::V2::FetchGitRefsRequest::RefType]
|
|
592
|
+
# Type of refs to fetch
|
|
593
|
+
class FetchGitRefsRequest
|
|
594
|
+
include ::Google::Protobuf::MessageExts
|
|
595
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
596
|
+
|
|
597
|
+
# Type of refs
|
|
598
|
+
module RefType
|
|
599
|
+
# No type specified.
|
|
600
|
+
REF_TYPE_UNSPECIFIED = 0
|
|
601
|
+
|
|
602
|
+
# To fetch tags.
|
|
603
|
+
TAG = 1
|
|
604
|
+
|
|
605
|
+
# To fetch branches.
|
|
606
|
+
BRANCH = 2
|
|
607
|
+
end
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
# Response for fetching git refs
|
|
611
|
+
# @!attribute [rw] ref_names
|
|
612
|
+
# @return [::Array<::String>]
|
|
613
|
+
# Name of the refs fetched.
|
|
614
|
+
class FetchGitRefsResponse
|
|
615
|
+
include ::Google::Protobuf::MessageExts
|
|
616
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
617
|
+
end
|
|
508
618
|
end
|
|
509
619
|
end
|
|
510
620
|
end
|
|
@@ -43,8 +43,12 @@ module Google
|
|
|
43
43
|
# if (any.is(Foo.class)) {
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
|
45
45
|
# }
|
|
46
|
+
# // or ...
|
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
|
49
|
+
# }
|
|
46
50
|
#
|
|
47
|
-
#
|
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
|
48
52
|
#
|
|
49
53
|
# foo = Foo(...)
|
|
50
54
|
# any = Any()
|
|
@@ -54,7 +58,7 @@ module Google
|
|
|
54
58
|
# any.Unpack(foo)
|
|
55
59
|
# ...
|
|
56
60
|
#
|
|
57
|
-
#
|
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
|
58
62
|
#
|
|
59
63
|
# foo := &pb.Foo{...}
|
|
60
64
|
# any, err := anypb.New(foo)
|
|
@@ -73,9 +77,8 @@ module Google
|
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
74
78
|
# name "y.z".
|
|
75
79
|
#
|
|
76
|
-
#
|
|
77
80
|
# JSON
|
|
78
|
-
#
|
|
81
|
+
# ====
|
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
|
80
83
|
# representation of the deserialized, embedded message, with an
|
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
|
@@ -69,7 +69,6 @@ module Google
|
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
71
71
|
#
|
|
72
|
-
#
|
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
74
73
|
#
|
|
75
74
|
# Instant now = Instant.now();
|
|
@@ -78,7 +77,6 @@ module Google
|
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
79
78
|
# .setNanos(now.getNano()).build();
|
|
80
79
|
#
|
|
81
|
-
#
|
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
|
83
81
|
#
|
|
84
82
|
# timestamp = Timestamp()
|
|
@@ -108,7 +106,7 @@ module Google
|
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
111
|
-
# http://
|
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
|
113
111
|
# @!attribute [rw] seconds
|
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-build-v2
|
|
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: 2023-
|
|
11
|
+
date: 2023-07-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.19.1
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.19.1
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|