google-cloud-artifact_registry-v1beta2 0.3.5 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/README.md +3 -3
  5. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +420 -17
  6. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/paths.rb +54 -0
  7. data/lib/google/cloud/artifact_registry/v1beta2/version.rb +1 -1
  8. data/lib/google/cloud/artifact_registry/v1beta2.rb +2 -0
  9. data/lib/google/devtools/artifactregistry/v1beta2/apt_artifact_pb.rb +65 -0
  10. data/lib/google/devtools/artifactregistry/v1beta2/file_pb.rb +2 -1
  11. data/lib/google/devtools/artifactregistry/v1beta2/repository_pb.rb +21 -1
  12. data/lib/google/devtools/artifactregistry/v1beta2/service_pb.rb +3 -0
  13. data/lib/google/devtools/artifactregistry/v1beta2/service_services_pb.rb +14 -0
  14. data/lib/google/devtools/artifactregistry/v1beta2/settings_pb.rb +22 -1
  15. data/lib/google/devtools/artifactregistry/v1beta2/tag_pb.rb +2 -1
  16. data/lib/google/devtools/artifactregistry/v1beta2/version_pb.rb +6 -1
  17. data/lib/google/devtools/artifactregistry/v1beta2/yum_artifact_pb.rb +63 -0
  18. data/proto_docs/google/api/resource.rb +10 -71
  19. data/proto_docs/google/devtools/artifactregistry/v1beta2/apt_artifact.rb +118 -0
  20. data/proto_docs/google/devtools/artifactregistry/v1beta2/file.rb +7 -2
  21. data/proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb +53 -6
  22. data/proto_docs/google/devtools/artifactregistry/v1beta2/settings.rb +80 -0
  23. data/proto_docs/google/devtools/artifactregistry/v1beta2/tag.rb +6 -2
  24. data/proto_docs/google/devtools/artifactregistry/v1beta2/version.rb +12 -2
  25. data/proto_docs/google/devtools/artifactregistry/v1beta2/yum_artifact.rb +110 -0
  26. data/proto_docs/google/iam/v1/iam_policy.rb +8 -1
  27. data/proto_docs/google/iam/v1/options.rb +14 -4
  28. data/proto_docs/google/iam/v1/policy.rb +208 -38
  29. data/proto_docs/google/protobuf/struct.rb +96 -0
  30. metadata +13 -13
@@ -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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1beta2
24
- VERSION = "0.3.5"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  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,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
@@ -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
- # name_descriptor: {
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
- # name_descriptor:
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
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
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
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
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 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