google-apis-artifactregistry_v1 0.65.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a58b99f8721f34d761f26186c8035e1064ddd332feb6ec663ac93eda152cc9d4
4
- data.tar.gz: 22a2959a25a416837a78f65ef63ff9f21a6611503eadddc17364826801c9c629
3
+ metadata.gz: 9112a054b63457ec8727c6efef0201c14df6040e92e2c28274763449649c4775
4
+ data.tar.gz: 89a2608b8f9173de6bec99bcc1108927acdcc62db8f17deee2c193dd27201d75
5
5
  SHA512:
6
- metadata.gz: 68dcb80241062e698fd51328912f449b3a2aa33293ae31a5070c3c73f651388e93fbe0e7eb5f535a400c3ff1027855ac563d73798c89c25174174177dae6b1b0
7
- data.tar.gz: df7e121d3ff4f1f7599806bb9efa31cc4edb5369fab564edfd8913aec18f5f3690a7213cc9d53e3e02971459b701a4d18f8988091abb4ebf2b7dcb46f3c38921
6
+ metadata.gz: 7bb7c373a8b3996349de763dcaac022e3003a542f67d60d4aafbe28d20fc3b0d1935038b3c09164115ba1b0e595aa81a8888bbb86b198f1352be715d9b960747
7
+ data.tar.gz: ae9851056847527d5b6aecfc7af138953b5ab1147e55c36c3ff1652408b5c0db45f9755fb87261030f8be8b00972b0d8f57ca784d4a2177652c320a75fa899ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-artifactregistry_v1
2
2
 
3
+ ### v0.67.0 (2024-09-29)
4
+
5
+ * Regenerated from discovery document revision 20240923
6
+
7
+ ### v0.66.0 (2024-09-08)
8
+
9
+ * Regenerated from discovery document revision 20240903
10
+
3
11
  ### v0.65.0 (2024-09-01)
4
12
 
5
13
  * Regenerated from discovery document revision 20240826
@@ -100,6 +100,85 @@ module Google
100
100
  end
101
101
  end
102
102
 
103
+ # An Attachment refers to additional metadata that can be attached to artifacts
104
+ # in ArtifactRegistry. An attachment consists of one or more files.
105
+ class Attachment
106
+ include Google::Apis::Core::Hashable
107
+
108
+ # Optional. User annotations. These attributes can only be set and used by the
109
+ # user, and not by Artifact Registry. See https://google.aip.dev/128#annotations
110
+ # for more details such as format and size limitations. Client specified
111
+ # annotations.
112
+ # Corresponds to the JSON property `annotations`
113
+ # @return [Hash<String,String>]
114
+ attr_accessor :annotations
115
+
116
+ # The namespace this attachment belongs to. E.g. If an Attachment is created by
117
+ # artifact analysis, namespace is set to artifactanalysis.googleapis.com.
118
+ # Corresponds to the JSON property `attachmentNamespace`
119
+ # @return [String]
120
+ attr_accessor :attachment_namespace
121
+
122
+ # Output only. The time when the attachment was created.
123
+ # Corresponds to the JSON property `createTime`
124
+ # @return [String]
125
+ attr_accessor :create_time
126
+
127
+ # Required. The files that blong to this Attachment. If the file ID part
128
+ # contains slashes, they are escaped. E.g. "projects/p1/locations/us-central1/
129
+ # repositories/repo1/files/sha:".
130
+ # Corresponds to the JSON property `files`
131
+ # @return [Array<String>]
132
+ attr_accessor :files
133
+
134
+ # The name of the attachment. E.g. "projects/p1/locations/us/repositories/repo/
135
+ # attachments/sbom".
136
+ # Corresponds to the JSON property `name`
137
+ # @return [String]
138
+ attr_accessor :name
139
+
140
+ # Output only. The name of the OCI version that this attachment created. Only
141
+ # populated for Docker attachments. E.g. "projects/p1/locations/us-central1/
142
+ # repositories/repo1/packages/p1/versions/v1".
143
+ # Corresponds to the JSON property `ociVersionName`
144
+ # @return [String]
145
+ attr_accessor :oci_version_name
146
+
147
+ # Required. The target the attachment is for, can be a Version, Package or
148
+ # Repository. E.g. "projects/p1/locations/us-central1/repositories/repo1/
149
+ # packages/p1/versions/v1".
150
+ # Corresponds to the JSON property `target`
151
+ # @return [String]
152
+ attr_accessor :target
153
+
154
+ # Type of Attachment. E.g. application/vnd.spdx+jsonn
155
+ # Corresponds to the JSON property `type`
156
+ # @return [String]
157
+ attr_accessor :type
158
+
159
+ # Output only. The time when the attachment was last updated.
160
+ # Corresponds to the JSON property `updateTime`
161
+ # @return [String]
162
+ attr_accessor :update_time
163
+
164
+ def initialize(**args)
165
+ update!(**args)
166
+ end
167
+
168
+ # Update properties of this object
169
+ def update!(**args)
170
+ @annotations = args[:annotations] if args.key?(:annotations)
171
+ @attachment_namespace = args[:attachment_namespace] if args.key?(:attachment_namespace)
172
+ @create_time = args[:create_time] if args.key?(:create_time)
173
+ @files = args[:files] if args.key?(:files)
174
+ @name = args[:name] if args.key?(:name)
175
+ @oci_version_name = args[:oci_version_name] if args.key?(:oci_version_name)
176
+ @target = args[:target] if args.key?(:target)
177
+ @type = args[:type] if args.key?(:type)
178
+ @update_time = args[:update_time] if args.key?(:update_time)
179
+ end
180
+ end
181
+
103
182
  # The metadata of an LRO from deleting multiple versions.
104
183
  class BatchDeleteVersionsMetadata
105
184
  include Google::Apis::Core::Hashable
@@ -364,6 +443,25 @@ module Google
364
443
  end
365
444
  end
366
445
 
446
+ # Common remote repository settings type.
447
+ class CommonRemoteRepository
448
+ include Google::Apis::Core::Hashable
449
+
450
+ # Required. A common public repository base for Remote Repository.
451
+ # Corresponds to the JSON property `uri`
452
+ # @return [String]
453
+ attr_accessor :uri
454
+
455
+ def initialize(**args)
456
+ update!(**args)
457
+ end
458
+
459
+ # Update properties of this object
460
+ def update!(**args)
461
+ @uri = args[:uri] if args.key?(:uri)
462
+ end
463
+ end
464
+
367
465
  # DockerImage represents a docker artifact. The following fields are returned as
368
466
  # untyped metadata in the Version resource, using camelcase keys (i.e. metadata.
369
467
  # imageSizeBytes): * imageSizeBytes * mediaType * buildTime
@@ -687,6 +785,11 @@ module Google
687
785
  class GoogleDevtoolsArtifactregistryV1File
688
786
  include Google::Apis::Core::Hashable
689
787
 
788
+ # Optional. Client specified annotations.
789
+ # Corresponds to the JSON property `annotations`
790
+ # @return [Hash<String,String>]
791
+ attr_accessor :annotations
792
+
690
793
  # Output only. The time when the File was created.
691
794
  # Corresponds to the JSON property `createTime`
692
795
  # @return [String]
@@ -731,6 +834,7 @@ module Google
731
834
 
