google-apis-artifactregistry_v1beta2 0.7.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7b4ba72f36d889d4b81438154fb9469cbdb439dd76cd28f541c07e5b48a2638
4
- data.tar.gz: c24c470551e45b9643f395f1f8e5d8649a67b3b1f5922c266331cf5edff17efe
3
+ metadata.gz: 053ef77893748b0ba3ff4ca9481aa00439341ef28e0dedba796b0c18e9a18738
4
+ data.tar.gz: 4cb549a35ae7d2f7c3daa42b1103665a2276026405bb5be29057dfd2c79f28bd
5
5
  SHA512:
6
- metadata.gz: d95b9526a7e12bd4046991de5652077e0143b46fc66bcd70ae1b1a79bf0af73c4d3945fa564c5dfa3ba9890d4f739a0717ed719b53cae31a6cfaa58baec173f9
7
- data.tar.gz: 7a6584a59baf576c384bdd709c0e1f66ba49b8ea66a315953f374e2685500c1e5e049f08eb5a0820c7bc85316180f5e3374ac6030ba2b31f8c3967bcb7a93478
6
+ metadata.gz: c841d7568907ad16e27ebc2972eb72373872a827f3d90a098eed9c7f39c08aafa0300ff389a1cc8e5694a4159eff8724427f8ee0ad98432372623296128125f9
7
+ data.tar.gz: 54715850c46b2d583229aa79d65bb7807582df00bb9ab3c45de9f3f4b9e6d622cc5177d43ac05664b72f9be138766b844f90d0f8f8debc6565e9c097f0161f6f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-artifactregistry_v1beta2
2
2
 
3
+ ### v0.11.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210817
6
+
7
+ ### v0.10.0 (2021-07-06)
8
+
9
+ * Regenerated from discovery document revision 20210629
10
+
11
+ ### v0.9.0 (2021-06-29)
12
+
13
+ * Regenerated using generator version 0.4.0
14
+
15
+ ### v0.8.0 (2021-06-24)
16
+
17
+ * Regenerated from discovery document revision 20210524
18
+ * Regenerated using generator version 0.3.0
19
+
3
20
  ### v0.7.0 (2021-05-25)
4
21
 
5
22
  * Regenerated from discovery document revision 20210517
@@ -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
@@ -594,7 +821,7 @@ module Google
594
821
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
595
822
  # roles/resourcemanager.organizationViewer condition: title: expirable access
596
823
  # 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
824
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
598
825
  # description of IAM and its features, see the [IAM documentation](https://cloud.
599
826
  # google.com/iam/docs/).
600
827
  class Policy
@@ -744,7 +971,7 @@ module Google
744
971
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
745
972
  # roles/resourcemanager.organizationViewer condition: title: expirable access
746
973
  # 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
974
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
748
975
  # description of IAM and its features, see the [IAM documentation](https://cloud.
749
976
  # google.com/iam/docs/).
750
977
  # Corresponds to the JSON property `policy`
@@ -806,8 +1033,9 @@ module Google
806
1033
  include Google::Apis::Core::Hashable
807
1034
 
808
1035
  # 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.
1036
+ # repositories/repo1/packages/pkg1/tags/tag1". If the package part contains
1037
+ # slashes, the slashes are escaped. The tag part can only have characters in [a-
1038
+ # zA-Z0-9\-._~:@], anything else must be URL encoded.
811
1039
  # Corresponds to the JSON property `name`
812
1040
  # @return [String]
813
1041
  attr_accessor :name
@@ -870,6 +1098,112 @@ module Google
870
1098
  end
871
1099
  end
872
1100
 
