google-cloud-artifact_registry-v1 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +1750 -288
  3. data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +3 -10
  4. data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +42 -0
  5. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +1643 -272
  6. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/operations.rb +3 -10
  7. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +804 -31
  8. data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
  9. data/lib/google/devtools/artifactregistry/v1/attachment_pb.rb +52 -0
  10. data/lib/google/devtools/artifactregistry/v1/file_pb.rb +5 -1
  11. data/lib/google/devtools/artifactregistry/v1/generic_pb.rb +47 -0
  12. data/lib/google/devtools/artifactregistry/v1/package_pb.rb +4 -1
  13. data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +11 -1
  14. data/lib/google/devtools/artifactregistry/v1/rule_pb.rb +57 -0
  15. data/lib/google/devtools/artifactregistry/v1/service_pb.rb +3 -1
  16. data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +31 -0
  17. data/lib/google/devtools/artifactregistry/v1/settings_pb.rb +1 -1
  18. data/lib/google/devtools/artifactregistry/v1/version_pb.rb +4 -1
  19. data/proto_docs/google/api/client.rb +51 -10
  20. data/proto_docs/google/api/resource.rb +7 -2
  21. data/proto_docs/google/devtools/artifactregistry/v1/artifact.rb +4 -4
  22. data/proto_docs/google/devtools/artifactregistry/v1/attachment.rb +152 -0
  23. data/proto_docs/google/devtools/artifactregistry/v1/file.rb +80 -7
  24. data/proto_docs/google/devtools/artifactregistry/v1/generic.rb +48 -0
  25. data/proto_docs/google/devtools/artifactregistry/v1/package.rb +76 -0
  26. data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +188 -1
  27. data/proto_docs/google/devtools/artifactregistry/v1/rule.rb +149 -0
  28. data/proto_docs/google/devtools/artifactregistry/v1/settings.rb +10 -0
  29. data/proto_docs/google/devtools/artifactregistry/v1/tag.rb +23 -5
  30. data/proto_docs/google/devtools/artifactregistry/v1/version.rb +74 -1
  31. data/proto_docs/google/longrunning/operations.rb +19 -14
  32. metadata +9 -3
@@ -28,6 +28,9 @@ module Google
28
28
  # @!attribute [rw] destinations
29
29
  # @return [::Array<::Google::Api::ClientLibraryDestination>]
30
30
  # The destination where API teams want this client library to be published.
31
+ # @!attribute [rw] selective_gapic_generation
32
+ # @return [::Google::Api::SelectiveGapicGeneration]
33
+ # Configuration for which RPCs should be generated in the GAPIC client.
31
34
  class CommonLanguageSettings
32
35
  include ::Google::Protobuf::MessageExts
33
36
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -196,9 +199,32 @@ module Google
196
199
  # @!attribute [rw] common
197
200
  # @return [::Google::Api::CommonLanguageSettings]
198
201
  # Some settings.
202
+ # @!attribute [rw] experimental_features
203
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
204
+ # Experimental features to be included during client library generation.
199
205
  class PythonSettings
200
206
  include ::Google::Protobuf::MessageExts
201
207
  extend ::Google::Protobuf::MessageExts::ClassMethods
208
+
209
+ # Experimental features to be included during client library generation.
210
+ # These fields will be deprecated once the feature graduates and is enabled
211
+ # by default.
212
+ # @!attribute [rw] rest_async_io_enabled
213
+ # @return [::Boolean]
214
+ # Enables generation of asynchronous REST clients if `rest` transport is
215
+ # enabled. By default, asynchronous REST clients will not be generated.
216
+ # This feature will be enabled by default 1 month after launching the
217
+ # feature in preview packages.
218
+ # @!attribute [rw] protobuf_pythonic_types_enabled
219
+ # @return [::Boolean]
220
+ # Enables generation of protobuf code using new types that are more
221
+ # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
+ # enabled by default 1 month after launching the feature in preview
223
+ # packages.
224
+ class ExperimentalFeatures
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
202
228
  end
203
229
 
204
230
  # Settings for Node client libraries.
@@ -290,6 +316,13 @@ module Google
290
316
  # @return [::String]
291
317
  # The fully qualified name of the method, for which the options below apply.
292
318
  # This is used to find the method to apply the options.
319
+ #
320
+ # Example:
321
+ #
322
+ # publishing:
323
+ # method_settings:
324
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
325
+ # # method settings for CreateFolder...
293
326
  # @!attribute [rw] long_running
294
327
  # @return [::Google::Api::MethodSettings::LongRunning]
295
328
  # Describes settings to use for long-running operations when generating
