google-apis-artifactregistry_v1beta2 0.9.0 → 0.13.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: 4f6ca6ea28200cbb022b3a2f81678a6a7d082078b36ec263f4c3e4faad6cb4da
4
- data.tar.gz: 2e96c897a1773f0f2eb73da97d0eff5eea5eca48b02a0f40d6bcc5863f314059
3
+ metadata.gz: 440e350341a22e7b105975d1c77b0f8a58b350f11cbd37863081063e09aa2732
4
+ data.tar.gz: d3b59e64f61a31c83d7dfa7954abcb295e0a9c8770ed24f6cd4c3201901bc515
5
5
  SHA512:
6
- metadata.gz: 952ef8a3b54a7db84c3e911ba499399884250461719e0b92033cca9a8c5ed3e7e35834c15bfa3dabdc8de64c12314d614819f72fede83991cd94da8c70dd2586
7
- data.tar.gz: 8ea474c9b0e50f91f98677a56141910456af4e9414def22390e601711b9ccb60b0ee719ed9315dcd57eb00308a59d426b644517bb9114421df554f4641887b9d
6
+ metadata.gz: 9625bd4113c3bc6736115b9535615570e81116fa2903ecbb7e1033c7d396383f473bb09c114bdb819f8b0b157bdbecac117aecb403ac6b3585b17c3b13927932
7
+ data.tar.gz: ffa3f8337e42fb6aabef2ec2be96950dec08d5ac5318f50dfad431dc332bb477de46f2df8fd78bdb0f1cb08d9378769743ff45419d7582111f790535108e9386
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-artifactregistry_v1beta2
2
2
 
3
+ ### v0.13.0 (2021-10-11)
4
+
5
+ * Regenerated from discovery document revision 20211002
6
+
7
+ ### v0.12.0 (2021-10-01)
8
+
9
+ * Regenerated from discovery document revision 20210925
10
+
11
+ ### v0.11.0 (2021-09-01)
12
+
13
+ * Regenerated from discovery document revision 20210817
14
+
15
+ ### v0.10.0 (2021-07-06)
16
+
17
+ * Regenerated from discovery document revision 20210629
18
+
3
19
  ### v0.9.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
@@ -22,6 +22,58 @@ module Google
22
22
  module Apis
23
23
  module ArtifactregistryV1beta2
24
24
 
25
+ # A detailed representation of an Apt artifact. Information in the record is
26
+ # derived from the archive's control file. See https://www.debian.org/doc/debian-
27
+ # policy/ch-controlfields.html
28
+ class AptArtifact
29
+ include Google::Apis::Core::Hashable
30
+
31
+ # Output only. Operating system architecture of the artifact.
32
+ # Corresponds to the JSON property `architecture`
33
+ # @return [String]
34
+ attr_accessor :architecture
35
+
36
+ # Output only. Repository component of the artifact.
37
+ # Corresponds to the JSON property `component`
38
+ # @return [String]
39
+ attr_accessor :component
40
+
41
+ # Output only. Contents of the artifact's control metadata file.
42
+ # Corresponds to the JSON property `controlFile`
43
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
44
+ # @return [String]
45
+ attr_accessor :control_file
46
+
47
+ # Output only. The Artifact Registry resource name of the artifact.
48
+ # Corresponds to the JSON property `name`
49
+ # @return [String]
50
+ attr_accessor :name
51
+
52
+ # Output only. The Apt package name of the artifact.
53
+ # Corresponds to the JSON property `packageName`
54
+ # @return [String]
55
+ attr_accessor :package_name
56
+
57
+ # Output only. An artifact is a binary or source package.
58
+ # Corresponds to the JSON property `packageType`
59
+ # @return [String]
60
+ attr_accessor :package_type
61
+
62
+ def initialize(**args)
63
+ update!(**args)
64
+ end
65
+
66
+ # Update properties of this object
67
+ def update!(**args)
68
+ @architecture = args[:architecture] if args.key?(:architecture)
69
+ @component = args[:component] if args.key?(:component)
70
+ @control_file = args[:control_file] if args.key?(:control_file)
71
+ @name = args[:name] if args.key?(:name)
72
+ @package_name = args[:package_name] if args.key?(:package_name)
73
+ @package_type = args[:package_type] if args.key?(:package_type)
74
+ end
75
+ end
76
+
25
77
  # Associates `members` with a `role`.
26
78
  class Binding
27
79
  include Google::Apis::Core::Hashable
@@ -165,7 +217,7 @@ module Google
165
217
  end
166
218
 
167
219
  # Files store content that is potentially associated with Packages or Versions.
168
- class File
220
+ class GoogleDevtoolsArtifactregistryV1beta2File
169
221
  include Google::Apis::Core::Hashable
170
222
 
171
223
  # The time when the File was created.
@@ -241,13 +293,213 @@ module Google
241
293
  end
242
294
  end
243
295
 
