google-cloud-artifact_registry-v1 1.8.0 → 1.9.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/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +118 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +111 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +62 -0
- data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/export_pb.rb +52 -0
- data/lib/google/devtools/artifactregistry/v1/service_pb.rb +2 -1
- data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +2 -0
- data/proto_docs/google/devtools/artifactregistry/v1/export.rb +91 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1132b85c2ca731d6c66f674033fe85de8be15d5bff4f3c45d96aacb822be3ce4
|
|
4
|
+
data.tar.gz: 7d218eb47a8a1026ba18caf234ec075f2082f118429c00c67882c6cc92d8c4b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d55370b94e0a857b2129432aef7bd4dcc084f97abcebb9b8d1247227b7a5fe73a2719fd943dffcf4c508f667eb0d1ba834d608d2877666aa9a3e96306fa719c1
|
|
7
|
+
data.tar.gz: 0a3ced05ae670f3c817bd1270c9e36340ad17cecfb491079fc35dee7cfdf4e2a03d545410fe3568ad7bd2d939f0dc87aa3f379354c7136919d9d40a2ae5c15c0
|
|
@@ -4912,6 +4912,117 @@ module Google
|
|
|
4912
4912
|
raise ::Google::Cloud::Error.from_error(e)
|
|
4913
4913
|
end
|
|
4914
4914
|
|
|
4915
|
+
##
|
|
4916
|
+
# Exports an artifact.
|
|
4917
|
+
#
|
|
4918
|
+
# @overload export_artifact(request, options = nil)
|
|
4919
|
+
# Pass arguments to `export_artifact` via a request object, either of type
|
|
4920
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest} or an equivalent Hash.
|
|
4921
|
+
#
|
|
4922
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest, ::Hash]
|
|
4923
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4924
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4925
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4926
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
4927
|
+
#
|
|
4928
|
+
# @overload export_artifact(source_version: nil, source_tag: nil, gcs_path: nil, repository: nil)
|
|
4929
|
+
# Pass arguments to `export_artifact` via keyword arguments. Note that at
|
|
4930
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4931
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4932
|
+
#
|
|
4933
|
+
# @param source_version [::String]
|
|
4934
|
+
# The artifact version to export.
|
|
4935
|
+
# Format:
|
|
4936
|
+
# projects/\\{project}/locations/\\{location}/repositories/\\{repository}/packages/\\{package}/versions/\\{version}
|
|
4937
|
+
#
|
|
4938
|
+
# Note: The following parameters are mutually exclusive: `source_version`, `source_tag`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
4939
|
+
# @param source_tag [::String]
|
|
4940
|
+
# The artifact tag to export.
|
|
4941
|
+
# Format:projects/\\{project}/locations/\\{location}/repositories/\\{repository}/packages/\\{package}/tags/\\{tag}
|
|
4942
|
+
#
|
|
4943
|
+
# Note: The following parameters are mutually exclusive: `source_tag`, `source_version`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
4944
|
+
# @param gcs_path [::String]
|
|
4945
|
+
# The Cloud Storage path to export the artifact to. Should start with the
|
|
4946
|
+
# bucket name, and optionally have a directory path. Examples:
|
|
4947
|
+
# `dst_bucket`, `dst_bucket/sub_dir`.
|
|
4948
|
+
# Existing objects with the same path will be overwritten.
|
|
4949
|
+
# @param repository [::String]
|
|
4950
|
+
# Required. The repository of the artifact to export.
|
|
4951
|
+
# Format: projects/\\{project}/locations/\\{location}/repositories/\\{repository}
|
|
4952
|
+
#
|
|
4953
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
4954
|
+
# @yieldparam response [::Gapic::Operation]
|
|
4955
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
4956
|
+
#
|
|
4957
|
+
# @return [::Gapic::Operation]
|
|
4958
|
+
#
|
|
4959
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
4960
|
+
#
|
|
4961
|
+
# @example Basic example
|
|
4962
|
+
# require "google/cloud/artifact_registry/v1"
|
|
4963
|
+
#
|
|
4964
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4965
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
|
|
4966
|
+
#
|
|
4967
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4968
|
+
# request = Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest.new
|
|
4969
|
+
#
|
|
4970
|
+
# # Call the export_artifact method.
|
|
4971
|
+
# result = client.export_artifact request
|
|
4972
|
+
#
|
|
4973
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
4974
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
4975
|
+
# # Here is how to wait for a response.
|
|
4976
|
+
# result.wait_until_done! timeout: 60
|
|
4977
|
+
# if result.response?
|
|
4978
|
+
# p result.response
|
|
4979
|
+
# else
|
|
4980
|
+
# puts "No response received."
|
|
4981
|
+
# end
|
|
4982
|
+
#
|
|
4983
|
+
def export_artifact request, options = nil
|
|
4984
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4985
|
+
|
|
4986
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest
|
|
4987
|
+
|
|
4988
|
+
# Converts hash and nil to an options object
|
|
4989
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4990
|
+
|
|
4991
|
+
# Customize the options with defaults
|
|
4992
|
+
metadata = @config.rpcs.export_artifact.metadata.to_h
|
|
4993
|
+
|
|
4994
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4995
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4996
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4997
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
|
|
4998
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4999
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5000
|
+
|
|
5001
|
+
header_params = {}
|
|
5002
|
+
if request.repository
|
|
5003
|
+
header_params["repository"] = request.repository
|
|
5004
|
+
end
|
|
5005
|
+
|
|
5006
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
5007
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
5008
|
+
|
|
5009
|
+
options.apply_defaults timeout: @config.rpcs.export_artifact.timeout,
|
|
5010
|
+
metadata: metadata,
|
|
5011
|
+
retry_policy: @config.rpcs.export_artifact.retry_policy
|
|
5012
|
+
|
|
5013
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5014
|
+
metadata: @config.metadata,
|
|
5015
|
+
retry_policy: @config.retry_policy
|
|
5016
|
+
|
|
5017
|
+
@artifact_registry_stub.call_rpc :export_artifact, request, options: options do |response, operation|
|
|
5018
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
5019
|
+
yield response, operation if block_given?
|
|
5020
|
+
throw :response, response
|
|
5021
|
+
end
|
|
5022
|
+
rescue ::GRPC::BadStatus => e
|
|
5023
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5024
|
+
end
|
|
5025
|
+
|
|
4915
5026
|
##
|
|
4916
5027
|
# Configuration class for the ArtifactRegistry API.
|
|
4917
5028
|
#
|
|
@@ -5340,6 +5451,11 @@ module Google
|
|
|
5340
5451
|
# @return [::Gapic::Config::Method]
|
|
5341
5452
|
#
|
|
5342
5453
|
attr_reader :delete_attachment
|
|
5454
|
+
##
|
|
5455
|
+
# RPC-specific configuration for `export_artifact`
|
|
5456
|
+
# @return [::Gapic::Config::Method]
|
|
5457
|
+
#
|
|
5458
|
+
attr_reader :export_artifact
|
|
5343
5459
|
|
|
5344
5460
|
# @private
|
|
5345
5461
|
def initialize parent_rpcs = nil
|
|
@@ -5441,6 +5557,8 @@ module Google
|
|
|
5441
5557
|
@create_attachment = ::Gapic::Config::Method.new create_attachment_config
|
|
5442
5558
|
delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
|
|
5443
5559
|
@delete_attachment = ::Gapic::Config::Method.new delete_attachment_config
|
|
5560
|
+
export_artifact_config = parent_rpcs.export_artifact if parent_rpcs.respond_to? :export_artifact
|
|
5561
|
+
@export_artifact = ::Gapic::Config::Method.new export_artifact_config
|
|
5444
5562
|
|
|
5445
5563
|
yield self if block_given?
|
|
5446
5564
|
end
|
|
@@ -4563,6 +4563,110 @@ module Google
|
|
|
4563
4563
|
raise ::Google::Cloud::Error.from_error(e)
|
|
4564
4564
|
end
|
|
4565
4565
|
|
|
4566
|
+
##
|
|
4567
|
+
# Exports an artifact.
|
|
4568
|
+
#
|
|
4569
|
+
# @overload export_artifact(request, options = nil)
|
|
4570
|
+
# Pass arguments to `export_artifact` via a request object, either of type
|
|
4571
|
+
# {::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest} or an equivalent Hash.
|
|
4572
|
+
#
|
|
4573
|
+
# @param request [::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest, ::Hash]
|
|
4574
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4575
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4576
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4577
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4578
|
+
#
|
|
4579
|
+
# @overload export_artifact(source_version: nil, source_tag: nil, gcs_path: nil, repository: nil)
|
|
4580
|
+
# Pass arguments to `export_artifact` via keyword arguments. Note that at
|
|
4581
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4582
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4583
|
+
#
|
|
4584
|
+
# @param source_version [::String]
|
|
4585
|
+
# The artifact version to export.
|
|
4586
|
+
# Format:
|
|
4587
|
+
# projects/\\{project}/locations/\\{location}/repositories/\\{repository}/packages/\\{package}/versions/\\{version}
|
|
4588
|
+
#
|
|
4589
|
+
# Note: The following parameters are mutually exclusive: `source_version`, `source_tag`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
4590
|
+
# @param source_tag [::String]
|
|
4591
|
+
# The artifact tag to export.
|
|
4592
|
+
# Format:projects/\\{project}/locations/\\{location}/repositories/\\{repository}/packages/\\{package}/tags/\\{tag}
|
|
4593
|
+
#
|
|
4594
|
+
# Note: The following parameters are mutually exclusive: `source_tag`, `source_version`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
4595
|
+
# @param gcs_path [::String]
|
|
4596
|
+
# The Cloud Storage path to export the artifact to. Should start with the
|
|
4597
|
+
# bucket name, and optionally have a directory path. Examples:
|
|
4598
|
+
# `dst_bucket`, `dst_bucket/sub_dir`.
|
|
4599
|
+
# Existing objects with the same path will be overwritten.
|
|
4600
|
+
# @param repository [::String]
|
|
4601
|
+
# Required. The repository of the artifact to export.
|
|
4602
|
+
# Format: projects/\\{project}/locations/\\{location}/repositories/\\{repository}
|
|
4603
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4604
|
+
# @yieldparam result [::Gapic::Operation]
|
|
4605
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4606
|
+
#
|
|
4607
|
+
# @return [::Gapic::Operation]
|
|
4608
|
+
#
|
|
4609
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4610
|
+
#
|
|
4611
|
+
# @example Basic example
|
|
4612
|
+
# require "google/cloud/artifact_registry/v1"
|
|
4613
|
+
#
|
|
4614
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4615
|
+
# client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::Client.new
|
|
4616
|
+
#
|
|
4617
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4618
|
+
# request = Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest.new
|
|
4619
|
+
#
|
|
4620
|
+
# # Call the export_artifact method.
|
|
4621
|
+
# result = client.export_artifact request
|
|
4622
|
+
#
|
|
4623
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
4624
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
4625
|
+
# # Here is how to wait for a response.
|
|
4626
|
+
# result.wait_until_done! timeout: 60
|
|
4627
|
+
# if result.response?
|
|
4628
|
+
# p result.response
|
|
4629
|
+
# else
|
|
4630
|
+
# puts "No response received."
|
|
4631
|
+
# end
|
|
4632
|
+
#
|
|
4633
|
+
def export_artifact request, options = nil
|
|
4634
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4635
|
+
|
|
4636
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest
|
|
4637
|
+
|
|
4638
|
+
# Converts hash and nil to an options object
|
|
4639
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4640
|
+
|
|
4641
|
+
# Customize the options with defaults
|
|
4642
|
+
call_metadata = @config.rpcs.export_artifact.metadata.to_h
|
|
4643
|
+
|
|
4644
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4645
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4646
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4647
|
+
gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION,
|
|
4648
|
+
transports_version_send: [:rest]
|
|
4649
|
+
|
|
4650
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4651
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4652
|
+
|
|
4653
|
+
options.apply_defaults timeout: @config.rpcs.export_artifact.timeout,
|
|
4654
|
+
metadata: call_metadata,
|
|
4655
|
+
retry_policy: @config.rpcs.export_artifact.retry_policy
|
|
4656
|
+
|
|
4657
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4658
|
+
metadata: @config.metadata,
|
|
4659
|
+
retry_policy: @config.retry_policy
|
|
4660
|
+
|
|
4661
|
+
@artifact_registry_stub.export_artifact request, options do |result, operation|
|
|
4662
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
4663
|
+
yield result, operation if block_given?
|
|
4664
|
+
throw :response, result
|
|
4665
|
+
end
|
|
4666
|
+
rescue ::Gapic::Rest::Error => e
|
|
4667
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4668
|
+
end
|
|
4669
|
+
|
|
4566
4670
|
##
|
|
4567
4671
|
# Configuration class for the ArtifactRegistry REST API.
|
|
4568
4672
|
#
|
|
@@ -4961,6 +5065,11 @@ module Google
|
|
|
4961
5065
|
# @return [::Gapic::Config::Method]
|
|
4962
5066
|
#
|
|
4963
5067
|
attr_reader :delete_attachment
|
|
5068
|
+
##
|
|
5069
|
+
# RPC-specific configuration for `export_artifact`
|
|
5070
|
+
# @return [::Gapic::Config::Method]
|
|
5071
|
+
#
|
|
5072
|
+
attr_reader :export_artifact
|
|
4964
5073
|
|
|
4965
5074
|
# @private
|
|
4966
5075
|
def initialize parent_rpcs = nil
|
|
@@ -5062,6 +5171,8 @@ module Google
|
|
|
5062
5171
|
@create_attachment = ::Gapic::Config::Method.new create_attachment_config
|
|
5063
5172
|
delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
|
|
5064
5173
|
@delete_attachment = ::Gapic::Config::Method.new delete_attachment_config
|
|
5174
|
+
export_artifact_config = parent_rpcs.export_artifact if parent_rpcs.respond_to? :export_artifact
|
|
5175
|
+
@export_artifact = ::Gapic::Config::Method.new export_artifact_config
|
|
5065
5176
|
|
|
5066
5177
|
yield self if block_given?
|
|
5067
5178
|
end
|
|
@@ -2033,6 +2033,46 @@ module Google
|
|
|
2033
2033
|
end
|
|
2034
2034
|
end
|
|
2035
2035
|
|
|
2036
|
+
##
|
|
2037
|
+
# Baseline implementation for the export_artifact REST call
|
|
2038
|
+
#
|
|
2039
|
+
# @param request_pb [::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest]
|
|
2040
|
+
# A request object representing the call parameters. Required.
|
|
2041
|
+
# @param options [::Gapic::CallOptions]
|
|
2042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2043
|
+
#
|
|
2044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2045
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
2046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2047
|
+
#
|
|
2048
|
+
# @return [::Google::Longrunning::Operation]
|
|
2049
|
+
# A result object deserialized from the server's reply
|
|
2050
|
+
def export_artifact request_pb, options = nil
|
|
2051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
2052
|
+
|
|
2053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_artifact_request request_pb
|
|
2054
|
+
query_string_params = if query_string_params.any?
|
|
2055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
2056
|
+
else
|
|
2057
|
+
{}
|
|
2058
|
+
end
|
|
2059
|
+
|
|
2060
|
+
response = @client_stub.make_http_request(
|
|
2061
|
+
verb,
|
|
2062
|
+
uri: uri,
|
|
2063
|
+
body: body || "",
|
|
2064
|
+
params: query_string_params,
|
|
2065
|
+
method_name: "export_artifact",
|
|
2066
|
+
options: options
|
|
2067
|
+
)
|
|
2068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
2069
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
2070
|
+
catch :response do
|
|
2071
|
+
yield result, operation if block_given?
|
|
2072
|
+
result
|
|
2073
|
+
end
|
|
2074
|
+
end
|
|
2075
|
+
|
|
2036
2076
|
##
|
|
2037
2077
|
# @private
|
|
2038
2078
|
#
|
|
@@ -3078,6 +3118,28 @@ module Google
|
|
|
3078
3118
|
)
|
|
3079
3119
|
transcoder.transcode request_pb
|
|
3080
3120
|
end
|
|
3121
|
+
|
|
3122
|
+
##
|
|
3123
|
+
# @private
|
|
3124
|
+
#
|
|
3125
|
+
# GRPC transcoding helper method for the export_artifact REST call
|
|
3126
|
+
#
|
|
3127
|
+
# @param request_pb [::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest]
|
|
3128
|
+
# A request object representing the call parameters. Required.
|
|
3129
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3130
|
+
# Uri, Body, Query string parameters
|
|
3131
|
+
def self.transcode_export_artifact_request request_pb
|
|
3132
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3133
|
+
.with_bindings(
|
|
3134
|
+
uri_method: :post,
|
|
3135
|
+
uri_template: "/v1/{repository}:exportArtifact",
|
|
3136
|
+
body: "*",
|
|
3137
|
+
matches: [
|
|
3138
|
+
["repository", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
|
|
3139
|
+
]
|
|
3140
|
+
)
|
|
3141
|
+
transcoder.transcode request_pb
|
|
3142
|
+
end
|
|
3081
3143
|
end
|
|
3082
3144
|
end
|
|
3083
3145
|
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/devtools/artifactregistry/v1/export.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/resource_pb'
|
|
9
|
+
require 'google/devtools/artifactregistry/v1/file_pb'
|
|
10
|
+
require 'google/devtools/artifactregistry/v1/version_pb'
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
descriptor_data = "\n0google/devtools/artifactregistry/v1/export.proto\x12#google.devtools.artifactregistry.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/devtools/artifactregistry/v1/file.proto\x1a\x31google/devtools/artifactregistry/v1/version.proto\"\x9d\x02\n\x15\x45xportArtifactRequest\x12\x46\n\x0esource_version\x18\x02 \x01(\tB,\xfa\x41)\n\'artifactregistry.googleapis.com/VersionH\x00\x12>\n\nsource_tag\x18\x04 \x01(\tB(\xfa\x41%\n#artifactregistry.googleapis.com/TagH\x00\x12\x12\n\x08gcs_path\x18\x03 \x01(\tH\x01\x12\x46\n\nrepository\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*artifactregistry.googleapis.com/RepositoryB\x11\n\x0fsource_artifactB\r\n\x0b\x64\x65stination\"`\n\x16\x45xportArtifactResponse\x12\x46\n\x10\x65xported_version\x18\x01 \x01(\x0b\x32,.google.devtools.artifactregistry.v1.Version\"\xa9\x02\n\x16\x45xportArtifactMetadata\x12`\n\x0e\x65xported_files\x18\x01 \x03(\x0b\x32H.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile\x1a\xac\x01\n\x0c\x45xportedFile\x12\x19\n\x0fgcs_object_path\x18\x02 \x01(\tH\x00\x12\x37\n\x04name\x18\x01 \x01(\tB)\xfa\x41&\n$artifactregistry.googleapis.com/File\x12\x39\n\x06hashes\x18\x03 \x03(\x0b\x32).google.devtools.artifactregistry.v1.HashB\r\n\x0b\x64\x65stinationB\xf6\x01\n\'com.google.devtools.artifactregistry.v1B\x0b\x45xportProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
|
|
14
|
+
|
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
|
|
17
|
+
begin
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
rescue TypeError
|
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
+
parsed.clear_dependency
|
|
24
|
+
serialized = parsed.class.encode(parsed)
|
|
25
|
+
file = pool.add_serialized_file(serialized)
|
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
+
imports = [
|
|
28
|
+
["google.devtools.artifactregistry.v1.Version", "google/devtools/artifactregistry/v1/version.proto"],
|
|
29
|
+
["google.devtools.artifactregistry.v1.Hash", "google/devtools/artifactregistry/v1/file.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}"
|
|
35
|
+
end
|
|
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."
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
module Google
|
|
42
|
+
module Cloud
|
|
43
|
+
module ArtifactRegistry
|
|
44
|
+
module V1
|
|
45
|
+
ExportArtifactRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ExportArtifactRequest").msgclass
|
|
46
|
+
ExportArtifactResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ExportArtifactResponse").msgclass
|
|
47
|
+
ExportArtifactMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ExportArtifactMetadata").msgclass
|
|
48
|
+
ExportArtifactMetadata::ExportedFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile").msgclass
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -9,6 +9,7 @@ require 'google/api/client_pb'
|
|
|
9
9
|
require 'google/devtools/artifactregistry/v1/apt_artifact_pb'
|
|
10
10
|
require 'google/devtools/artifactregistry/v1/artifact_pb'
|
|
11
11
|
require 'google/devtools/artifactregistry/v1/attachment_pb'
|
|
12
|
+
require 'google/devtools/artifactregistry/v1/export_pb'
|
|
12
13
|
require 'google/devtools/artifactregistry/v1/file_pb'
|
|
13
14
|
require 'google/devtools/artifactregistry/v1/package_pb'
|
|
14
15
|
require 'google/devtools/artifactregistry/v1/repository_pb'
|
|
@@ -24,7 +25,7 @@ require 'google/longrunning/operations_pb'
|
|
|
24
25
|
require 'google/protobuf/empty_pb'
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
descriptor_data = "\n1google/devtools/artifactregistry/v1/service.proto\x12#google.devtools.artifactregistry.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x36google/devtools/artifactregistry/v1/apt_artifact.proto\x1a\x32google/devtools/artifactregistry/v1/artifact.proto\x1a\x34google/devtools/artifactregistry/v1/attachment.proto\x1a.google/devtools/artifactregistry/v1/file.proto\x1a\x31google/devtools/artifactregistry/v1/package.proto\x1a\x34google/devtools/artifactregistry/v1/repository.proto\x1a.google/devtools/artifactregistry/v1/rule.proto\x1a\x32google/devtools/artifactregistry/v1/settings.proto\x1a-google/devtools/artifactregistry/v1/tag.proto\x1a\x31google/devtools/artifactregistry/v1/version.proto\x1a\x36google/devtools/artifactregistry/v1/vpcsc_config.proto\x1a\x36google/devtools/artifactregistry/v1/yum_artifact.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x13\n\x11OperationMetadata2\xeaW\n\x10\x41rtifactRegistry\x12\xe1\x01\n\x10ListDockerImages\x12<.google.devtools.artifactregistry.v1.ListDockerImagesRequest\x1a=.google.devtools.artifactregistry.v1.ListDockerImagesResponse\"P\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*/repositories/*}/dockerImages\x12\xce\x01\n\x0eGetDockerImage\x12:.google.devtools.artifactregistry.v1.GetDockerImageRequest\x1a\x30.google.devtools.artifactregistry.v1.DockerImage\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/repositories/*/dockerImages/*}\x12\xe9\x01\n\x12ListMavenArtifacts\x12>.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest\x1a?.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/mavenArtifacts\x12\xd6\x01\n\x10GetMavenArtifact\x12<.google.devtools.artifactregistry.v1.GetMavenArtifactRequest\x1a\x32.google.devtools.artifactregistry.v1.MavenArtifact\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/mavenArtifacts/*}\x12\xdd\x01\n\x0fListNpmPackages\x12;.google.devtools.artifactregistry.v1.ListNpmPackagesRequest\x1a<.google.devtools.artifactregistry.v1.ListNpmPackagesResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/repositories/*}/npmPackages\x12\xca\x01\n\rGetNpmPackage\x12\x39.google.devtools.artifactregistry.v1.GetNpmPackageRequest\x1a/.google.devtools.artifactregistry.v1.NpmPackage\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/repositories/*/npmPackages/*}\x12\xe9\x01\n\x12ListPythonPackages\x12>.google.devtools.artifactregistry.v1.ListPythonPackagesRequest\x1a?.google.devtools.artifactregistry.v1.ListPythonPackagesResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/pythonPackages\x12\xd6\x01\n\x10GetPythonPackage\x12<.google.devtools.artifactregistry.v1.GetPythonPackageRequest\x1a\x32.google.devtools.artifactregistry.v1.PythonPackage\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/pythonPackages/*}\x12\xcb\x02\n\x12ImportAptArtifacts\x12>.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\xca\x41\x80\x01\n>google.devtools.artifactregistry.v1.ImportAptArtifactsResponse\x12>google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/repositories/*}/aptArtifacts:import:\x01*\x12\xcb\x02\n\x12ImportYumArtifacts\x12>.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\xca\x41\x80\x01\n>google.devtools.artifactregistry.v1.ImportYumArtifactsResponse\x12>google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/repositories/*}/yumArtifacts:import:\x01*\x12\xd2\x01\n\x10ListRepositories\x12<.google.devtools.artifactregistry.v1.ListRepositoriesRequest\x1a=.google.devtools.artifactregistry.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xbc\x01\n\rGetRepository\x12\x39.google.devtools.artifactregistry.v1.GetRepositoryRequest\x1a/.google.devtools.artifactregistry.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xc2\x02\n\x10\x43reateRepository\x12<.google.devtools.artifactregistry.v1.CreateRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\xd0\x01\xca\x41g\n.google.devtools.artifactregistry.v1.Repository\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xeb\x01\n\x10UpdateRepository\x12<.google.devtools.artifactregistry.v1.UpdateRepositoryRequest\x1a/.google.devtools.artifactregistry.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x82\x02\n\x10\x44\x65leteRepository\x12<.google.devtools.artifactregistry.v1.DeleteRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xd1\x01\n\x0cListPackages\x12\x38.google.devtools.artifactregistry.v1.ListPackagesRequest\x1a\x39.google.devtools.artifactregistry.v1.ListPackagesResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/repositories/*}/packages\x12\xbe\x01\n\nGetPackage\x12\x36.google.devtools.artifactregistry.v1.GetPackageRequest\x1a,.google.devtools.artifactregistry.v1.Package\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/repositories/*/packages/*}\x12\x87\x02\n\rDeletePackage\x12\x39.google.devtools.artifactregistry.v1.DeletePackageRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/repositories/*/packages/*}\x12\xdc\x01\n\x0cListVersions\x12\x38.google.devtools.artifactregistry.v1.ListVersionsRequest\x1a\x39.google.devtools.artifactregistry.v1.ListVersionsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions\x12\xc9\x01\n\nGetVersion\x12\x36.google.devtools.artifactregistry.v1.GetVersionRequest\x1a,.google.devtools.artifactregistry.v1.Version\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}\x12\x92\x02\n\rDeleteVersion\x12\x39.google.devtools.artifactregistry.v1.DeleteVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa6\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}\x12\xbf\x02\n\x13\x42\x61tchDeleteVersions\x12?.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest\x1a\x1d.google.longrunning.Operation\"\xc7\x01\xca\x41X\n\x15google.protobuf.Empty\x12?google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata\xda\x41\x0cparent,names\x82\xd3\xe4\x93\x02W\"R/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions:batchDelete:\x01*\x12\xef\x01\n\rUpdateVersion\x12\x39.google.devtools.artifactregistry.v1.UpdateVersionRequest\x1a,.google.devtools.artifactregistry.v1.Version\"u\xda\x41\x13version,update_mask\x82\xd3\xe4\x93\x02Y2N/v1/{version.name=projects/*/locations/*/repositories/*/packages/*/versions/*}:\x07version\x12\xc5\x01\n\tListFiles\x12\x35.google.devtools.artifactregistry.v1.ListFilesRequest\x1a\x36.google.devtools.artifactregistry.v1.ListFilesResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/repositories/*}/files\x12\xb3\x01\n\x07GetFile\x12\x33.google.devtools.artifactregistry.v1.GetFileRequest\x1a).google.devtools.artifactregistry.v1.File\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*/files/**}\x12\xfe\x01\n\nDeleteFile\x12\x36.google.devtools.artifactregistry.v1.DeleteFileRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/repositories/*/files/*}\x12\xcf\x01\n\nUpdateFile\x12\x36.google.devtools.artifactregistry.v1.UpdateFileRequest\x1a).google.devtools.artifactregistry.v1.File\"^\xda\x41\x10\x66ile,update_mask\x82\xd3\xe4\x93\x02\x45\x32=/v1/{file.name=projects/*/locations/*/repositories/*/files/*}:\x04\x66ile\x12\xcc\x01\n\x08ListTags\x12\x34.google.devtools.artifactregistry.v1.ListTagsRequest\x1a\x35.google.devtools.artifactregistry.v1.ListTagsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags\x12\xb9\x01\n\x06GetTag\x12\x32.google.devtools.artifactregistry.v1.GetTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}\x12\xd1\x01\n\tCreateTag\x12\x35.google.devtools.artifactregistry.v1.CreateTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"c\xda\x41\x11parent,tag,tag_id\x82\xd3\xe4\x93\x02I\"B/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags:\x03tag\x12\xd3\x01\n\tUpdateTag\x12\x35.google.devtools.artifactregistry.v1.UpdateTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"e\xda\x41\x0ftag,update_mask\x82\xd3\xe4\x93\x02M2F/v1/{tag.name=projects/*/locations/*/repositories/*/packages/*/tags/*}:\x03tag\x12\xad\x01\n\tDeleteTag\x12\x35.google.devtools.artifactregistry.v1.DeleteTagRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}\x12\xcd\x01\n\nCreateRule\x12\x36.google.devtools.artifactregistry.v1.CreateRuleRequest\x1a).google.devtools.artifactregistry.v1.Rule\"\\\xda\x41\x13parent,rule,rule_id\x82\xd3\xe4\x93\x02@\"8/v1/{parent=projects/*/locations/*/repositories/*}/rules:\x04rule\x12\xc5\x01\n\tListRules\x12\x35.google.devtools.artifactregistry.v1.ListRulesRequest\x1a\x36.google.devtools.artifactregistry.v1.ListRulesResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/repositories/*}/rules\x12\xb2\x01\n\x07GetRule\x12\x33.google.devtools.artifactregistry.v1.GetRuleRequest\x1a).google.devtools.artifactregistry.v1.Rule\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/repositories/*/rules/*}\x12\xcf\x01\n\nUpdateRule\x12\x36.google.devtools.artifactregistry.v1.UpdateRuleRequest\x1a).google.devtools.artifactregistry.v1.Rule\"^\xda\x41\x10rule,update_mask\x82\xd3\xe4\x93\x02\x45\x32=/v1/{rule.name=projects/*/locations/*/repositories/*/rules/*}:\x04rule\x12\xa5\x01\n\nDeleteRule\x12\x36.google.devtools.artifactregistry.v1.DeleteRuleRequest\x1a\x16.google.protobuf.Empty\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/repositories/*/rules/*}\x12\x97\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy:\x01*\x12\x94\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy\x12\xbd\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"R\x82\xd3\xe4\x93\x02L\"G/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions:\x01*\x12\xc0\x01\n\x12GetProjectSettings\x12>.google.devtools.artifactregistry.v1.GetProjectSettingsRequest\x1a\x34.google.devtools.artifactregistry.v1.ProjectSettings\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=projects/*/projectSettings}\x12\x81\x02\n\x15UpdateProjectSettings\x12\x41.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest\x1a\x34.google.devtools.artifactregistry.v1.ProjectSettings\"o\xda\x41\x1cproject_settings,update_mask\x82\xd3\xe4\x93\x02J26/v1/{project_settings.name=projects/*/projectSettings}:\x10project_settings\x12\xbc\x01\n\x0eGetVPCSCConfig\x12:.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest\x1a\x30.google.devtools.artifactregistry.v1.VPCSCConfig\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/vpcscConfig}\x12\xf1\x01\n\x11UpdateVPCSCConfig\x12=.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest\x1a\x30.google.devtools.artifactregistry.v1.VPCSCConfig\"k\xda\x41\x18vpcsc_config,update_mask\x82\xd3\xe4\x93\x02J2:/v1/{vpcsc_config.name=projects/*/locations/*/vpcscConfig}:\x0cvpcsc_config\x12\xe4\x01\n\rUpdatePackage\x12\x39.google.devtools.artifactregistry.v1.UpdatePackageRequest\x1a,.google.devtools.artifactregistry.v1.Package\"j\xda\x41\x13package,update_mask\x82\xd3\xe4\x93\x02N2C/v1/{package.name=projects/*/locations/*/repositories/*/packages/*}:\x07package\x12\xdd\x01\n\x0fListAttachments\x12;.google.devtools.artifactregistry.v1.ListAttachmentsRequest\x1a<.google.devtools.artifactregistry.v1.ListAttachmentsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/repositories/*}/attachments\x12\xca\x01\n\rGetAttachment\x12\x39.google.devtools.artifactregistry.v1.GetAttachmentRequest\x1a/.google.devtools.artifactregistry.v1.Attachment\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/repositories/*/attachments/*}\x12\xd0\x02\n\x10\x43reateAttachment\x12<.google.devtools.artifactregistry.v1.CreateAttachmentRequest\x1a\x1d.google.longrunning.Operation\"\xde\x01\xca\x41g\n.google.devtools.artifactregistry.v1.Attachment\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x1fparent,attachment,attachment_id\x82\xd3\xe4\x93\x02L\">/v1/{parent=projects/*/locations/*/repositories/*}/attachments:\nattachment\x12\x90\x02\n\x10\x44\x65leteAttachment\x12<.google.devtools.artifactregistry.v1.DeleteAttachmentRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/repositories/*/attachments/*}\x1a\x8c\x01\xca\x41\x1f\x61rtifactregistry.googleapis.com\xd2\x41ghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xf7\x01\n\'com.google.devtools.artifactregistry.v1B\x0cServiceProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
|
|
28
|
+
descriptor_data = "\n1google/devtools/artifactregistry/v1/service.proto\x12#google.devtools.artifactregistry.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x36google/devtools/artifactregistry/v1/apt_artifact.proto\x1a\x32google/devtools/artifactregistry/v1/artifact.proto\x1a\x34google/devtools/artifactregistry/v1/attachment.proto\x1a\x30google/devtools/artifactregistry/v1/export.proto\x1a.google/devtools/artifactregistry/v1/file.proto\x1a\x31google/devtools/artifactregistry/v1/package.proto\x1a\x34google/devtools/artifactregistry/v1/repository.proto\x1a.google/devtools/artifactregistry/v1/rule.proto\x1a\x32google/devtools/artifactregistry/v1/settings.proto\x1a-google/devtools/artifactregistry/v1/tag.proto\x1a\x31google/devtools/artifactregistry/v1/version.proto\x1a\x36google/devtools/artifactregistry/v1/vpcsc_config.proto\x1a\x36google/devtools/artifactregistry/v1/yum_artifact.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x13\n\x11OperationMetadata2\xa6Z\n\x10\x41rtifactRegistry\x12\xe1\x01\n\x10ListDockerImages\x12<.google.devtools.artifactregistry.v1.ListDockerImagesRequest\x1a=.google.devtools.artifactregistry.v1.ListDockerImagesResponse\"P\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*/repositories/*}/dockerImages\x12\xce\x01\n\x0eGetDockerImage\x12:.google.devtools.artifactregistry.v1.GetDockerImageRequest\x1a\x30.google.devtools.artifactregistry.v1.DockerImage\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/repositories/*/dockerImages/*}\x12\xe9\x01\n\x12ListMavenArtifacts\x12>.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest\x1a?.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/mavenArtifacts\x12\xd6\x01\n\x10GetMavenArtifact\x12<.google.devtools.artifactregistry.v1.GetMavenArtifactRequest\x1a\x32.google.devtools.artifactregistry.v1.MavenArtifact\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/mavenArtifacts/*}\x12\xdd\x01\n\x0fListNpmPackages\x12;.google.devtools.artifactregistry.v1.ListNpmPackagesRequest\x1a<.google.devtools.artifactregistry.v1.ListNpmPackagesResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/repositories/*}/npmPackages\x12\xca\x01\n\rGetNpmPackage\x12\x39.google.devtools.artifactregistry.v1.GetNpmPackageRequest\x1a/.google.devtools.artifactregistry.v1.NpmPackage\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/repositories/*/npmPackages/*}\x12\xe9\x01\n\x12ListPythonPackages\x12>.google.devtools.artifactregistry.v1.ListPythonPackagesRequest\x1a?.google.devtools.artifactregistry.v1.ListPythonPackagesResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/pythonPackages\x12\xd6\x01\n\x10GetPythonPackage\x12<.google.devtools.artifactregistry.v1.GetPythonPackageRequest\x1a\x32.google.devtools.artifactregistry.v1.PythonPackage\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/pythonPackages/*}\x12\xcb\x02\n\x12ImportAptArtifacts\x12>.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\xca\x41\x80\x01\n>google.devtools.artifactregistry.v1.ImportAptArtifactsResponse\x12>google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/repositories/*}/aptArtifacts:import:\x01*\x12\xcb\x02\n\x12ImportYumArtifacts\x12>.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x01\xca\x41\x80\x01\n>google.devtools.artifactregistry.v1.ImportYumArtifactsResponse\x12>google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/repositories/*}/yumArtifacts:import:\x01*\x12\xd2\x01\n\x10ListRepositories\x12<.google.devtools.artifactregistry.v1.ListRepositoriesRequest\x1a=.google.devtools.artifactregistry.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xbc\x01\n\rGetRepository\x12\x39.google.devtools.artifactregistry.v1.GetRepositoryRequest\x1a/.google.devtools.artifactregistry.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xc2\x02\n\x10\x43reateRepository\x12<.google.devtools.artifactregistry.v1.CreateRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\xd0\x01\xca\x41g\n.google.devtools.artifactregistry.v1.Repository\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xeb\x01\n\x10UpdateRepository\x12<.google.devtools.artifactregistry.v1.UpdateRepositoryRequest\x1a/.google.devtools.artifactregistry.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x82\x02\n\x10\x44\x65leteRepository\x12<.google.devtools.artifactregistry.v1.DeleteRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xd1\x01\n\x0cListPackages\x12\x38.google.devtools.artifactregistry.v1.ListPackagesRequest\x1a\x39.google.devtools.artifactregistry.v1.ListPackagesResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/repositories/*}/packages\x12\xbe\x01\n\nGetPackage\x12\x36.google.devtools.artifactregistry.v1.GetPackageRequest\x1a,.google.devtools.artifactregistry.v1.Package\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/repositories/*/packages/*}\x12\x87\x02\n\rDeletePackage\x12\x39.google.devtools.artifactregistry.v1.DeletePackageRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/repositories/*/packages/*}\x12\xdc\x01\n\x0cListVersions\x12\x38.google.devtools.artifactregistry.v1.ListVersionsRequest\x1a\x39.google.devtools.artifactregistry.v1.ListVersionsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions\x12\xc9\x01\n\nGetVersion\x12\x36.google.devtools.artifactregistry.v1.GetVersionRequest\x1a,.google.devtools.artifactregistry.v1.Version\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}\x12\x92\x02\n\rDeleteVersion\x12\x39.google.devtools.artifactregistry.v1.DeleteVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa6\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}\x12\xbf\x02\n\x13\x42\x61tchDeleteVersions\x12?.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest\x1a\x1d.google.longrunning.Operation\"\xc7\x01\xca\x41X\n\x15google.protobuf.Empty\x12?google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata\xda\x41\x0cparent,names\x82\xd3\xe4\x93\x02W\"R/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions:batchDelete:\x01*\x12\xef\x01\n\rUpdateVersion\x12\x39.google.devtools.artifactregistry.v1.UpdateVersionRequest\x1a,.google.devtools.artifactregistry.v1.Version\"u\xda\x41\x13version,update_mask\x82\xd3\xe4\x93\x02Y2N/v1/{version.name=projects/*/locations/*/repositories/*/packages/*/versions/*}:\x07version\x12\xc5\x01\n\tListFiles\x12\x35.google.devtools.artifactregistry.v1.ListFilesRequest\x1a\x36.google.devtools.artifactregistry.v1.ListFilesResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/repositories/*}/files\x12\xb3\x01\n\x07GetFile\x12\x33.google.devtools.artifactregistry.v1.GetFileRequest\x1a).google.devtools.artifactregistry.v1.File\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*/files/**}\x12\xfe\x01\n\nDeleteFile\x12\x36.google.devtools.artifactregistry.v1.DeleteFileRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/repositories/*/files/*}\x12\xcf\x01\n\nUpdateFile\x12\x36.google.devtools.artifactregistry.v1.UpdateFileRequest\x1a).google.devtools.artifactregistry.v1.File\"^\xda\x41\x10\x66ile,update_mask\x82\xd3\xe4\x93\x02\x45\x32=/v1/{file.name=projects/*/locations/*/repositories/*/files/*}:\x04\x66ile\x12\xcc\x01\n\x08ListTags\x12\x34.google.devtools.artifactregistry.v1.ListTagsRequest\x1a\x35.google.devtools.artifactregistry.v1.ListTagsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags\x12\xb9\x01\n\x06GetTag\x12\x32.google.devtools.artifactregistry.v1.GetTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}\x12\xd1\x01\n\tCreateTag\x12\x35.google.devtools.artifactregistry.v1.CreateTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"c\xda\x41\x11parent,tag,tag_id\x82\xd3\xe4\x93\x02I\"B/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags:\x03tag\x12\xd3\x01\n\tUpdateTag\x12\x35.google.devtools.artifactregistry.v1.UpdateTagRequest\x1a(.google.devtools.artifactregistry.v1.Tag\"e\xda\x41\x0ftag,update_mask\x82\xd3\xe4\x93\x02M2F/v1/{tag.name=projects/*/locations/*/repositories/*/packages/*/tags/*}:\x03tag\x12\xad\x01\n\tDeleteTag\x12\x35.google.devtools.artifactregistry.v1.DeleteTagRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}\x12\xcd\x01\n\nCreateRule\x12\x36.google.devtools.artifactregistry.v1.CreateRuleRequest\x1a).google.devtools.artifactregistry.v1.Rule\"\\\xda\x41\x13parent,rule,rule_id\x82\xd3\xe4\x93\x02@\"8/v1/{parent=projects/*/locations/*/repositories/*}/rules:\x04rule\x12\xc5\x01\n\tListRules\x12\x35.google.devtools.artifactregistry.v1.ListRulesRequest\x1a\x36.google.devtools.artifactregistry.v1.ListRulesResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/repositories/*}/rules\x12\xb2\x01\n\x07GetRule\x12\x33.google.devtools.artifactregistry.v1.GetRuleRequest\x1a).google.devtools.artifactregistry.v1.Rule\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/repositories/*/rules/*}\x12\xcf\x01\n\nUpdateRule\x12\x36.google.devtools.artifactregistry.v1.UpdateRuleRequest\x1a).google.devtools.artifactregistry.v1.Rule\"^\xda\x41\x10rule,update_mask\x82\xd3\xe4\x93\x02\x45\x32=/v1/{rule.name=projects/*/locations/*/repositories/*/rules/*}:\x04rule\x12\xa5\x01\n\nDeleteRule\x12\x36.google.devtools.artifactregistry.v1.DeleteRuleRequest\x1a\x16.google.protobuf.Empty\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/repositories/*/rules/*}\x12\x97\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy:\x01*\x12\x94\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy\x12\xbd\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"R\x82\xd3\xe4\x93\x02L\"G/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions:\x01*\x12\xc0\x01\n\x12GetProjectSettings\x12>.google.devtools.artifactregistry.v1.GetProjectSettingsRequest\x1a\x34.google.devtools.artifactregistry.v1.ProjectSettings\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=projects/*/projectSettings}\x12\x81\x02\n\x15UpdateProjectSettings\x12\x41.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest\x1a\x34.google.devtools.artifactregistry.v1.ProjectSettings\"o\xda\x41\x1cproject_settings,update_mask\x82\xd3\xe4\x93\x02J26/v1/{project_settings.name=projects/*/projectSettings}:\x10project_settings\x12\xbc\x01\n\x0eGetVPCSCConfig\x12:.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest\x1a\x30.google.devtools.artifactregistry.v1.VPCSCConfig\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/vpcscConfig}\x12\xf1\x01\n\x11UpdateVPCSCConfig\x12=.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest\x1a\x30.google.devtools.artifactregistry.v1.VPCSCConfig\"k\xda\x41\x18vpcsc_config,update_mask\x82\xd3\xe4\x93\x02J2:/v1/{vpcsc_config.name=projects/*/locations/*/vpcscConfig}:\x0cvpcsc_config\x12\xe4\x01\n\rUpdatePackage\x12\x39.google.devtools.artifactregistry.v1.UpdatePackageRequest\x1a,.google.devtools.artifactregistry.v1.Package\"j\xda\x41\x13package,update_mask\x82\xd3\xe4\x93\x02N2C/v1/{package.name=projects/*/locations/*/repositories/*/packages/*}:\x07package\x12\xdd\x01\n\x0fListAttachments\x12;.google.devtools.artifactregistry.v1.ListAttachmentsRequest\x1a<.google.devtools.artifactregistry.v1.ListAttachmentsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/repositories/*}/attachments\x12\xca\x01\n\rGetAttachment\x12\x39.google.devtools.artifactregistry.v1.GetAttachmentRequest\x1a/.google.devtools.artifactregistry.v1.Attachment\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/repositories/*/attachments/*}\x12\xd0\x02\n\x10\x43reateAttachment\x12<.google.devtools.artifactregistry.v1.CreateAttachmentRequest\x1a\x1d.google.longrunning.Operation\"\xde\x01\xca\x41g\n.google.devtools.artifactregistry.v1.Attachment\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x1fparent,attachment,attachment_id\x82\xd3\xe4\x93\x02L\">/v1/{parent=projects/*/locations/*/repositories/*}/attachments:\nattachment\x12\x90\x02\n\x10\x44\x65leteAttachment\x12<.google.devtools.artifactregistry.v1.DeleteAttachmentRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\xca\x41N\n\x15google.protobuf.Empty\x12\x35google.devtools.artifactregistry.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/repositories/*/attachments/*}\x12\xb9\x02\n\x0e\x45xportArtifact\x12:.google.devtools.artifactregistry.v1.ExportArtifactRequest\x1a\x1d.google.longrunning.Operation\"\xcb\x01\xca\x41x\n:google.devtools.artifactregistry.v1.ExportArtifactResponse\x12:google.devtools.artifactregistry.v1.ExportArtifactMetadata\x82\xd3\xe4\x93\x02J\"E/v1/{repository=projects/*/locations/*/repositories/*}:exportArtifact:\x01*\x1a\x8c\x01\xca\x41\x1f\x61rtifactregistry.googleapis.com\xd2\x41ghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xf7\x01\n\'com.google.devtools.artifactregistry.v1B\x0cServiceProtoP\x01ZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\xaa\x02 Google.Cloud.ArtifactRegistry.V1\xca\x02 Google\\Cloud\\ArtifactRegistry\\V1\xea\x02#Google::Cloud::ArtifactRegistry::V1b\x06proto3"
|
|
28
29
|
|
|
29
30
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
30
31
|
|
|
@@ -160,6 +160,8 @@ module Google
|
|
|
160
160
|
# finish once the attachments has been deleted. It will not have any
|
|
161
161
|
# Operation metadata and will return a `google.protobuf.Empty` response.
|
|
162
162
|
rpc :DeleteAttachment, ::Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest, ::Google::Longrunning::Operation
|
|
163
|
+
# Exports an artifact.
|
|
164
|
+
rpc :ExportArtifact, ::Google::Cloud::ArtifactRegistry::V1::ExportArtifactRequest, ::Google::Longrunning::Operation
|
|
163
165
|
end
|
|
164
166
|
|
|
165
167
|
Stub = Service.rpc_stub_class
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2025 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module ArtifactRegistry
|
|
23
|
+
module V1
|
|
24
|
+
# The request for exporting an artifact to a destination.
|
|
25
|
+
# @!attribute [rw] source_version
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# The artifact version to export.
|
|
28
|
+
# Format:
|
|
29
|
+
# projects/\\{project}/locations/\\{location}/repositories/\\{repository}/packages/\\{package}/versions/\\{version}
|
|
30
|
+
#
|
|
31
|
+
# Note: The following fields are mutually exclusive: `source_version`, `source_tag`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
32
|
+
# @!attribute [rw] source_tag
|
|
33
|
+
# @return [::String]
|
|
34
|
+
# The artifact tag to export.
|
|
35
|
+
# Format:projects/\\{project}/locations/\\{location}/repositories/\\{repository}/packages/\\{package}/tags/\\{tag}
|
|
36
|
+
#
|
|
37
|
+
# Note: The following fields are mutually exclusive: `source_tag`, `source_version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
38
|
+
# @!attribute [rw] gcs_path
|
|
39
|
+
# @return [::String]
|
|
40
|
+
# The Cloud Storage path to export the artifact to. Should start with the
|
|
41
|
+
# bucket name, and optionally have a directory path. Examples:
|
|
42
|
+
# `dst_bucket`, `dst_bucket/sub_dir`.
|
|
43
|
+
# Existing objects with the same path will be overwritten.
|
|
44
|
+
# @!attribute [rw] repository
|
|
45
|
+
# @return [::String]
|
|
46
|
+
# Required. The repository of the artifact to export.
|
|
47
|
+
# Format: projects/\\{project}/locations/\\{location}/repositories/\\{repository}
|
|
48
|
+
class ExportArtifactRequest
|
|
49
|
+
include ::Google::Protobuf::MessageExts
|
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# The response for exporting an artifact to a destination.
|
|
54
|
+
# @!attribute [rw] exported_version
|
|
55
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Version]
|
|
56
|
+
# The exported version. Should be the same as the request version with
|
|
57
|
+
# fingerprint resource name.
|
|
58
|
+
class ExportArtifactResponse
|
|
59
|
+
include ::Google::Protobuf::MessageExts
|
|
60
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# The LRO metadata for exporting an artifact.
|
|
64
|
+
# @!attribute [rw] exported_files
|
|
65
|
+
# @return [::Array<::Google::Cloud::ArtifactRegistry::V1::ExportArtifactMetadata::ExportedFile>]
|
|
66
|
+
# The exported artifact files.
|
|
67
|
+
class ExportArtifactMetadata
|
|
68
|
+
include ::Google::Protobuf::MessageExts
|
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
70
|
+
|
|
71
|
+
# The exported artifact file.
|
|
72
|
+
# @!attribute [rw] gcs_object_path
|
|
73
|
+
# @return [::String]
|
|
74
|
+
# Cloud Storage Object path of the exported file. Examples:
|
|
75
|
+
# `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
|
|
76
|
+
# @!attribute [rw] name
|
|
77
|
+
# @return [::String]
|
|
78
|
+
# Name of the exported artifact file.
|
|
79
|
+
# Format: `projects/p1/locations/us/repositories/repo1/files/file1`
|
|
80
|
+
# @!attribute [rw] hashes
|
|
81
|
+
# @return [::Array<::Google::Cloud::ArtifactRegistry::V1::Hash>]
|
|
82
|
+
# The hashes of the file content.
|
|
83
|
+
class ExportedFile
|
|
84
|
+
include ::Google::Protobuf::MessageExts
|
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-artifact_registry-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -96,6 +96,7 @@ files:
|
|
|
96
96
|
- lib/google/devtools/artifactregistry/v1/apt_artifact_pb.rb
|
|
97
97
|
- lib/google/devtools/artifactregistry/v1/artifact_pb.rb
|
|
98
98
|
- lib/google/devtools/artifactregistry/v1/attachment_pb.rb
|
|
99
|
+
- lib/google/devtools/artifactregistry/v1/export_pb.rb
|
|
99
100
|
- lib/google/devtools/artifactregistry/v1/file_pb.rb
|
|
100
101
|
- lib/google/devtools/artifactregistry/v1/generic_pb.rb
|
|
101
102
|
- lib/google/devtools/artifactregistry/v1/go_pb.rb
|
|
@@ -118,6 +119,7 @@ files:
|
|
|
118
119
|
- proto_docs/google/devtools/artifactregistry/v1/apt_artifact.rb
|
|
119
120
|
- proto_docs/google/devtools/artifactregistry/v1/artifact.rb
|
|
120
121
|
- proto_docs/google/devtools/artifactregistry/v1/attachment.rb
|
|
122
|
+
- proto_docs/google/devtools/artifactregistry/v1/export.rb
|
|
121
123
|
- proto_docs/google/devtools/artifactregistry/v1/file.rb
|
|
122
124
|
- proto_docs/google/devtools/artifactregistry/v1/generic.rb
|
|
123
125
|
- proto_docs/google/devtools/artifactregistry/v1/go.rb
|