732
835
  # Update properties of this object
733
836
  def update!(**args)
837
+ @annotations = args[:annotations] if args.key?(:annotations)
734
838
  @create_time = args[:create_time] if args.key?(:create_time)
735
839
  @fetch_time = args[:fetch_time] if args.key?(:fetch_time)
736
840
  @hashes = args[:hashes] if args.key?(:hashes)
@@ -913,6 +1017,66 @@ module Google
913
1017
  end
914
1018
  end
915
1019
 
1020
+ # A Rule applies to repository or package level. It defines the deny or allow
1021
+ # action of the operation when the conditions in the rule are met.
1022
+ class GoogleDevtoolsArtifactregistryV1Rule
1023
+ include Google::Apis::Core::Hashable
1024
+
1025
+ # The action this rule makes.
1026
+ # Corresponds to the JSON property `action`
1027
+ # @return [String]
1028
+ attr_accessor :action
1029
+
1030
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
1031
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
1032
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
1033
+ # "Summary size limit" description: "Determines if a summary is less than 100
1034
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
1035
+ # Requestor is owner" description: "Determines if requestor is the document
1036
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
1037
+ # Logic): title: "Public documents" description: "Determine whether the document
1038
+ # should be publicly visible" expression: "document.type != 'private' &&
1039
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
1040
+ # string" description: "Create a notification string with a timestamp."
1041
+ # expression: "'New message received at ' + string(document.create_time)" The
1042
+ # exact variables and functions that may be referenced within an expression are
1043
+ # determined by the service that evaluates it. See the service documentation for
1044
+ # additional information.
1045
+ # Corresponds to the JSON property `condition`
1046
+ # @return [Google::Apis::ArtifactregistryV1::Expr]
1047
+ attr_accessor :condition
1048
+
1049
+ # The name of the rule, for example: "projects/p1/locations/us-central1/
1050
+ # repositories/repo1/rules/rule1".
1051
+ # Corresponds to the JSON property `name`
1052
+ # @return [String]
1053
+ attr_accessor :name
1054
+
1055
+ #
1056
+ # Corresponds to the JSON property `operation`
1057
+ # @return [String]
1058
+ attr_accessor :operation
1059
+
1060
+ # The package ID the rule applies to. If empty, this rule applies to all the
1061
+ # packages inside the repository.
1062
+ # Corresponds to the JSON property `packageId`
1063
+ # @return [String]
1064
+ attr_accessor :package_id
1065
+
1066
+ def initialize(**args)
1067
+ update!(**args)
1068
+ end
1069
+
1070
+ # Update properties of this object
1071
+ def update!(**args)
1072
+ @action = args[:action] if args.key?(:action)
1073
+ @condition = args[:condition] if args.key?(:condition)
1074
+ @name = args[:name] if args.key?(:name)
1075
+ @operation = args[:operation] if args.key?(:operation)
1076
+ @package_id = args[:package_id] if args.key?(:package_id)
1077
+ end
1078
+ end
1079
+
916
1080
  # A hash of file content.
917
1081
  class HashProp
918
1082
  include Google::Apis::Core::Hashable
@@ -1307,6 +1471,32 @@ module Google
1307
1471
  end
1308
1472
  end
1309
1473
 
1474
+ # The response from listing attachments.
1475
+ class ListAttachmentsResponse
1476
+ include Google::Apis::Core::Hashable
1477
+
1478
+ # The Attachments returned.
1479
+ # Corresponds to the JSON property `attachments`
1480
+ # @return [Array<Google::Apis::ArtifactregistryV1::Attachment>]
1481
+ attr_accessor :attachments
1482
+
1483
+ # The token to retrieve the next page of attachments, or empty if there are no
1484
+ # more attachments to return.
1485
+ # Corresponds to the JSON property `nextPageToken`
1486
+ # @return [String]
1487
+ attr_accessor :next_page_token
1488
+
1489
+ def initialize(**args)
1490
+ update!(**args)
1491
+ end
1492
+
1493
+ # Update properties of this object
1494
+ def update!(**args)
1495
+ @attachments = args[:attachments] if args.key?(:attachments)
1496
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1497
+ end
1498
+ end
1499
+
1310
1500
  # The response from listing docker images.
1311
1501
  class ListDockerImagesResponse
1312
1502
  include Google::Apis::Core::Hashable
@@ -1514,6 +1704,32 @@ module Google
1514
1704
  end
1515
1705
  end
1516
1706
 
1707
+ # The response from listing rules.
1708
+ class ListRulesResponse
1709
+ include Google::Apis::Core::Hashable
1710
+
1711
+ # The token to retrieve the next page of rules, or empty if there are no more
1712
+ # rules to return.
1713
+ # Corresponds to the JSON property `nextPageToken`
1714
+ # @return [String]
1715
+ attr_accessor :next_page_token
1716
+
1717
+ # The rules returned.
1718
+ # Corresponds to the JSON property `rules`
1719
+ # @return [Array<Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule>]
1720
+ attr_accessor :rules
1721
+
1722
+ def initialize(**args)
1723
+ update!(**args)
1724
+ end
1725
+
1726
+ # Update properties of this object
1727
+ def update!(**args)
1728
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1729
+ @rules = args[:rules] if args.key?(:rules)
1730
+ end
1731
+ end
1732
+
1517
1733
  # The response from listing tags.
1518
1734
  class ListTagsResponse
1519
1735
  include Google::Apis::Core::Hashable
@@ -2151,6 +2367,11 @@ module Google
2151
2367
  # @return [Google::Apis::ArtifactregistryV1::AptRepository]
2152
2368
  attr_accessor :apt_repository
2153
2369
 
2370
+ # Common remote repository settings type.
2371
+ # Corresponds to the JSON property `commonRepository`
2372
+ # @return [Google::Apis::ArtifactregistryV1::CommonRemoteRepository]
2373
+ attr_accessor :common_repository
2374
+
2154
2375
  # The description of the remote source.
2155
2376
  # Corresponds to the JSON property `description`
2156
2377
  # @return [String]
@@ -2200,6 +2421,7 @@ module Google
2200
2421
  # Update properties of this object
2201
2422
  def update!(**args)
2202
2423
  @apt_repository = args[:apt_repository] if args.key?(:apt_repository)
2424
+ @common_repository = args[:common_repository] if args.key?(:common_repository)
2203
2425
  @description = args[:description] if args.key?(:description)
2204
2426
  @disable_upstream_validation = args[:disable_upstream_validation] if args.key?(:disable_upstream_validation)
2205
2427
  @docker_repository = args[:docker_repository] if args.key?(:docker_repository)
@@ -2574,6 +2796,46 @@ module Google
2574
2796
  end
2575
2797
  end
2576
2798
 