@@ -298,17 +331,14 @@ module Google
298
331
  #
299
332
  # Example of a YAML configuration::
300
333
  #
301
- # publishing:
302
- # method_settings:
334
+ # publishing:
335
+ # method_settings:
303
336
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
304
337
  # long_running:
305
- # initial_poll_delay:
306
- # seconds: 60 # 1 minute
338
+ # initial_poll_delay: 60s # 1 minute
307
339
  # poll_delay_multiplier: 1.5
308
- # max_poll_delay:
309
- # seconds: 360 # 6 minutes
310
- # total_poll_timeout:
311
- # seconds: 54000 # 90 minutes
340
+ # max_poll_delay: 360s # 6 minutes
341
+ # total_poll_timeout: 54000s # 90 minutes
312
342
  # @!attribute [rw] auto_populated_fields
313
343
  # @return [::Array<::String>]
314
344
  # List of top-level fields of the request message, that should be
@@ -317,8 +347,8 @@ module Google
317
347
  #
318
348
  # Example of a YAML configuration:
319
349
  #
320
- # publishing:
321
- # method_settings:
350
+ # publishing:
351
+ # method_settings:
322
352
  # - selector: google.example.v1.ExampleService.CreateExample
323
353
  # auto_populated_fields:
324
354
  # - request_id
@@ -354,6 +384,17 @@ module Google
354
384
  end
355
385
  end
356
386
 
387
+ # This message is used to configure the generation of a subset of the RPCs in
388
+ # a service for client libraries.
389
+ # @!attribute [rw] methods
390
+ # @return [::Array<::String>]
391
+ # An allowlist of the fully qualified names of RPCs that should be included
392
+ # on public client surfaces.
393
+ class SelectiveGapicGeneration
394
+ include ::Google::Protobuf::MessageExts
395
+ extend ::Google::Protobuf::MessageExts::ClassMethods
396
+ end
397
+
357
398
  # The organization for which the client libraries are being published.
358
399
  # Affects the url where generated docs are published, etc.
359
400
  module ClientLibraryOrganization
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
@@ -83,7 +83,7 @@ module Google
83
83
  # listed.
84
84
  # @!attribute [rw] page_size
85
85
  # @return [::Integer]
86
- # The maximum number of artifacts to return.
86
+ # The maximum number of artifacts to return. Maximum page size is 1,000.
87
87
  # @!attribute [rw] page_token
88
88
  # @return [::String]
89
89
  # The next_page_token value returned from a previous list request, if any.
@@ -162,7 +162,7 @@ module Google
162
162
  # listed.
163
163
  # @!attribute [rw] page_size
164
164
  # @return [::Integer]
165
- # The maximum number of artifacts to return.
165
+ # The maximum number of artifacts to return. Maximum page size is 1,000.
166
166
  # @!attribute [rw] page_token
167
167
  # @return [::String]
168
168
  # The next_page_token value returned from a previous list request, if any.
@@ -230,7 +230,7 @@ module Google
230
230
  # listed.
231
231
  # @!attribute [rw] page_size
232
232
  # @return [::Integer]
233
- # The maximum number of artifacts to return.
233
+ # The maximum number of artifacts to return. Maximum page size is 1,000.
234
234
  # @!attribute [rw] page_token
235
235
  # @return [::String]
236
236
  # The next_page_token value returned from a previous list request, if any.
@@ -302,7 +302,7 @@ module Google
302
302
  # listed.
303
303
  # @!attribute [rw] page_size
304
304
  # @return [::Integer]
305
- # The maximum number of artifacts to return.
305
+ # The maximum number of artifacts to return. Maximum page size is 1,000.
306
306
  # @!attribute [rw] page_token
307
307
  # @return [::String]
308
308
  # The next_page_token value returned from a previous list request, if any.
