google-cloud-artifact_registry-v1 0.2.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -6
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +2494 -91
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +770 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +58 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry.rb +1 -0
- data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
- data/lib/google/cloud/artifact_registry/v1.rb +2 -0
- data/lib/google/devtools/artifactregistry/v1/apt_artifact_pb.rb +64 -0
- data/lib/google/devtools/artifactregistry/v1/artifact_pb.rb +6 -2
- data/lib/google/devtools/artifactregistry/v1/file_pb.rb +58 -0
- data/lib/google/devtools/artifactregistry/v1/package_pb.rb +48 -0
- data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +32 -2
- data/lib/google/devtools/artifactregistry/v1/service_pb.rb +15 -1
- data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +59 -0
- data/lib/google/devtools/artifactregistry/v1/settings_pb.rb +43 -0
- data/lib/google/devtools/artifactregistry/v1/tag_pb.rb +57 -0
- data/lib/google/devtools/artifactregistry/v1/version_pb.rb +62 -0
- data/lib/google/devtools/artifactregistry/v1/yum_artifact_pb.rb +62 -0
- data/proto_docs/google/devtools/artifactregistry/v1/apt_artifact.rb +118 -0
- data/proto_docs/google/devtools/artifactregistry/v1/artifact.rb +9 -0
- data/proto_docs/google/devtools/artifactregistry/v1/file.rb +131 -0
- data/proto_docs/google/devtools/artifactregistry/v1/package.rb +93 -0
- data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +73 -2
- data/proto_docs/google/devtools/artifactregistry/v1/service.rb +32 -0
- data/proto_docs/google/devtools/artifactregistry/v1/settings.rb +80 -0
- data/proto_docs/google/devtools/artifactregistry/v1/tag.rb +132 -0
- data/proto_docs/google/devtools/artifactregistry/v1/version.rb +132 -0
- data/proto_docs/google/devtools/artifactregistry/v1/yum_artifact.rb +110 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +208 -38
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +41 -22
@@ -0,0 +1,62 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/artifactregistry/v1/yum_artifact.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/rpc/status_pb'
|
9
|
+
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/devtools/artifactregistry/v1/yum_artifact.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.devtools.artifactregistry.v1.YumArtifact" do
|
13
|
+
optional :name, :string, 1
|
14
|
+
optional :package_name, :string, 2
|
15
|
+
optional :package_type, :enum, 3, "google.devtools.artifactregistry.v1.YumArtifact.PackageType"
|
16
|
+
optional :architecture, :string, 4
|
17
|
+
end
|
18
|
+
add_enum "google.devtools.artifactregistry.v1.YumArtifact.PackageType" do
|
19
|
+
value :PACKAGE_TYPE_UNSPECIFIED, 0
|
20
|
+
value :BINARY, 1
|
21
|
+
value :SOURCE, 2
|
22
|
+
end
|
23
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource" do
|
24
|
+
repeated :uris, :string, 1
|
25
|
+
optional :use_wildcards, :bool, 2
|
26
|
+
end
|
27
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsRequest" do
|
28
|
+
optional :parent, :string, 1
|
29
|
+
oneof :source do
|
30
|
+
optional :gcs_source, :message, 2, "google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo" do
|
34
|
+
optional :error, :message, 2, "google.rpc.Status"
|
35
|
+
oneof :source do
|
36
|
+
optional :gcs_source, :message, 1, "google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsResponse" do
|
40
|
+
repeated :yum_artifacts, :message, 1, "google.devtools.artifactregistry.v1.YumArtifact"
|
41
|
+
repeated :errors, :message, 2, "google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo"
|
42
|
+
end
|
43
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata" do
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
module Google
|
49
|
+
module Cloud
|
50
|
+
module ArtifactRegistry
|
51
|
+
module V1
|
52
|
+
YumArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.YumArtifact").msgclass
|
53
|
+
YumArtifact::PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.YumArtifact.PackageType").enummodule
|
54
|
+
ImportYumArtifactsGcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource").msgclass
|
55
|
+
ImportYumArtifactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsRequest").msgclass
|
56
|
+
ImportYumArtifactsErrorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo").msgclass
|
57
|
+
ImportYumArtifactsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsResponse").msgclass
|
58
|
+
ImportYumArtifactsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata").msgclass
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
# A detailed representation of an Apt artifact. Information in the record
|
25
|
+
# is derived from the archive's control file.
|
26
|
+
# See https://www.debian.org/doc/debian-policy/ch-controlfields.html
|
27
|
+
# @!attribute [r] name
|
28
|
+
# @return [::String]
|
29
|
+
# Output only. The Artifact Registry resource name of the artifact.
|
30
|
+
# @!attribute [r] package_name
|
31
|
+
# @return [::String]
|
32
|
+
# Output only. The Apt package name of the artifact.
|
33
|
+
# @!attribute [r] package_type
|
34
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::AptArtifact::PackageType]
|
35
|
+
# Output only. An artifact is a binary or source package.
|
36
|
+
# @!attribute [r] architecture
|
37
|
+
# @return [::String]
|
38
|
+
# Output only. Operating system architecture of the artifact.
|
39
|
+
# @!attribute [r] component
|
40
|
+
# @return [::String]
|
41
|
+
# Output only. Repository component of the artifact.
|
42
|
+
# @!attribute [r] control_file
|
43
|
+
# @return [::String]
|
44
|
+
# Output only. Contents of the artifact's control metadata file.
|
45
|
+
class AptArtifact
|
46
|
+
include ::Google::Protobuf::MessageExts
|
47
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
48
|
+
|
49
|
+
# Package type is either binary or source.
|
50
|
+
module PackageType
|
51
|
+
# Package type is not specified.
|
52
|
+
PACKAGE_TYPE_UNSPECIFIED = 0
|
53
|
+
|
54
|
+
# Binary package.
|
55
|
+
BINARY = 1
|
56
|
+
|
57
|
+
# Source package.
|
58
|
+
SOURCE = 2
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Google Cloud Storage location where the artifacts currently reside.
|
63
|
+
# @!attribute [rw] uris
|
64
|
+
# @return [::Array<::String>]
|
65
|
+
# Cloud Storage paths URI (e.g., gs://my_bucket//my_object).
|
66
|
+
# @!attribute [rw] use_wildcards
|
67
|
+
# @return [::Boolean]
|
68
|
+
# Supports URI wildcards for matching multiple objects from a single URI.
|
69
|
+
class ImportAptArtifactsGcsSource
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
end
|
73
|
+
|
74
|
+
# The request to import new apt artifacts.
|
75
|
+
# @!attribute [rw] gcs_source
|
76
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsGcsSource]
|
77
|
+
# Google Cloud Storage location where input content is located.
|
78
|
+
# @!attribute [rw] parent
|
79
|
+
# @return [::String]
|
80
|
+
# The name of the parent resource where the artifacts will be imported.
|
81
|
+
class ImportAptArtifactsRequest
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
|
86
|
+
# Error information explaining why a package was not imported.
|
87
|
+
# @!attribute [rw] gcs_source
|
88
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsGcsSource]
|
89
|
+
# Google Cloud Storage location requested.
|
90
|
+
# @!attribute [rw] error
|
91
|
+
# @return [::Google::Rpc::Status]
|
92
|
+
# The detailed error status.
|
93
|
+
class ImportAptArtifactsErrorInfo
|
94
|
+
include ::Google::Protobuf::MessageExts
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
96
|
+
end
|
97
|
+
|
98
|
+
# The response message from importing APT artifacts.
|
99
|
+
# @!attribute [rw] apt_artifacts
|
100
|
+
# @return [::Array<::Google::Cloud::ArtifactRegistry::V1::AptArtifact>]
|
101
|
+
# The Apt artifacts imported.
|
102
|
+
# @!attribute [rw] errors
|
103
|
+
# @return [::Array<::Google::Cloud::ArtifactRegistry::V1::ImportAptArtifactsErrorInfo>]
|
104
|
+
# Detailed error info for packages that were not imported.
|
105
|
+
class ImportAptArtifactsResponse
|
106
|
+
include ::Google::Protobuf::MessageExts
|
107
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
108
|
+
end
|
109
|
+
|
110
|
+
# The operation metadata for importing artifacts.
|
111
|
+
class ImportAptArtifactsMetadata
|
112
|
+
include ::Google::Protobuf::MessageExts
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
@@ -100,6 +100,15 @@ module Google
|
|
100
100
|
include ::Google::Protobuf::MessageExts
|
101
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
102
102
|
end
|
103
|
+
|
104
|
+
# The request to get docker images.
|
105
|
+
# @!attribute [rw] name
|
106
|
+
# @return [::String]
|
107
|
+
# Required. The name of the docker images.
|
108
|
+
class GetDockerImageRequest
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
103
112
|
end
|
104
113
|
end
|
105
114
|
end
|
@@ -0,0 +1,131 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
# A hash of file content.
|
25
|
+
# @!attribute [rw] type
|
26
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Hash::HashType]
|
27
|
+
# The algorithm used to compute the hash value.
|
28
|
+
# @!attribute [rw] value
|
29
|
+
# @return [::String]
|
30
|
+
# The hash value.
|
31
|
+
class Hash
|
32
|
+
include ::Google::Protobuf::MessageExts
|
33
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
34
|
+
|
35
|
+
# The algorithm used to compute the hash.
|
36
|
+
module HashType
|
37
|
+
# Unspecified.
|
38
|
+
HASH_TYPE_UNSPECIFIED = 0
|
39
|
+
|
40
|
+
# SHA256 hash.
|
41
|
+
SHA256 = 1
|
42
|
+
|
43
|
+
# MD5 hash.
|
44
|
+
MD5 = 2
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Files store content that is potentially associated with Packages or Versions.
|
49
|
+
# @!attribute [rw] name
|
50
|
+
# @return [::String]
|
51
|
+
# The name of the file, for example:
|
52
|
+
# "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
|
53
|
+
# If the file ID part contains slashes, they are escaped.
|
54
|
+
# @!attribute [rw] size_bytes
|
55
|
+
# @return [::Integer]
|
56
|
+
# The size of the File in bytes.
|
57
|
+
# @!attribute [rw] hashes
|
58
|
+
# @return [::Array<::Google::Cloud::ArtifactRegistry::V1::Hash>]
|
59
|
+
# The hashes of the file content.
|
60
|
+
# @!attribute [rw] create_time
|
61
|
+
# @return [::Google::Protobuf::Timestamp]
|
62
|
+
# The time when the File was created.
|
63
|
+
# @!attribute [rw] update_time
|
64
|
+
# @return [::Google::Protobuf::Timestamp]
|
65
|
+
# The time when the File was last updated.
|
66
|
+
# @!attribute [rw] owner
|
67
|
+
# @return [::String]
|
68
|
+
# The name of the Package or Version that owns this file, if any.
|
69
|
+
class File
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
end
|
73
|
+
|
74
|
+
# The request to list files.
|
75
|
+
# @!attribute [rw] parent
|
76
|
+
# @return [::String]
|
77
|
+
# The name of the repository whose files will be listed. For example:
|
78
|
+
# "projects/p1/locations/us-central1/repositories/repo1
|
79
|
+
# @!attribute [rw] filter
|
80
|
+
# @return [::String]
|
81
|
+
# An expression for filtering the results of the request. Filter rules are
|
82
|
+
# case insensitive. The fields eligible for filtering are:
|
83
|
+
#
|
84
|
+
# * `name`
|
85
|
+
# * `owner`
|
86
|
+
#
|
87
|
+
# An example of using a filter:
|
88
|
+
#
|
89
|
+
# * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an
|
90
|
+
# ID starting with "a/b/".
|
91
|
+
# * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` -->
|
92
|
+
# Files owned by the version `1.0` in package `pkg1`.
|
93
|
+
# @!attribute [rw] page_size
|
94
|
+
# @return [::Integer]
|
95
|
+
# The maximum number of files to return.
|
96
|
+
# @!attribute [rw] page_token
|
97
|
+
# @return [::String]
|
98
|
+
# The next_page_token value returned from a previous list request, if any.
|
99
|
+
# @!attribute [rw] order_by
|
100
|
+
# @return [::String]
|
101
|
+
# The field to order the results by.
|
102
|
+
class ListFilesRequest
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
106
|
+
|
107
|
+
# The response from listing files.
|
108
|
+
# @!attribute [rw] files
|
109
|
+
# @return [::Array<::Google::Cloud::ArtifactRegistry::V1::File>]
|
110
|
+
# The files returned.
|
111
|
+
# @!attribute [rw] next_page_token
|
112
|
+
# @return [::String]
|
113
|
+
# The token to retrieve the next page of files, or empty if there are no
|
114
|
+
# more files to return.
|
115
|
+
class ListFilesResponse
|
116
|
+
include ::Google::Protobuf::MessageExts
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
|
+
end
|
119
|
+
|
120
|
+
# The request to retrieve a file.
|
121
|
+
# @!attribute [rw] name
|
122
|
+
# @return [::String]
|
123
|
+
# The name of the file to retrieve.
|
124
|
+
class GetFileRequest
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
# Packages are named collections of versions.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# The name of the package, for example:
|
28
|
+
# "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".
|
29
|
+
# If the package ID part contains slashes, the slashes are escaped.
|
30
|
+
# @!attribute [rw] display_name
|
31
|
+
# @return [::String]
|
32
|
+
# The display name of the package.
|
33
|
+
# @!attribute [rw] create_time
|
34
|
+
# @return [::Google::Protobuf::Timestamp]
|
35
|
+
# The time when the package was created.
|
36
|
+
# @!attribute [rw] update_time
|
37
|
+
# @return [::Google::Protobuf::Timestamp]
|
38
|
+
# The time when the package was last updated. This includes publishing a new
|
39
|
+
# version of the package.
|
40
|
+
class Package
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
|
45
|
+
# The request to list packages.
|
46
|
+
# @!attribute [rw] parent
|
47
|
+
# @return [::String]
|
48
|
+
# Required. The name of the parent resource whose packages will be listed.
|
49
|
+
# @!attribute [rw] page_size
|
50
|
+
# @return [::Integer]
|
51
|
+
# The maximum number of packages to return. Maximum page size is 1,000.
|
52
|
+
# @!attribute [rw] page_token
|
53
|
+
# @return [::String]
|
54
|
+
# The next_page_token value returned from a previous list request, if any.
|
55
|
+
class ListPackagesRequest
|
56
|
+
include ::Google::Protobuf::MessageExts
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
|
+
end
|
59
|
+
|
60
|
+
# The response from listing packages.
|
61
|
+
# @!attribute [rw] packages
|
62
|
+
# @return [::Array<::Google::Cloud::ArtifactRegistry::V1::Package>]
|
63
|
+
# The packages returned.
|
64
|
+
# @!attribute [rw] next_page_token
|
65
|
+
# @return [::String]
|
66
|
+
# The token to retrieve the next page of packages, or empty if there are no
|
67
|
+
# more packages to return.
|
68
|
+
class ListPackagesResponse
|
69
|
+
include ::Google::Protobuf::MessageExts
|
70
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
71
|
+
end
|
72
|
+
|
73
|
+
# The request to retrieve a package.
|
74
|
+
# @!attribute [rw] name
|
75
|
+
# @return [::String]
|
76
|
+
# Required. The name of the package to retrieve.
|
77
|
+
class GetPackageRequest
|
78
|
+
include ::Google::Protobuf::MessageExts
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
80
|
+
end
|
81
|
+
|
82
|
+
# The request to delete a package.
|
83
|
+
# @!attribute [rw] name
|
84
|
+
# @return [::String]
|
85
|
+
# Required. The name of the package to delete.
|
86
|
+
class DeletePackageRequest
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -22,6 +22,10 @@ module Google
|
|
22
22
|
module ArtifactRegistry
|
23
23
|
module V1
|
24
24
|
# A Repository for storing artifacts with a specific format.
|
25
|
+
# @!attribute [rw] maven_config
|
26
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig]
|
27
|
+
# Maven repository config contains repository level configuration
|
28
|
+
# for the repositories of maven type.
|
25
29
|
# @!attribute [rw] name
|
26
30
|
# @return [::String]
|
27
31
|
# The name of the repository, for example:
|
@@ -47,7 +51,7 @@ module Google
|
|
47
51
|
# The time when the repository was last updated.
|
48
52
|
# @!attribute [rw] kms_key_name
|
49
53
|
# @return [::String]
|
50
|
-
# The Cloud KMS resource name of the customer managed encryption key that
|
54
|
+
# The Cloud KMS resource name of the customer managed encryption key that's
|
51
55
|
# used to encrypt the contents of the Repository. Has the form:
|
52
56
|
# `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`.
|
53
57
|
# This value may not be changed after the Repository has been created.
|
@@ -55,6 +59,35 @@ module Google
|
|
55
59
|
include ::Google::Protobuf::MessageExts
|
56
60
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
57
61
|
|
62
|
+
# MavenRepositoryConfig is maven related repository details.
|
63
|
+
# Provides additional configuration details for repositories of the maven
|
64
|
+
# format type.
|
65
|
+
# @!attribute [rw] allow_snapshot_overwrites
|
66
|
+
# @return [::Boolean]
|
67
|
+
# The repository with this flag will allow publishing
|
68
|
+
# the same snapshot versions.
|
69
|
+
# @!attribute [rw] version_policy
|
70
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig::VersionPolicy]
|
71
|
+
# Version policy defines the versions that the registry will accept.
|
72
|
+
class MavenRepositoryConfig
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
|
76
|
+
# VersionPolicy is the version policy for the repository.
|
77
|
+
module VersionPolicy
|
78
|
+
# VERSION_POLICY_UNSPECIFIED - the version policy is not defined.
|
79
|
+
# When the version policy is not defined, no validation is performed
|
80
|
+
# for the versions.
|
81
|
+
VERSION_POLICY_UNSPECIFIED = 0
|
82
|
+
|
83
|
+
# RELEASE - repository will accept only Release versions.
|
84
|
+
RELEASE = 1
|
85
|
+
|
86
|
+
# SNAPSHOT - repository will accept only Snapshot versions.
|
87
|
+
SNAPSHOT = 2
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
58
91
|
# @!attribute [rw] key
|
59
92
|
# @return [::String]
|
60
93
|
# @!attribute [rw] value
|
@@ -95,7 +128,7 @@ module Google
|
|
95
128
|
# Required. The name of the parent resource whose repositories will be listed.
|
96
129
|
# @!attribute [rw] page_size
|
97
130
|
# @return [::Integer]
|
98
|
-
# The maximum number of repositories to return.
|
131
|
+
# The maximum number of repositories to return. Maximum page size is 1,000.
|
99
132
|
# @!attribute [rw] page_token
|
100
133
|
# @return [::String]
|
101
134
|
# The next_page_token value returned from a previous list request, if any.
|
@@ -125,6 +158,44 @@ module Google
|
|
125
158
|
include ::Google::Protobuf::MessageExts
|
126
159
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
160
|
end
|
161
|
+
|
162
|
+
# The request to create a new repository.
|
163
|
+
# @!attribute [rw] parent
|
164
|
+
# @return [::String]
|
165
|
+
# Required. The name of the parent resource where the repository will be created.
|
166
|
+
# @!attribute [rw] repository_id
|
167
|
+
# @return [::String]
|
168
|
+
# The repository id to use for this repository.
|
169
|
+
# @!attribute [rw] repository
|
170
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository]
|
171
|
+
# The repository to be created.
|
172
|
+
class CreateRepositoryRequest
|
173
|
+
include ::Google::Protobuf::MessageExts
|
174
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
175
|
+
end
|
176
|
+
|
177
|
+
# The request to update a repository.
|
178
|
+
# @!attribute [rw] repository
|
179
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::Repository]
|
180
|
+
# The repository that replaces the resource on the server.
|
181
|
+
# @!attribute [rw] update_mask
|
182
|
+
# @return [::Google::Protobuf::FieldMask]
|
183
|
+
# The update mask applies to the resource. For the `FieldMask` definition,
|
184
|
+
# see
|
185
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
186
|
+
class UpdateRepositoryRequest
|
187
|
+
include ::Google::Protobuf::MessageExts
|
188
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
189
|
+
end
|
190
|
+
|
191
|
+
# The request to delete a repository.
|
192
|
+
# @!attribute [rw] name
|
193
|
+
# @return [::String]
|
194
|
+
# Required. The name of the repository to delete.
|
195
|
+
class DeleteRepositoryRequest
|
196
|
+
include ::Google::Protobuf::MessageExts
|
197
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
|
+
end
|
128
199
|
end
|
129
200
|
end
|
130
201
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
# Metadata type for longrunning-operations, currently empty.
|
25
|
+
class OperationMetadata
|
26
|
+
include ::Google::Protobuf::MessageExts
|
27
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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 Artifact Registry settings that apply to a Project.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# The name of the project's settings.
|
28
|
+
#
|
29
|
+
# Always of the form:
|
30
|
+
# projects/\\{project-id}/projectSettings
|
31
|
+
#
|
32
|
+
# In update request: never set
|
33
|
+
# In response: always set
|
34
|
+
# @!attribute [rw] legacy_redirection_state
|
35
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings::RedirectionState]
|
36
|
+
# The redirection state of the legacy repositories in this project.
|
37
|
+
class ProjectSettings
|
38
|
+
include ::Google::Protobuf::MessageExts
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
|
41
|
+
# The possible redirection states for legacy repositories.
|
42
|
+
module RedirectionState
|
43
|
+
# No redirection status has been set.
|
44
|
+
REDIRECTION_STATE_UNSPECIFIED = 0
|
45
|
+
|
46
|
+
# Redirection is disabled.
|
47
|
+
REDIRECTION_FROM_GCR_IO_DISABLED = 1
|
48
|
+
|
49
|
+
# Redirection is enabled.
|
50
|
+
REDIRECTION_FROM_GCR_IO_ENABLED = 2
|
51
|
+
|
52
|
+
# Redirection is enabled, and has been finalized so cannot be reverted.
|
53
|
+
REDIRECTION_FROM_GCR_IO_FINALIZED = 3
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Gets the redirection status for a project.
|
58
|
+
# @!attribute [rw] name
|
59
|
+
# @return [::String]
|
60
|
+
# Required. The name of the projectSettings resource.
|
61
|
+
class GetProjectSettingsRequest
|
62
|
+
include ::Google::Protobuf::MessageExts
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
64
|
+
end
|
65
|
+
|
66
|
+
# Sets the settings of the project.
|
67
|
+
# @!attribute [rw] project_settings
|
68
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
|
69
|
+
# The project settings.
|
70
|
+
# @!attribute [rw] update_mask
|
71
|
+
# @return [::Google::Protobuf::FieldMask]
|
72
|
+
# Field mask to support partial updates.
|
73
|
+
class UpdateProjectSettingsRequest
|
74
|
+
include ::Google::Protobuf::MessageExts
|
75
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|