google-apis-artifactregistry_v1 0.41.0 → 0.43.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: 01dbce704cea21f014c4144cbdc4ee723c9cf0f00a940fe15964f638421a8a9f
4
- data.tar.gz: de85aeef623d4509eca476346e7800ba674a416539bcbe4ce0717ec625e75e58
3
+ metadata.gz: f14025ea5285853e669cd441878d69da97fc8bdc87e04547ebe3fa91e67d20f8
4
+ data.tar.gz: 0fb0d8c22a8ae106742790d1977879404fd916eb3f1bcf65b6ede86020001298
5
5
  SHA512:
6
- metadata.gz: 749bb254ca07b809f520f039ea472ad32ea2faceb550c1cea72b4f2ec0e4fae2ea5f49a8ae81a071a31b21237a09d52ec5aef8e51fd29af03e064d7767ffe9c8
7
- data.tar.gz: a2615d229654636eebcd2cb81a2db5143e1720f295dc6682507658be0f30622fe493ddaa63dcf2d6b86419acf88bd1324598452d9c109b712c0c86f546e0d24e
6
+ metadata.gz: 3550eb7903f87d777c0e07c6492971985143add2a9382435abc784d8d226c17538c873d058aac88a6b6fe32c1b62f6a29d4a3f9ec72a86b216273f8e32bcad91
7
+ data.tar.gz: 3c8d28d4f949b2829817e1ffff81ec10f465d69cce493e02eec1dba55cba3c36b9ecc509b0baec7011205e06a8cdb56bc52a6a94516875d4be106f87bbf13d70
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-artifactregistry_v1
2
2
 
3
+ ### v0.43.0 (2023-07-02)
4
+
5
+ * Regenerated from discovery document revision 20230628
6
+
7
+ ### v0.42.0 (2023-05-28)
8
+
9
+ * Regenerated from discovery document revision 20230522
10
+
3
11
  ### v0.41.0 (2023-05-21)
4
12
 
5
13
  * Regenerated from discovery document revision 20230512
@@ -93,6 +93,33 @@ module Google
93
93
  end
94
94
  end
95
95
 
96
+ # The request to delete multiple versions across a repository.
97
+ class BatchDeleteVersionsRequest
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # Required. The names of the versions to delete. A maximum of 10000 versions can
101
+ # be deleted in a batch.
102
+ # Corresponds to the JSON property `names`
103
+ # @return [Array<String>]
104
+ attr_accessor :names
105
+
106
+ # If true, the request is performed without deleting data, following AIP-163.
107
+ # Corresponds to the JSON property `validateOnly`
108
+ # @return [Boolean]
109
+ attr_accessor :validate_only
110
+ alias_method :validate_only?, :validate_only
111
+
112
+ def initialize(**args)
113
+ update!(**args)
114
+ end
115
+
116
+ # Update properties of this object
117
+ def update!(**args)
118
+ @names = args[:names] if args.key?(:names)
119
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
120
+ end
121
+ end
122
+
96
123
  # Associates `members`, or principals, with a `role`.
97
124
  class Binding
98
125
  include Google::Apis::Core::Hashable
@@ -169,6 +196,129 @@ module Google
169
196
  end
170
197
  end
171
198
 