2799
+ # The response to upload a generic artifact.
2800
+ class UploadFileMediaResponse
2801
+ include Google::Apis::Core::Hashable
2802
+
2803
+ # This resource represents a long-running operation that is the result of a
2804
+ # network API call.
2805
+ # Corresponds to the JSON property `operation`
2806
+ # @return [Google::Apis::ArtifactregistryV1::Operation]
2807
+ attr_accessor :operation
2808
+
2809
+ def initialize(**args)
2810
+ update!(**args)
2811
+ end
2812
+
2813
+ # Update properties of this object
2814
+ def update!(**args)
2815
+ @operation = args[:operation] if args.key?(:operation)
2816
+ end
2817
+ end
2818
+
2819
+ # The request to upload a file.
2820
+ class UploadFileRequest
2821
+ include Google::Apis::Core::Hashable
2822
+
2823
+ # Optional. The ID of the file. If left empty will default to sha256 digest of
2824
+ # the content uploaded.
2825
+ # Corresponds to the JSON property `fileId`
2826
+ # @return [String]
2827
+ attr_accessor :file_id
2828
+
2829
+ def initialize(**args)
2830
+ update!(**args)
2831
+ end
2832
+
2833
+ # Update properties of this object
2834
+ def update!(**args)
2835
+ @file_id = args[:file_id] if args.key?(:file_id)
2836
+ end
2837
+ end
2838
+
2577
2839
  # The response to upload a generic artifact.
2578
2840
  class UploadGenericArtifactMediaResponse
2579
2841
  include Google::Apis::Core::Hashable
@@ -2998,6 +3260,11 @@ module Google
2998
3260
  class Version
2999
3261
  include Google::Apis::Core::Hashable
3000
3262
 
3263
+ # Optional. Client specified annotations.
3264
+ # Corresponds to the JSON property `annotations`
3265
+ # @return [Hash<String,String>]
3266
+ attr_accessor :annotations
3267
+
3001
3268
  # The time when the version was created.
3002
3269
  # Corresponds to the JSON property `createTime`
3003
3270
  # @return [String]
@@ -3039,6 +3306,7 @@ module Google
3039
3306
 
3040
3307
  # Update properties of this object
3041
3308
  def update!(**args)
3309
+ @annotations = args[:annotations] if args.key?(:annotations)
3042
3310
  @create_time = args[:create_time] if args.key?(:create_time)
3043
3311
  @description = args[:description] if args.key?(:description)
3044
3312
  @metadata = args[:metadata] if args.key?(:metadata)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ArtifactregistryV1
18
18
  # Version of the google-apis-artifactregistry_v1 gem
19
- GEM_VERSION = "0.65.0"
19
+ GEM_VERSION = "0.67.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240826"
25
+ REVISION = "20240923"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class Attachment
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class BatchDeleteVersionsMetadata
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -70,6 +76,12 @@ module Google
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
72
78
 
79
+ class CommonRemoteRepository
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
73
85
  class DockerImage
74
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
87
 
@@ -178,6 +190,12 @@ module Google
178
190
  include Google::Apis::Core::JsonObjectSupport
179
191
  end
180
192
 
193
+ class GoogleDevtoolsArtifactregistryV1Rule
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
181
199
  class HashProp
182
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
201
 
@@ -280,6 +298,12 @@ module Google
280
298
  include Google::Apis::Core::JsonObjectSupport
281
299
  end
282
300
 
301
+ class ListAttachmentsResponse
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
283
307
  class ListDockerImagesResponse
284
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
309
 
@@ -328,6 +352,12 @@ module Google
328
352
  include Google::Apis::Core::JsonObjectSupport
329
353
  end
330
354
 
355
+ class ListRulesResponse
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
331
361
  class ListTagsResponse
332
362
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
363
 
@@ -490,6 +520,18 @@ module Google
490
520
  include Google::Apis::Core::JsonObjectSupport
491
521
  end
492
522
 
523
+ class UploadFileMediaResponse
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
529
+ class UploadFileRequest
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
493
535
  class UploadGenericArtifactMediaResponse
494
536
  class Representation < Google::Apis::Core::JsonRepresentation; end
495
537
 
@@ -662,6 +704,21 @@ module Google
662
704
  end
663
705
  end
664
706
 
707
+ class Attachment
708
+ # @private
709
+ class Representation < Google::Apis::Core::JsonRepresentation
710
+ hash :annotations, as: 'annotations'
711
+ property :attachment_namespace, as: 'attachmentNamespace'
712
+ property :create_time, as: 'createTime'
713
+ collection :files, as: 'files'
714
+ property :name, as: 'name'
715
+ property :oci_version_name, as: 'ociVersionName'
716
+ property :target, as: 'target'
717
+ property :type, as: 'type'
718
+ property :update_time, as: 'updateTime'
719
+ end
720
+ end
721
+
665
722
  class BatchDeleteVersionsMetadata
666
723
  # @private
667
724
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -719,6 +776,13 @@ module Google
719
776
  end
720
777
  end
721
778
 
779
+ class CommonRemoteRepository
780
+ # @private
781
+ class Representation < Google::Apis::Core::JsonRepresentation
782
+ property :uri, as: 'uri'
783
+ end
784
+ end
785
+
722
786
  class DockerImage
723
787
  # @private
724
788
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -803,6 +867,7 @@ module Google
803
867
  class GoogleDevtoolsArtifactregistryV1File
804
868
  # @private
805
869
  class Representation < Google::Apis::Core::JsonRepresentation
870
+ hash :annotations, as: 'annotations'
806
871
  property :create_time, as: 'createTime'
807
872
  property :fetch_time, as: 'fetchTime'
808
873
  collection :hashes, as: 'hashes', class: Google::Apis::ArtifactregistryV1::HashProp, decorator: Google::Apis::ArtifactregistryV1::HashProp::Representation
@@ -872,6 +937,18 @@ module Google
872
937
  end
873
938
  end
874
939
 
940
+ class GoogleDevtoolsArtifactregistryV1Rule
941
+ # @private
942
+ class Representation < Google::Apis::Core::JsonRepresentation
943
+ property :action, as: 'action'
944
+ property :condition, as: 'condition', class: Google::Apis::ArtifactregistryV1::Expr, decorator: Google::Apis::ArtifactregistryV1::Expr::Representation
945
+
946
+ property :name, as: 'name'
947
+ property :operation, as: 'operation'
948
+ property :package_id, as: 'packageId'
949
+ end
950
+ end
951
+
875
952
  class HashProp
876
953
  # @private
877
954
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1014,6 +1091,15 @@ module Google
1014
1091
  end
1015
1092
  end
1016
1093
 
1094
+ class ListAttachmentsResponse
1095
+ # @private
1096
+ class Representation < Google::Apis::Core::JsonRepresentation
1097
+ collection :attachments, as: 'attachments', class: Google::Apis::ArtifactregistryV1::Attachment, decorator: Google::Apis::ArtifactregistryV1::Attachment::Representation
1098
+
1099
+ property :next_page_token, as: 'nextPageToken'
1100
+ end
1101
+ end
1102
+
1017
1103
  class ListDockerImagesResponse
1018
1104
  # @private
1019
1105
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1086,6 +1172,15 @@ module Google
1086
1172
  end
1087
1173
  end
1088
1174
 
1175
+ class ListRulesResponse
1176
+ # @private
1177
+ class Representation < Google::Apis::Core::JsonRepresentation
1178
+ property :next_page_token, as: 'nextPageToken'
1179
+ collection :rules, as: 'rules', class: Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule, decorator: Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
1180
+
1181
+ end
1182
+ end
1183
+
1089
1184
  class ListTagsResponse
1090
1185
  # @private
1091
1186
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1246,6 +1341,8 @@ module Google
1246
1341
  class Representation < Google::Apis::Core::JsonRepresentation
