google-cloud-artifact_registry-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +544 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/credentials.rb +52 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +50 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry.rb +61 -0
- data/lib/google/cloud/artifact_registry/v1/version.rb +28 -0
- data/lib/google/cloud/artifact_registry/v1.rb +38 -0
- data/lib/google/devtools/artifactregistry/v1/artifact_pb.rb +43 -0
- data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +57 -0
- data/lib/google/devtools/artifactregistry/v1/service_pb.rb +23 -0
- data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +61 -0
- data/lib/google-cloud-artifact_registry-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/devtools/artifactregistry/v1/artifact.rb +106 -0
- data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +131 -0
- data/proto_docs/google/iam/v1/policy.rb +248 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +235 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/artifact_registry/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/artifact_registry/v1/artifact_registry/credentials"
|
26
|
+
require "google/cloud/artifact_registry/v1/artifact_registry/paths"
|
27
|
+
require "google/cloud/artifact_registry/v1/artifact_registry/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module ArtifactRegistry
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# The Artifact Registry API service.
|
35
|
+
#
|
36
|
+
# Artifact Registry is an artifact management system for storing artifacts
|
37
|
+
# from different package management systems.
|
38
|
+
#
|
39
|
+
# The resources managed by this API are:
|
40
|
+
#
|
41
|
+
# * Repositories, which group packages and their data.
|
42
|
+
# * Packages, which group versions and their tags.
|
43
|
+
# * Versions, which are specific forms of a package.
|
44
|
+
# * Tags, which represent alternative names for versions.
|
45
|
+
# * Files, which contain content and are optionally associated with a Package
|
46
|
+
# or Version.
|
47
|
+
#
|
48
|
+
# To load this service and instantiate a client:
|
49
|
+
#
|
50
|
+
# require "google/cloud/artifact_registry/v1/artifact_registry"
|
51
|
+
# client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
|
52
|
+
#
|
53
|
+
module ArtifactRegistry
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
helper_path = ::File.join __dir__, "artifact_registry", "helpers.rb"
|
61
|
+
require "google/cloud/artifact_registry/v1/artifact_registry/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/artifact_registry/v1/artifact_registry"
|
20
|
+
require "google/cloud/artifact_registry/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ArtifactRegistry
|
25
|
+
##
|
26
|
+
# To load this package, including all its services, and instantiate a client:
|
27
|
+
#
|
28
|
+
# require "google/cloud/artifact_registry/v1"
|
29
|
+
# client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
|
30
|
+
#
|
31
|
+
module V1
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
38
|
+
require "google/cloud/artifact_registry/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/artifactregistry/v1/artifact.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/api/annotations_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/devtools/artifactregistry/v1/artifact.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.devtools.artifactregistry.v1.DockerImage" do
|
13
|
+
optional :name, :string, 1
|
14
|
+
optional :uri, :string, 2
|
15
|
+
repeated :tags, :string, 3
|
16
|
+
optional :image_size_bytes, :int64, 4
|
17
|
+
optional :upload_time, :message, 5, "google.protobuf.Timestamp"
|
18
|
+
optional :media_type, :string, 6
|
19
|
+
optional :build_time, :message, 7, "google.protobuf.Timestamp"
|
20
|
+
end
|
21
|
+
add_message "google.devtools.artifactregistry.v1.ListDockerImagesRequest" do
|
22
|
+
optional :parent, :string, 1
|
23
|
+
optional :page_size, :int32, 2
|
24
|
+
optional :page_token, :string, 3
|
25
|
+
end
|
26
|
+
add_message "google.devtools.artifactregistry.v1.ListDockerImagesResponse" do
|
27
|
+
repeated :docker_images, :message, 1, "google.devtools.artifactregistry.v1.DockerImage"
|
28
|
+
optional :next_page_token, :string, 2
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
module Google
|
34
|
+
module Cloud
|
35
|
+
module ArtifactRegistry
|
36
|
+
module V1
|
37
|
+
DockerImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.DockerImage").msgclass
|
38
|
+
ListDockerImagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListDockerImagesRequest").msgclass
|
39
|
+
ListDockerImagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListDockerImagesResponse").msgclass
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/artifactregistry/v1/repository.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/api/annotations_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/devtools/artifactregistry/v1/repository.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.devtools.artifactregistry.v1.Repository" do
|
13
|
+
optional :name, :string, 1
|
14
|
+
optional :format, :enum, 2, "google.devtools.artifactregistry.v1.Repository.Format"
|
15
|
+
optional :description, :string, 3
|
16
|
+
map :labels, :string, :string, 4
|
17
|
+
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
18
|
+
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
19
|
+
optional :kms_key_name, :string, 8
|
20
|
+
end
|
21
|
+
add_enum "google.devtools.artifactregistry.v1.Repository.Format" do
|
22
|
+
value :FORMAT_UNSPECIFIED, 0
|
23
|
+
value :DOCKER, 1
|
24
|
+
value :MAVEN, 2
|
25
|
+
value :NPM, 3
|
26
|
+
value :APT, 5
|
27
|
+
value :YUM, 6
|
28
|
+
value :PYTHON, 8
|
29
|
+
end
|
30
|
+
add_message "google.devtools.artifactregistry.v1.ListRepositoriesRequest" do
|
31
|
+
optional :parent, :string, 1
|
32
|
+
optional :page_size, :int32, 2
|
33
|
+
optional :page_token, :string, 3
|
34
|
+
end
|
35
|
+
add_message "google.devtools.artifactregistry.v1.ListRepositoriesResponse" do
|
36
|
+
repeated :repositories, :message, 1, "google.devtools.artifactregistry.v1.Repository"
|
37
|
+
optional :next_page_token, :string, 2
|
38
|
+
end
|
39
|
+
add_message "google.devtools.artifactregistry.v1.GetRepositoryRequest" do
|
40
|
+
optional :name, :string, 1
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
module Google
|
46
|
+
module Cloud
|
47
|
+
module ArtifactRegistry
|
48
|
+
module V1
|
49
|
+
Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.Repository").msgclass
|
50
|
+
Repository::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.Repository.Format").enummodule
|
51
|
+
ListRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListRepositoriesRequest").msgclass
|
52
|
+
ListRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListRepositoriesResponse").msgclass
|
53
|
+
GetRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.GetRepositoryRequest").msgclass
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/artifactregistry/v1/service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/devtools/artifactregistry/v1/artifact_pb'
|
9
|
+
require 'google/devtools/artifactregistry/v1/repository_pb'
|
10
|
+
require 'google/iam/v1/policy_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/devtools/artifactregistry/v1/service.proto", :syntax => :proto3) do
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Cloud
|
18
|
+
module ArtifactRegistry
|
19
|
+
module V1
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/devtools/artifactregistry/v1/service.proto for package 'Google.Cloud.ArtifactRegistry.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/devtools/artifactregistry/v1/service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ArtifactRegistry
|
25
|
+
module V1
|
26
|
+
module ArtifactRegistry
|
27
|
+
# The Artifact Registry API service.
|
28
|
+
#
|
29
|
+
# Artifact Registry is an artifact management system for storing artifacts
|
30
|
+
# from different package management systems.
|
31
|
+
#
|
32
|
+
# The resources managed by this API are:
|
33
|
+
#
|
34
|
+
# * Repositories, which group packages and their data.
|
35
|
+
# * Packages, which group versions and their tags.
|
36
|
+
# * Versions, which are specific forms of a package.
|
37
|
+
# * Tags, which represent alternative names for versions.
|
38
|
+
# * Files, which contain content and are optionally associated with a Package
|
39
|
+
# or Version.
|
40
|
+
class Service
|
41
|
+
|
42
|
+
include ::GRPC::GenericService
|
43
|
+
|
44
|
+
self.marshal_class_method = :encode
|
45
|
+
self.unmarshal_class_method = :decode
|
46
|
+
self.service_name = 'google.devtools.artifactregistry.v1.ArtifactRegistry'
|
47
|
+
|
48
|
+
# Lists docker images.
|
49
|
+
rpc :ListDockerImages, ::Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest, ::Google::Cloud::ArtifactRegistry::V1::ListDockerImagesResponse
|
50
|
+
# Lists repositories.
|
51
|
+
rpc :ListRepositories, ::Google::Cloud::ArtifactRegistry::V1::ListRepositoriesRequest, ::Google::Cloud::ArtifactRegistry::V1::ListRepositoriesResponse
|
52
|
+
# Gets a repository.
|
53
|
+
rpc :GetRepository, ::Google::Cloud::ArtifactRegistry::V1::GetRepositoryRequest, ::Google::Cloud::ArtifactRegistry::V1::Repository
|
54
|
+
end
|
55
|
+
|
56
|
+
Stub = Service.rpc_stub_class
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/artifact_registry/v1"
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|