1101
+ # The response to upload an artifact.
1102
+ class UploadAptArtifactMediaResponse
1103
+ include Google::Apis::Core::Hashable
1104
+
1105
+ # This resource represents a long-running operation that is the result of a
1106
+ # network API call.
1107
+ # Corresponds to the JSON property `operation`
1108
+ # @return [Google::Apis::ArtifactregistryV1beta2::Operation]
1109
+ attr_accessor :operation
1110
+
1111
+ def initialize(**args)
1112
+ update!(**args)
1113
+ end
1114
+
1115
+ # Update properties of this object
1116
+ def update!(**args)
1117
+ @operation = args[:operation] if args.key?(:operation)
1118
+ end
1119
+ end
1120
+
1121
+ # The request to upload an artifact.
1122
+ class UploadAptArtifactRequest
1123
+ include Google::Apis::Core::Hashable
1124
+
1125
+ def initialize(**args)
1126
+ update!(**args)
1127
+ end
1128
+
1129
+ # Update properties of this object
1130
+ def update!(**args)
1131
+ end
1132
+ end
1133
+
1134
+ # The response of the completed artifact upload operation. This response is
1135
+ # contained in the Operation and available to users.
1136
+ class UploadAptArtifactResponse
1137
+ include Google::Apis::Core::Hashable
1138
+
1139
+ # The Apt artifacts updated.
1140
+ # Corresponds to the JSON property `aptArtifacts`
1141
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::AptArtifact>]
1142
+ attr_accessor :apt_artifacts
1143
+
1144
+ def initialize(**args)
1145
+ update!(**args)
1146
+ end
1147
+
1148
+ # Update properties of this object
1149
+ def update!(**args)
1150
+ @apt_artifacts = args[:apt_artifacts] if args.key?(:apt_artifacts)
1151
+ end
1152
+ end
1153
+
1154
+ # The response to upload an artifact.
1155
+ class UploadYumArtifactMediaResponse
1156
+ include Google::Apis::Core::Hashable
1157
+
1158
+ # This resource represents a long-running operation that is the result of a
1159
+ # network API call.
1160
+ # Corresponds to the JSON property `operation`
1161
+ # @return [Google::Apis::ArtifactregistryV1beta2::Operation]
1162
+ attr_accessor :operation
1163
+
1164
+ def initialize(**args)
1165
+ update!(**args)
1166
+ end
1167
+
1168
+ # Update properties of this object
1169
+ def update!(**args)
1170
+ @operation = args[:operation] if args.key?(:operation)
1171
+ end
1172
+ end
1173
+
1174
+ # The request to upload an artifact.
1175
+ class UploadYumArtifactRequest
1176
+ include Google::Apis::Core::Hashable
1177
+
1178
+ def initialize(**args)
1179
+ update!(**args)
1180
+ end
1181
+
1182
+ # Update properties of this object
1183
+ def update!(**args)
1184
+ end
1185
+ end
1186
+
1187
+ # The response of the completed artifact upload operation. This response is
1188
+ # contained in the Operation and available to users.
1189
+ class UploadYumArtifactResponse
1190
+ include Google::Apis::Core::Hashable
1191
+
1192
+ # The Apt artifacts updated.
1193
+ # Corresponds to the JSON property `yumArtifacts`
1194
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::YumArtifact>]
1195
+ attr_accessor :yum_artifacts
1196
+
1197
+ def initialize(**args)
1198
+ update!(**args)
1199
+ end
1200
+
1201
+ # Update properties of this object
1202
+ def update!(**args)
1203
+ @yum_artifacts = args[:yum_artifacts] if args.key?(:yum_artifacts)
1204
+ end
1205
+ end
1206
+
873
1207
  # The body of a version resource. A version resource represents a collection of
874
1208
  # components, such as files and other data. This may correspond to a version in
875
1209
  # many package management schemes.
@@ -925,6 +1259,43 @@ module Google
925
1259
  @update_time = args[:update_time] if args.key?(:update_time)
926
1260
  end
927
1261
  end
1262
+
1263
+ # A detailed representation of a Yum artifact.
1264
+ class YumArtifact
1265
+ include Google::Apis::Core::Hashable
1266
+
1267
+ # Output only. Operating system architecture of the artifact.
1268
+ # Corresponds to the JSON property `architecture`
1269
+ # @return [String]
1270
+ attr_accessor :architecture
1271
+
1272
+ # Output only. The Artifact Registry resource name of the artifact.
1273
+ # Corresponds to the JSON property `name`
1274
+ # @return [String]
1275
+ attr_accessor :name
1276
+
1277
+ # Output only. The yum package name of the artifact.
1278
+ # Corresponds to the JSON property `packageName`
1279
+ # @return [String]
1280
+ attr_accessor :package_name
1281
+
1282
+ # Output only. An artifact is a binary or source package.
1283
+ # Corresponds to the JSON property `packageType`
1284
+ # @return [String]
1285
+ attr_accessor :package_type
1286
+
1287
+ def initialize(**args)
1288
+ update!(**args)
1289
+ end
1290
+
1291
+ # Update properties of this object
1292
+ def update!(**args)
1293
+ @architecture = args[:architecture] if args.key?(:architecture)
1294
+ @name = args[:name] if args.key?(:name)
1295
+ @package_name = args[:package_name] if args.key?(:package_name)
1296
+ @package_type = args[:package_type] if args.key?(:package_type)
1297
+ end
1298
+ end
928
1299
  end