1247
1342
  property :apt_repository, as: 'aptRepository', class: Google::Apis::ArtifactregistryV1::AptRepository, decorator: Google::Apis::ArtifactregistryV1::AptRepository::Representation
1248
1343
 
1344
+ property :common_repository, as: 'commonRepository', class: Google::Apis::ArtifactregistryV1::CommonRemoteRepository, decorator: Google::Apis::ArtifactregistryV1::CommonRemoteRepository::Representation
1345
+
1249
1346
  property :description, as: 'description'
1250
1347
  property :disable_upstream_validation, as: 'disableUpstreamValidation'
1251
1348
  property :docker_repository, as: 'dockerRepository', class: Google::Apis::ArtifactregistryV1::DockerRepository, decorator: Google::Apis::ArtifactregistryV1::DockerRepository::Representation
@@ -1359,6 +1456,21 @@ module Google
1359
1456
  end
1360
1457
  end
1361
1458
 
1459
+ class UploadFileMediaResponse
1460
+ # @private
1461
+ class Representation < Google::Apis::Core::JsonRepresentation
1462
+ property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
1463
+
1464
+ end
1465
+ end
1466
+
1467
+ class UploadFileRequest
1468
+ # @private
1469
+ class Representation < Google::Apis::Core::JsonRepresentation
1470
+ property :file_id, as: 'fileId'
1471
+ end
1472
+ end
1473
+
1362
1474
  class UploadGenericArtifactMediaResponse
1363
1475
  # @private
1364
1476
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1516,6 +1628,7 @@ module Google
1516
1628
  class Version
1517
1629
  # @private
1518
1630
  class Representation < Google::Apis::Core::JsonRepresentation
1631
+ hash :annotations, as: 'annotations'
1519
1632
  property :create_time, as: 'createTime'
1520
1633
  property :description, as: 'description'
1521
1634
  hash :metadata, as: 'metadata'
@@ -441,9 +441,9 @@ module Google
441
441
  # Optional. An expression for filtering the results of the request. Filter rules
442
442
  # are case insensitive. The fields eligible for filtering are: * `name` Examples
443
443
  # of using a filter: To filter the results of your request to repositories with
444
- # the name "my-repo" in project my-project in the us-central region, append the
445
- # following filter expression to your request: * `name="projects/my-project/
446
- # locations/us-central1/repositories/my-repo` You can also use wildcards to
444
+ # the name `my-repo` in project `my-project` in the `us-central` region, append
445
+ # the following filter expression to your request: * `name="projects/my-project/
446
+ # locations/us-central1/repositories/my-repo"` You can also use wildcards to
447
447
  # match any number of characters before or after the value: * `name="projects/my-
448
448
  # project/locations/us-central1/repositories/my-*"` * `name="projects/my-project/
449
449
  # locations/us-central1/repositories/*repo"` * `name="projects/my-project/
@@ -677,6 +677,146 @@ module Google
677
677
  execute_or_queue_command(command, &block)
678
678
  end
679
679
 
680
+ # Creates an attachment. The returned Operation will finish once the attachment
681
+ # has been created. Its response will be the created Attachment.
682
+ # @param [String] parent
683
+ # Required. The name of the parent resource where the attachment will be created.
684
+ # @param [Google::Apis::ArtifactregistryV1::Attachment] attachment_object
685
+ # @param [String] attachment_id
686
+ # Required. The attachment id to use for this attachment.
687
+ # @param [String] fields
688
+ # Selector specifying which fields to include in a partial response.
689
+ # @param [String] quota_user
690
+ # Available to use for quota purposes for server-side applications. Can be any
691
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
692
+ # @param [Google::Apis::RequestOptions] options
693
+ # Request-specific options
694
+ #
695
+ # @yield [result, err] Result & error if block supplied
696
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
697
+ # @yieldparam err [StandardError] error object if request failed
698
+ #
699
+ # @return [Google::Apis::ArtifactregistryV1::Operation]
700
+ #
701
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
702
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
703
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
704
+ def create_project_location_repository_attachment(parent, attachment_object = nil, attachment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
705
+ command = make_simple_command(:post, 'v1/{+parent}/attachments', options)
706
+ command.request_representation = Google::Apis::ArtifactregistryV1::Attachment::Representation
707
+ command.request_object = attachment_object
708
+ command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
709
+ command.response_class = Google::Apis::ArtifactregistryV1::Operation
710
+ command.params['parent'] = parent unless parent.nil?
711
+ command.query['attachmentId'] = attachment_id unless attachment_id.nil?
712
+ command.query['fields'] = fields unless fields.nil?
713
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
714
+ execute_or_queue_command(command, &block)
715
+ end
716
+
717
+ # Deletes an attachment. The returned Operation will finish once the attachments
718
+ # has been deleted. It will not have any Operation metadata and will return a
719
+ # google.protobuf.Empty response.
720
+ # @param [String] name
721
+ # Required. The name of the attachment to delete.
722
+ # @param [String] fields
723
+ # Selector specifying which fields to include in a partial response.
724
+ # @param [String] quota_user
725
+ # Available to use for quota purposes for server-side applications. Can be any
726
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
727
+ # @param [Google::Apis::RequestOptions] options
728
+ # Request-specific options
729
+ #
730
+ # @yield [result, err] Result & error if block supplied
731
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
732
+ # @yieldparam err [StandardError] error object if request failed
733
+ #
734
+ # @return [Google::Apis::ArtifactregistryV1::Operation]
735
+ #
736
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
737
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
738
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
739
+ def delete_project_location_repository_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
740
+ command = make_simple_command(:delete, 'v1/{+name}', options)
741
+ command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
742
+ command.response_class = Google::Apis::ArtifactregistryV1::Operation
743
+ command.params['name'] = name unless name.nil?
744
+ command.query['fields'] = fields unless fields.nil?
745
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
746
+ execute_or_queue_command(command, &block)
747
+ end
748
+
749
+ # Gets an attachment.
750
+ # @param [String] name
751
+ # Required. The name of the attachment to retrieve.
752
+ # @param [String] fields
753
+ # Selector specifying which fields to include in a partial response.
754
+ # @param [String] quota_user
755
+ # Available to use for quota purposes for server-side applications. Can be any
756
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
757
+ # @param [Google::Apis::RequestOptions] options
758
+ # Request-specific options
759
+ #
760
+ # @yield [result, err] Result & error if block supplied
761
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Attachment] parsed result object
762
+ # @yieldparam err [StandardError] error object if request failed
763
+ #
764
+ # @return [Google::Apis::ArtifactregistryV1::Attachment]
765
+ #
766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
769
+ def get_project_location_repository_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
770
+ command = make_simple_command(:get, 'v1/{+name}', options)
771
+ command.response_representation = Google::Apis::ArtifactregistryV1::Attachment::Representation
772
+ command.response_class = Google::Apis::ArtifactregistryV1::Attachment
773
+ command.params['name'] = name unless name.nil?
774
+ command.query['fields'] = fields unless fields.nil?
775
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
776
+ execute_or_queue_command(command, &block)
777
+ end
778
+
779
+ # Lists repositories.
780
+ # @param [String] parent
781
+ # Required. The name of the parent resource whose attachments will be listed.
782
+ # @param [String] filter
783
+ # Optional. An expression for filtering the results of the request. Filter rules
784
+ # are case insensitive. The fields eligible for filtering are: * `target` * `
785
+ # type` * `attachment_namespace`
786
+ # @param [Fixnum] page_size
787
+ # The maximum number of attachments to return. Maximum page size is 1,000.
788
+ # @param [String] page_token
789
+ # The next_page_token value returned from a previous list request, if any.
790
+ # @param [String] fields
791
+ # Selector specifying which fields to include in a partial response.
792
+ # @param [String] quota_user
793
+ # Available to use for quota purposes for server-side applications. Can be any
794
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
795
+ # @param [Google::Apis::RequestOptions] options
796
+ # Request-specific options
797
+ #
798
+ # @yield [result, err] Result & error if block supplied
799
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::ListAttachmentsResponse] parsed result object
800
+ # @yieldparam err [StandardError] error object if request failed
801
+ #
802
+ # @return [Google::Apis::ArtifactregistryV1::ListAttachmentsResponse]
803
+ #
804
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
805
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
806
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
807
+ def list_project_location_repository_attachments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
808
+ command = make_simple_command(:get, 'v1/{+parent}/attachments', options)
809
+ command.response_representation = Google::Apis::ArtifactregistryV1::ListAttachmentsResponse::Representation
810
+ command.response_class = Google::Apis::ArtifactregistryV1::ListAttachmentsResponse
811
+ command.params['parent'] = parent unless parent.nil?
812
+ command.query['filter'] = filter unless filter.nil?
813
+ command.query['pageSize'] = page_size unless page_size.nil?
814
+ command.query['pageToken'] = page_token unless page_token.nil?
815
+ command.query['fields'] = fields unless fields.nil?
816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
817
+ execute_or_queue_command(command, &block)
818
+ end
819
+
680
820
  # Gets a docker image.