296
+ # Error information explaining why a package was not imported.
297
+ class ImportAptArtifactsErrorInfo
298
+ include Google::Apis::Core::Hashable
299
+
300
+ # The `Status` type defines a logical error model that is suitable for different
301
+ # programming environments, including REST APIs and RPC APIs. It is used by [
302
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
303
+ # data: error code, error message, and error details. You can find out more
304
+ # about this error model and how to work with it in the [API Design Guide](https:
305
+ # //cloud.google.com/apis/design/errors).
306
+ # Corresponds to the JSON property `error`
307
+ # @return [Google::Apis::ArtifactregistryV1beta2::Status]
308
+ attr_accessor :error
309
+
310
+ # Google Cloud Storage location where the artifacts currently reside.
311
+ # Corresponds to the JSON property `gcsSource`
312
+ # @return [Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource]
313
+ attr_accessor :gcs_source
314
+
315
+ def initialize(**args)
316
+ update!(**args)
317
+ end
318
+
319
+ # Update properties of this object
320
+ def update!(**args)
321
+ @error = args[:error] if args.key?(:error)
322
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
323
+ end
324
+ end
325
+
326
+ # Google Cloud Storage location where the artifacts currently reside.
327
+ class ImportAptArtifactsGcsSource
328
+ include Google::Apis::Core::Hashable
329
+
330
+ # Cloud Storage paths URI (e.g., gs://my_bucket//my_object).
331
+ # Corresponds to the JSON property `uris`
332
+ # @return [Array<String>]
333
+ attr_accessor :uris
334
+
335
+ # Supports URI wildcards for matching multiple objects from a single URI.
336
+ # Corresponds to the JSON property `useWildcards`
337
+ # @return [Boolean]
338
+ attr_accessor :use_wildcards
339
+ alias_method :use_wildcards?, :use_wildcards
340
+
341
+ def initialize(**args)
342
+ update!(**args)
343
+ end
344
+
345
+ # Update properties of this object
346
+ def update!(**args)
347
+ @uris = args[:uris] if args.key?(:uris)
348
+ @use_wildcards = args[:use_wildcards] if args.key?(:use_wildcards)
349
+ end
350
+ end
351
+
352
+ # The request to import new apt artifacts.
353
+ class ImportAptArtifactsRequest
354
+ include Google::Apis::Core::Hashable
355
+
356
+ # Google Cloud Storage location where the artifacts currently reside.
357
+ # Corresponds to the JSON property `gcsSource`
358
+ # @return [Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource]
359
+ attr_accessor :gcs_source
360
+
361
+ def initialize(**args)
362
+ update!(**args)
363
+ end
364
+
365
+ # Update properties of this object
366
+ def update!(**args)
367
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
368
+ end
369
+ end
370
+
371
+ # The response message from importing artifacts.
372
+ class ImportAptArtifactsResponse
373
+ include Google::Apis::Core::Hashable
374
+
375
+ # The Apt artifacts updated.
376
+ # Corresponds to the JSON property `aptArtifacts`
377
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::AptArtifact>]
378
+ attr_accessor :apt_artifacts
379
+
380
+ # Detailed error info for packages that were not imported.
381
+ # Corresponds to the JSON property `errors`
382
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsErrorInfo>]
383
+ attr_accessor :errors
384
+
385
+ def initialize(**args)
386
+ update!(**args)
387
+ end
388
+
389
+ # Update properties of this object
390
+ def update!(**args)
391
+ @apt_artifacts = args[:apt_artifacts] if args.key?(:apt_artifacts)
392
+ @errors = args[:errors] if args.key?(:errors)
393
+ end
394
+ end
395
+
396
+ # Error information explaining why a package was not imported.
397
+ class ImportYumArtifactsErrorInfo
398
+ include Google::Apis::Core::Hashable
399
+
400
+ # The `Status` type defines a logical error model that is suitable for different
401
+ # programming environments, including REST APIs and RPC APIs. It is used by [
402
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
403
+ # data: error code, error message, and error details. You can find out more
404
+ # about this error model and how to work with it in the [API Design Guide](https:
405
+ # //cloud.google.com/apis/design/errors).
406
+ # Corresponds to the JSON property `error`
407
+ # @return [Google::Apis::ArtifactregistryV1beta2::Status]
408
+ attr_accessor :error
409
+
410
+ # Google Cloud Storage location where the artifacts currently reside.
411
+ # Corresponds to the JSON property `gcsSource`
412
+ # @return [Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource]
413
+ attr_accessor :gcs_source
414
+
415
+ def initialize(**args)
416
+ update!(**args)
417
+ end
418
+
419
+ # Update properties of this object
420
+ def update!(**args)
421
+ @error = args[:error] if args.key?(:error)
422
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
423
+ end
424
+ end
425
+
426
+ # Google Cloud Storage location where the artifacts currently reside.
427
+ class ImportYumArtifactsGcsSource
428
+ include Google::Apis::Core::Hashable
429
+
430
+ # Cloud Storage paths URI (e.g., gs://my_bucket//my_object).
431
+ # Corresponds to the JSON property `uris`
432
+ # @return [Array<String>]
433
+ attr_accessor :uris
434
+
435
+ # Supports URI wildcards for matching multiple objects from a single URI.
436
+ # Corresponds to the JSON property `useWildcards`
437
+ # @return [Boolean]
438
+ attr_accessor :use_wildcards
439
+ alias_method :use_wildcards?, :use_wildcards
440
+
441
+ def initialize(**args)
442
+ update!(**args)
443
+ end
444
+
445
+ # Update properties of this object
446
+ def update!(**args)
447
+ @uris = args[:uris] if args.key?(:uris)
448
+ @use_wildcards = args[:use_wildcards] if args.key?(:use_wildcards)
449
+ end
450
+ end
451
+
452
+ # The request to import new yum artifacts.
453
+ class ImportYumArtifactsRequest
454
+ include Google::Apis::Core::Hashable
455
+
456
+ # Google Cloud Storage location where the artifacts currently reside.
457
+ # Corresponds to the JSON property `gcsSource`
458
+ # @return [Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource]
459
+ attr_accessor :gcs_source
460
+
461
+ def initialize(**args)
462
+ update!(**args)
463
+ end
464
+
465
+ # Update properties of this object
466
+ def update!(**args)
467
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
468
+ end
469
+ end
470
+
471
+ # The response message from importing artifacts.
472
+ class ImportYumArtifactsResponse
473
+ include Google::Apis::Core::Hashable
474
+
475
+ # Detailed error info for packages that were not imported.
476
+ # Corresponds to the JSON property `errors`
477
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsErrorInfo>]
478
+ attr_accessor :errors
479
+
480
+ # The yum artifacts updated.
481
+ # Corresponds to the JSON property `yumArtifacts`
482
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::YumArtifact>]
483
+ attr_accessor :yum_artifacts
484
+
485
+ def initialize(**args)
486
+ update!(**args)
487
+ end
488
+
489
+ # Update properties of this object
490
+ def update!(**args)
491
+ @errors = args[:errors] if args.key?(:errors)
492
+ @yum_artifacts = args[:yum_artifacts] if args.key?(:yum_artifacts)
493
+ end
494
+ end
495
+
244
496
  # The response from listing files.