199
+ # Artifact policy configuration for repository cleanup policies.
200
+ class CleanupPolicy
201
+ include Google::Apis::Core::Hashable
202
+
203
+ # Policy action.
204
+ # Corresponds to the JSON property `action`
205
+ # @return [String]
206
+ attr_accessor :action
207
+
208
+ # CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If
209
+ # multiple entries are set, all must be satisfied for the condition to be
210
+ # satisfied.
211
+ # Corresponds to the JSON property `condition`
212
+ # @return [Google::Apis::ArtifactregistryV1::CleanupPolicyCondition]
213
+ attr_accessor :condition
214
+
215
+ # The user-provided ID of the cleanup policy.
216
+ # Corresponds to the JSON property `id`
217
+ # @return [String]
218
+ attr_accessor :id
219
+
220
+ # CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy
221
+ # for retaining a minimum number of versions.
222
+ # Corresponds to the JSON property `mostRecentVersions`
223
+ # @return [Google::Apis::ArtifactregistryV1::CleanupPolicyMostRecentVersions]
224
+ attr_accessor :most_recent_versions
225
+
226
+ def initialize(**args)
227
+ update!(**args)
228
+ end
229
+
230
+ # Update properties of this object
231
+ def update!(**args)
232
+ @action = args[:action] if args.key?(:action)
233
+ @condition = args[:condition] if args.key?(:condition)
234
+ @id = args[:id] if args.key?(:id)
235
+ @most_recent_versions = args[:most_recent_versions] if args.key?(:most_recent_versions)
236
+ end
237
+ end
238
+
239
+ # CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If
240
+ # multiple entries are set, all must be satisfied for the condition to be
241
+ # satisfied.
242
+ class CleanupPolicyCondition
243
+ include Google::Apis::Core::Hashable
244
+
245
+ # Match versions newer than a duration.
246
+ # Corresponds to the JSON property `newerThan`
247
+ # @return [String]
248
+ attr_accessor :newer_than
249
+
250
+ # Match versions older than a duration.
251
+ # Corresponds to the JSON property `olderThan`
252
+ # @return [String]
253
+ attr_accessor :older_than
254
+
255
+ # Match versions by package prefix. Applied on any prefix match.
256
+ # Corresponds to the JSON property `packageNamePrefixes`
257
+ # @return [Array<String>]
258
+ attr_accessor :package_name_prefixes
259
+
260
+ # Match versions by tag prefix. Applied on any prefix match.
261
+ # Corresponds to the JSON property `tagPrefixes`
262
+ # @return [Array<String>]
263
+ attr_accessor :tag_prefixes
264
+
265
+ # Match versions by tag status.
266
+ # Corresponds to the JSON property `tagState`
267
+ # @return [String]
268
+ attr_accessor :tag_state
269
+
270
+ # DEPRECATED: Use older_than.
271
+ # Corresponds to the JSON property `versionAge`
272
+ # @return [String]
273
+ attr_accessor :version_age
274
+
275
+ # Match versions by version name prefix. Applied on any prefix match.
276
+ # Corresponds to the JSON property `versionNamePrefixes`
277
+ # @return [Array<String>]
278
+ attr_accessor :version_name_prefixes
279
+
280
+ def initialize(**args)
281
+ update!(**args)
282
+ end
283
+
284
+ # Update properties of this object
285
+ def update!(**args)
286
+ @newer_than = args[:newer_than] if args.key?(:newer_than)
287
+ @older_than = args[:older_than] if args.key?(:older_than)
288
+ @package_name_prefixes = args[:package_name_prefixes] if args.key?(:package_name_prefixes)
289
+ @tag_prefixes = args[:tag_prefixes] if args.key?(:tag_prefixes)
290
+ @tag_state = args[:tag_state] if args.key?(:tag_state)
291
+ @version_age = args[:version_age] if args.key?(:version_age)
292
+ @version_name_prefixes = args[:version_name_prefixes] if args.key?(:version_name_prefixes)
293
+ end
294
+ end
295
+
296
+ # CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy
297
+ # for retaining a minimum number of versions.
298
+ class CleanupPolicyMostRecentVersions
299
+ include Google::Apis::Core::Hashable
300
+
301
+ # Minimum number of versions to keep.
302
+ # Corresponds to the JSON property `keepCount`
303
+ # @return [Fixnum]
304
+ attr_accessor :keep_count
305
+
306
+ # List of package name prefixes that will apply this rule.
307
+ # Corresponds to the JSON property `packageNamePrefixes`
308
+ # @return [Array<String>]
309
+ attr_accessor :package_name_prefixes
310
+
311
+ def initialize(**args)
312
+ update!(**args)
313
+ end
314
+
315
+ # Update properties of this object
316
+ def update!(**args)
317
+ @keep_count = args[:keep_count] if args.key?(:keep_count)
318
+ @package_name_prefixes = args[:package_name_prefixes] if args.key?(:package_name_prefixes)
319
+ end
320
+ end
321
+
172
322
  # DockerImage represents a docker artifact. The following fields are returned as
173
323
  # untyped metadata in the Version resource, using camelcase keys (i.e. metadata.
174
324
  # imageSizeBytes): * imageSizeBytes * mediaType * buildTime
@@ -360,6 +510,44 @@ module Google
360
510
  end
361
511
  end