681
821
  # @param [String] name
682
822
  # Required. The name of the docker images.
@@ -853,30 +993,30 @@ module Google
853
993
  # An expression for filtering the results of the request. Filter rules are case
854
994
  # insensitive. The fields eligible for filtering are: * `name` * `owner` * `
855
995
  # annotations` Examples of using a filter: To filter the results of your request
856
- # to files with the name "my_file.txt" in project my-project in the us-central
857
- # region, in repository my-repo, append the following filter expression to your
858
- # request: * `name="projects/my-project/locations/us-central1/repositories/my-
859
- # repo/files/my-file.txt"` You can also use wildcards to match any number of
860
- # characters before or after the value: * `name="projects/my-project/locations/
861
- # us-central1/repositories/my-repo/files/my-*"` * `name="projects/my-project/
862
- # locations/us-central1/repositories/my-repo/files/*file.txt"` * `name="projects/
863
- # my-project/locations/us-central1/repositories/my-repo/files/*file*"` To filter
864
- # the results of your request to files owned by the version `1.0` in package `
865
- # pkg1`, append the following filter expression to your request: * `owner="
866
- # projects/my-project/locations/us-central1/repositories/my-repo/packages/my-
867
- # package/versions/1.0"` To filter the results of your request to files with the
868
- # annotation key-value pair [`external_link`:`external_link_value`], append the
869
- # following filter expression to your request: * "annotations.external_link:
870
- # external_link_value" To filter just for a specific annotation key `
871
- # external_link`, append the following filter expression to your request: * "
872
- # annotations.external_link" If the annotation key or value contains special
873
- # characters, you can escape them by surrounding the value with backticks. For
874
- # example, to filter the results of your request to files with the annotation
875
- # key-value pair [`external.link`:`https://example.com/my-file`], append the
876
- # following filter expression to your request: * "annotations.`external.link`:`
877
- # https://example.com/my-file`" You can also filter with annotations with a
878
- # wildcard to match any number of characters before or after the value: * "
879
- # annotations.*_link:`*example.com*`"
996
+ # to files with the name `my_file.txt` in project `my-project` in the `us-
997
+ # central` region, in repository `my-repo`, append the following filter
998
+ # expression to your request: * `name="projects/my-project/locations/us-central1/
999
+ # repositories/my-repo/files/my-file.txt"` You can also use wildcards to match
1000
+ # any number of characters before or after the value: * `name="projects/my-
1001
+ # project/locations/us-central1/repositories/my-repo/files/my-*"` * `name="
1002
+ # projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"
1003
+ # ` * `name="projects/my-project/locations/us-central1/repositories/my-repo/
1004
+ # files/*file*"` To filter the results of your request to files owned by the
1005
+ # version `1.0` in package `pkg1`, append the following filter expression to
1006
+ # your request: * `owner="projects/my-project/locations/us-central1/repositories/
1007
+ # my-repo/packages/my-package/versions/1.0"` To filter the results of your
1008
+ # request to files with the annotation key-value pair [`external_link`: `
1009
+ # external_link_value`], append the following filter expression to your request:
1010
+ # * `"annotations.external_link:external_link_value"` To filter just for a
1011
+ # specific annotation key `external_link`, append the following filter
1012
+ # expression to your request: * `"annotations.external_link"` If the annotation
1013
+ # key or value contains special characters, you can escape them by surrounding
1014
+ # the value with backticks. For example, to filter the results of your request
1015
+ # to files with the annotation key-value pair [`external.link`:`https://example.
1016
+ # com/my-file`], append the following filter expression to your request: * `` "
1017
+ # annotations.`external.link`:`https://example.com/my-file`" `` You can also
1018
+ # filter with annotations with a wildcard to match any number of characters
1019
+ # before or after the value: * `` "annotations.*_link:`*example.com*`" ``
880
1020
  # @param [String] order_by
881
1021
  # The field to order the results by.
882
1022
  # @param [Fixnum] page_size
@@ -914,6 +1054,90 @@ module Google
914
1054
  execute_or_queue_command(command, &block)
915
1055
  end
916
1056
 