@@ -0,0 +1,152 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module ArtifactRegistry
23
+ module V1
24
+ # An Attachment refers to additional metadata that can be attached to
25
+ # artifacts in Artifact Registry. An attachment consists of one or more files.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # The name of the attachment. E.g.
29
+ # `projects/p1/locations/us/repositories/repo/attachments/sbom`.
30
+ # @!attribute [rw] target
31
+ # @return [::String]
32
+ # Required. The target the attachment is for, can be a Version, Package or
33
+ # Repository. E.g.
34
+ # `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
35
+ # @!attribute [rw] type
36
+ # @return [::String]
37
+ # Type of attachment.
38
+ # E.g. `application/vnd.spdx+json`
39
+ # @!attribute [rw] attachment_namespace
40
+ # @return [::String]
41
+ # The namespace this attachment belongs to.
42
+ # E.g. If an attachment is created by artifact analysis, namespace is set
43
+ # to `artifactanalysis.googleapis.com`.
44
+ # @!attribute [rw] annotations
45
+ # @return [::Google::Protobuf::Map{::String => ::String}]
46
+ # Optional. User annotations. These attributes can only be set and used by
47
+ # the user, and not by Artifact Registry. See
48
+ # https://google.aip.dev/128#annotations for more details such as format and
49
+ # size limitations.
50
+ # @!attribute [r] create_time
51
+ # @return [::Google::Protobuf::Timestamp]
52
+ # Output only. The time when the attachment was created.
53
+ # @!attribute [r] update_time
54
+ # @return [::Google::Protobuf::Timestamp]
55
+ # Output only. The time when the attachment was last updated.
56
+ # @!attribute [rw] files
57
+ # @return [::Array<::String>]
58
+ # Required. The files that belong to this attachment.
59
+ # If the file ID part contains slashes, they are escaped. E.g.
60
+ # `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.
61
+ # @!attribute [r] oci_version_name
62
+ # @return [::String]
63
+ # Output only. The name of the OCI version that this attachment created. Only
64
+ # populated for Docker attachments. E.g.
65
+ # `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
66
+ class Attachment
67
+ include ::Google::Protobuf::MessageExts
68
+ extend ::Google::Protobuf::MessageExts::ClassMethods
69
+
70
+ # @!attribute [rw] key
71
+ # @return [::String]
72
+ # @!attribute [rw] value
73
+ # @return [::String]
74
+ class AnnotationsEntry
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
+ end
78
+ end
79
+
80
+ # The request to list attachments.
81
+ # @!attribute [rw] parent
82
+ # @return [::String]
83
+ # Required. The name of the parent resource whose attachments will be listed.
84
+ # @!attribute [rw] filter
85
+ # @return [::String]
86
+ # Optional. An expression for filtering the results of the request. Filter
87
+ # rules are case insensitive. The fields eligible for filtering are:
88
+ #
89
+ # * `target`
90
+ # * `type`
91
+ # * `attachment_namespace`
92
+ # @!attribute [rw] page_size
93
+ # @return [::Integer]
94
+ # The maximum number of attachments to return. Maximum page size is 1,000.
95
+ # @!attribute [rw] page_token
96
+ # @return [::String]
97
+ # The next_page_token value returned from a previous list request, if any.
98
+ class ListAttachmentsRequest
99
+ include ::Google::Protobuf::MessageExts
100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+
103
+ # The response from listing attachments.
104
+ # @!attribute [rw] attachments
105
+ # @return [::Array<::Google::Cloud::ArtifactRegistry::V1::Attachment>]
106
+ # The attachments returned.
107
+ # @!attribute [rw] next_page_token
108
+ # @return [::String]
109
+ # The token to retrieve the next page of attachments, or empty if there are
110
+ # no more attachments to return.
111
+ class ListAttachmentsResponse
112
+ include ::Google::Protobuf::MessageExts
113
+ extend ::Google::Protobuf::MessageExts::ClassMethods
114
+ end
115
+
116
+ # The request to retrieve an attachment.
117
+ # @!attribute [rw] name
118
+ # @return [::String]
119
+ # Required. The name of the attachment to retrieve.
120
+ class GetAttachmentRequest
121
+ include ::Google::Protobuf::MessageExts
122
+ extend ::Google::Protobuf::MessageExts::ClassMethods
123
+ end
124
+
125
+ # The request to create a new attachment.
126
+ # @!attribute [rw] parent
127
+ # @return [::String]
128
+ # Required. The name of the parent resource where the attachment will be
129
+ # created.
130
+ # @!attribute [rw] attachment_id
131
+ # @return [::String]
132
+ # Required. The attachment id to use for this attachment.
133
+ # @!attribute [rw] attachment
134
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Attachment]
135
+ # Required. The attachment to be created.
136
+ class CreateAttachmentRequest
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+ end
140
+
141
+ # The request to delete an attachment.
142
+ # @!attribute [rw] name
143
+ # @return [::String]
144
+ # Required. The name of the attachment to delete.
145
+ class DeleteAttachmentRequest
146
+ include ::Google::Protobuf::MessageExts
147
+ extend ::Google::Protobuf::MessageExts::ClassMethods
148
+ end
149
+ end
150
+ end
151
+ end
152
+ end
@@ -49,7 +49,7 @@ module Google
49
49
  # @!attribute [rw] name
50
50
  # @return [::String]
51
51
  # The name of the file, for example:
52
- # "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
52
+ # `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`.
53
53
  # If the file ID part contains slashes, they are escaped.