929
1300
  end
930
1301
  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.7.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210517"
25
+ REVISION = "20210817"
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
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
64
76
  include Google::Apis::Core::JsonObjectSupport
65
77
  end
66
78
 
67
- class ListOperationsResponse
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
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListLocationsResponse
68
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
117
 
70
118
  include Google::Apis::Core::JsonObjectSupport
@@ -154,12 +202,66 @@ module Google
154
202
  include Google::Apis::Core::JsonObjectSupport
155
203
  end
156
204
 
205
+ class UploadAptArtifactMediaResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class UploadAptArtifactRequest
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class UploadAptArtifactResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class UploadYumArtifactMediaResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class UploadYumArtifactRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class UploadYumArtifactResponse
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
157
241
  class Version
158
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
243
 
160
244
  include Google::Apis::Core::JsonObjectSupport
161
245
  end
162
246
 
247
+ class YumArtifact
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class AptArtifact
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :architecture, as: 'architecture'
257
+ property :component, as: 'component'
258
+ property :control_file, :base64 => true, as: 'controlFile'
259
+ property :name, as: 'name'
260
+ property :package_name, as: 'packageName'
261
+ property :package_type, as: 'packageType'
262
+ end
263
+ end
264
+
163
265
  class Binding
164
266
  # @private
165
267
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -186,7 +288,7 @@ module Google
186
288
  end
187
289
  end
188
290
 
189
- class File
291
+ class GoogleDevtoolsArtifactregistryV1beta2File
190
292
  # @private
191
293
  class Representation < Google::Apis::Core::JsonRepresentation
192
294
  property :create_time, as: 'createTime'
@@ -207,30 +309,93 @@ module Google
207
309
  end
208
310
  end
209
311
 
210
- class ListFilesResponse
312
+ class ImportAptArtifactsErrorInfo
211
313
  # @private
212
314
  class Representation < Google::Apis::Core::JsonRepresentation
213
- collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta2::File, decorator: Google::Apis::ArtifactregistryV1beta2::File::Representation
315
+ property :error, as: 'error', class: Google::Apis::ArtifactregistryV1beta2::Status, decorator: Google::Apis::ArtifactregistryV1beta2::Status::Representation
316
+
317
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource::Representation
214
318
 
215
- property :next_page_token, as: 'nextPageToken'
216
319
  end
217
320
  end
218
321
 
219
- class ListLocationsResponse
322
+ class ImportAptArtifactsGcsSource
220
323
  # @private
221
324
  class Representation < Google::Apis::Core::JsonRepresentation
222
- collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1beta2::Location, decorator: Google::Apis::ArtifactregistryV1beta2::Location::Representation
325
+ collection :uris, as: 'uris'
326
+ property :use_wildcards, as: 'useWildcards'
327
+ end
328
+ end
329
+
330
+ class ImportAptArtifactsRequest
331
+ # @private
332
+ class Representation < Google::Apis::Core::JsonRepresentation
333
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsGcsSource::Representation
223
334
 
224
- property :next_page_token, as: 'nextPageToken'
225
335
  end
226
336
  end
227
337
 
228
- class ListOperationsResponse
338
+ class ImportAptArtifactsResponse
229
339
  # @private
230
340
  class Representation < Google::Apis::Core::JsonRepresentation