245
497
  class ListFilesResponse
246
498
  include Google::Apis::Core::Hashable
247
499
 
248
500
  # The files returned.
249
501
  # Corresponds to the JSON property `files`
250
- # @return [Array<Google::Apis::ArtifactregistryV1beta2::File>]
502
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File>]
251
503
  attr_accessor :files
252
504
 
253
505
  # The token to retrieve the next page of files, or empty if there are no more
@@ -292,31 +544,6 @@ module Google
292
544
  end
293
545
  end
294
546
 
295
- # The response message for Operations.ListOperations.
296
- class ListOperationsResponse
297
- include Google::Apis::Core::Hashable
298
-
299
- # The standard List next-page token.
300
- # Corresponds to the JSON property `nextPageToken`
301
- # @return [String]
302
- attr_accessor :next_page_token
303
-
304
- # A list of operations that matches the specified filter in the request.
305
- # Corresponds to the JSON property `operations`
306
- # @return [Array<Google::Apis::ArtifactregistryV1beta2::Operation>]
307
- attr_accessor :operations
308
-
309
- def initialize(**args)
310
- update!(**args)
311
- end
312
-
313
- # Update properties of this object
314
- def update!(**args)
315
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
316
- @operations = args[:operations] if args.key?(:operations)
317
- end
318
- end
319
-
320
547
  # The response from listing packages.
321
548
  class ListPackagesResponse
322
549
  include Google::Apis::Core::Hashable
@@ -468,6 +695,33 @@ module Google
468
695
  end
469
696
  end
470
697
 
698
+ # MavenRepositoryConfig is maven related repository details. Provides additional
699
+ # configuration details for repositories of the maven format type.
700
+ class MavenRepositoryConfig
701
+ include Google::Apis::Core::Hashable
702
+
703
+ # The repository with this flag will allow publishing the same snapshot versions.
704
+ # Corresponds to the JSON property `allowSnapshotOverwrites`
705
+ # @return [Boolean]
706
+ attr_accessor :allow_snapshot_overwrites
707
+ alias_method :allow_snapshot_overwrites?, :allow_snapshot_overwrites
708
+
709
+ # Version policy defines the versions that the registry will accept.
710
+ # Corresponds to the JSON property `versionPolicy`
711
+ # @return [String]
712
+ attr_accessor :version_policy
713
+
714
+ def initialize(**args)
715
+ update!(**args)
716
+ end
717
+
718
+ # Update properties of this object
719
+ def update!(**args)
720
+ @allow_snapshot_overwrites = args[:allow_snapshot_overwrites] if args.key?(:allow_snapshot_overwrites)
721
+ @version_policy = args[:version_policy] if args.key?(:version_policy)
722
+ end
723
+ end
724
+
471
725
  # This resource represents a long-running operation that is the result of a
472
726
  # network API call.
473
727
  class Operation
@@ -594,7 +848,7 @@ module Google
594
848
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
595
849
  # roles/resourcemanager.organizationViewer condition: title: expirable access
596
850
  # description: Does not grant access after Sep 2020 expression: request.time <
597
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
851
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
598
852
  # description of IAM and its features, see the [IAM documentation](https://cloud.
599
853
  # google.com/iam/docs/).
600
854
  class Policy
@@ -602,7 +856,12 @@ module Google
602
856
 
603
857
  # Associates a list of `members` to a `role`. Optionally, may specify a `
604
858
  # condition` that determines how and when the `bindings` are applied. Each of
605
- # the `bindings` must contain at least one member.
859
+ # the `bindings` must contain at least one member. The `bindings` in a `Policy`
860
+ # can refer to up to 1,500 members; up to 250 of these members can be Google
861
+ # groups. Each occurrence of a member counts towards these limits. For example,
862
+ # if the `bindings` grant 50 different roles to `user:alice@example.com`, and
863
+ # not to any other member, then you can add another 1,450 members to the `
864
+ # bindings` in the `Policy`.
606
865
  # Corresponds to the JSON property `bindings`
607
866
  # @return [Array<Google::Apis::ArtifactregistryV1beta2::Binding>]
608
867
  attr_accessor :bindings
@@ -689,6 +948,12 @@ module Google
689
948
  # @return [Hash<String,String>]
690
949
  attr_accessor :labels
691
950
 
951
+ # MavenRepositoryConfig is maven related repository details. Provides additional
952
+ # configuration details for repositories of the maven format type.
953
+ # Corresponds to the JSON property `mavenConfig`
954
+ # @return [Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig]
955
+ attr_accessor :maven_config
956
+
692
957
  # The name of the repository, for example: "projects/p1/locations/us-central1/
693
958
  # repositories/repo1".
694
959
  # Corresponds to the JSON property `name`
@@ -711,6 +976,7 @@ module Google
711
976
  @format = args[:format] if args.key?(:format)
712
977
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
713
978
  @labels = args[:labels] if args.key?(:labels)
979
+ @maven_config = args[:maven_config] if args.key?(:maven_config)
714
980
  @name = args[:name] if args.key?(:name)
715
981
  @update_time = args[:update_time] if args.key?(:update_time)
716
982
  end
@@ -744,7 +1010,7 @@ module Google
744
1010
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
745
1011
  # roles/resourcemanager.organizationViewer condition: title: expirable access
746
1012
  # description: Does not grant access after Sep 2020 expression: request.time <
747
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1013
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
748
1014
  # description of IAM and its features, see the [IAM documentation](https://cloud.
749
1015
  # google.com/iam/docs/).
750
1016
  # Corresponds to the JSON property `policy`
@@ -806,8 +1072,9 @@ module Google
806
1072
  include Google::Apis::Core::Hashable
807
1073
 
808
1074
  # The name of the tag, for example: "projects/p1/locations/us-central1/
