google-cloud-artifact_registry-v1 0.2.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +2494 -91
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +767 -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 +63 -0
- data/lib/google/devtools/artifactregistry/v1/artifact_pb.rb +4 -1
- data/lib/google/devtools/artifactregistry/v1/file_pb.rb +57 -0
- data/lib/google/devtools/artifactregistry/v1/package_pb.rb +47 -0
- data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +30 -1
- data/lib/google/devtools/artifactregistry/v1/service_pb.rb +13 -0
- data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +59 -0
- data/lib/google/devtools/artifactregistry/v1/settings_pb.rb +42 -0
- data/lib/google/devtools/artifactregistry/v1/tag_pb.rb +56 -0
- data/lib/google/devtools/artifactregistry/v1/version_pb.rb +61 -0
- data/lib/google/devtools/artifactregistry/v1/yum_artifact_pb.rb +61 -0
- data/proto_docs/google/api/resource.rb +10 -71
- 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 +32 -13
@@ -0,0 +1,61 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/artifactregistry/v1/yum_artifact.proto
|
3
|
+
|
4
|
+
require 'google/api/field_behavior_pb'
|
5
|
+
require 'google/api/resource_pb'
|
6
|
+
require 'google/rpc/status_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/devtools/artifactregistry/v1/yum_artifact.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.devtools.artifactregistry.v1.YumArtifact" do
|
12
|
+
optional :name, :string, 1
|
13
|
+
optional :package_name, :string, 2
|
14
|
+
optional :package_type, :enum, 3, "google.devtools.artifactregistry.v1.YumArtifact.PackageType"
|
15
|
+
optional :architecture, :string, 4
|
16
|
+
end
|
17
|
+
add_enum "google.devtools.artifactregistry.v1.YumArtifact.PackageType" do
|
18
|
+
value :PACKAGE_TYPE_UNSPECIFIED, 0
|
19
|
+
value :BINARY, 1
|
20
|
+
value :SOURCE, 2
|
21
|
+
end
|
22
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource" do
|
23
|
+
repeated :uris, :string, 1
|
24
|
+
optional :use_wildcards, :bool, 2
|
25
|
+
end
|
26
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsRequest" do
|
27
|
+
optional :parent, :string, 1
|
28
|
+
oneof :source do
|
29
|
+
optional :gcs_source, :message, 2, "google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo" do
|
33
|
+
optional :error, :message, 2, "google.rpc.Status"
|
34
|
+
oneof :source do
|
35
|
+
optional :gcs_source, :message, 1, "google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsResponse" do
|
39
|
+
repeated :yum_artifacts, :message, 1, "google.devtools.artifactregistry.v1.YumArtifact"
|
40
|
+
repeated :errors, :message, 2, "google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo"
|
41
|
+
end
|
42
|
+
add_message "google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata" do
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
module Google
|
48
|
+
module Cloud
|
49
|
+
module ArtifactRegistry
|
50
|
+
module V1
|
51
|
+
YumArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.YumArtifact").msgclass
|
52
|
+
YumArtifact::PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.YumArtifact.PackageType").enummodule
|
53
|
+
ImportYumArtifactsGcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource").msgclass
|
54
|
+
ImportYumArtifactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsRequest").msgclass
|
55
|
+
ImportYumArtifactsErrorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo").msgclass
|
56
|
+
ImportYumArtifactsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsResponse").msgclass
|
57
|
+
ImportYumArtifactsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata").msgclass
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -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
|