1057
+ # Updates a file.
1058
+ # @param [String] name
1059
+ # The name of the file, for example: `projects/p1/locations/us-central1/
1060
+ # repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes,
1061
+ # they are escaped.
1062
+ # @param [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File] google_devtools_artifactregistry_v1_file_object
1063
+ # @param [String] update_mask
1064
+ # Required. The update mask applies to the resource. For the `FieldMask`
1065
+ # definition, see https://developers.google.com/protocol-buffers/docs/reference/
1066
+ # google.protobuf#fieldmask
1067
+ # @param [String] fields
1068
+ # Selector specifying which fields to include in a partial response.
1069
+ # @param [String] quota_user
1070
+ # Available to use for quota purposes for server-side applications. Can be any
1071
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1072
+ # @param [Google::Apis::RequestOptions] options
1073
+ # Request-specific options
1074
+ #
1075
+ # @yield [result, err] Result & error if block supplied
1076
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File] parsed result object
1077
+ # @yieldparam err [StandardError] error object if request failed
1078
+ #
1079
+ # @return [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File]
1080
+ #
1081
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1082
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1083
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1084
+ def patch_project_location_repository_file(name, google_devtools_artifactregistry_v1_file_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1085
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1086
+ command.request_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File::Representation
1087
+ command.request_object = google_devtools_artifactregistry_v1_file_object
1088
+ command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File::Representation
1089
+ command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File
1090
+ command.params['name'] = name unless name.nil?
1091
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1092
+ command.query['fields'] = fields unless fields.nil?
1093
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1094
+ execute_or_queue_command(command, &block)
1095
+ end
1096
+
1097
+ # Directly uploads a File to a repository. The returned Operation will complete
1098
+ # once the resources are uploaded.
1099
+ # @param [String] parent
1100
+ # Required. The resource name of the repository where the file will be uploaded.
1101
+ # @param [Google::Apis::ArtifactregistryV1::UploadFileRequest] upload_file_request_object
1102
+ # @param [String] fields
1103
+ # Selector specifying which fields to include in a partial response.
1104
+ # @param [String] quota_user
1105
+ # Available to use for quota purposes for server-side applications. Can be any
1106
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1107
+ # @param [IO, String] upload_source
1108
+ # IO stream or filename containing content to upload
1109
+ # @param [String] content_type
1110
+ # Content type of the uploaded content.
1111
+ # @param [Google::Apis::RequestOptions] options
1112
+ # Request-specific options
1113
+ #
1114
+ # @yield [result, err] Result & error if block supplied
1115
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::UploadFileMediaResponse] parsed result object
1116
+ # @yieldparam err [StandardError] error object if request failed
1117
+ #
1118
+ # @return [Google::Apis::ArtifactregistryV1::UploadFileMediaResponse]
1119
+ #
1120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1123
+ def upload_file(parent, upload_file_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
1124
+ if upload_source.nil?
1125
+ command = make_simple_command(:post, 'v1/{+parent}/files:upload', options)
1126
+ else
1127
+ command = make_upload_command(:post, 'v1/{+parent}/files:upload', options)
1128
+ command.upload_source = upload_source
1129
+ command.upload_content_type = content_type
1130
+ end
1131
+ command.request_representation = Google::Apis::ArtifactregistryV1::UploadFileRequest::Representation
1132
+ command.request_object = upload_file_request_object
1133
+ command.response_representation = Google::Apis::ArtifactregistryV1::UploadFileMediaResponse::Representation
1134
+ command.response_class = Google::Apis::ArtifactregistryV1::UploadFileMediaResponse
1135
+ command.params['parent'] = parent unless parent.nil?
1136
+ command.query['fields'] = fields unless fields.nil?
1137
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1138
+ execute_or_queue_command(command, &block)
1139
+ end
1140
+
917
1141
  # Directly uploads a Generic artifact. The returned operation will complete once
918
1142
  # the resources are uploaded. Package, version, and file resources are created
919
1143
  # based on the uploaded artifact. Uploaded artifacts that conflict with existing
@@ -1334,27 +1558,27 @@ module Google
1334
1558
  # Optional. An expression for filtering the results of the request. Filter rules
1335
1559
  # are case insensitive. The fields eligible for filtering are: * `name` * `
1336
1560
  # annotations` Examples of using a filter: To filter the results of your request
1337
- # to packages with the name "my-package" in project my-project in the us-central
1338
- # region, in repository my-repo, append the following filter expression to your
1339
- # request: * `name="projects/my-project/locations/us-central1/repositories/my-
1340
- # repo/packages/my-package"` You can also use wildcards to match any number of
1341
- # characters before or after the value: * `name="projects/my-project/locations/
1342
- # us-central1/repositories/my-repo/packages/my-*"` * `name="projects/my-project/
1343
- # locations/us-central1/repositories/my-repo/packages/*package"` * `name="
1344
- # projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"
1345
- # ` To filter the results of your request to packages with the annotation key-
1346
- # value pair [`external_link`:`external_link_value`], append the following
1347
- # filter expression to your request": * "annotations.external_link:
1348
- # external_link_value" To filter the results just for a specific annotation key `
1349
- # external_link`, append the following filter expression to your request: * "
1350
- # annotations.external_link" If the annotation key or value contains special
1351
- # characters, you can escape them by surrounding the value with backticks. For
1352
- # example, to filter the results of your request to packages with the annotation
1353
- # key-value pair [`external.link`:`https://example.com/my-package`], append the
1354
- # following filter expression to your request: * "annotations.`external.link`:`
1355
- # https://example.com/my-package`" You can also filter with annotations with a
1356
- # wildcard to match any number of characters before or after the value: * "
1357
- # annotations.*_link:`*example.com*`"
1561
+ # to packages with the name `my-package` in project `my-project` in the `us-
1562
+ # central` region, in repository `my-repo`, append the following filter
1563
+ # expression to your request: * `name="projects/my-project/locations/us-central1/
1564
+ # repositories/my-repo/packages/my-package"` You can also use wildcards to match
1565
+ # any number of characters before or after the value: * `name="projects/my-
1566
+ # project/locations/us-central1/repositories/my-repo/packages/my-*"` * `name="
1567
+ # projects/my-project/locations/us-central1/repositories/my-repo/packages/*
1568
+ # package"` * `name="projects/my-project/locations/us-central1/repositories/my-
1569
+ # repo/packages/*pack*"` To filter the results of your request to packages with
1570
+ # the annotation key-value pair [`external_link`: `external_link_value`], append
1571
+ # the following filter expression to your request": * `"annotations.
1572
+ # external_link:external_link_value"` To filter the results just for a specific
1573
+ # annotation key `external_link`, append the following filter expression to your
1574
+ # request: * `"annotations.external_link"` If the annotation key or value
1575
+ # contains special characters, you can escape them by surrounding the value with
1576
+ # backticks. For example, to filter the results of your request to packages with
1577
+ # the annotation key-value pair [`external.link`:`https://example.com/my-package`
1578
+ # ], append the following filter expression to your request: * `` "annotations.`
1579
+ # external.link`:`https://example.com/my-package`" `` You can also filter with
1580
+ # annotations with a wildcard to match any number of characters before or after
1581
+ # the value: * `` "annotations.*_link:`*example.com*`" ``
1358
1582
  # @param [String] order_by
1359
1583
  # Optional. The field to order the results by.
1360
1584
  # @param [Fixnum] page_size
@@ -1536,19 +1760,19 @@ module Google
1536
1760
  # An expression for filtering the results of the request. Filter rules are case
1537
1761
  # insensitive. The fields eligible for filtering are: * `name` * `version`
1538
1762
  # Examples of using a filter: To filter the results of your request to tags with
1539
- # the name "my-tag" in package "my-package" in repository "my-repo" in project "
1540
- # my-project" in the us-central region, append the following filter expression
1541
- # to your request: * `name="projects/my-project/locations/us-central1/
1542
- # repositories/my-repo/packages/my-package/tags/my-tag"` You can also use
1543
- # wildcards to match any number of characters before or after the value: * `name=
1544
- # "projects/my-project/locations/us-central1/repositories/my-repo/packages/my-
1545
- # package/tags/my*"` * `name="projects/my-project/locations/us-central1/
1546
- # repositories/my-repo/packages/my-package/tags/*tag"` * `name="projects/my-
1547
- # project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*
1548
- # tag*"` To filter the results of your request to tags applied to the version `1.
1549
- # 0` in package `my-package`, append the following filter expression to your
1550
- # request: * `version="projects/my-project/locations/us-central1/repositories/my-
1551
- # repo/packages/my-package/versions/1.0"`
1763
+ # the name `my-tag` in package `my-package` in repository `my-repo` in project "`
1764
+ # y-project` in the us-central region, append the following filter expression to
1765
+ # your request: * `name="projects/my-project/locations/us-central1/repositories/
1766
+ # my-repo/packages/my-package/tags/my-tag"` You can also use wildcards to match
1767
+ # any number of characters before or after the value: * `name="projects/my-
1768
+ # project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*
1769
+ # "` * `name="projects/my-project/locations/us-central1/repositories/my-repo/
1770
+ # packages/my-package/tags/*tag"` * `name="projects/my-project/locations/us-
1771
+ # central1/repositories/my-repo/packages/my-package/tags/*tag*"` To filter the
1772
+ # results of your request to tags applied to the version `1.0` in package `my-
1773
+ # package`, append the following filter expression to your request: * `version="
1774
+ # projects/my-project/locations/us-central1/repositories/my-repo/packages/my-
1775
+ # package/versions/1.0"`
1552
1776
  # @param [Fixnum] page_size
1553
1777
  # The maximum number of tags to return. Maximum page size is 1,000.
1554
1778
  # @param [String] page_token
@@ -1733,28 +1957,28 @@ module Google
1733
1957
  # Optional. An expression for filtering the results of the request. Filter rules
1734
1958
  # are case insensitive. The fields eligible for filtering are: * `name` * `
1735
1959
  # annotations` Examples of using a filter: To filter the results of your request
1736
- # to versions with the name "my-version" in project my-project in the us-central
1737
- # region, in repository my-repo, append the following filter expression to your
1738
- # request: * `name="projects/my-project/locations/us-central1/repositories/my-
1739
- # repo/packages/my-package/versions/my-version"` You can also use wildcards to
1740
- # match any number of characters before or after the value: * `name="projects/my-
1741
- # project/locations/us-central1/repositories/my-repo/packages/my-package/
1742
- # versions/*version"` * `name="projects/my-project/locations/us-central1/
1743
- # repositories/my-repo/packages/my-package/versions/my*"` * `name="projects/my-
1744
- # project/locations/us-central1/repositories/my-repo/packages/my-package/
1745
- # versions/*version*"` To filter the results of your request to versions with
1746
- # the annotation key-value pair [`external_link`:`external_link_value`], append
1747
- # the following filter expression to your request: * "annotations.external_link:
1748
- # external_link_value" To filter just for a specific annotation key `
1749
- # external_link`, append the following filter expression to your request: * "
1750
- # annotations.external_link" If the annotation key or value contains special
1960
+ # to versions with the name `my-version` in project `my-project` in the `us-
1961
+ # central` region, in repository `my-repo`, append the following filter
1962
+ # expression to your request: * `name="projects/my-project/locations/us-central1/
1963
+ # repositories/my-repo/packages/my-package/versions/my-version"` You can also
1964
+ # use wildcards to match any number of characters before or after the value: * `
1965
+ # name="projects/my-project/locations/us-central1/repositories/my-repo/packages/
1966
+ # my-package/versions/*version"` * `name="projects/my-project/locations/us-
1967
+ # central1/repositories/my-repo/packages/my-package/versions/my*"` * `name="
1968
+ # projects/my-project/locations/us-central1/repositories/my-repo/packages/my-
1969
+ # package/versions/*version*"` To filter the results of your request to versions
1970
+ # with the annotation key-value pair [`external_link`: `external_link_value`],
1971
+ # append the following filter expression to your request: * `"annotations.
1972
+ # external_link:external_link_value"` To filter just for a specific annotation
1973
+ # key `external_link`, append the following filter expression to your request: *
1974
+ # `"annotations.external_link"` If the annotation key or value contains special
1751
1975
  # characters, you can escape them by surrounding the value with backticks. For
1752
1976
  # example, to filter the results of your request to versions with the annotation
1753
1977
  # key-value pair [`external.link`:`https://example.com/my-version`], append the
1754
- # following filter expression to your request: * "annotations.`external.link`:`
1755
- # https://example.com/my-version`" You can also filter with annotations with a
1756
- # wildcard to match any number of characters before or after the value: * "
1757
- # annotations.*_link:`*example.com*`"
1978
+ # following filter expression to your request: * `` "annotations.`external.link`:
1979
+ # `https://example.com/my-version`" `` You can also filter with annotations with
1980
+ # a wildcard to match any number of characters before or after the value: * `` "
1981
+ # annotations.*_link:`*example.com*`" ``
1758
1982
  # @param [String] order_by
1759
1983
  # Optional. The field to order the results by.
1760
1984
  # @param [Fixnum] page_size
@@ -1795,6 +2019,46 @@ module Google
1795
2019
  execute_or_queue_command(command, &block)
1796
2020
  end
1797
2021
 
2022
+ # Updates a version.
2023
+ # @param [String] name
2024
+ # The name of the version, for example: "projects/p1/locations/us-central1/
2025
+ # repositories/repo1/packages/pkg1/versions/art1". If the package or version ID
2026
+ # parts contain slashes, the slashes are escaped.
2027
+ # @param [Google::Apis::ArtifactregistryV1::Version] version_object
2028
+ # @param [String] update_mask
2029
+ # The update mask applies to the resource. For the `FieldMask` definition, see
2030
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2031
+ # fieldmask
2032
+ # @param [String] fields
2033
+ # Selector specifying which fields to include in a partial response.
2034
+ # @param [String] quota_user
2035
+ # Available to use for quota purposes for server-side applications. Can be any
2036
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2037
+ # @param [Google::Apis::RequestOptions] options
2038
+ # Request-specific options
2039
+ #
2040
+ # @yield [result, err] Result & error if block supplied
2041
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Version] parsed result object
2042
+ # @yieldparam err [StandardError] error object if request failed
2043
+ #
2044
+ # @return [Google::Apis::ArtifactregistryV1::Version]
2045
+ #
2046
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2047
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2048
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2049
+ def patch_project_location_repository_package_version(name, version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2050
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2051
+ command.request_representation = Google::Apis::ArtifactregistryV1::Version::Representation
2052
+ command.request_object = version_object
2053
+ command.response_representation = Google::Apis::ArtifactregistryV1::Version::Representation
2054
+ command.response_class = Google::Apis::ArtifactregistryV1::Version
2055
+ command.params['name'] = name unless name.nil?
2056
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2057
+ command.query['fields'] = fields unless fields.nil?
2058
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2059
+ execute_or_queue_command(command, &block)
2060
+ end
2061
+
1798
2062
  # Gets a python package.
1799
2063
  # @param [String] name
1800
2064
  # Required. The name of the python package.
@@ -1861,6 +2125,178 @@ module Google
1861
2125
  execute_or_queue_command(command, &block)
1862
2126
  end
1863
2127
 
2128
+ # Creates a rule.
2129
+ # @param [String] parent
2130
+ # Required. The name of the parent resource where the rule will be created.
2131
+ # @param [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] google_devtools_artifactregistry_v1_rule_object
2132
+ # @param [String] rule_id
2133
+ # The rule id to use for this repository.
2134
+ # @param [String] fields
2135
+ # Selector specifying which fields to include in a partial response.
2136
+ # @param [String] quota_user
2137
+ # Available to use for quota purposes for server-side applications. Can be any
2138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2139
+ # @param [Google::Apis::RequestOptions] options
2140
+ # Request-specific options
2141
+ #
2142
+ # @yield [result, err] Result & error if block supplied
2143
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] parsed result object
2144
+ # @yieldparam err [StandardError] error object if request failed
2145
+ #
2146
+ # @return [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule]
2147
+ #
2148
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2149
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2150
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2151
+ def create_project_location_repository_rule(parent, google_devtools_artifactregistry_v1_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2152
+ command = make_simple_command(:post, 'v1/{+parent}/rules', options)
2153
+ command.request_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
2154
+ command.request_object = google_devtools_artifactregistry_v1_rule_object
2155
+ command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
2156
+ command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule
2157
+ command.params['parent'] = parent unless parent.nil?
2158
+ command.query['ruleId'] = rule_id unless rule_id.nil?
2159
+ command.query['fields'] = fields unless fields.nil?
2160
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2161
+ execute_or_queue_command(command, &block)
2162
+ end
2163
+
2164
+ # Deletes a rule.
2165
+ # @param [String] name
2166
+ # Required. The name of the rule to delete.
2167
+ # @param [String] fields
2168
+ # Selector specifying which fields to include in a partial response.
2169
+ # @param [String] quota_user
2170
+ # Available to use for quota purposes for server-side applications. Can be any
2171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2172
+ # @param [Google::Apis::RequestOptions] options
2173
+ # Request-specific options
2174
+ #
2175
+ # @yield [result, err] Result & error if block supplied
2176
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Empty] parsed result object
2177
+ # @yieldparam err [StandardError] error object if request failed
2178
+ #
2179
+ # @return [Google::Apis::ArtifactregistryV1::Empty]
2180
+ #
2181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2184
+ def delete_project_location_repository_rule(name, fields: nil, quota_user: nil, options: nil, &block)
2185
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2186
+ command.response_representation = Google::Apis::ArtifactregistryV1::Empty::Representation
2187
+ command.response_class = Google::Apis::ArtifactregistryV1::Empty
2188
+ command.params['name'] = name unless name.nil?
2189
+ command.query['fields'] = fields unless fields.nil?
2190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2191
+ execute_or_queue_command(command, &block)
2192
+ end
2193
+
2194
+ # Gets a rule.
2195
+ # @param [String] name
2196
+ # Required. The name of the rule to retrieve.
2197
+ # @param [String] fields
2198
+ # Selector specifying which fields to include in a partial response.
2199
+ # @param [String] quota_user
2200
+ # Available to use for quota purposes for server-side applications. Can be any
2201
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2202
+ # @param [Google::Apis::RequestOptions] options
2203
+ # Request-specific options
2204
+ #
2205
+ # @yield [result, err] Result & error if block supplied
2206
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] parsed result object
2207
+ # @yieldparam err [StandardError] error object if request failed
2208
+ #
2209
+ # @return [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule]
2210
+ #
2211
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2212
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2213
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2214
+ def get_project_location_repository_rule(name, fields: nil, quota_user: nil, options: nil, &block)
2215
+ command = make_simple_command(:get, 'v1/{+name}', options)
2216
+ command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
2217
+ command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule
2218
+ command.params['name'] = name unless name.nil?
2219
+ command.query['fields'] = fields unless fields.nil?
2220
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2221
+ execute_or_queue_command(command, &block)
2222
+ end
2223
+
2224
+ # Lists rules.
2225
+ # @param [String] parent
2226
+ # Required. The name of the parent repository whose rules will be listed. For
2227
+ # example: `projects/p1/locations/us-central1/repositories/repo1`.
2228
+ # @param [Fixnum] page_size
2229
+ # The maximum number of rules to return. Maximum page size is 1,000.
2230
+ # @param [String] page_token
2231
+ # The next_page_token value returned from a previous list request, if any.
2232
+ # @param [String] fields
2233
+ # Selector specifying which fields to include in a partial response.
2234
+ # @param [String] quota_user
2235
+ # Available to use for quota purposes for server-side applications. Can be any
2236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2237
+ # @param [Google::Apis::RequestOptions] options
2238
+ # Request-specific options
2239
+ #
2240
+ # @yield [result, err] Result & error if block supplied
2241
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::ListRulesResponse] parsed result object
2242
+ # @yieldparam err [StandardError] error object if request failed
2243
+ #
2244
+ # @return [Google::Apis::ArtifactregistryV1::ListRulesResponse]
2245
+ #
2246
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2247
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2248
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2249
+ def list_project_location_repository_rules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2250
+ command = make_simple_command(:get, 'v1/{+parent}/rules', options)
2251
+ command.response_representation = Google::Apis::ArtifactregistryV1::ListRulesResponse::Representation
2252
+ command.response_class = Google::Apis::ArtifactregistryV1::ListRulesResponse
2253
+ command.params['parent'] = parent unless parent.nil?
2254
+ command.query['pageSize'] = page_size unless page_size.nil?
2255
+ command.query['pageToken'] = page_token unless page_token.nil?
2256
+ command.query['fields'] = fields unless fields.nil?
2257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2258
+ execute_or_queue_command(command, &block)
2259
+ end
2260
+
2261
+ # Updates a rule.
2262
+ # @param [String] name
2263
+ # The name of the rule, for example: "projects/p1/locations/us-central1/
2264
+ # repositories/repo1/rules/rule1".
2265
+ # @param [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] google_devtools_artifactregistry_v1_rule_object
2266
+ # @param [String] update_mask
2267
+ # The update mask applies to the resource. For the `FieldMask` definition, see
2268
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2269
+ # fieldmask
2270
+ # @param [String] fields
2271
+ # Selector specifying which fields to include in a partial response.
2272
+ # @param [String] quota_user
2273
+ # Available to use for quota purposes for server-side applications. Can be any
2274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2275
+ # @param [Google::Apis::RequestOptions] options
2276
+ # Request-specific options
2277
+ #
2278
+ # @yield [result, err] Result & error if block supplied
2279
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] parsed result object
2280
+ # @yieldparam err [StandardError] error object if request failed
2281
+ #
2282
+ # @return [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule]
2283
+ #
2284
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2285
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2286
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2287
+ def patch_project_location_repository_rule(name, google_devtools_artifactregistry_v1_rule_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2288
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2289
+ command.request_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
2290
+ command.request_object = google_devtools_artifactregistry_v1_rule_object
2291
+ command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule::Representation
2292
+ command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule
2293
+ command.params['name'] = name unless name.nil?
2294
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2295
+ command.query['fields'] = fields unless fields.nil?
2296
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2297
+ execute_or_queue_command(command, &block)
2298
+ end
2299
+
1864
2300
  # Imports Yum (RPM) artifacts. The returned Operation will complete once the
1865
2301
  # resources are imported. Package, Version, and File resources are created based
1866
2302
  # on the imported artifacts. Imported artifacts that conflict with existing
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-artifactregistry_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.0
4
+ version: 0.67.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-01 00:00:00.000000000 Z
11
+ date: 2024-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.65.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.67.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1
63
63
  post_install_message:
64
64
  rdoc_options: []