809
- # repositories/repo1/packages/pkg1/tags/tag1". If the package or tag ID parts
810
- # contain slashes, the slashes are escaped.
1075
+ # repositories/repo1/packages/pkg1/tags/tag1". If the package part contains
1076
+ # slashes, the slashes are escaped. The tag part can only have characters in [a-
1077
+ # zA-Z0-9\-._~:@], anything else must be URL encoded.
811
1078
  # Corresponds to the JSON property `name`
812
1079
  # @return [String]
813
1080
  attr_accessor :name
@@ -870,6 +1137,112 @@ module Google
870
1137
  end
871
1138
  end
872
1139
 
1140
+ # The response to upload an artifact.
1141
+ class UploadAptArtifactMediaResponse
1142
+ include Google::Apis::Core::Hashable
1143
+
1144
+ # This resource represents a long-running operation that is the result of a
1145
+ # network API call.
1146
+ # Corresponds to the JSON property `operation`
1147
+ # @return [Google::Apis::ArtifactregistryV1beta2::Operation]
1148
+ attr_accessor :operation
1149
+
1150
+ def initialize(**args)
1151
+ update!(**args)
1152
+ end
1153
+
1154
+ # Update properties of this object
1155
+ def update!(**args)
1156
+ @operation = args[:operation] if args.key?(:operation)
1157
+ end
1158
+ end
1159
+
1160
+ # The request to upload an artifact.
1161
+ class UploadAptArtifactRequest
1162
+ include Google::Apis::Core::Hashable
1163
+
1164
+ def initialize(**args)
1165
+ update!(**args)
1166
+ end
1167
+
1168
+ # Update properties of this object
1169
+ def update!(**args)
1170
+ end
1171
+ end
1172
+
1173
+ # The response of the completed artifact upload operation. This response is
1174
+ # contained in the Operation and available to users.
1175
+ class UploadAptArtifactResponse
1176
+ include Google::Apis::Core::Hashable
1177
+
1178
+ # The Apt artifacts updated.
1179
+ # Corresponds to the JSON property `aptArtifacts`
1180
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::AptArtifact>]
1181
+ attr_accessor :apt_artifacts
1182
+
1183
+ def initialize(**args)
1184
+ update!(**args)
1185
+ end
1186
+
1187
+ # Update properties of this object
1188
+ def update!(**args)
1189
+ @apt_artifacts = args[:apt_artifacts] if args.key?(:apt_artifacts)
1190
+ end
1191
+ end
1192
+
1193
+ # The response to upload an artifact.
1194
+ class UploadYumArtifactMediaResponse
1195
+ include Google::Apis::Core::Hashable
1196
+
1197
+ # This resource represents a long-running operation that is the result of a
1198
+ # network API call.
1199
+ # Corresponds to the JSON property `operation`
1200
+ # @return [Google::Apis::ArtifactregistryV1beta2::Operation]
1201
+ attr_accessor :operation
1202
+
1203
+ def initialize(**args)
1204
+ update!(**args)
1205
+ end
1206
+
1207
+ # Update properties of this object
1208
+ def update!(**args)
1209
+ @operation = args[:operation] if args.key?(:operation)
1210
+ end
1211
+ end
1212
+
1213
+ # The request to upload an artifact.
1214
+ class UploadYumArtifactRequest
1215
+ include Google::Apis::Core::Hashable
1216
+
1217
+ def initialize(**args)
1218
+ update!(**args)
1219
+ end
1220
+
1221
+ # Update properties of this object
1222
+ def update!(**args)
1223
+ end
1224
+ end
1225
+
1226
+ # The response of the completed artifact upload operation. This response is
1227
+ # contained in the Operation and available to users.
1228
+ class UploadYumArtifactResponse
1229
+ include Google::Apis::Core::Hashable
1230
+
1231
+ # The Apt artifacts updated.
1232
+ # Corresponds to the JSON property `yumArtifacts`
1233
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::YumArtifact>]
1234
+ attr_accessor :yum_artifacts
1235
+
1236
+ def initialize(**args)
1237
+ update!(**args)
1238
+ end
1239
+
1240
+ # Update properties of this object
1241
+ def update!(**args)
1242
+ @yum_artifacts = args[:yum_artifacts] if args.key?(:yum_artifacts)
1243
+ end
1244
+ end
1245
+
873
1246
  # The body of a version resource. A version resource represents a collection of
874
1247
  # components, such as files and other data. This may correspond to a version in
875
1248
  # many package management schemes.
@@ -925,6 +1298,43 @@ module Google
925
1298
  @update_time = args[:update_time] if args.key?(:update_time)
926
1299
  end
927
1300
  end
1301
+
1302
+ # A detailed representation of a Yum artifact.
1303
+ class YumArtifact
1304
+ include Google::Apis::Core::Hashable
1305
+
1306
+ # Output only. Operating system architecture of the artifact.
1307
+ # Corresponds to the JSON property `architecture`
1308
+ # @return [String]
1309
+ attr_accessor :architecture
1310
+
1311
+ # Output only. The Artifact Registry resource name of the artifact.
1312
+ # Corresponds to the JSON property `name`
1313
+ # @return [String]
1314
+ attr_accessor :name
1315
+
1316
+ # Output only. The yum package name of the artifact.
1317
+ # Corresponds to the JSON property `packageName`
1318
+ # @return [String]
1319
+ attr_accessor :package_name
1320
+
1321
+ # Output only. An artifact is a binary or source package.
1322
+ # Corresponds to the JSON property `packageType`
1323
+ # @return [String]
1324
+ attr_accessor :package_type
1325
+
1326
+ def initialize(**args)
1327
+ update!(**args)
1328
+ end
1329
+
1330
+ # Update properties of this object
1331
+ def update!(**args)
1332
+ @architecture = args[:architecture] if args.key?(:architecture)
1333
+ @name = args[:name] if args.key?(:name)
1334
+ @package_name = args[:package_name] if args.key?(:package_name)
1335
+ @package_type = args[:package_type] if args.key?(:package_type)
1336
+ end
1337
+ end
928
1338
  end
