google-cloud-artifact_registry-v1beta2 0.3.6 → 0.6.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 +13 -8
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +419 -17
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/operations.rb +3 -0
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/paths.rb +54 -0
- data/lib/google/cloud/artifact_registry/v1beta2/version.rb +1 -1
- data/lib/google/cloud/artifact_registry/v1beta2.rb +2 -0
- data/lib/google/devtools/artifactregistry/v1beta2/apt_artifact_pb.rb +66 -0
- data/lib/google/devtools/artifactregistry/v1beta2/file_pb.rb +4 -2
- data/lib/google/devtools/artifactregistry/v1beta2/package_pb.rb +2 -1
- data/lib/google/devtools/artifactregistry/v1beta2/repository_pb.rb +23 -2
- data/lib/google/devtools/artifactregistry/v1beta2/service_pb.rb +5 -1
- data/lib/google/devtools/artifactregistry/v1beta2/service_services_pb.rb +14 -0
- data/lib/google/devtools/artifactregistry/v1beta2/settings_pb.rb +24 -2
- data/lib/google/devtools/artifactregistry/v1beta2/tag_pb.rb +4 -2
- data/lib/google/devtools/artifactregistry/v1beta2/version_pb.rb +8 -2
- data/lib/google/devtools/artifactregistry/v1beta2/yum_artifact_pb.rb +64 -0
- data/proto_docs/google/devtools/artifactregistry/v1beta2/apt_artifact.rb +118 -0
- data/proto_docs/google/devtools/artifactregistry/v1beta2/file.rb +7 -2
- data/proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb +53 -6
- data/proto_docs/google/devtools/artifactregistry/v1beta2/settings.rb +80 -0
- data/proto_docs/google/devtools/artifactregistry/v1beta2/tag.rb +6 -2
- data/proto_docs/google/devtools/artifactregistry/v1beta2/version.rb +12 -2
- data/proto_docs/google/devtools/artifactregistry/v1beta2/yum_artifact.rb +110 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +8 -1
- data/proto_docs/google/iam/v1/options.rb +14 -4
- data/proto_docs/google/iam/v1/policy.rb +208 -38
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +96 -0
- metadata +22 -22
@@ -24,6 +24,37 @@ module Google
|
|
24
24
|
module ArtifactRegistry
|
25
25
|
# Path helper methods for the ArtifactRegistry API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Location resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def location_path project:, location:
|
39
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
40
|
+
|
41
|
+
"projects/#{project}/locations/#{location}"
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Create a fully-qualified ProjectSettings resource string.
|
46
|
+
#
|
47
|
+
# The resource will be in the following format:
|
48
|
+
#
|
49
|
+
# `projects/{project}/projectSettings`
|
50
|
+
#
|
51
|
+
# @param project [String]
|
52
|
+
#
|
53
|
+
# @return [::String]
|
54
|
+
def project_settings_path project:
|
55
|
+
"projects/#{project}/projectSettings"
|
56
|
+
end
|
57
|
+
|
27
58
|
##
|
28
59
|
# Create a fully-qualified Repository resource string.
|
29
60
|
#
|
@@ -43,6 +74,29 @@ module Google
|
|
43
74
|
"projects/#{project}/locations/#{location}/repositories/#{repository}"
|
44
75
|
end
|
45
76
|
|
77
|
+
##
|
78
|
+
# Create a fully-qualified Tag resource string.
|
79
|
+
#
|
80
|
+
# The resource will be in the following format:
|
81
|
+
#
|
82
|
+
# `projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}`
|
83
|
+
#
|
84
|
+
# @param project [String]
|
85
|
+
# @param location [String]
|
86
|
+
# @param repository [String]
|
87
|
+
# @param package [String]
|
88
|
+
# @param tag [String]
|
89
|
+
#
|
90
|
+
# @return [::String]
|
91
|
+
def tag_path project:, location:, repository:, package:, tag:
|
92
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
93
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
94
|
+
raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
|
95
|
+
raise ::ArgumentError, "package cannot contain /" if package.to_s.include? "/"
|
96
|
+
|
97
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}/packages/#{package}/tags/#{tag}"
|
98
|
+
end
|
99
|
+
|
46
100
|
extend self
|
47
101
|
end
|
48
102
|
end
|
@@ -25,6 +25,8 @@ module Google
|
|
25
25
|
##
|
26
26
|
# To load this package, including all its services, and instantiate a client:
|
27
27
|
#
|
28
|
+
# @example
|
29
|
+
#
|
28
30
|
# require "google/cloud/artifact_registry/v1beta2"
|
29
31
|
# client = ::Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Client.new
|
30
32
|
#
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/artifactregistry/v1beta2/apt_artifact.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
require 'google/longrunning/operations_pb'
|
10
|
+
require 'google/rpc/status_pb'
|
11
|
+
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/devtools/artifactregistry/v1beta2/apt_artifact.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.devtools.artifactregistry.v1beta2.AptArtifact" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :package_name, :string, 2
|
17
|
+
optional :package_type, :enum, 3, "google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType"
|
18
|
+
optional :architecture, :string, 4
|
19
|
+
optional :component, :string, 5
|
20
|
+
optional :control_file, :bytes, 6
|
21
|
+
end
|
22
|
+
add_enum "google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType" do
|
23
|
+
value :PACKAGE_TYPE_UNSPECIFIED, 0
|
24
|
+
value :BINARY, 1
|
25
|
+
value :SOURCE, 2
|
26
|
+
end
|
27
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource" do
|
28
|
+
repeated :uris, :string, 1
|
29
|
+
optional :use_wildcards, :bool, 2
|
30
|
+
end
|
31
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest" do
|
32
|
+
optional :parent, :string, 1
|
33
|
+
oneof :source do
|
34
|
+
optional :gcs_source, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo" do
|
38
|
+
optional :error, :message, 2, "google.rpc.Status"
|
39
|
+
oneof :source do
|
40
|
+
optional :gcs_source, :message, 1, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsResponse" do
|
44
|
+
repeated :apt_artifacts, :message, 1, "google.devtools.artifactregistry.v1beta2.AptArtifact"
|
45
|
+
repeated :errors, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo"
|
46
|
+
end
|
47
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsMetadata" do
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
module Google
|
53
|
+
module Cloud
|
54
|
+
module ArtifactRegistry
|
55
|
+
module V1beta2
|
56
|
+
AptArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.AptArtifact").msgclass
|
57
|
+
AptArtifact::PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType").enummodule
|
58
|
+
ImportAptArtifactsGcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource").msgclass
|
59
|
+
ImportAptArtifactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest").msgclass
|
60
|
+
ImportAptArtifactsErrorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo").msgclass
|
61
|
+
ImportAptArtifactsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsResponse").msgclass
|
62
|
+
ImportAptArtifactsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsMetadata").msgclass
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/devtools/artifactregistry/v1beta2/file.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
4
7
|
require 'google/api/resource_pb'
|
5
8
|
require 'google/protobuf/timestamp_pb'
|
6
|
-
require 'google/api/annotations_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/devtools/artifactregistry/v1beta2/file.proto", :syntax => :proto3) do
|
@@ -15,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
15
16
|
add_enum "google.devtools.artifactregistry.v1beta2.Hash.HashType" do
|
16
17
|
value :HASH_TYPE_UNSPECIFIED, 0
|
17
18
|
value :SHA256, 1
|
19
|
+
value :MD5, 2
|
18
20
|
end
|
19
21
|
add_message "google.devtools.artifactregistry.v1beta2.File" do
|
20
22
|
optional :name, :string, 1
|
@@ -1,9 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/devtools/artifactregistry/v1beta2/package.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/protobuf/timestamp_pb'
|
5
7
|
require 'google/api/annotations_pb'
|
6
|
-
require 'google/protobuf'
|
7
8
|
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("google/devtools/artifactregistry/v1beta2/package.proto", :syntax => :proto3) do
|
@@ -1,11 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/devtools/artifactregistry/v1beta2/repository.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/field_behavior_pb'
|
4
8
|
require 'google/api/resource_pb'
|
5
9
|
require 'google/protobuf/field_mask_pb'
|
6
10
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/protobuf'
|
9
11
|
|
10
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
13
|
add_file("google/devtools/artifactregistry/v1beta2/repository.proto", :syntax => :proto3) do
|
@@ -17,10 +19,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
19
|
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
18
20
|
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
19
21
|
optional :kms_key_name, :string, 8
|
22
|
+
oneof :format_config do
|
23
|
+
optional :maven_config, :message, 9, "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
add_message "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig" do
|
27
|
+
optional :allow_snapshot_overwrites, :bool, 1
|
28
|
+
optional :version_policy, :enum, 2, "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy"
|
29
|
+
end
|
30
|
+
add_enum "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy" do
|
31
|
+
value :VERSION_POLICY_UNSPECIFIED, 0
|
32
|
+
value :RELEASE, 1
|
33
|
+
value :SNAPSHOT, 2
|
20
34
|
end
|
21
35
|
add_enum "google.devtools.artifactregistry.v1beta2.Repository.Format" do
|
22
36
|
value :FORMAT_UNSPECIFIED, 0
|
23
37
|
value :DOCKER, 1
|
38
|
+
value :MAVEN, 2
|
39
|
+
value :NPM, 3
|
40
|
+
value :APT, 5
|
41
|
+
value :YUM, 6
|
42
|
+
value :PYTHON, 8
|
24
43
|
end
|
25
44
|
add_message "google.devtools.artifactregistry.v1beta2.ListRepositoriesRequest" do
|
26
45
|
optional :parent, :string, 1
|
@@ -54,6 +73,8 @@ module Google
|
|
54
73
|
module ArtifactRegistry
|
55
74
|
module V1beta2
|
56
75
|
Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository").msgclass
|
76
|
+
Repository::MavenRepositoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig").msgclass
|
77
|
+
Repository::MavenRepositoryConfig::VersionPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy").enummodule
|
57
78
|
Repository::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository.Format").enummodule
|
58
79
|
ListRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ListRepositoriesRequest").msgclass
|
59
80
|
ListRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse").msgclass
|
@@ -1,18 +1,22 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/devtools/artifactregistry/v1beta2/service.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
8
|
+
require 'google/devtools/artifactregistry/v1beta2/apt_artifact_pb'
|
6
9
|
require 'google/devtools/artifactregistry/v1beta2/file_pb'
|
7
10
|
require 'google/devtools/artifactregistry/v1beta2/package_pb'
|
8
11
|
require 'google/devtools/artifactregistry/v1beta2/repository_pb'
|
12
|
+
require 'google/devtools/artifactregistry/v1beta2/settings_pb'
|
9
13
|
require 'google/devtools/artifactregistry/v1beta2/tag_pb'
|
10
14
|
require 'google/devtools/artifactregistry/v1beta2/version_pb'
|
15
|
+
require 'google/devtools/artifactregistry/v1beta2/yum_artifact_pb'
|
11
16
|
require 'google/iam/v1/iam_policy_pb'
|
12
17
|
require 'google/iam/v1/policy_pb'
|
13
18
|
require 'google/longrunning/operations_pb'
|
14
19
|
require 'google/protobuf/empty_pb'
|
15
|
-
require 'google/protobuf'
|
16
20
|
|
17
21
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
22
|
add_file("google/devtools/artifactregistry/v1beta2/service.proto", :syntax => :proto3) do
|
@@ -45,6 +45,16 @@ module Google
|
|
45
45
|
self.unmarshal_class_method = :decode
|
46
46
|
self.service_name = 'google.devtools.artifactregistry.v1beta2.ArtifactRegistry'
|
47
47
|
|
48
|
+
# Imports Apt artifacts. The returned Operation will complete once the
|
49
|
+
# resources are imported. Package, Version, and File resources are created
|
50
|
+
# based on the imported artifacts. Imported artifacts that conflict with
|
51
|
+
# existing resources are ignored.
|
52
|
+
rpc :ImportAptArtifacts, ::Google::Cloud::ArtifactRegistry::V1beta2::ImportAptArtifactsRequest, ::Google::Longrunning::Operation
|
53
|
+
# Imports Yum (RPM) artifacts. The returned Operation will complete once the
|
54
|
+
# resources are imported. Package, Version, and File resources are created
|
55
|
+
# based on the imported artifacts. Imported artifacts that conflict with
|
56
|
+
# existing resources are ignored.
|
57
|
+
rpc :ImportYumArtifacts, ::Google::Cloud::ArtifactRegistry::V1beta2::ImportYumArtifactsRequest, ::Google::Longrunning::Operation
|
48
58
|
# Lists repositories.
|
49
59
|
rpc :ListRepositories, ::Google::Cloud::ArtifactRegistry::V1beta2::ListRepositoriesRequest, ::Google::Cloud::ArtifactRegistry::V1beta2::ListRepositoriesResponse
|
50
60
|
# Gets a repository.
|
@@ -92,6 +102,10 @@ module Google
|
|
92
102
|
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
93
103
|
# Tests if the caller has a list of permissions on a resource.
|
94
104
|
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
105
|
+
# Retrieves the Settings for the Project.
|
106
|
+
rpc :GetProjectSettings, ::Google::Cloud::ArtifactRegistry::V1beta2::GetProjectSettingsRequest, ::Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings
|
107
|
+
# Updates the Settings for the Project.
|
108
|
+
rpc :UpdateProjectSettings, ::Google::Cloud::ArtifactRegistry::V1beta2::UpdateProjectSettingsRequest, ::Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings
|
95
109
|
end
|
96
110
|
|
97
111
|
Stub = Service.rpc_stub_class
|
@@ -1,14 +1,32 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/devtools/artifactregistry/v1beta2/settings.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
4
7
|
require 'google/api/field_behavior_pb'
|
5
8
|
require 'google/api/resource_pb'
|
6
9
|
require 'google/protobuf/field_mask_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/protobuf'
|
9
10
|
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_file("google/devtools/artifactregistry/v1beta2/settings.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.devtools.artifactregistry.v1beta2.ProjectSettings" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :legacy_redirection_state, :enum, 2, "google.devtools.artifactregistry.v1beta2.ProjectSettings.RedirectionState"
|
16
|
+
end
|
17
|
+
add_enum "google.devtools.artifactregistry.v1beta2.ProjectSettings.RedirectionState" do
|
18
|
+
value :REDIRECTION_STATE_UNSPECIFIED, 0
|
19
|
+
value :REDIRECTION_FROM_GCR_IO_DISABLED, 1
|
20
|
+
value :REDIRECTION_FROM_GCR_IO_ENABLED, 2
|
21
|
+
value :REDIRECTION_FROM_GCR_IO_FINALIZED, 3
|
22
|
+
end
|
23
|
+
add_message "google.devtools.artifactregistry.v1beta2.GetProjectSettingsRequest" do
|
24
|
+
optional :name, :string, 1
|
25
|
+
end
|
26
|
+
add_message "google.devtools.artifactregistry.v1beta2.UpdateProjectSettingsRequest" do
|
27
|
+
optional :project_settings, :message, 2, "google.devtools.artifactregistry.v1beta2.ProjectSettings"
|
28
|
+
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
29
|
+
end
|
12
30
|
end
|
13
31
|
end
|
14
32
|
|
@@ -16,6 +34,10 @@ module Google
|
|
16
34
|
module Cloud
|
17
35
|
module ArtifactRegistry
|
18
36
|
module V1beta2
|
37
|
+
ProjectSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ProjectSettings").msgclass
|
38
|
+
ProjectSettings::RedirectionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ProjectSettings.RedirectionState").enummodule
|
39
|
+
GetProjectSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.GetProjectSettingsRequest").msgclass
|
40
|
+
UpdateProjectSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.UpdateProjectSettingsRequest").msgclass
|
19
41
|
end
|
20
42
|
end
|
21
43
|
end
|
@@ -1,10 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/devtools/artifactregistry/v1beta2/tag.proto
|
3
3
|
|
4
|
-
require 'google/protobuf/field_mask_pb'
|
5
|
-
require 'google/api/annotations_pb'
|
6
4
|
require 'google/protobuf'
|
7
5
|
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/field_mask_pb'
|
9
|
+
|
8
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
11
|
add_file("google/devtools/artifactregistry/v1beta2/tag.proto", :syntax => :proto3) do
|
10
12
|
add_message "google.devtools.artifactregistry.v1beta2.Tag" do
|
@@ -1,10 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/devtools/artifactregistry/v1beta2/version.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
4
9
|
require 'google/devtools/artifactregistry/v1beta2/tag_pb'
|
10
|
+
require 'google/protobuf/struct_pb'
|
5
11
|
require 'google/protobuf/timestamp_pb'
|
6
|
-
require 'google/api/annotations_pb'
|
7
|
-
require 'google/protobuf'
|
8
12
|
|
9
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
14
|
add_file("google/devtools/artifactregistry/v1beta2/version.proto", :syntax => :proto3) do
|
@@ -14,12 +18,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
18
|
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
15
19
|
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
16
20
|
repeated :related_tags, :message, 7, "google.devtools.artifactregistry.v1beta2.Tag"
|
21
|
+
optional :metadata, :message, 8, "google.protobuf.Struct"
|
17
22
|
end
|
18
23
|
add_message "google.devtools.artifactregistry.v1beta2.ListVersionsRequest" do
|
19
24
|
optional :parent, :string, 1
|
20
25
|
optional :page_size, :int32, 2
|
21
26
|
optional :page_token, :string, 3
|
22
27
|
optional :view, :enum, 4, "google.devtools.artifactregistry.v1beta2.VersionView"
|
28
|
+
optional :order_by, :string, 5
|
23
29
|
end
|
24
30
|
add_message "google.devtools.artifactregistry.v1beta2.ListVersionsResponse" do
|
25
31
|
repeated :versions, :message, 1, "google.devtools.artifactregistry.v1beta2.Version"
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/artifactregistry/v1beta2/yum_artifact.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
require 'google/longrunning/operations_pb'
|
10
|
+
require 'google/rpc/status_pb'
|
11
|
+
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/devtools/artifactregistry/v1beta2/yum_artifact.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.devtools.artifactregistry.v1beta2.YumArtifact" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :package_name, :string, 2
|
17
|
+
optional :package_type, :enum, 3, "google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType"
|
18
|
+
optional :architecture, :string, 4
|
19
|
+
end
|
20
|
+
add_enum "google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType" do
|
21
|
+
value :PACKAGE_TYPE_UNSPECIFIED, 0
|
22
|
+
value :BINARY, 1
|
23
|
+
value :SOURCE, 2
|
24
|
+
end
|
25
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsGcsSource" do
|
26
|
+
repeated :uris, :string, 1
|
27
|
+
optional :use_wildcards, :bool, 2
|
28
|
+
end
|
29
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsRequest" do
|
30
|
+
optional :parent, :string, 1
|
31
|
+
oneof :source do
|
32
|
+
optional :gcs_source, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsGcsSource"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsErrorInfo" do
|
36
|
+
optional :error, :message, 2, "google.rpc.Status"
|
37
|
+
oneof :source do
|
38
|
+
optional :gcs_source, :message, 1, "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsGcsSource"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsResponse" do
|
42
|
+
repeated :yum_artifacts, :message, 1, "google.devtools.artifactregistry.v1beta2.YumArtifact"
|
43
|
+
repeated :errors, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsErrorInfo"
|
44
|
+
end
|
45
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsMetadata" do
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
module Google
|
51
|
+
module Cloud
|
52
|
+
module ArtifactRegistry
|
53
|
+
module V1beta2
|
54
|
+
YumArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.YumArtifact").msgclass
|
55
|
+
YumArtifact::PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType").enummodule
|
56
|
+
ImportYumArtifactsGcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsGcsSource").msgclass
|
57
|
+
ImportYumArtifactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsRequest").msgclass
|
58
|
+
ImportYumArtifactsErrorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsErrorInfo").msgclass
|
59
|
+
ImportYumArtifactsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsResponse").msgclass
|
60
|
+
ImportYumArtifactsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsMetadata").msgclass
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
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 V1beta2
|
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::V1beta2::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::V1beta2::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::V1beta2::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::V1beta2::AptArtifact>]
|
101
|
+
# The Apt artifacts imported.
|
102
|
+
# @!attribute [rw] errors
|
103
|
+
# @return [::Array<::Google::Cloud::ArtifactRegistry::V1beta2::ImportAptArtifactsErrorInfo>]
|
104
|
+
# Detailed error info for artifacts 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
|
@@ -39,6 +39,9 @@ module Google
|
|
39
39
|
|
40
40
|
# SHA256 hash.
|
41
41
|
SHA256 = 1
|
42
|
+
|
43
|
+
# MD5 hash.
|
44
|
+
MD5 = 2
|
42
45
|
end
|
43
46
|
end
|
44
47
|
|
@@ -46,7 +49,8 @@ module Google
|
|
46
49
|
# @!attribute [rw] name
|
47
50
|
# @return [::String]
|
48
51
|
# The name of the file, for example:
|
49
|
-
# "projects/p1/locations/us-central1/repositories/repo1/files/a
|
52
|
+
# "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
|
53
|
+
# If the file ID part contains slashes, they are escaped.
|
50
54
|
# @!attribute [rw] size_bytes
|
51
55
|
# @return [::Integer]
|
52
56
|
# The size of the File in bytes.
|
@@ -70,7 +74,8 @@ module Google
|
|
70
74
|
# The request to list files.
|
71
75
|
# @!attribute [rw] parent
|
72
76
|
# @return [::String]
|
73
|
-
# The name of the
|
77
|
+
# The name of the repository whose files will be listed. For example:
|
78
|
+
# "projects/p1/locations/us-central1/repositories/repo1
|
74
79
|
# @!attribute [rw] filter
|
75
80
|
# @return [::String]
|
76
81
|
# An expression for filtering the results of the request. Filter rules are
|