341
+ collection :apt_artifacts, as: 'aptArtifacts', class: Google::Apis::ArtifactregistryV1beta2::AptArtifact, decorator: Google::Apis::ArtifactregistryV1beta2::AptArtifact::Representation
342
+
343
+ collection :errors, as: 'errors', class: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsErrorInfo, decorator: Google::Apis::ArtifactregistryV1beta2::ImportAptArtifactsErrorInfo::Representation
344
+
345
+ end
346
+ end
347
+
348
+ class ImportYumArtifactsErrorInfo
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :error, as: 'error', class: Google::Apis::ArtifactregistryV1beta2::Status, decorator: Google::Apis::ArtifactregistryV1beta2::Status::Representation
352
+
353
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource::Representation
354
+
355
+ end
356
+ end
357
+
358
+ class ImportYumArtifactsGcsSource
359
+ # @private
360
+ class Representation < Google::Apis::Core::JsonRepresentation
361
+ collection :uris, as: 'uris'
362
+ property :use_wildcards, as: 'useWildcards'
363
+ end
364
+ end
365
+
366
+ class ImportYumArtifactsRequest
367
+ # @private
368
+ class Representation < Google::Apis::Core::JsonRepresentation
369
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsGcsSource::Representation
370
+
371
+ end
372
+ end
373
+
374
+ class ImportYumArtifactsResponse
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ collection :errors, as: 'errors', class: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsErrorInfo, decorator: Google::Apis::ArtifactregistryV1beta2::ImportYumArtifactsErrorInfo::Representation
378
+
379
+ collection :yum_artifacts, as: 'yumArtifacts', class: Google::Apis::ArtifactregistryV1beta2::YumArtifact, decorator: Google::Apis::ArtifactregistryV1beta2::YumArtifact::Representation
380
+
381
+ end
382
+ end
383
+
384
+ class ListFilesResponse
385
+ # @private
386
+ class Representation < Google::Apis::Core::JsonRepresentation
387
+ collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File, decorator: Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File::Representation
388
+
231
389
  property :next_page_token, as: 'nextPageToken'
232
- collection :operations, as: 'operations', class: Google::Apis::ArtifactregistryV1beta2::Operation, decorator: Google::Apis::ArtifactregistryV1beta2::Operation::Representation
390
+ end
391
+ end
392
+
393
+ class ListLocationsResponse
394
+ # @private
395
+ class Representation < Google::Apis::Core::JsonRepresentation
396
+ collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1beta2::Location, decorator: Google::Apis::ArtifactregistryV1beta2::Location::Representation
233
397
 
398
+ property :next_page_token, as: 'nextPageToken'
234
399
  end
235
400
  end
236
401
 
@@ -365,6 +530,50 @@ module Google
365
530
  end
366
531
  end
367
532
 
533
+ class UploadAptArtifactMediaResponse
534
+ # @private
535
+ class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1beta2::Operation, decorator: Google::Apis::ArtifactregistryV1beta2::Operation::Representation
537
+
538
+ end
539
+ end
540
+
541
+ class UploadAptArtifactRequest
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ end
545
+ end
546
+
547
+ class UploadAptArtifactResponse
548
+ # @private
549
+ class Representation < Google::Apis::Core::JsonRepresentation
550
+ collection :apt_artifacts, as: 'aptArtifacts', class: Google::Apis::ArtifactregistryV1beta2::AptArtifact, decorator: Google::Apis::ArtifactregistryV1beta2::AptArtifact::Representation
551
+
552
+ end
553
+ end
554
+
555
+ class UploadYumArtifactMediaResponse
556
+ # @private
557
+ class Representation < Google::Apis::Core::JsonRepresentation
558
+ property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1beta2::Operation, decorator: Google::Apis::ArtifactregistryV1beta2::Operation::Representation
559
+
560
+ end
561
+ end
562
+
563
+ class UploadYumArtifactRequest
564
+ # @private
565
+ class Representation < Google::Apis::Core::JsonRepresentation
566
+ end
567
+ end
568
+
569
+ class UploadYumArtifactResponse
570
+ # @private
571
+ class Representation < Google::Apis::Core::JsonRepresentation
572
+ collection :yum_artifacts, as: 'yumArtifacts', class: Google::Apis::ArtifactregistryV1beta2::YumArtifact, decorator: Google::Apis::ArtifactregistryV1beta2::YumArtifact::Representation
573
+
574
+ end
575
+ end
576
+
368
577
  class Version
369
578
  # @private
370
579
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -377,6 +586,16 @@ module Google
377
586
  property :update_time, as: 'updateTime'
378
587
  end
379
588
  end
589
+
590
+ class YumArtifact
591
+ # @private
592
+ class Representation < Google::Apis::Core::JsonRepresentation
593
+ property :architecture, as: 'architecture'
594
+ property :name, as: 'name'
595
+ property :package_name, as: 'packageName'
596
+ property :package_type, as: 'packageType'
597
+ end
598
+ end
380
599
  end
381
600
  end
382
601
  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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-artifactregistry_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.11.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-05-31 00:00:00.000000000 Z
11
+ date: 2021-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Artifact Registry API V1beta2. Simple
28
34
  REST clients are Ruby client libraries that provide access to Google services via
29
35
  their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-artifactregistry_v1beta2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1beta2/v0.7.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1beta2/v0.11.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-artifactregistry_v1beta2
57
63
  post_install_message:
58
64
  rdoc_options: []