929
1339
  end
930
1340
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ArtifactregistryV1beta2
18
18
  # Version of the google-apis-artifactregistry_v1beta2 gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210524"
25
+ REVISION = "20211002"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module ArtifactregistryV1beta2
24
24
 
25
+ class AptArtifact
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class Binding
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -40,7 +46,7 @@ module Google
40
46
  include Google::Apis::Core::JsonObjectSupport
41
47
  end
42
48
 
43
- class File
49
+ class GoogleDevtoolsArtifactregistryV1beta2File
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
46
52
  include Google::Apis::Core::JsonObjectSupport
@@ -52,19 +58,61 @@ module Google
52
58
  include Google::Apis::Core::JsonObjectSupport
53
59
  end
54
60
 
55
- class ListFilesResponse
61
+ class ImportAptArtifactsErrorInfo
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
58
64
  include Google::Apis::Core::JsonObjectSupport
59
65
  end
60
66
 
61
- class ListLocationsResponse
67
+ class ImportAptArtifactsGcsSource
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ImportAptArtifactsRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ImportAptArtifactsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ImportYumArtifactsErrorInfo
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ImportYumArtifactsGcsSource
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ImportYumArtifactsRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ImportYumArtifactsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListFilesResponse
62
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
111
 
64
112
  include Google::Apis::Core::JsonObjectSupport
65
113
  end
66
114
 
67
- class ListOperationsResponse
115
+ class ListLocationsResponse
68
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
117
 
70
118
  include Google::Apis::Core::JsonObjectSupport
@@ -100,6 +148,12 @@ module Google
100
148
  include Google::Apis::Core::JsonObjectSupport
101
149
  end
102
150
 
151
+ class MavenRepositoryConfig
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
103
157
  class Operation
104
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
159
 
@@ -154,12 +208,66 @@ module Google
154
208
  include Google::Apis::Core::JsonObjectSupport
155
209
  end
156
210
 
211
+ class UploadAptArtifactMediaResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class UploadAptArtifactRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class UploadAptArtifactResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class UploadYumArtifactMediaResponse
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class UploadYumArtifactRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class UploadYumArtifactResponse
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
157
247
  class Version
158
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
249
 
160
250
  include Google::Apis::Core::JsonObjectSupport
161
251
  end
162
252
 
253
+ class YumArtifact
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class AptArtifact
260
+ # @private
261
+ class Representation < Google::Apis::Core::JsonRepresentation
262
+ property :architecture, as: 'architecture'
263
+ property :component, as: 'component'
264
+ property :control_file, :base64 => true, as: 'controlFile'
265
+ property :name, as: 'name'
266
+ property :package_name, as: 'packageName'
267
+ property :package_type, as: 'packageType'
268
+ end
269
+ end
270
+
163
271
  class Binding
164
272
  # @private
165
273
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -186,7 +294,7 @@ module Google
186
294
  end
187
295
  end
188
296
 
189
- class File
297
+ class GoogleDevtoolsArtifactregistryV1beta2File
190
298
  # @private
191
299
  class Representation < Google::Apis::Core::JsonRepresentation
192
300
  property :create_time, as: 'createTime'
@@ -207,30 +315,93 @@ module Google
207
315
  end
208
316
  end
209
317
 
210
- class ListFilesResponse
318
+ class ImportAptArtifactsErrorInfo
211
319
  # @private
212
320
  class Representation < Google::Apis::Core::JsonRepresentation
213
- collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta2::File, decorator: Google::Apis::ArtifactregistryV1beta2::File::Representation
321
+ property :error, as: 'error', class: Google::Apis::ArtifactregistryV1beta2::Status, decorator: Google::Apis::ArtifactregistryV1beta2::Status::Representation
322
+
323
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource::Representation
214
324
 
215
- property :next_page_token, as: 'nextPageToken'
216
325
  end
217
326
  end
218
327
 
219
- class ListLocationsResponse
328
+ class ImportAptArtifactsGcsSource
220
329
  # @private
221
330
  class Representation < Google::Apis::Core::JsonRepresentation
222
- collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1beta2::Location, decorator: Google::Apis::ArtifactregistryV1beta2::Location::Representation
331
+ collection :uris, as: 'uris'
332
+ property :use_wildcards, as: 'useWildcards'
333
+ end
334
+ end
335
+
336
+ class ImportAptArtifactsRequest
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource::Representation
340
+
341
+ end
342
+ end
343
+
344
+ class ImportAptArtifactsResponse
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ collection :apt_artifacts, as: 'aptArtifacts', class: Google::Apis::ArtifactregistryV1beta2::AptArtifact, decorator: Google::Apis::ArtifactregistryV1beta2::AptArtifact::Representation
348
+
349
+ collection :errors, as: 'errors', class: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsErrorInfo, decorator: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsErrorInfo::Representation
350
+
351
+ end
352
+ end
353
+
354
+ class ImportYumArtifactsErrorInfo
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ property :error, as: 'error', class: Google::Apis::ArtifactregistryV1beta2::Status, decorator: Google::Apis::ArtifactregistryV1beta2::Status::Representation
358
+
359
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource::Representation
360
+
361
+ end
362
+ end
363
+
364
+ class ImportYumArtifactsGcsSource
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ collection :uris, as: 'uris'
368
+ property :use_wildcards, as: 'useWildcards'
369
+ end
370
+ end
371
+
372
+ class ImportYumArtifactsRequest
373
+ # @private
374
+ class Representation < Google::Apis::Core::JsonRepresentation
375
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource::Representation
376
+
377
+ end
378
+ end
379
+
380
+ class ImportYumArtifactsResponse
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ collection :errors, as: 'errors', class: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsErrorInfo, decorator: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsErrorInfo::Representation
384
+
385
+ collection :yum_artifacts, as: 'yumArtifacts', class: Google::Apis::ArtifactregistryV1beta2::YumArtifact, decorator: Google::Apis::ArtifactregistryV1beta2::YumArtifact::Representation
223
386
 