54
54
  # @!attribute [rw] size_bytes
55
55
  # @return [::Integer]
@@ -70,9 +70,21 @@ module Google
70
70
  # @return [::Google::Protobuf::Timestamp]
71
71
  # Output only. The time when the last attempt to refresh the file's data was
72
72
  # made. Only set when the repository is remote.
73
+ # @!attribute [rw] annotations
74
+ # @return [::Google::Protobuf::Map{::String => ::String}]
75
+ # Optional. Client specified annotations.
73
76
  class File
74
77
  include ::Google::Protobuf::MessageExts
75
78
  extend ::Google::Protobuf::MessageExts::ClassMethods
79
+
80
+ # @!attribute [rw] key
81
+ # @return [::String]
82
+ # @!attribute [rw] value
83
+ # @return [::String]
84
+ class AnnotationsEntry
85
+ include ::Google::Protobuf::MessageExts
86
+ extend ::Google::Protobuf::MessageExts::ClassMethods
87
+ end
76
88
  end
77
89
 
78
90
  # The request to list files.
@@ -87,16 +99,54 @@ module Google
87
99
  #
88
100
  # * `name`
89
101
  # * `owner`
102
+ # * `annotations`
103
+ #
104
+ # Examples of using a filter:
105
+ #
106
+ # To filter the results of your request to files with the name `my_file.txt`
107
+ # in project `my-project` in the `us-central` region, in repository
108
+ # `my-repo`, append the following filter expression to your request:
109
+ #
110
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"`
111
+ #
112
+ # You can also use wildcards to match any number of characters before or
113
+ # after the value:
114
+ #
115
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"`
116
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"`
117
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"`
118
+ #
119
+ # To filter the results of your request to files owned by the version `1.0`
120
+ # in package `pkg1`, append the following filter expression to your request:
121
+ #
122
+ # * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"`
123
+ #
124
+ # To filter the results of your request to files with the annotation
125
+ # key-value pair [`external_link`: `external_link_value`], append the
126
+ # following filter expression to your request:
127
+ #
128
+ # * `"annotations.external_link:external_link_value"`
129
+ #
130
+ # To filter just for a specific annotation key `external_link`, append the
131
+ # following filter expression to your request:
132
+ #
133
+ # * `"annotations.external_link"`
90
134
  #
91
- # An example of using a filter:
135
+ # If the annotation key or value contains special characters, you can escape
136
+ # them by surrounding the value with backticks. For example, to filter the
137
+ # results of your request to files with the annotation key-value pair
138
+ # [`external.link`:`https://example.com/my-file`], append the following
139
+ # filter expression to your request:
92
140
  #
93
- # * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an
94
- # ID starting with "a/b/".
95
- # * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` -->
96
- # Files owned by the version `1.0` in package `pkg1`.
141
+ # * `` "annotations.`external.link`:`https://example.com/my-file`" ``
142
+ #
143
+ # You can also filter with annotations with a wildcard to
144
+ # match any number of characters before or after the value:
145
+ #
146
+ # * `` "annotations.*_link:`*example.com*`" ``
97
147
  # @!attribute [rw] page_size
98
148
  # @return [::Integer]
99
- # The maximum number of files to return.
149
+ # The maximum number of files to return. Maximum page size is 1,000.
100
150
  # @!attribute [rw] page_token
101
151
  # @return [::String]
102
152
  # The next_page_token value returned from a previous list request, if any.
@@ -129,6 +179,29 @@ module Google
129
179
  include ::Google::Protobuf::MessageExts
130
180
  extend ::Google::Protobuf::MessageExts::ClassMethods
131
181
  end
182
+
183
+ # The request to delete a file.
184
+ # @!attribute [rw] name
185
+ # @return [::String]
186
+ # Required. The name of the file to delete.
187
+ class DeleteFileRequest
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+ end
191
+
192
+ # The request to update a file.
193
+ # @!attribute [rw] file
194
+ # @return [::Google::Cloud::ArtifactRegistry::V1::File]
195
+ # Required. The File that replaces the resource on the server.
196
+ # @!attribute [rw] update_mask
197
+ # @return [::Google::Protobuf::FieldMask]
198
+ # Required. The update mask applies to the resource. For the `FieldMask`
199
+ # definition, see
200
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
201
+ class UpdateFileRequest
202
+ include ::Google::Protobuf::MessageExts
203
+ extend ::Google::Protobuf::MessageExts::ClassMethods
204
+ end
132
205
  end
133
206
  end
134
207
  end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module ArtifactRegistry