362
512
 
513
+ # GoModule represents a Go module.
514
+ class GoModule
515
+ include Google::Apis::Core::Hashable
516
+
517
+ # Output only. The time when the Go module is created.
518
+ # Corresponds to the JSON property `createTime`
519
+ # @return [String]
520
+ attr_accessor :create_time
521
+
522
+ # The resource name of a Go module.
523
+ # Corresponds to the JSON property `name`
524
+ # @return [String]
525
+ attr_accessor :name
526
+
527
+ # Output only. The time when the Go module is updated.
528
+ # Corresponds to the JSON property `updateTime`
529
+ # @return [String]
530
+ attr_accessor :update_time
531
+
532
+ # The version of the Go module. Must be a valid canonical version as defined in
533
+ # https://go.dev/ref/mod#glos-canonical-version.
534
+ # Corresponds to the JSON property `version`
535
+ # @return [String]
536
+ attr_accessor :version
537
+
538
+ def initialize(**args)
539
+ update!(**args)
540
+ end
541
+
542
+ # Update properties of this object
543
+ def update!(**args)
544
+ @create_time = args[:create_time] if args.key?(:create_time)
545
+ @name = args[:name] if args.key?(:name)
546
+ @update_time = args[:update_time] if args.key?(:update_time)
547
+ @version = args[:version] if args.key?(:version)
548
+ end
549
+ end
550
+
363
551
  # A detailed representation of a GooGet artifact.
364
552
  class GoogetArtifact
365
553
  include Google::Apis::Core::Hashable
@@ -622,7 +810,7 @@ module Google
622
810
  class ImportGoogetArtifactsGcsSource
623
811
  include Google::Apis::Core::Hashable
624
812
 
625
- # Cloud Storage paths URI (e.g., gs://my_bucket/my_object).
813
+ # Cloud Storage paths URI (e.g., `gs://my_bucket/my_object`).
626
814
  # Corresponds to the JSON property `uris`
627
815
  # @return [Array<String>]
628
816
  attr_accessor :uris
@@ -1418,8 +1606,8 @@ module Google
1418
1606
  # @return [String]
1419
1607
  attr_accessor :display_name
1420
1608
 
1421
- # The name of the package, for example: "projects/p1/locations/us-central1/
1422
- # repositories/repo1/packages/pkg1". If the package ID part contains slashes,
1609
+ # The name of the package, for example: `projects/p1/locations/us-central1/
1610
+ # repositories/repo1/packages/pkg1`. If the package ID part contains slashes,
1423
1611
  # the slashes are escaped.
1424
1612
  # Corresponds to the JSON property `name`
1425
1613
  # @return [String]
@@ -1681,6 +1869,21 @@ module Google
1681
1869
  class Repository
1682
1870
  include Google::Apis::Core::Hashable
1683
1871
 
1872
+ # Optional. Cleanup policies for this repository. Cleanup policies indicate when
1873
+ # certain package versions can be automatically deleted. Map keys are policy IDs
1874
+ # supplied by users during policy creation. They must unique within a repository
1875
+ # and be under 128 characters in length.
1876
+ # Corresponds to the JSON property `cleanupPolicies`
1877
+ # @return [Hash<String,Google::Apis::ArtifactregistryV1::CleanupPolicy>]
1878
+ attr_accessor :cleanup_policies
1879
+
1880
+ # Optional. If true, the cleanup pipeline is prevented from deleting versions in
1881
+ # this repository.
1882
+ # Corresponds to the JSON property `cleanupPolicyDryRun`
1883
+ # @return [Boolean]
1884
+ attr_accessor :cleanup_policy_dry_run
1885
+ alias_method :cleanup_policy_dry_run?, :cleanup_policy_dry_run
1886
+
1684
1887
  # Output only. The time when the repository was created.
1685
1888
  # Corresponds to the JSON property `createTime`
1686
1889
  # @return [String]
@@ -1769,6 +1972,8 @@ module Google
1769
1972
 
1770
1973
  # Update properties of this object
1771
1974
  def update!(**args)
1975
+ @cleanup_policies = args[:cleanup_policies] if args.key?(:cleanup_policies)
1976
+ @cleanup_policy_dry_run = args[:cleanup_policy_dry_run] if args.key?(:cleanup_policy_dry_run)
1772
1977
  @create_time = args[:create_time] if args.key?(:create_time)