224
- property :next_page_token, as: 'nextPageToken'
225
387
  end
226
388
  end
227
389
 
228
- class ListOperationsResponse
390
+ class ListFilesResponse
229
391
  # @private
230
392
  class Representation < Google::Apis::Core::JsonRepresentation
393
+ collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File, decorator: Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File::Representation
394
+
231
395
  property :next_page_token, as: 'nextPageToken'
232
- collection :operations, as: 'operations', class: Google::Apis::ArtifactregistryV1beta2::Operation, decorator: Google::Apis::ArtifactregistryV1beta2::Operation::Representation
396
+ end
397
+ end
398
+
399
+ class ListLocationsResponse
400
+ # @private
401
+ class Representation < Google::Apis::Core::JsonRepresentation
402
+ collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1beta2::Location, decorator: Google::Apis::ArtifactregistryV1beta2::Location::Representation
233
403
 
404
+ property :next_page_token, as: 'nextPageToken'
234
405
  end
235
406
  end
236
407
 
@@ -281,6 +452,14 @@ module Google
281
452
  end
282
453
  end
283
454
 
455
+ class MavenRepositoryConfig
456
+ # @private
457
+ class Representation < Google::Apis::Core::JsonRepresentation
458
+ property :allow_snapshot_overwrites, as: 'allowSnapshotOverwrites'
459
+ property :version_policy, as: 'versionPolicy'
460
+ end
461
+ end
462
+
284
463
  class Operation
285
464
  # @private
286
465
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -321,6 +500,8 @@ module Google
321
500
  property :format, as: 'format'
322
501
  property :kms_key_name, as: 'kmsKeyName'
323
502
  hash :labels, as: 'labels'
503
+ property :maven_config, as: 'mavenConfig', class: Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig, decorator: Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig::Representation
504
+
324
505
  property :name, as: 'name'
325
506
  property :update_time, as: 'updateTime'
326
507
  end
@@ -365,6 +546,50 @@ module Google
365
546
  end
366
547
  end
367
548
 
549
+ class UploadAptArtifactMediaResponse
550
+ # @private
551
+ class Representation < Google::Apis::Core::JsonRepresentation
552
+ property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1beta2::Operation, decorator: Google::Apis::ArtifactregistryV1beta2::Operation::Representation
553
+
554
+ end
555
+ end
556
+
557
+ class UploadAptArtifactRequest
558
+ # @private
559
+ class Representation < Google::Apis::Core::JsonRepresentation
560
+ end
561
+ end
562
+
563
+ class UploadAptArtifactResponse
564
+ # @private
565
+ class Representation < Google::Apis::Core::JsonRepresentation
566
+ collection :apt_artifacts, as: 'aptArtifacts', class: Google::Apis::ArtifactregistryV1beta2::AptArtifact, decorator: Google::Apis::ArtifactregistryV1beta2::AptArtifact::Representation
567
+
568
+ end
569
+ end
570
+
571
+ class UploadYumArtifactMediaResponse
572
+ # @private
573
+ class Representation < Google::Apis::Core::JsonRepresentation
574
+ property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1beta2::Operation, decorator: Google::Apis::ArtifactregistryV1beta2::Operation::Representation
575
+
576
+ end
577
+ end
578
+
579
+ class UploadYumArtifactRequest
580
+ # @private
581
+ class Representation < Google::Apis::Core::JsonRepresentation
582
+ end
583
+ end
584
+
585
+ class UploadYumArtifactResponse
586
+ # @private
587
+ class Representation < Google::Apis::Core::JsonRepresentation
588
+ collection :yum_artifacts, as: 'yumArtifacts', class: Google::Apis::ArtifactregistryV1beta2::YumArtifact, decorator: Google::Apis::ArtifactregistryV1beta2::YumArtifact::Representation
589
+
590
+ end
591
+ end
592
+
368
593
  class Version
369
594
  # @private
370
595
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -377,6 +602,16 @@ module Google
377
602
  property :update_time, as: 'updateTime'
378
603
  end
379
604
  end
605
+
606
+ class YumArtifact
607
+ # @private
608
+ class Representation < Google::Apis::Core::JsonRepresentation
609
+ property :architecture, as: 'architecture'
610
+ property :name, as: 'name'
611
+ property :package_name, as: 'packageName'
612
+ property :package_type, as: 'packageType'
613
+ end
614
+ end
380
615
  end
381
616
  end
382
617
  end
@@ -154,52 +154,6 @@ module Google
154
154
  execute_or_queue_command(command, &block)
155
155
  end
156
156
 
157
- # Lists operations that match the specified filter in the request. If the server
158
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
159
- # binding allows API services to override the binding to use different resource
160
- # name schemes, such as `users/*/operations`. To override the binding, API
161
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
162
- # service configuration. For backwards compatibility, the default name includes
163
- # the operations collection id, however overriding users must ensure the name
164
- # binding is the parent resource, without the operations collection id.
165
- # @param [String] name
166
- # The name of the operation's parent resource.
167
- # @param [String] filter
168
- # The standard list filter.
169
- # @param [Fixnum] page_size
170
- # The standard list page size.
171
- # @param [String] page_token
172
- # The standard list page token.
173
- # @param [String] fields
174
- # Selector specifying which fields to include in a partial response.
175
- # @param [String] quota_user
176
- # Available to use for quota purposes for server-side applications. Can be any
177
- # arbitrary string assigned to a user, but should not exceed 40 characters.
178
- # @param [Google::Apis::RequestOptions] options
179
- # Request-specific options
180
- #
181
- # @yield [result, err] Result & error if block supplied
182
- # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::ListOperationsResponse] parsed result object
183
- # @yieldparam err [StandardError] error object if request failed
184
- #
185
- # @return [Google::Apis::ArtifactregistryV1beta2::ListOperationsResponse]
186
- #
187
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
188
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
189
- # @raise [Google::Apis::AuthorizationError] Authorization is required
190
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
191
- command = make_simple_command(:get, 'v1beta2/{+name}/operations', options)
192
- command.response_representation = Google::Apis::ArtifactregistryV1beta2::ListOperationsResponse::Representation
193
- command.response_class = Google::Apis::ArtifactregistryV1beta2::ListOperationsResponse
194
- command.params['name'] = name unless name.nil?
195
- command.query['filter'] = filter unless filter.nil?
196
- command.query['pageSize'] = page_size unless page_size.nil?
197
- command.query['pageToken'] = page_token unless page_token.nil?
198
- command.query['fields'] = fields unless fields.nil?
199
- command.query['quotaUser'] = quota_user unless quota_user.nil?
200
- execute_or_queue_command(command, &block)
201
- end
202
-
203
157
  # Creates a repository. The returned Operation will finish once the repository
