google-cloud-build-v2 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe1dd438584cc4948e84ffee5c53b4d4f2ca194d86a56a44f9f04519df036330
4
- data.tar.gz: 4511a1db6c390fec4fc307b9a74691e2a0551f3e0387fbc017fb071d4b3bd175
3
+ metadata.gz: e0fd90e926e2ab577fb19ee1260fc3cc95ca60d5d4e2e3cb7027cf099bc6d09c
4
+ data.tar.gz: f398b9ef7a7f6c1746a8ca59b813f5cbd7b8c83ed74d95ae60c76705a7f74e07
5
5
  SHA512:
6
- metadata.gz: ac00b4cd573b3087d24a4dfca94945ab3429636bc43ccce0cc413addc7326fde65d23e95bcb54c31cc0b7fe213e063e7ecf62ae4ed47448c36ce07123677a909
7
- data.tar.gz: 3262227046d4d4516f4c5a8d08c6657b5208fd2705f3f127a009ffc1c267dfade5e46e146634e1f3251ba737f949583dd2f30202b55248188e0de9e8725f5763
6
+ metadata.gz: ff2b9af2fcb1a1f323c6dd97d34b4739503f9861fbe9b5aa69dd64c46e66cd4570e485297b1ec6563335d5699b056d71388d3b9d4b22af6620d9b421244b4c3a
7
+ data.tar.gz: fec44fd43d895a5d74424cb15a8df7634b305d2a0f1009dcd876274be722e84b7ff5d459252ffd29a4c9f351f76547ebf2f604174272e0607ee4583f22ccab8c
@@ -29,7 +29,7 @@ module Google
29
29
  ##
30
30
  # Client for the RepositoryManager service.
31
31
  #
32
- # Manages connections to source code repostiories.
32
+ # Manages connections to source code repositories.
33
33
  #
34
34
  class Client
35
35
  include Paths
@@ -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
  #
@@ -1673,6 +1761,11 @@ module Google
1673
1761
  # @return [::Gapic::Config::Method]
1674
1762
  #
1675
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
1676
1769
 
1677
1770
  # @private
1678
1771
  def initialize parent_rpcs = nil
@@ -1702,6 +1795,8 @@ module Google
1702
1795
  @fetch_read_token = ::Gapic::Config::Method.new fetch_read_token_config
1703
1796
  fetch_linkable_repositories_config = parent_rpcs.fetch_linkable_repositories if parent_rpcs.respond_to? :fetch_linkable_repositories
1704
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
1705
1800
 
1706
1801
  yield self if block_given?
1707
1802
  end
@@ -32,7 +32,7 @@ module Google
32
32
  module Build
33
33
  module V2
34
34
  ##
35
- # Manages connections to source code repostiories.
35
+ # Manages connections to source code repositories.
36
36
  #
37
37
  # @example Load this service and instantiate a gRPC client
38
38
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Build
23
23
  module V2
24
- VERSION = "0.2.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -15,7 +15,7 @@ require 'google/protobuf/field_mask_pb'
15
15
  require 'google/protobuf/timestamp_pb'
16
16
 
17
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\"\xde\x05\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\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\"Z\n\x16ServiceDirectoryConfig\x12@\n\x07service\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\"\xdd\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\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\"\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.Timestamp2\xe0\x19\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\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"
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
19
 
20
20
  pool = Google::Protobuf::DescriptorPool.generated_pool
21
21
 
@@ -32,6 +32,7 @@ rescue TypeError => e
32
32
  imports = [
33
33
  ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
34
  ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
35
+ ["google.api.HttpBody", "google/api/httpbody.proto"],
35
36
  ]
36
37
  imports.each do |type_name, expected_filename|
37
38
  import_file = pool.lookup(type_name).file_descriptor
@@ -54,9 +55,11 @@ module Google
54
55
  FetchLinkableRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse").msgclass
55
56
  GitHubConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GitHubConfig").msgclass
56
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
57
59
  ServiceDirectoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ServiceDirectoryConfig").msgclass
58
60
  Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.Repository").msgclass
59
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
60
63
  CreateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.CreateConnectionRequest").msgclass
61
64
  GetConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GetConnectionRequest").msgclass
62
65
  ListConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListConnectionsRequest").msgclass
@@ -74,6 +77,10 @@ module Google
74
77
  FetchReadTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadTokenRequest").msgclass
75
78
  FetchReadTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadTokenResponse").msgclass
76
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
77
84
  end
78
85
  end
79
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 repostiories.
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
@@ -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
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.2.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-06-06 00:00:00.000000000 Z
11
+ date: 2023-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common