1773
1978
  @description = args[:description] if args.key?(:description)
1774
1979
  @docker_config = args[:docker_config] if args.key?(:docker_config)
@@ -2007,6 +2212,52 @@ module Google
2007
2212
  end
2008
2213
  end
2009
2214
 
2215
+ # The response to upload a Go module.
2216
+ class UploadGoModuleMediaResponse
2217
+ include Google::Apis::Core::Hashable
2218
+
2219
+ # This resource represents a long-running operation that is the result of a
2220
+ # network API call.
2221
+ # Corresponds to the JSON property `operation`
2222
+ # @return [Google::Apis::ArtifactregistryV1::Operation]
2223
+ attr_accessor :operation
2224
+
2225
+ def initialize(**args)
2226
+ update!(**args)
2227
+ end
2228
+
2229
+ # Update properties of this object
2230
+ def update!(**args)
2231
+ @operation = args[:operation] if args.key?(:operation)
2232
+ end
2233
+ end
2234
+
2235
+ # The operation metadata for uploading go modules.
2236
+ class UploadGoModuleMetadata
2237
+ include Google::Apis::Core::Hashable
2238
+
2239
+ def initialize(**args)
2240
+ update!(**args)
2241
+ end
2242
+
2243
+ # Update properties of this object
2244
+ def update!(**args)
2245
+ end
2246
+ end
2247
+
2248
+ # The request to upload a Go module.
2249
+ class UploadGoModuleRequest
2250
+ include Google::Apis::Core::Hashable
2251
+
2252
+ def initialize(**args)
2253
+ update!(**args)
2254
+ end
2255
+
2256
+ # Update properties of this object
2257
+ def update!(**args)
2258
+ end
2259
+ end
2260
+
2010
2261
  # The response to upload an artifact.
2011
2262
  class UploadGoogetArtifactMediaResponse
2012
2263
  include Google::Apis::Core::Hashable
@@ -2058,7 +2309,7 @@ module Google
2058
2309
  class UploadGoogetArtifactResponse
2059
2310
  include Google::Apis::Core::Hashable
2060
2311
 
2061
- # The Apt artifacts updated.
2312
+ # The GooGet artifacts updated.
2062
2313
  # Corresponds to the JSON property `googetArtifacts`
2063
2314
  # @return [Array<Google::Apis::ArtifactregistryV1::GoogetArtifact>]
2064
2315
  attr_accessor :googet_artifacts
@@ -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.41.0"
19
+ GEM_VERSION = "0.43.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230512"
25
+ REVISION = "20230628"
26
26
  end
27
27
  end
28
28
  end
@@ -34,12 +34,36 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class BatchDeleteVersionsRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Binding
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
40
46
  include Google::Apis::Core::JsonObjectSupport
41
47
  end
42
48
 
49
+ class CleanupPolicy
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CleanupPolicyCondition
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CleanupPolicyMostRecentVersions
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
43
67
  class DockerImage
44
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
69
 
@@ -70,6 +94,12 @@ module Google
70
94
  include Google::Apis::Core::JsonObjectSupport
71
95
  end
72
96
 
97
+ class GoModule
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
73
103
  class GoogetArtifact
74
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
105
 
@@ -388,6 +418,24 @@ module Google
388
418
  include Google::Apis::Core::JsonObjectSupport
389
419
  end
390
420
 
421
+ class UploadGoModuleMediaResponse
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
427
+ class UploadGoModuleMetadata
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
433
+ class UploadGoModuleRequest
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
391
439
  class UploadGoogetArtifactMediaResponse
392
440
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
441
 
@@ -503,6 +551,14 @@ module Google
503
551
  end
504
552
  end
505
553
 
554
+ class BatchDeleteVersionsRequest
555
+ # @private
556
+ class Representation < Google::Apis::Core::JsonRepresentation
557
+ collection :names, as: 'names'
558
+ property :validate_only, as: 'validateOnly'
559
+ end
560
+ end
561
+
506
562
  class Binding
507
563
  # @private
508
564
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -513,6 +569,39 @@ module Google
513
569
  end
514
570
  end
515
571
 