204
158
  # has been created. Its response will be the created Repository.
205
159
  # @param [String] parent
@@ -343,7 +297,7 @@ module Google
343
297
  # @param [String] parent
344
298
  # The name of the parent resource whose repositories will be listed.
345
299
  # @param [Fixnum] page_size
346
- # The maximum number of repositories to return. Maximum page size is 10,000.
300
+ # The maximum number of repositories to return. Maximum page size is 1,000.
347
301
  # @param [String] page_token
348
302
  # The next_page_token value returned from a previous list request, if any.
349
303
  # @param [String] fields
@@ -482,6 +436,88 @@ module Google
482
436
  execute_or_queue_command(command, &block)
483
437
  end
484
438
 
439
+ # Imports Apt artifacts. The returned Operation will complete once the resources
440
+ # are imported. Package, Version, and File resources are created based on the
441
+ # imported artifacts. Imported artifacts that conflict with existing resources
442
+ # are ignored.
443
+ # @param [String] parent
444
+ # The name of the parent resource where the artifacts will be imported.
445
+ # @param [Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsRequest] import_apt_artifacts_request_object
446
+ # @param [String] fields
447
+ # Selector specifying which fields to include in a partial response.
448
+ # @param [String] quota_user
449
+ # Available to use for quota purposes for server-side applications. Can be any
450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
451
+ # @param [Google::Apis::RequestOptions] options
452
+ # Request-specific options
453
+ #
454
+ # @yield [result, err] Result & error if block supplied
455
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::Operation] parsed result object
456
+ # @yieldparam err [StandardError] error object if request failed
457
+ #
458
+ # @return [Google::Apis::ArtifactregistryV1beta2::Operation]
459
+ #
460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
463
+ def import_apt_artifacts(parent, import_apt_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
464
+ command = make_simple_command(:post, 'v1beta2/{+parent}/aptArtifacts:import', options)
465
+ command.request_representation = Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsRequest::Representation
466
+ command.request_object = import_apt_artifacts_request_object
467
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::Operation::Representation
468
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::Operation
469
+ command.params['parent'] = parent unless parent.nil?
470
+ command.query['fields'] = fields unless fields.nil?
471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
472
+ execute_or_queue_command(command, &block)
473
+ end
474
+
475
+ # Directly uploads an Apt artifact. The returned Operation will complete once
476
+ # the resources are uploaded. Package, Version, and File resources are created
477
+ # based on the imported artifact. Imported artifacts that conflict with existing
478
+ # resources are ignored.
479
+ # @param [String] parent
480
+ # The name of the parent resource where the artifacts will be uploaded.
481
+ # @param [Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactRequest] upload_apt_artifact_request_object
482
+ # @param [String] fields
483
+ # Selector specifying which fields to include in a partial response.
484
+ # @param [String] quota_user
485
+ # Available to use for quota purposes for server-side applications. Can be any
486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
487
+ # @param [IO, String] upload_source
488
+ # IO stream or filename containing content to upload
489
+ # @param [String] content_type
490
+ # Content type of the uploaded content.
491
+ # @param [Google::Apis::RequestOptions] options
492
+ # Request-specific options
493
+ #
494
+ # @yield [result, err] Result & error if block supplied
495
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse] parsed result object
496
+ # @yieldparam err [StandardError] error object if request failed
497
+ #
498
+ # @return [Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse]
499
+ #
500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
503
+ def upload_aptartifact_apt_artifact(parent, upload_apt_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
504
+ if upload_source.nil?
505
+ command = make_simple_command(:post, 'v1beta2/{+parent}/aptArtifacts:create', options)
506
+ else
507
+ command = make_upload_command(:post, 'v1beta2/{+parent}/aptArtifacts:create', options)
508
+ command.upload_source = upload_source
509
+ command.upload_content_type = content_type
510
+ end
511
+ command.request_representation = Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactRequest::Representation
512
+ command.request_object = upload_apt_artifact_request_object
513
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse::Representation
514
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse
515
+ command.params['parent'] = parent unless parent.nil?
516
+ command.query['fields'] = fields unless fields.nil?
517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
518
+ execute_or_queue_command(command, &block)
519
+ end
520
+
485
521
  # Gets a file.
486
522
  # @param [String] name
487
523
  # The name of the file to retrieve.
@@ -494,18 +530,18 @@ module Google
494
530
  # Request-specific options
495
531
  #
496
532
  # @yield [result, err] Result & error if block supplied
497
- # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::File] parsed result object
533
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File] parsed result object
498
534
  # @yieldparam err [StandardError] error object if request failed
499
535
  #
500
- # @return [Google::Apis::ArtifactregistryV1beta2::File]
536
+ # @return [Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File]
501
537
  #
502
538
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
503
539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
504
540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
505
541
  def get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil, &block)
506
542
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
507
- command.response_representation = Google::Apis::ArtifactregistryV1beta2::File::Representation
508
- command.response_class = Google::Apis::ArtifactregistryV1beta2::File
543
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File::Representation
544
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File
509
545
  command.params['name'] = name unless name.nil?
510
546
  command.query['fields'] = fields unless fields.nil?
511
547
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -621,7 +657,7 @@ module Google
621
657
  # @param [String] parent
