google-cloud-artifact_registry-v1beta2 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/README.md +2 -2
  5. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +975 -129
  6. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/operations.rb +145 -33
  7. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/paths.rb +54 -0
  8. data/lib/google/cloud/artifact_registry/v1beta2/version.rb +1 -1
  9. data/lib/google/devtools/artifactregistry/v1beta2/apt_artifact_pb.rb +65 -0
  10. data/lib/google/devtools/artifactregistry/v1beta2/file_pb.rb +4 -3
  11. data/lib/google/devtools/artifactregistry/v1beta2/package_pb.rb +2 -2
  12. data/lib/google/devtools/artifactregistry/v1beta2/repository_pb.rb +23 -3
  13. data/lib/google/devtools/artifactregistry/v1beta2/service_pb.rb +5 -2
  14. data/lib/google/devtools/artifactregistry/v1beta2/service_services_pb.rb +15 -1
  15. data/lib/google/devtools/artifactregistry/v1beta2/settings_pb.rb +24 -3
  16. data/lib/google/devtools/artifactregistry/v1beta2/tag_pb.rb +3 -2
  17. data/lib/google/devtools/artifactregistry/v1beta2/version_pb.rb +8 -3
  18. data/lib/google/devtools/artifactregistry/v1beta2/yum_artifact_pb.rb +63 -0
  19. data/proto_docs/google/api/resource.rb +10 -71
  20. data/proto_docs/google/devtools/artifactregistry/v1beta2/apt_artifact.rb +118 -0
  21. data/proto_docs/google/devtools/artifactregistry/v1beta2/file.rb +5 -1
  22. data/proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb +53 -6
  23. data/proto_docs/google/devtools/artifactregistry/v1beta2/settings.rb +80 -0
  24. data/proto_docs/google/devtools/artifactregistry/v1beta2/tag.rb +6 -2
  25. data/proto_docs/google/devtools/artifactregistry/v1beta2/version.rb +12 -2
  26. data/proto_docs/google/devtools/artifactregistry/v1beta2/yum_artifact.rb +110 -0
  27. data/proto_docs/google/protobuf/struct.rb +96 -0
  28. metadata +11 -5
@@ -1,11 +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
-
4
+ require 'google/api/annotations_pb'
5
+ require 'google/api/field_behavior_pb'
6
+ require 'google/api/resource_pb'
6
7
  require 'google/devtools/artifactregistry/v1beta2/tag_pb'
8
+ require 'google/protobuf/struct_pb'
7
9
  require 'google/protobuf/timestamp_pb'
8
- require 'google/api/annotations_pb'
10
+ require 'google/protobuf'
11
+
9
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
13
  add_file("google/devtools/artifactregistry/v1beta2/version.proto", :syntax => :proto3) do
11
14
  add_message "google.devtools.artifactregistry.v1beta2.Version" 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
@@ -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/b/c.txt".
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
@@ -27,10 +27,15 @@ module Google
27
27
  # @return [::String]
28
28
  # The name of the tag, for example:
29
29
  # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
30
+ # If the package part contains slashes, the slashes are escaped.
31
+ # The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else
32
+ # must be URL encoded.
30
33
  # @!attribute [rw] version
31
34
  # @return [::String]
32
35
  # The name of the version the tag refers to, for example:
33
36
  # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
37
+ # If the package or version ID parts contain slashes, the slashes are
38
+ # escaped.
34
39
  class Tag
35
40
  include ::Google::Protobuf::MessageExts
36
41
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -53,8 +58,7 @@ module Google
53
58
  # --> Tags that are applied to the version `1.0` in package `pkg1`.
54
59
  # @!attribute [rw] page_size
55
60
  # @return [::Integer]
56
- # The maximum number of tags to return.
57
- # Maximum page size is 10,000.
61
+ # The maximum number of tags to return. Maximum page size is 10,000.
58
62
  # @!attribute [rw] page_token
59
63
  # @return [::String]
60
64
  # The next_page_token value returned from a previous list request, if any.
@@ -28,6 +28,8 @@ module Google
28
28
  # @return [::String]
29
29
  # The name of the version, for example:
30
30
  # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
31
+ # If the package or version ID parts contain slashes, the slashes are
32
+ # escaped.
31
33
  # @!attribute [rw] description
32
34
  # @return [::String]
33
35
  # Optional. Description of the version, as specified in its metadata.
@@ -41,6 +43,12 @@ module Google
41
43
  # @return [::Array<::Google::Cloud::ArtifactRegistry::V1beta2::Tag>]
42
44
  # Output only. A list of related tags. Will contain up to 100 tags that
43
45
  # reference this version.
46
+ # @!attribute [r] metadata
47
+ # @return [::Google::Protobuf::Struct]
48
+ # Output only. Repository-specific Metadata stored against this version.
49
+ # The fields returned are defined by the underlying repository-specific
50
+ # resource. Currently, the only resource in use is
51
+ # [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
44
52
  class Version
45
53
  include ::Google::Protobuf::MessageExts
46
54
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -52,14 +60,16 @@ module Google
52
60
  # The name of the parent resource whose versions will be listed.
53
61
  # @!attribute [rw] page_size
54
62
  # @return [::Integer]
55
- # The maximum number of versions to return.
56
- # Maximum page size is 10,000.
63
+ # The maximum number of versions to return. Maximum page size is 1,000.
57
64
  # @!attribute [rw] page_token
58
65
  # @return [::String]
59
66
  # The next_page_token value returned from a previous list request, if any.
60
67
  # @!attribute [rw] view
61
68
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::VersionView]
62
69
  # The view that should be returned in the response.
70
+ # @!attribute [rw] order_by
71
+ # @return [::String]
72
+ # Optional. The field to order the results by.
63
73
  class ListVersionsRequest
64
74
  include ::Google::Protobuf::MessageExts
65
75
  extend ::Google::Protobuf::MessageExts::ClassMethods