23
+ module V1
24
+ # GenericArtifact represents a generic artifact
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Resource name of the generic artifact.
28
+ # project, location, repository, package_id and version_id
29
+ # create a unique generic artifact.
30
+ # i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
31
+ # genericArtifacts/package_id:version_id"
32
+ # @!attribute [rw] version
33
+ # @return [::String]
34
+ # The version of the generic artifact.
35
+ # @!attribute [r] create_time
36
+ # @return [::Google::Protobuf::Timestamp]
37
+ # Output only. The time when the Generic module is created.
38
+ # @!attribute [r] update_time
39
+ # @return [::Google::Protobuf::Timestamp]
40
+ # Output only. The time when the Generic module is updated.
41
+ class GenericArtifact
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -37,9 +37,21 @@ module Google
37
37
  # @return [::Google::Protobuf::Timestamp]
38
38
  # The time when the package was last updated. This includes publishing a new
39
39
  # version of the package.
40
+ # @!attribute [rw] annotations
41
+ # @return [::Google::Protobuf::Map{::String => ::String}]
42
+ # Optional. Client specified annotations.
40
43
  class Package
41
44
  include ::Google::Protobuf::MessageExts
42
45
  extend ::Google::Protobuf::MessageExts::ClassMethods
46
+
47
+ # @!attribute [rw] key
48
+ # @return [::String]
49
+ # @!attribute [rw] value
50
+ # @return [::String]
51
+ class AnnotationsEntry
52
+ include ::Google::Protobuf::MessageExts
53
+ extend ::Google::Protobuf::MessageExts::ClassMethods
54
+ end
43
55
  end
44
56
 
45
57
  # The request to list packages.
@@ -52,6 +64,56 @@ module Google
52
64
  # @!attribute [rw] page_token
53
65
  # @return [::String]
54
66
  # The next_page_token value returned from a previous list request, if any.
67
+ # @!attribute [rw] filter
68
+ # @return [::String]
69
+ # Optional. An expression for filtering the results of the request. Filter
70
+ # rules are case insensitive. The fields eligible for filtering are:
71
+ #
72
+ # * `name`
73
+ # * `annotations`
74
+ #
75
+ # Examples of using a filter:
76
+ #
77
+ # To filter the results of your request to packages with the name
78
+ # `my-package` in project `my-project` in the `us-central` region, in
79
+ # repository `my-repo`, append the following filter expression to your
80
+ # request:
81
+ #
82
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
83
+ #
84
+ # You can also use wildcards to match any number of characters before or
85
+ # after the value:
86
+ #
87
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
88
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
89
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
90
+ #
91
+ # To filter the results of your request to packages with the annotation
92
+ # key-value pair [`external_link`: `external_link_value`], append the
93
+ # following filter expression to your request":
94
+ #
95
+ # * `"annotations.external_link:external_link_value"`
96
+ #
97
+ # To filter the results just for a specific annotation key `external_link`,
98
+ # append the following filter expression to your request:
99
+ #
100
+ # * `"annotations.external_link"`
101
+ #
102
+ # If the annotation key or value contains special characters, you can escape
103
+ # them by surrounding the value with backticks. For example, to filter the
104
+ # results of your request to packages with the annotation key-value pair
105
+ # [`external.link`:`https://example.com/my-package`], append the following
106
+ # filter expression to your request:
107
+ #
108
+ # * `` "annotations.`external.link`:`https://example.com/my-package`" ``
109
+ #
110
+ # You can also filter with annotations with a wildcard to
111
+ # match any number of characters before or after the value:
112
+ #
113
+ # * `` "annotations.*_link:`*example.com*`" ``
114
+ # @!attribute [rw] order_by
115
+ # @return [::String]
116
+ # Optional. The field to order the results by.
55
117
  class ListPackagesRequest
56
118
  include ::Google::Protobuf::MessageExts
57
119
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -87,6 +149,20 @@ module Google
87
149
  include ::Google::Protobuf::MessageExts
88
150
  extend ::Google::Protobuf::MessageExts::ClassMethods
89
151
  end
152
+
153
+ # The request to update a package.
154
+ # @!attribute [rw] package
155
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Package]
156
+ # The package that replaces the resource on the server.
157
+ # @!attribute [rw] update_mask
158
+ # @return [::Google::Protobuf::FieldMask]
159
+ # The update mask applies to the resource. For the `FieldMask` definition,
160
+ # see
161
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
162
+ class UpdatePackageRequest
163
+ include ::Google::Protobuf::MessageExts
164
+ extend ::Google::Protobuf::MessageExts::ClassMethods
165
+ end
90
166
  end
91
167
  end
92
168
  end