572
+ class CleanupPolicy
573
+ # @private
574
+ class Representation < Google::Apis::Core::JsonRepresentation
575
+ property :action, as: 'action'
576
+ property :condition, as: 'condition', class: Google::Apis::ArtifactregistryV1::CleanupPolicyCondition, decorator: Google::Apis::ArtifactregistryV1::CleanupPolicyCondition::Representation
577
+
578
+ property :id, as: 'id'
579
+ property :most_recent_versions, as: 'mostRecentVersions', class: Google::Apis::ArtifactregistryV1::CleanupPolicyMostRecentVersions, decorator: Google::Apis::ArtifactregistryV1::CleanupPolicyMostRecentVersions::Representation
580
+
581
+ end
582
+ end
583
+
584
+ class CleanupPolicyCondition
585
+ # @private
586
+ class Representation < Google::Apis::Core::JsonRepresentation
587
+ property :newer_than, as: 'newerThan'
588
+ property :older_than, as: 'olderThan'
589
+ collection :package_name_prefixes, as: 'packageNamePrefixes'
590
+ collection :tag_prefixes, as: 'tagPrefixes'
591
+ property :tag_state, as: 'tagState'
592
+ property :version_age, as: 'versionAge'
593
+ collection :version_name_prefixes, as: 'versionNamePrefixes'
594
+ end
595
+ end
596
+
597
+ class CleanupPolicyMostRecentVersions
598
+ # @private
599
+ class Representation < Google::Apis::Core::JsonRepresentation
600
+ property :keep_count, as: 'keepCount'
601
+ collection :package_name_prefixes, as: 'packageNamePrefixes'
602
+ end
603
+ end
604
+
516
605
  class DockerImage
517
606
  # @private
518
607
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -557,6 +646,16 @@ module Google
557
646
  end
558
647
  end
559
648
 
649
+ class GoModule
650
+ # @private
651
+ class Representation < Google::Apis::Core::JsonRepresentation
652
+ property :create_time, as: 'createTime'
653
+ property :name, as: 'name'
654
+ property :update_time, as: 'updateTime'
655
+ property :version, as: 'version'
656
+ end
657
+ end
658
+
560
659
  class GoogetArtifact
561
660
  # @private
562
661
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -953,6 +1052,9 @@ module Google
953
1052
  class Repository
954
1053
  # @private
955
1054
  class Representation < Google::Apis::Core::JsonRepresentation
1055
+ hash :cleanup_policies, as: 'cleanupPolicies', class: Google::Apis::ArtifactregistryV1::CleanupPolicy, decorator: Google::Apis::ArtifactregistryV1::CleanupPolicy::Representation
1056
+
1057
+ property :cleanup_policy_dry_run, as: 'cleanupPolicyDryRun'
956
1058
  property :create_time, as: 'createTime'
957
1059
  property :description, as: 'description'
958
1060
  property :docker_config, as: 'dockerConfig', class: Google::Apis::ArtifactregistryV1::DockerRepositoryConfig, decorator: Google::Apis::ArtifactregistryV1::DockerRepositoryConfig::Representation
@@ -1041,6 +1143,26 @@ module Google
1041
1143
  end
1042
1144
  end
1043
1145
 
1146
+ class UploadGoModuleMediaResponse
1147
+ # @private
1148
+ class Representation < Google::Apis::Core::JsonRepresentation
1149
+ property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
1150
+
1151
+ end
1152
+ end
1153
+
1154
+ class UploadGoModuleMetadata
1155
+ # @private
1156
+ class Representation < Google::Apis::Core::JsonRepresentation
1157
+ end
1158
+ end
1159
+
1160
+ class UploadGoModuleRequest
1161
+ # @private
1162
+ class Representation < Google::Apis::Core::JsonRepresentation
1163
+ end
1164
+ end
1165
+
1044
1166
  class UploadGoogetArtifactMediaResponse
1045
1167
  # @private
1046
1168
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -806,6 +806,51 @@ module Google
806
806
  execute_or_queue_command(command, &block)
807
807
  end
808
808
 