622
658
  # The name of the parent resource whose packages will be listed.
623
659
  # @param [Fixnum] page_size
624
- # The maximum number of packages to return. Maximum page size is 10,000.
660
+ # The maximum number of packages to return. Maximum page size is 1,000.
625
661
  # @param [String] page_token
626
662
  # The next_page_token value returned from a previous list request, if any.
627
663
  # @param [String] fields
@@ -795,8 +831,9 @@ module Google
795
831
  # Updates a tag.
796
832
  # @param [String] name
797
833
  # The name of the tag, for example: "projects/p1/locations/us-central1/
798
- # repositories/repo1/packages/pkg1/tags/tag1". If the package or tag ID parts
799
- # contain slashes, the slashes are escaped.
834
+ # repositories/repo1/packages/pkg1/tags/tag1". If the package part contains
835
+ # slashes, the slashes are escaped. The tag part can only have characters in [a-
836
+ # zA-Z0-9\-._~:@], anything else must be URL encoded.
800
837
  # @param [Google::Apis::ArtifactregistryV1beta2::Tag] tag_object
801
838
  # @param [String] update_mask
802
839
  # The update mask applies to the resource. For the `FieldMask` definition, see
@@ -906,7 +943,7 @@ module Google
906
943
  # @param [String] order_by
907
944
  # Optional. Sorting field and order
908
945
  # @param [Fixnum] page_size
909
- # The maximum number of versions to return. Maximum page size is 10,000.
946
+ # The maximum number of versions to return. Maximum page size is 1,000.
910
947
  # @param [String] page_token
911
948
  # The next_page_token value returned from a previous list request, if any.
912
949
  # @param [String] view
@@ -941,6 +978,88 @@ module Google
941
978
  command.query['quotaUser'] = quota_user unless quota_user.nil?
942
979
  execute_or_queue_command(command, &block)
943
980
  end
981
+
982
+ # Imports Yum (RPM) artifacts. The returned Operation will complete once the
983
+ # resources are imported. Package, Version, and File resources are created based
984
+ # on the imported artifacts. Imported artifacts that conflict with existing
985
+ # resources are ignored.
986
+ # @param [String] parent
987
+ # The name of the parent resource where the artifacts will be imported.
988
+ # @param [Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsRequest] import_yum_artifacts_request_object
989
+ # @param [String] fields
990
+ # Selector specifying which fields to include in a partial response.
991
+ # @param [String] quota_user
992
+ # Available to use for quota purposes for server-side applications. Can be any
993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
994
+ # @param [Google::Apis::RequestOptions] options
995
+ # Request-specific options
996
+ #
997
+ # @yield [result, err] Result & error if block supplied
998
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::Operation] parsed result object
999
+ # @yieldparam err [StandardError] error object if request failed
1000
+ #
1001
+ # @return [Google::Apis::ArtifactregistryV1beta2::Operation]
1002
+ #
1003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1006
+ def import_yum_artifacts(parent, import_yum_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1007
+ command = make_simple_command(:post, 'v1beta2/{+parent}/yumArtifacts:import', options)
1008
+ command.request_representation = Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsRequest::Representation
1009
+ command.request_object = import_yum_artifacts_request_object
1010
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::Operation::Representation
1011
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::Operation
1012
+ command.params['parent'] = parent unless parent.nil?
1013
+ command.query['fields'] = fields unless fields.nil?
1014
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1015
+ execute_or_queue_command(command, &block)
1016
+ end
1017
+
1018
+ # Directly uploads a Yum artifact. The returned Operation will complete once the
1019
+ # resources are uploaded. Package, Version, and File resources are created based
1020
+ # on the imported artifact. Imported artifacts that conflict with existing
1021
+ # resources are ignored.
1022
+ # @param [String] parent
1023
+ # The name of the parent resource where the artifacts will be uploaded.
1024
+ # @param [Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactRequest] upload_yum_artifact_request_object
1025
+ # @param [String] fields
1026
+ # Selector specifying which fields to include in a partial response.
1027
+ # @param [String] quota_user
1028
+ # Available to use for quota purposes for server-side applications. Can be any
1029
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1030
+ # @param [IO, String] upload_source
1031
+ # IO stream or filename containing content to upload
1032
+ # @param [String] content_type
1033
+ # Content type of the uploaded content.
1034
+ # @param [Google::Apis::RequestOptions] options
1035
+ # Request-specific options
1036
+ #
1037
+ # @yield [result, err] Result & error if block supplied
1038
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse] parsed result object
1039
+ # @yieldparam err [StandardError] error object if request failed
1040
+ #
1041
+ # @return [Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse]
1042
+ #
1043
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1044
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1045
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1046
+ def upload_yumartifact_yum_artifact(parent, upload_yum_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
1047
+ if upload_source.nil?
1048
+ command = make_simple_command(:post, 'v1beta2/{+parent}/yumArtifacts:create', options)
1049
+ else
1050
+ command = make_upload_command(:post, 'v1beta2/{+parent}/yumArtifacts:create', options)
1051
+ command.upload_source = upload_source
1052
+ command.upload_content_type = content_type
1053
+ end
1054
+ command.request_representation = Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactRequest::Representation
1055
+ command.request_object = upload_yum_artifact_request_object
1056
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse::Representation
1057
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse
1058
+ command.params['parent'] = parent unless parent.nil?
1059
+ command.query['fields'] = fields unless fields.nil?
1060
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1061
+ execute_or_queue_command(command, &block)
1062
+ end
944
1063
 
945
1064
  protected
946
1065
 
@@ -30,10 +30,10 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1beta2'
32
32
 
33
- # See, edit, configure, and delete your Google Cloud Platform data
33
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
 
36
- # View your data across Google Cloud Platform services
36
+ # View your data across Google Cloud services and see the email address of your Google Account
37
37
  AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
38
38
  end
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-artifactregistry_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.13.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: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-10-18 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/master/generated/google-apis-artifactregistry_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1beta2/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1beta2/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-artifactregistry_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []