google-cloud-artifact_registry-v1beta2 0.3.6 → 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/README.md +2 -2
- data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +409 -14
- 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/devtools/artifactregistry/v1beta2/apt_artifact_pb.rb +65 -0
- data/lib/google/devtools/artifactregistry/v1beta2/file_pb.rb +2 -1
- data/lib/google/devtools/artifactregistry/v1beta2/repository_pb.rb +21 -1
- data/lib/google/devtools/artifactregistry/v1beta2/service_pb.rb +3 -0
- data/lib/google/devtools/artifactregistry/v1beta2/service_services_pb.rb +14 -0
- data/lib/google/devtools/artifactregistry/v1beta2/settings_pb.rb +22 -1
- data/lib/google/devtools/artifactregistry/v1beta2/tag_pb.rb +2 -1
- data/lib/google/devtools/artifactregistry/v1beta2/version_pb.rb +6 -1
- data/lib/google/devtools/artifactregistry/v1beta2/yum_artifact_pb.rb +63 -0
- data/proto_docs/google/devtools/artifactregistry/v1beta2/apt_artifact.rb +118 -0
- data/proto_docs/google/devtools/artifactregistry/v1beta2/file.rb +5 -1
- 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/protobuf/struct.rb +96 -0
- metadata +9 -3
@@ -0,0 +1,65 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/artifactregistry/v1beta2/apt_artifact.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/longrunning/operations_pb'
|
8
|
+
require 'google/rpc/status_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/devtools/artifactregistry/v1beta2/apt_artifact.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.devtools.artifactregistry.v1beta2.AptArtifact" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :package_name, :string, 2
|
16
|
+
optional :package_type, :enum, 3, "google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType"
|
17
|
+
optional :architecture, :string, 4
|
18
|
+
optional :component, :string, 5
|
19
|
+
optional :control_file, :bytes, 6
|
20
|
+
end
|
21
|
+
add_enum "google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType" do
|
22
|
+
value :PACKAGE_TYPE_UNSPECIFIED, 0
|
23
|
+
value :BINARY, 1
|
24
|
+
value :SOURCE, 2
|
25
|
+
end
|
26
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource" do
|
27
|
+
repeated :uris, :string, 1
|
28
|
+
optional :use_wildcards, :bool, 2
|
29
|
+
end
|
30
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest" do
|
31
|
+
optional :parent, :string, 1
|
32
|
+
oneof :source do
|
33
|
+
optional :gcs_source, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo" do
|
37
|
+
optional :error, :message, 2, "google.rpc.Status"
|
38
|
+
oneof :source do
|
39
|
+
optional :gcs_source, :message, 1, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsResponse" do
|
43
|
+
repeated :apt_artifacts, :message, 1, "google.devtools.artifactregistry.v1beta2.AptArtifact"
|
44
|
+
repeated :errors, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo"
|
45
|
+
end
|
46
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportAptArtifactsMetadata" do
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
module Google
|
52
|
+
module Cloud
|
53
|
+
module ArtifactRegistry
|
54
|
+
module V1beta2
|
55
|
+
AptArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.AptArtifact").msgclass
|
56
|
+
AptArtifact::PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.AptArtifact.PackageType").enummodule
|
57
|
+
ImportAptArtifactsGcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource").msgclass
|
58
|
+
ImportAptArtifactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest").msgclass
|
59
|
+
ImportAptArtifactsErrorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsErrorInfo").msgclass
|
60
|
+
ImportAptArtifactsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsResponse").msgclass
|
61
|
+
ImportAptArtifactsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportAptArtifactsMetadata").msgclass
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -1,9 +1,9 @@
|
|
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/api/annotations_pb'
|
4
5
|
require 'google/api/resource_pb'
|
5
6
|
require 'google/protobuf/timestamp_pb'
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
require 'google/protobuf'
|
8
8
|
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -15,6 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
15
15
|
add_enum "google.devtools.artifactregistry.v1beta2.Hash.HashType" do
|
16
16
|
value :HASH_TYPE_UNSPECIFIED, 0
|
17
17
|
value :SHA256, 1
|
18
|
+
value :MD5, 2
|
18
19
|
end
|
19
20
|
add_message "google.devtools.artifactregistry.v1beta2.File" do
|
20
21
|
optional :name, :string, 1
|
@@ -1,10 +1,11 @@
|
|
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/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
4
6
|
require 'google/api/resource_pb'
|
5
7
|
require 'google/protobuf/field_mask_pb'
|
6
8
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
9
|
require 'google/protobuf'
|
9
10
|
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -17,10 +18,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
18
|
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
18
19
|
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
19
20
|
optional :kms_key_name, :string, 8
|
21
|
+
oneof :format_config do
|
22
|
+
optional :maven_config, :message, 9, "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
add_message "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig" do
|
26
|
+
optional :allow_snapshot_overwrites, :bool, 1
|
27
|
+
optional :version_policy, :enum, 2, "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy"
|
28
|
+
end
|
29
|
+
add_enum "google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy" do
|
30
|
+
value :VERSION_POLICY_UNSPECIFIED, 0
|
31
|
+
value :RELEASE, 1
|
32
|
+
value :SNAPSHOT, 2
|
20
33
|
end
|
21
34
|
add_enum "google.devtools.artifactregistry.v1beta2.Repository.Format" do
|
22
35
|
value :FORMAT_UNSPECIFIED, 0
|
23
36
|
value :DOCKER, 1
|
37
|
+
value :MAVEN, 2
|
38
|
+
value :NPM, 3
|
39
|
+
value :APT, 5
|
40
|
+
value :YUM, 6
|
41
|
+
value :PYTHON, 8
|
24
42
|
end
|
25
43
|
add_message "google.devtools.artifactregistry.v1beta2.ListRepositoriesRequest" do
|
26
44
|
optional :parent, :string, 1
|
@@ -54,6 +72,8 @@ module Google
|
|
54
72
|
module ArtifactRegistry
|
55
73
|
module V1beta2
|
56
74
|
Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository").msgclass
|
75
|
+
Repository::MavenRepositoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig").msgclass
|
76
|
+
Repository::MavenRepositoryConfig::VersionPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy").enummodule
|
57
77
|
Repository::Format = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.Repository.Format").enummodule
|
58
78
|
ListRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ListRepositoriesRequest").msgclass
|
59
79
|
ListRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse").msgclass
|
@@ -3,11 +3,14 @@
|
|
3
3
|
|
4
4
|
require 'google/api/annotations_pb'
|
5
5
|
require 'google/api/client_pb'
|
6
|
+
require 'google/devtools/artifactregistry/v1beta2/apt_artifact_pb'
|
6
7
|
require 'google/devtools/artifactregistry/v1beta2/file_pb'
|
7
8
|
require 'google/devtools/artifactregistry/v1beta2/package_pb'
|
8
9
|
require 'google/devtools/artifactregistry/v1beta2/repository_pb'
|
10
|
+
require 'google/devtools/artifactregistry/v1beta2/settings_pb'
|
9
11
|
require 'google/devtools/artifactregistry/v1beta2/tag_pb'
|
10
12
|
require 'google/devtools/artifactregistry/v1beta2/version_pb'
|
13
|
+
require 'google/devtools/artifactregistry/v1beta2/yum_artifact_pb'
|
11
14
|
require 'google/iam/v1/iam_policy_pb'
|
12
15
|
require 'google/iam/v1/policy_pb'
|
13
16
|
require 'google/longrunning/operations_pb'
|
@@ -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,31 @@
|
|
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/api/annotations_pb'
|
4
5
|
require 'google/api/field_behavior_pb'
|
5
6
|
require 'google/api/resource_pb'
|
6
7
|
require 'google/protobuf/field_mask_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
8
|
require 'google/protobuf'
|
9
9
|
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/devtools/artifactregistry/v1beta2/settings.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.devtools.artifactregistry.v1beta2.ProjectSettings" do
|
13
|
+
optional :name, :string, 1
|
14
|
+
optional :legacy_redirection_state, :enum, 2, "google.devtools.artifactregistry.v1beta2.ProjectSettings.RedirectionState"
|
15
|
+
end
|
16
|
+
add_enum "google.devtools.artifactregistry.v1beta2.ProjectSettings.RedirectionState" do
|
17
|
+
value :REDIRECTION_STATE_UNSPECIFIED, 0
|
18
|
+
value :REDIRECTION_FROM_GCR_IO_DISABLED, 1
|
19
|
+
value :REDIRECTION_FROM_GCR_IO_ENABLED, 2
|
20
|
+
value :REDIRECTION_FROM_GCR_IO_FINALIZED, 3
|
21
|
+
end
|
22
|
+
add_message "google.devtools.artifactregistry.v1beta2.GetProjectSettingsRequest" do
|
23
|
+
optional :name, :string, 1
|
24
|
+
end
|
25
|
+
add_message "google.devtools.artifactregistry.v1beta2.UpdateProjectSettingsRequest" do
|
26
|
+
optional :project_settings, :message, 2, "google.devtools.artifactregistry.v1beta2.ProjectSettings"
|
27
|
+
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
28
|
+
end
|
12
29
|
end
|
13
30
|
end
|
14
31
|
|
@@ -16,6 +33,10 @@ module Google
|
|
16
33
|
module Cloud
|
17
34
|
module ArtifactRegistry
|
18
35
|
module V1beta2
|
36
|
+
ProjectSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ProjectSettings").msgclass
|
37
|
+
ProjectSettings::RedirectionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ProjectSettings.RedirectionState").enummodule
|
38
|
+
GetProjectSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.GetProjectSettingsRequest").msgclass
|
39
|
+
UpdateProjectSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.UpdateProjectSettingsRequest").msgclass
|
19
40
|
end
|
20
41
|
end
|
21
42
|
end
|
@@ -1,8 +1,9 @@
|
|
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
4
|
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/resource_pb'
|
6
|
+
require 'google/protobuf/field_mask_pb'
|
6
7
|
require 'google/protobuf'
|
7
8
|
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -1,9 +1,12 @@
|
|
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/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
6
|
+
require 'google/api/resource_pb'
|
4
7
|
require 'google/devtools/artifactregistry/v1beta2/tag_pb'
|
8
|
+
require 'google/protobuf/struct_pb'
|
5
9
|
require 'google/protobuf/timestamp_pb'
|
6
|
-
require 'google/api/annotations_pb'
|
7
10
|
require 'google/protobuf'
|
8
11
|
|
9
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -14,12 +17,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
17
|
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
15
18
|
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
16
19
|
repeated :related_tags, :message, 7, "google.devtools.artifactregistry.v1beta2.Tag"
|
20
|
+
optional :metadata, :message, 8, "google.protobuf.Struct"
|
17
21
|
end
|
18
22
|
add_message "google.devtools.artifactregistry.v1beta2.ListVersionsRequest" do
|
19
23
|
optional :parent, :string, 1
|
20
24
|
optional :page_size, :int32, 2
|
21
25
|
optional :page_token, :string, 3
|
22
26
|
optional :view, :enum, 4, "google.devtools.artifactregistry.v1beta2.VersionView"
|
27
|
+
optional :order_by, :string, 5
|
23
28
|
end
|
24
29
|
add_message "google.devtools.artifactregistry.v1beta2.ListVersionsResponse" do
|
25
30
|
repeated :versions, :message, 1, "google.devtools.artifactregistry.v1beta2.Version"
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/devtools/artifactregistry/v1beta2/yum_artifact.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/longrunning/operations_pb'
|
8
|
+
require 'google/rpc/status_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/devtools/artifactregistry/v1beta2/yum_artifact.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.devtools.artifactregistry.v1beta2.YumArtifact" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :package_name, :string, 2
|
16
|
+
optional :package_type, :enum, 3, "google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType"
|
17
|
+
optional :architecture, :string, 4
|
18
|
+
end
|
19
|
+
add_enum "google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType" do
|
20
|
+
value :PACKAGE_TYPE_UNSPECIFIED, 0
|
21
|
+
value :BINARY, 1
|
22
|
+
value :SOURCE, 2
|
23
|
+
end
|
24
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsGcsSource" do
|
25
|
+
repeated :uris, :string, 1
|
26
|
+
optional :use_wildcards, :bool, 2
|
27
|
+
end
|
28
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsRequest" do
|
29
|
+
optional :parent, :string, 1
|
30
|
+
oneof :source do
|
31
|
+
optional :gcs_source, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsGcsSource"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsErrorInfo" do
|
35
|
+
optional :error, :message, 2, "google.rpc.Status"
|
36
|
+
oneof :source do
|
37
|
+
optional :gcs_source, :message, 1, "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsGcsSource"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsResponse" do
|
41
|
+
repeated :yum_artifacts, :message, 1, "google.devtools.artifactregistry.v1beta2.YumArtifact"
|
42
|
+
repeated :errors, :message, 2, "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsErrorInfo"
|
43
|
+
end
|
44
|
+
add_message "google.devtools.artifactregistry.v1beta2.ImportYumArtifactsMetadata" do
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
module Google
|
50
|
+
module Cloud
|
51
|
+
module ArtifactRegistry
|
52
|
+
module V1beta2
|
53
|
+
YumArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.YumArtifact").msgclass
|
54
|
+
YumArtifact::PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.YumArtifact.PackageType").enummodule
|
55
|
+
ImportYumArtifactsGcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsGcsSource").msgclass
|
56
|
+
ImportYumArtifactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsRequest").msgclass
|
57
|
+
ImportYumArtifactsErrorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsErrorInfo").msgclass
|
58
|
+
ImportYumArtifactsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsResponse").msgclass
|
59
|
+
ImportYumArtifactsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1beta2.ImportYumArtifactsMetadata").msgclass
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
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.
|
@@ -22,6 +22,10 @@ module Google
|
|
22
22
|
module ArtifactRegistry
|
23
23
|
module V1beta2
|
24
24
|
# A Repository for storing artifacts with a specific format.
|
25
|
+
# @!attribute [rw] maven_config
|
26
|
+
# @return [::Google::Cloud::ArtifactRegistry::V1beta2::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:
|
@@ -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::V1beta2::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
|
@@ -71,17 +104,31 @@ module Google
|
|
71
104
|
|
72
105
|
# Docker package format.
|
73
106
|
DOCKER = 1
|
107
|
+
|
108
|
+
# Maven package format.
|
109
|
+
MAVEN = 2
|
110
|
+
|
111
|
+
# NPM package format.
|
112
|
+
NPM = 3
|
113
|
+
|
114
|
+
# APT package format.
|
115
|
+
APT = 5
|
116
|
+
|
117
|
+
# YUM package format.
|
118
|
+
YUM = 6
|
119
|
+
|
120
|
+
# Python package format.
|
121
|
+
PYTHON = 8
|
74
122
|
end
|
75
123
|
end
|
76
124
|
|
77
125
|
# The request to list repositories.
|
78
126
|
# @!attribute [rw] parent
|
79
127
|
# @return [::String]
|
80
|
-
# The name of the parent resource whose repositories will be listed.
|
128
|
+
# Required. The name of the parent resource whose repositories will be listed.
|
81
129
|
# @!attribute [rw] page_size
|
82
130
|
# @return [::Integer]
|
83
|
-
# The maximum number of repositories to return.
|
84
|
-
# Maximum page size is 10,000.
|
131
|
+
# The maximum number of repositories to return. Maximum page size is 1,000.
|
85
132
|
# @!attribute [rw] page_token
|
86
133
|
# @return [::String]
|
87
134
|
# The next_page_token value returned from a previous list request, if any.
|
@@ -106,7 +153,7 @@ module Google
|
|
106
153
|
# The request to retrieve a repository.
|
107
154
|
# @!attribute [rw] name
|
108
155
|
# @return [::String]
|
109
|
-
# The name of the repository to retrieve.
|
156
|
+
# Required. The name of the repository to retrieve.
|
110
157
|
class GetRepositoryRequest
|
111
158
|
include ::Google::Protobuf::MessageExts
|
112
159
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -115,7 +162,7 @@ module Google
|
|
115
162
|
# The request to create a new repository.
|
116
163
|
# @!attribute [rw] parent
|
117
164
|
# @return [::String]
|
118
|
-
# The name of the parent resource where the repository will be created.
|
165
|
+
# Required. The name of the parent resource where the repository will be created.
|
119
166
|
# @!attribute [rw] repository_id
|
120
167
|
# @return [::String]
|
121
168
|
# The repository id to use for this repository.
|
@@ -144,7 +191,7 @@ module Google
|
|
144
191
|
# The request to delete a repository.
|
145
192
|
# @!attribute [rw] name
|
146
193
|
# @return [::String]
|
147
|
-
# The name of the repository to delete.
|
194
|
+
# Required. The name of the repository to delete.
|
148
195
|
class DeleteRepositoryRequest
|
149
196
|
include ::Google::Protobuf::MessageExts
|
150
197
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -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 V1beta2
|
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::V1beta2::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::V1beta2::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
|