809
+ # Directly uploads a Go module. The returned Operation will complete once the Go
810
+ # module is uploaded. Package, Version, and File resources are created based on
811
+ # the uploaded Go module.
812
+ # @param [String] parent
813
+ # The resource name of the repository where the Go module will be uploaded.
814
+ # @param [Google::Apis::ArtifactregistryV1::UploadGoModuleRequest] upload_go_module_request_object
815
+ # @param [String] fields
816
+ # Selector specifying which fields to include in a partial response.
817
+ # @param [String] quota_user
818
+ # Available to use for quota purposes for server-side applications. Can be any
819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
820
+ # @param [IO, String] upload_source
821
+ # IO stream or filename containing content to upload
822
+ # @param [String] content_type
823
+ # Content type of the uploaded content.
824
+ # @param [Google::Apis::RequestOptions] options
825
+ # Request-specific options
826
+ #
827
+ # @yield [result, err] Result & error if block supplied
828
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::UploadGoModuleMediaResponse] parsed result object
829
+ # @yieldparam err [StandardError] error object if request failed
830
+ #
831
+ # @return [Google::Apis::ArtifactregistryV1::UploadGoModuleMediaResponse]
832
+ #
833
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
834
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
835
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
836
+ def upload_go_module(parent, upload_go_module_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
837
+ if upload_source.nil?
838
+ command = make_simple_command(:post, 'v1/{+parent}/goModules:create', options)
839
+ else
840
+ command = make_upload_command(:post, 'v1/{+parent}/goModules:create', options)
841
+ command.upload_source = upload_source
842
+ command.upload_content_type = content_type
843
+ end
844
+ command.request_representation = Google::Apis::ArtifactregistryV1::UploadGoModuleRequest::Representation
845
+ command.request_object = upload_go_module_request_object
846
+ command.response_representation = Google::Apis::ArtifactregistryV1::UploadGoModuleMediaResponse::Representation
847
+ command.response_class = Google::Apis::ArtifactregistryV1::UploadGoModuleMediaResponse
848
+ command.params['parent'] = parent unless parent.nil?
849
+ command.query['fields'] = fields unless fields.nil?
850
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
851
+ execute_or_queue_command(command, &block)
852
+ end
853
+
809
854
  # Imports GooGet artifacts. The returned Operation will complete once the
810
855
  # resources are imported. Package, Version, and File resources are created based
811
856
  # on the imported artifacts. Imported artifacts that conflict with existing
@@ -1344,6 +1389,40 @@ module Google
1344
1389
  execute_or_queue_command(command, &block)
1345
1390
  end
1346
1391
 
1392
+ # Deletes multiple versions across a repository. The returned operation will
1393
+ # complete once the versions have been deleted.
1394
+ # @param [String] parent
1395
+ # The name of the repository holding all requested versions.
1396
+ # @param [Google::Apis::ArtifactregistryV1::BatchDeleteVersionsRequest] batch_delete_versions_request_object
1397
+ # @param [String] fields
1398
+ # Selector specifying which fields to include in a partial response.
1399
+ # @param [String] quota_user
1400
+ # Available to use for quota purposes for server-side applications. Can be any
1401
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1402
+ # @param [Google::Apis::RequestOptions] options
1403
+ # Request-specific options
1404
+ #
1405
+ # @yield [result, err] Result & error if block supplied
1406
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
1407
+ # @yieldparam err [StandardError] error object if request failed
1408
+ #
1409
+ # @return [Google::Apis::ArtifactregistryV1::Operation]
1410
+ #
1411
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1412
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1413
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1414
+ def batch_delete_versions(parent, batch_delete_versions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1415
+ command = make_simple_command(:post, 'v1/{+parent}/versions:batchDelete', options)
1416
+ command.request_representation = Google::Apis::ArtifactregistryV1::BatchDeleteVersionsRequest::Representation
1417
+ command.request_object = batch_delete_versions_request_object
1418
+ command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
1419
+ command.response_class = Google::Apis::ArtifactregistryV1::Operation
1420
+ command.params['parent'] = parent unless parent.nil?
1421
+ command.query['fields'] = fields unless fields.nil?
1422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1423
+ execute_or_queue_command(command, &block)
1424
+ end
1425
+
1347
1426
  # Deletes a version and all of its content. The returned operation will complete
1348
1427
  # once the version has been deleted.
1349
1428
  # @param [String] name
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.41.0
4
+ version: 0.43.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: 2023-05-21 00:00:00.000000000 Z
11
+ date: 2023-07-02 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.41.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.43.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: []