google-apis-artifactregistry_v1 0.19.0 → 0.22.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: 712e38401c49e487e08b61ba08a8dcb36d76bbb4a8c37e1cf6e74af02d4cd948
4
- data.tar.gz: f037825384566c47919fa2a7ad93024006beb2a2d51a97aba2a7bd50c6c7ddef
3
+ metadata.gz: cc11dac7ba1a42ca57746a4a77c76090369b78e62838846c4cbeaa9dc13adaa1
4
+ data.tar.gz: 22cc5cde93b410b6dd5b505a6edc58af14d5bc267eff940a5ab5f6e821c7d05c
5
5
  SHA512:
6
- metadata.gz: cc7c8777856acc48d4158dc40711d56a2fbf6251909407f265167dfdd4e9bba188d656e2d8eb852be7d2df54669db1320f61281b0c5f1c741edb677a7433b09a
7
- data.tar.gz: 8648b8fafc046e2c41a001807d424794c2f8c8d7eb68861198ebb6bf6d3271400c414ffda08d5f8bed40addb3638f1bd1469ba216ac55fd881ee29e9c7bade19
6
+ metadata.gz: e9e8ae0e6beb3f679a571cd01969043bbad1d9e91ed892f8886f2def2aa7b9f4d3134784d30e1ad1aa52fc6a566bbd3815bbdaf03cdb22d547029f08fa6fd6c8
7
+ data.tar.gz: e93c3b9d33243ce36d767b585bf162cfd68f55d0331ecacc17f1ef87ad063bbf87f853abe235361ee6f4c73f5a0c4a6dbccc68e1103cac916b0b6244bc811f6c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-artifactregistry_v1
2
2
 
3
+ ### v0.22.0 (2022-03-31)
4
+
5
+ * Regenerated from discovery document revision 20220328
6
+
7
+ ### v0.21.0 (2022-03-17)
8
+
9
+ * Regenerated from discovery document revision 20220311
10
+
11
+ ### v0.20.0 (2022-03-10)
12
+
13
+ * Regenerated from discovery document revision 20220307
14
+
3
15
  ### v0.19.0 (2022-02-17)
4
16
 
5
17
  * Regenerated from discovery document revision 20220212
@@ -22,6 +22,58 @@ module Google
22
22
  module Apis
23
23
  module ArtifactregistryV1
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`, or principals, with a `role`.
26
78
  class Binding
27
79
  include Google::Apis::Core::Hashable
@@ -169,8 +221,7 @@ module Google
169
221
  # A generic empty message that you can re-use to avoid defining duplicated empty
170
222
  # messages in your APIs. A typical example is to use it as the request or the
171
223
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
172
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
173
- # `Empty` is empty JSON object ````.
224
+ # protobuf.Empty) returns (google.protobuf.Empty); `
174
225
  class Empty
175
226
  include Google::Apis::Core::Hashable
176
227
 
@@ -314,6 +365,36 @@ module Google
314
365
  end
315
366
  end
316
367
 
368
+ # Error information explaining why a package was not imported.
369
+ class ImportAptArtifactsErrorInfo
370
+ include Google::Apis::Core::Hashable
371
+
372
+ # The `Status` type defines a logical error model that is suitable for different
373
+ # programming environments, including REST APIs and RPC APIs. It is used by [
374
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
375
+ # data: error code, error message, and error details. You can find out more
376
+ # about this error model and how to work with it in the [API Design Guide](https:
377
+ # //cloud.google.com/apis/design/errors).
378
+ # Corresponds to the JSON property `error`
379
+ # @return [Google::Apis::ArtifactregistryV1::Status]
380
+ attr_accessor :error
381
+
382
+ # Google Cloud Storage location where the artifacts currently reside.
383
+ # Corresponds to the JSON property `gcsSource`
384
+ # @return [Google::Apis::ArtifactregistryV1::ImportAptArtifactsGcsSource]
385
+ attr_accessor :gcs_source
386
+
387
+ def initialize(**args)
388
+ update!(**args)
389
+ end
390
+
391
+ # Update properties of this object
392
+ def update!(**args)
393
+ @error = args[:error] if args.key?(:error)
394
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
395
+ end
396
+ end
397
+
317
398
  # Google Cloud Storage location where the artifacts currently reside.
318
399
  class ImportAptArtifactsGcsSource
319
400
  include Google::Apis::Core::Hashable
@@ -340,6 +421,19 @@ module Google
340
421
  end
341
422
  end
342
423
 
424
+ # The operation metadata for importing artifacts.
425
+ class ImportAptArtifactsMetadata
426
+ include Google::Apis::Core::Hashable
427
+
428
+ def initialize(**args)
429
+ update!(**args)
430
+ end
431
+
432
+ # Update properties of this object
433
+ def update!(**args)
434
+ end
435
+ end
436
+
343
437
  # The request to import new apt artifacts.
344
438
  class ImportAptArtifactsRequest
345
439
  include Google::Apis::Core::Hashable
@@ -359,20 +453,19 @@ module Google
359
453
  end
360
454
  end
361
455
 
362
- # Google Cloud Storage location where the artifacts currently reside.
363
- class ImportGooGetArtifactsGcsSource
456
+ # The response message from importing APT artifacts.
457
+ class ImportAptArtifactsResponse
364
458
  include Google::Apis::Core::Hashable
365
459
 
366
- # Cloud Storage paths URI (e.g., gs://my_bucket/my_object).
367
- # Corresponds to the JSON property `uris`
368
- # @return [Array<String>]
369
- attr_accessor :uris
460
+ # The Apt artifacts imported.
461
+ # Corresponds to the JSON property `aptArtifacts`
462
+ # @return [Array<Google::Apis::ArtifactregistryV1::AptArtifact>]
463
+ attr_accessor :apt_artifacts
370
464
 
371
- # Supports URI wildcards for matching multiple objects from a single URI.
372
- # Corresponds to the JSON property `useWildcards`
373
- # @return [Boolean]
374
- attr_accessor :use_wildcards
375
- alias_method :use_wildcards?, :use_wildcards
465
+ # Detailed error info for packages that were not imported.
466
+ # Corresponds to the JSON property `errors`
467
+ # @return [Array<Google::Apis::ArtifactregistryV1::ImportAptArtifactsErrorInfo>]
468
+ attr_accessor :errors
376
469
 
377
470
  def initialize(**args)
378
471
  update!(**args)
@@ -380,18 +473,28 @@ module Google
380
473
 
381
474
  # Update properties of this object
382
475
  def update!(**args)
383
- @uris = args[:uris] if args.key?(:uris)
384
- @use_wildcards = args[:use_wildcards] if args.key?(:use_wildcards)
476
+ @apt_artifacts = args[:apt_artifacts] if args.key?(:apt_artifacts)
477
+ @errors = args[:errors] if args.key?(:errors)
385
478
  end
386
479
  end
387
480
 
388
- # The request to import new googet artifacts.
389
- class ImportGooGetArtifactsRequest
481
+ # Error information explaining why a package was not imported.
482
+ class ImportYumArtifactsErrorInfo
390
483
  include Google::Apis::Core::Hashable
391
484
 
485
+ # The `Status` type defines a logical error model that is suitable for different
486
+ # programming environments, including REST APIs and RPC APIs. It is used by [
487
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
488
+ # data: error code, error message, and error details. You can find out more
489
+ # about this error model and how to work with it in the [API Design Guide](https:
490
+ # //cloud.google.com/apis/design/errors).
491
+ # Corresponds to the JSON property `error`
492
+ # @return [Google::Apis::ArtifactregistryV1::Status]
493
+ attr_accessor :error
494
+
392
495
  # Google Cloud Storage location where the artifacts currently reside.
393
496
  # Corresponds to the JSON property `gcsSource`
394
- # @return [Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsGcsSource]
497
+ # @return [Google::Apis::ArtifactregistryV1::ImportYumArtifactsGcsSource]
395
498
  attr_accessor :gcs_source
396
499
 
397
500
  def initialize(**args)
@@ -400,6 +503,7 @@ module Google
400
503
 
401
504
  # Update properties of this object
402
505
  def update!(**args)
506
+ @error = args[:error] if args.key?(:error)
403
507
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
404
508
  end
405
509
  end
@@ -430,6 +534,19 @@ module Google
430
534
  end
431
535
  end
432
536
 
537
+ # The operation metadata for importing artifacts.
538
+ class ImportYumArtifactsMetadata
539
+ include Google::Apis::Core::Hashable
540
+
541
+ def initialize(**args)
542
+ update!(**args)
543
+ end
544
+
545
+ # Update properties of this object
546
+ def update!(**args)
547
+ end
548
+ end
549
+
433
550
  # The request to import new yum artifacts.
434
551
  class ImportYumArtifactsRequest
435
552
  include Google::Apis::Core::Hashable
@@ -449,6 +566,31 @@ module Google
449
566
  end
450
567
  end
451
568
 
569
+ # The response message from importing YUM artifacts.
570
+ class ImportYumArtifactsResponse
571
+ include Google::Apis::Core::Hashable
572
+
573
+ # Detailed error info for packages that were not imported.
574
+ # Corresponds to the JSON property `errors`
575
+ # @return [Array<Google::Apis::ArtifactregistryV1::ImportYumArtifactsErrorInfo>]
576
+ attr_accessor :errors
577
+
578
+ # The yum artifacts imported.
579
+ # Corresponds to the JSON property `yumArtifacts`
580
+ # @return [Array<Google::Apis::ArtifactregistryV1::YumArtifact>]
581
+ attr_accessor :yum_artifacts
582
+
583
+ def initialize(**args)
584
+ update!(**args)
585
+ end
586
+
587
+ # Update properties of this object
588
+ def update!(**args)
589
+ @errors = args[:errors] if args.key?(:errors)
590
+ @yum_artifacts = args[:yum_artifacts] if args.key?(:yum_artifacts)
591
+ end
592
+ end
593
+
452
594
  # The response from listing docker images.
453
595
  class ListDockerImagesResponse
454
596
  include Google::Apis::Core::Hashable
@@ -501,6 +643,31 @@ module Google
501
643
  end
502
644
  end
503
645
 
646
+ # The response message for Locations.ListLocations.
647
+ class ListLocationsResponse
648
+ include Google::Apis::Core::Hashable
649
+
650
+ # A list of locations that matches the specified filter in the request.
651
+ # Corresponds to the JSON property `locations`
652
+ # @return [Array<Google::Apis::ArtifactregistryV1::Location>]
653
+ attr_accessor :locations
654
+
655
+ # The standard List next-page token.
656
+ # Corresponds to the JSON property `nextPageToken`
657
+ # @return [String]
658
+ attr_accessor :next_page_token
659
+
660
+ def initialize(**args)
661
+ update!(**args)
662
+ end
663
+
664
+ # Update properties of this object
665
+ def update!(**args)
666
+ @locations = args[:locations] if args.key?(:locations)
667
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
668
+ end
669
+ end
670
+
504
671
  # The response from listing packages.
505
672
  class ListPackagesResponse
506
673
  include Google::Apis::Core::Hashable
@@ -605,6 +772,53 @@ module Google
605
772
  end
606
773
  end
607
774
 
775
+ # A resource that represents Google Cloud Platform location.
776
+ class Location
777
+ include Google::Apis::Core::Hashable
778
+
779
+ # The friendly name for this location, typically a nearby city name. For example,
780
+ # "Tokyo".
781
+ # Corresponds to the JSON property `displayName`
782
+ # @return [String]
783
+ attr_accessor :display_name
784
+
785
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
786
+ # region": "us-east1"`
787
+ # Corresponds to the JSON property `labels`
788
+ # @return [Hash<String,String>]
789
+ attr_accessor :labels
790
+
791
+ # The canonical id for this location. For example: `"us-east1"`.
792
+ # Corresponds to the JSON property `locationId`
793
+ # @return [String]
794
+ attr_accessor :location_id
795
+
796
+ # Service-specific metadata. For example the available capacity at the given
797
+ # location.
798
+ # Corresponds to the JSON property `metadata`
799
+ # @return [Hash<String,Object>]
800
+ attr_accessor :metadata
801
+
802
+ # Resource name for the location, which may vary between implementations. For
803
+ # example: `"projects/example-project/locations/us-east1"`
804
+ # Corresponds to the JSON property `name`
805
+ # @return [String]
806
+ attr_accessor :name
807
+
808
+ def initialize(**args)
809
+ update!(**args)
810
+ end
811
+
812
+ # Update properties of this object
813
+ def update!(**args)
814
+ @display_name = args[:display_name] if args.key?(:display_name)
815
+ @labels = args[:labels] if args.key?(:labels)
816
+ @location_id = args[:location_id] if args.key?(:location_id)
817
+ @metadata = args[:metadata] if args.key?(:metadata)
818
+ @name = args[:name] if args.key?(:name)
819
+ end
820
+ end
821
+
608
822
  # MavenRepositoryConfig is maven related repository details. Provides additional
609
823
  # configuration details for repositories of the maven format type.
610
824
  class MavenRepositoryConfig
@@ -694,6 +908,19 @@ module Google
694
908
  end
695
909
  end
696
910
 
911
+ # Metadata type for longrunning-operations, currently empty.
912
+ class OperationMetadata
913
+ include Google::Apis::Core::Hashable
914
+
915
+ def initialize(**args)
916
+ update!(**args)
917
+ end
918
+
919
+ # Update properties of this object
920
+ def update!(**args)
921
+ end
922
+ end
923
+
697
924
  # Packages are named collections of versions.
698
925
  class Package
699
926
  include Google::Apis::Core::Hashable
@@ -896,6 +1123,13 @@ module Google
896
1123
  # @return [String]
897
1124
  attr_accessor :name
898
1125
 
1126
+ # Output only. The size, in bytes, of all artifact storage in this repository.
1127
+ # Repositories that are generally available or in public preview use this to
1128
+ # calculate storage costs.
1129
+ # Corresponds to the JSON property `sizeBytes`
1130
+ # @return [Fixnum]
1131
+ attr_accessor :size_bytes
1132
+
899
1133
  # The time when the repository was last updated.
900
1134
  # Corresponds to the JSON property `updateTime`
901
1135
  # @return [String]
@@ -914,6 +1148,7 @@ module Google
914
1148
  @labels = args[:labels] if args.key?(:labels)
915
1149
  @maven_config = args[:maven_config] if args.key?(:maven_config)
916
1150
  @name = args[:name] if args.key?(:name)
1151
+ @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
917
1152
  @update_time = args[:update_time] if args.key?(:update_time)
918
1153
  end
919
1154
  end
@@ -1106,29 +1341,15 @@ module Google
1106
1341
  end
1107
1342
  end
1108
1343
 
1109
- # The response to upload an artifact.
1110
- class UploadGooGetArtifactMediaResponse
1344
+ # The response of the completed artifact upload operation. This response is
1345
+ # contained in the Operation and available to users.
1346
+ class UploadAptArtifactResponse
1111
1347
  include Google::Apis::Core::Hashable
1112
1348
 
1113
- # This resource represents a long-running operation that is the result of a
1114
- # network API call.
1115
- # Corresponds to the JSON property `operation`
1116
- # @return [Google::Apis::ArtifactregistryV1::Operation]
1117
- attr_accessor :operation
1118
-
1119
- def initialize(**args)
1120
- update!(**args)
1121
- end
1122
-
1123
- # Update properties of this object
1124
- def update!(**args)
1125
- @operation = args[:operation] if args.key?(:operation)
1126
- end
1127
- end
1128
-
1129
- # The request to upload an artifact.
1130
- class UploadGooGetArtifactRequest
1131
- include Google::Apis::Core::Hashable
1349
+ # The Apt artifacts updated.
1350
+ # Corresponds to the JSON property `aptArtifacts`
1351
+ # @return [Array<Google::Apis::ArtifactregistryV1::AptArtifact>]
1352
+ attr_accessor :apt_artifacts
1132
1353
 
1133
1354
  def initialize(**args)
1134
1355
  update!(**args)
@@ -1136,6 +1357,7 @@ module Google
1136
1357
 
1137
1358
  # Update properties of this object
1138
1359
  def update!(**args)
1360
+ @apt_artifacts = args[:apt_artifacts] if args.key?(:apt_artifacts)
1139
1361
  end
1140
1362
  end
1141
1363
 
@@ -1172,6 +1394,26 @@ module Google
1172
1394
  end
1173
1395
  end
1174
1396
 
1397
+ # The response of the completed artifact upload operation. This response is
1398
+ # contained in the Operation and available to users.
1399
+ class UploadYumArtifactResponse
1400
+ include Google::Apis::Core::Hashable
1401
+
1402
+ # The Apt artifacts updated.
1403
+ # Corresponds to the JSON property `yumArtifacts`
1404
+ # @return [Array<Google::Apis::ArtifactregistryV1::YumArtifact>]
1405
+ attr_accessor :yum_artifacts
1406
+
1407
+ def initialize(**args)
1408
+ update!(**args)
1409
+ end
1410
+
1411
+ # Update properties of this object
1412
+ def update!(**args)
1413
+ @yum_artifacts = args[:yum_artifacts] if args.key?(:yum_artifacts)
1414
+ end
1415
+ end
1416
+
1175
1417
  # The body of a version resource. A version resource represents a collection of
1176
1418
  # components, such as files and other data. This may correspond to a version in
1177
1419
  # many package management schemes.
@@ -1227,6 +1469,43 @@ module Google
1227
1469
  @update_time = args[:update_time] if args.key?(:update_time)
1228
1470
  end
1229
1471
  end
1472
+
1473
+ # A detailed representation of a Yum artifact.
1474
+ class YumArtifact
1475
+ include Google::Apis::Core::Hashable
1476
+
1477
+ # Output only. Operating system architecture of the artifact.
1478
+ # Corresponds to the JSON property `architecture`
1479
+ # @return [String]
1480
+ attr_accessor :architecture
1481
+
1482
+ # Output only. The Artifact Registry resource name of the artifact.
1483
+ # Corresponds to the JSON property `name`
1484
+ # @return [String]
1485
+ attr_accessor :name
1486
+
1487
+ # Output only. The yum package name of the artifact.
1488
+ # Corresponds to the JSON property `packageName`
1489
+ # @return [String]
1490
+ attr_accessor :package_name
1491
+
1492
+ # Output only. An artifact is a binary or source package.
1493
+ # Corresponds to the JSON property `packageType`
1494
+ # @return [String]
1495
+ attr_accessor :package_type
1496
+
1497
+ def initialize(**args)
1498
+ update!(**args)
1499
+ end
1500
+
1501
+ # Update properties of this object
1502
+ def update!(**args)
1503
+ @architecture = args[:architecture] if args.key?(:architecture)
1504
+ @name = args[:name] if args.key?(:name)
1505
+ @package_name = args[:package_name] if args.key?(:package_name)
1506
+ @package_type = args[:package_type] if args.key?(:package_type)
1507
+ end
1508
+ end
1230
1509
  end
1231
1510
  end
1232
1511
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ArtifactregistryV1
18
18
  # Version of the google-apis-artifactregistry_v1 gem
19
- GEM_VERSION = "0.19.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220212"
25
+ REVISION = "20220328"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module ArtifactregistryV1
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
 
@@ -58,25 +64,37 @@ module Google
58
64
  include Google::Apis::Core::JsonObjectSupport
59
65
  end
60
66
 
67
+ class ImportAptArtifactsErrorInfo
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class ImportAptArtifactsGcsSource
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
64
76
  include Google::Apis::Core::JsonObjectSupport
65
77
  end
66
78
 
79
+ class ImportAptArtifactsMetadata
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
67
85
  class ImportAptArtifactsRequest
68
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
87
 
70
88
  include Google::Apis::Core::JsonObjectSupport
71
89
  end
72
90
 
73
- class ImportGooGetArtifactsGcsSource
91
+ class ImportAptArtifactsResponse
74
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
93
 
76
94
  include Google::Apis::Core::JsonObjectSupport
77
95
  end
78
96
 
79
- class ImportGooGetArtifactsRequest
97
+ class ImportYumArtifactsErrorInfo
80
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
99
 
82
100
  include Google::Apis::Core::JsonObjectSupport
@@ -88,12 +106,24 @@ module Google
88
106
  include Google::Apis::Core::JsonObjectSupport
89
107
  end
90
108
 
109
+ class ImportYumArtifactsMetadata
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
91
115
  class ImportYumArtifactsRequest
92
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
117
 
94
118
  include Google::Apis::Core::JsonObjectSupport
95
119
  end
96
120
 
121
+ class ImportYumArtifactsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
97
127
  class ListDockerImagesResponse
98
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
129
 
@@ -106,6 +136,12 @@ module Google
106
136
  include Google::Apis::Core::JsonObjectSupport
107
137
  end
108
138
 
139
+ class ListLocationsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
109
145
  class ListPackagesResponse
110
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
147
 
@@ -130,6 +166,12 @@ module Google
130
166
  include Google::Apis::Core::JsonObjectSupport
131
167
  end
132
168
 
169
+ class Location
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
133
175
  class MavenRepositoryConfig
134
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
177
 
@@ -142,6 +184,12 @@ module Google
142
184
  include Google::Apis::Core::JsonObjectSupport
143
185
  end
144
186
 
187
+ class OperationMetadata
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
145
193
  class Package
146
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
195
 
@@ -208,25 +256,25 @@ module Google
208
256
  include Google::Apis::Core::JsonObjectSupport
209
257
  end
210
258
 
211
- class UploadGooGetArtifactMediaResponse
259
+ class UploadAptArtifactResponse
212
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
261
 
214
262
  include Google::Apis::Core::JsonObjectSupport
215
263
  end
216
264
 
217
- class UploadGooGetArtifactRequest
265
+ class UploadYumArtifactMediaResponse
218
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
267
 
220
268
  include Google::Apis::Core::JsonObjectSupport
221
269
  end
222
270
 
223
- class UploadYumArtifactMediaResponse
271
+ class UploadYumArtifactRequest
224
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
273
 
226
274
  include Google::Apis::Core::JsonObjectSupport
227
275
  end
228
276
 
229
- class UploadYumArtifactRequest
277
+ class UploadYumArtifactResponse
230
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
279
 
232
280
  include Google::Apis::Core::JsonObjectSupport
@@ -238,6 +286,24 @@ module Google
238
286
  include Google::Apis::Core::JsonObjectSupport
239
287
  end
240
288
 
289
+ class YumArtifact
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class AptArtifact
296
+ # @private
297
+ class Representation < Google::Apis::Core::JsonRepresentation
298
+ property :architecture, as: 'architecture'
299
+ property :component, as: 'component'
300
+ property :control_file, :base64 => true, as: 'controlFile'
301
+ property :name, as: 'name'
302
+ property :package_name, as: 'packageName'
303
+ property :package_type, as: 'packageType'
304
+ end
305
+ end
306
+
241
307
  class Binding
242
308
  # @private
243
309
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -298,6 +364,16 @@ module Google
298
364
  end
299
365
  end
300
366
 
367
+ class ImportAptArtifactsErrorInfo
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ property :error, as: 'error', class: Google::Apis::ArtifactregistryV1::Status, decorator: Google::Apis::ArtifactregistryV1::Status::Representation
371
+
372
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1::ImportAptArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1::ImportAptArtifactsGcsSource::Representation
373
+
374
+ end
375
+ end
376
+
301
377
  class ImportAptArtifactsGcsSource
302
378
  # @private
303
379
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -306,6 +382,12 @@ module Google
306
382
  end
307
383
  end
308
384
 
385
+ class ImportAptArtifactsMetadata
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ end
389
+ end
390
+
309
391
  class ImportAptArtifactsRequest
310
392
  # @private
311
393
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -314,18 +396,22 @@ module Google
314
396
  end
315
397
  end
316
398
 
317
- class ImportGooGetArtifactsGcsSource
399
+ class ImportAptArtifactsResponse
318
400
  # @private
319
401
  class Representation < Google::Apis::Core::JsonRepresentation
320
- collection :uris, as: 'uris'
321
- property :use_wildcards, as: 'useWildcards'
402
+ collection :apt_artifacts, as: 'aptArtifacts', class: Google::Apis::ArtifactregistryV1::AptArtifact, decorator: Google::Apis::ArtifactregistryV1::AptArtifact::Representation
403
+
404
+ collection :errors, as: 'errors', class: Google::Apis::ArtifactregistryV1::ImportAptArtifactsErrorInfo, decorator: Google::Apis::ArtifactregistryV1::ImportAptArtifactsErrorInfo::Representation
405
+
322
406
  end
323
407
  end
324
408
 
325
- class ImportGooGetArtifactsRequest
409
+ class ImportYumArtifactsErrorInfo
326
410
  # @private
327
411
  class Representation < Google::Apis::Core::JsonRepresentation
328
- property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsGcsSource::Representation
412
+ property :error, as: 'error', class: Google::Apis::ArtifactregistryV1::Status, decorator: Google::Apis::ArtifactregistryV1::Status::Representation
413
+
414
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1::ImportYumArtifactsGcsSource, decorator: Google::Apis::ArtifactregistryV1::ImportYumArtifactsGcsSource::Representation
329
415
 
330
416
  end
331
417
  end
@@ -338,6 +424,12 @@ module Google
338
424
  end
339
425
  end
340
426
 
427
+ class ImportYumArtifactsMetadata
428
+ # @private
429
+ class Representation < Google::Apis::Core::JsonRepresentation
430
+ end
431
+ end
432
+
341
433
  class ImportYumArtifactsRequest
342
434
  # @private
343
435
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -346,6 +438,16 @@ module Google
346
438
  end
347
439
  end
348
440
 
441
+ class ImportYumArtifactsResponse
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ collection :errors, as: 'errors', class: Google::Apis::ArtifactregistryV1::ImportYumArtifactsErrorInfo, decorator: Google::Apis::ArtifactregistryV1::ImportYumArtifactsErrorInfo::Representation
445
+
446
+ collection :yum_artifacts, as: 'yumArtifacts', class: Google::Apis::ArtifactregistryV1::YumArtifact, decorator: Google::Apis::ArtifactregistryV1::YumArtifact::Representation
447
+
448
+ end
449
+ end
450
+
349
451
  class ListDockerImagesResponse
350
452
  # @private
351
453
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -364,6 +466,15 @@ module Google
364
466
  end
365
467
  end
366
468
 
469
+ class ListLocationsResponse
470
+ # @private
471
+ class Representation < Google::Apis::Core::JsonRepresentation
472
+ collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1::Location, decorator: Google::Apis::ArtifactregistryV1::Location::Representation
473
+
474
+ property :next_page_token, as: 'nextPageToken'
475
+ end
476
+ end
477
+
367
478
  class ListPackagesResponse
368
479
  # @private
369
480
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -400,6 +511,17 @@ module Google
400
511
  end
401
512
  end
402
513
 
514
+ class Location
515
+ # @private
516
+ class Representation < Google::Apis::Core::JsonRepresentation
517
+ property :display_name, as: 'displayName'
518
+ hash :labels, as: 'labels'
519
+ property :location_id, as: 'locationId'
520
+ hash :metadata, as: 'metadata'
521
+ property :name, as: 'name'
522
+ end
523
+ end
524
+
403
525
  class MavenRepositoryConfig
404
526
  # @private
405
527
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -420,6 +542,12 @@ module Google
420
542
  end
421
543
  end
422
544
 
545
+ class OperationMetadata
546
+ # @private
547
+ class Representation < Google::Apis::Core::JsonRepresentation
548
+ end
549
+ end
550
+
423
551
  class Package
424
552
  # @private
425
553
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -459,6 +587,7 @@ module Google
459
587
  property :maven_config, as: 'mavenConfig', class: Google::Apis::ArtifactregistryV1::MavenRepositoryConfig, decorator: Google::Apis::ArtifactregistryV1::MavenRepositoryConfig::Representation
460
588
 
461
589
  property :name, as: 'name'
590
+ property :size_bytes, :numeric_string => true, as: 'sizeBytes'
462
591
  property :update_time, as: 'updateTime'
463
592
  end
464
593
  end
@@ -516,31 +645,33 @@ module Google
516
645
  end
517
646
  end
518
647
 
519
- class UploadGooGetArtifactMediaResponse
648
+ class UploadAptArtifactResponse
520
649
  # @private
521
650
  class Representation < Google::Apis::Core::JsonRepresentation
522
- property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
651
+ collection :apt_artifacts, as: 'aptArtifacts', class: Google::Apis::ArtifactregistryV1::AptArtifact, decorator: Google::Apis::ArtifactregistryV1::AptArtifact::Representation
523
652
 
524
653
  end
525
654
  end
526
655
 
527
- class UploadGooGetArtifactRequest
656
+ class UploadYumArtifactMediaResponse
528
657
  # @private
529
658
  class Representation < Google::Apis::Core::JsonRepresentation
659
+ property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
660
+
530
661
  end
531
662
  end
532
663
 
533
- class UploadYumArtifactMediaResponse
664
+ class UploadYumArtifactRequest
534
665
  # @private
535
666
  class Representation < Google::Apis::Core::JsonRepresentation
536
- property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
537
-
538
667
  end
539
668
  end
540
669
 
541
- class UploadYumArtifactRequest
670
+ class UploadYumArtifactResponse
542
671
  # @private
543
672
  class Representation < Google::Apis::Core::JsonRepresentation
673
+ collection :yum_artifacts, as: 'yumArtifacts', class: Google::Apis::ArtifactregistryV1::YumArtifact, decorator: Google::Apis::ArtifactregistryV1::YumArtifact::Representation
674
+
544
675
  end
545
676
  end
546
677
 
@@ -556,6 +687,16 @@ module Google
556
687
  property :update_time, as: 'updateTime'
557
688
  end
558
689
  end
690
+
691
+ class YumArtifact
692
+ # @private
693
+ class Representation < Google::Apis::Core::JsonRepresentation
694
+ property :architecture, as: 'architecture'
695
+ property :name, as: 'name'
696
+ property :package_name, as: 'packageName'
697
+ property :package_type, as: 'packageType'
698
+ end
699
+ end
559
700
  end
560
701
  end
561
702
  end
@@ -117,6 +117,79 @@ module Google
117
117
  execute_or_queue_command(command, &block)
118
118
  end
119
119
 
120
+ # Gets information about a location.
121
+ # @param [String] name
122
+ # Resource name for the location.
123
+ # @param [String] fields
124
+ # Selector specifying which fields to include in a partial response.
125
+ # @param [String] quota_user
126
+ # Available to use for quota purposes for server-side applications. Can be any
127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
128
+ # @param [Google::Apis::RequestOptions] options
129
+ # Request-specific options
130
+ #
131
+ # @yield [result, err] Result & error if block supplied
132
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::Location] parsed result object
133
+ # @yieldparam err [StandardError] error object if request failed
134
+ #
135
+ # @return [Google::Apis::ArtifactregistryV1::Location]
136
+ #
137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
140
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
141
+ command = make_simple_command(:get, 'v1/{+name}', options)
142
+ command.response_representation = Google::Apis::ArtifactregistryV1::Location::Representation
143
+ command.response_class = Google::Apis::ArtifactregistryV1::Location
144
+ command.params['name'] = name unless name.nil?
145
+ command.query['fields'] = fields unless fields.nil?
146
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
147
+ execute_or_queue_command(command, &block)
148
+ end
149
+
150
+ # Lists information about the supported locations for this service.
151
+ # @param [String] name
152
+ # The resource that owns the locations collection, if applicable.
153
+ # @param [String] filter
154
+ # A filter to narrow down results to a preferred subset. The filtering language
155
+ # accepts strings like "displayName=tokyo", and is documented in more detail in [
156
+ # AIP-160](https://google.aip.dev/160).
157
+ # @param [Fixnum] page_size
158
+ # The maximum number of results to return. If not set, the service selects a
159
+ # default.
160
+ # @param [String] page_token
161
+ # A page token received from the `next_page_token` field in the response. Send
162
+ # that page token to receive the subsequent page.
163
+ # @param [String] fields
164
+ # Selector specifying which fields to include in a partial response.
165
+ # @param [String] quota_user
166
+ # Available to use for quota purposes for server-side applications. Can be any
167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
168
+ # @param [Google::Apis::RequestOptions] options
169
+ # Request-specific options
170
+ #
171
+ # @yield [result, err] Result & error if block supplied
172
+ # @yieldparam result [Google::Apis::ArtifactregistryV1::ListLocationsResponse] parsed result object
173
+ # @yieldparam err [StandardError] error object if request failed
174
+ #
175
+ # @return [Google::Apis::ArtifactregistryV1::ListLocationsResponse]
176
+ #
177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
180
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
181
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
182
+ command.response_representation = Google::Apis::ArtifactregistryV1::ListLocationsResponse::Representation
183
+ command.response_class = Google::Apis::ArtifactregistryV1::ListLocationsResponse
184
+ command.params['name'] = name unless name.nil?
185
+ command.query['filter'] = filter unless filter.nil?
186
+ command.query['pageSize'] = page_size unless page_size.nil?
187
+ command.query['pageToken'] = page_token unless page_token.nil?
188
+ command.query['fields'] = fields unless fields.nil?
189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
190
+ execute_or_queue_command(command, &block)
191
+ end
192
+
120
193
  # Gets the latest state of a long-running operation. Clients can use this method
121
194
  # to poll the operation result at intervals as recommended by the API service.
122
195
  # @param [String] name
@@ -613,7 +686,8 @@ module Google
613
686
 
614
687
  # Lists files.
615
688
  # @param [String] parent
616
- # The name of the parent resource whose files will be listed.
689
+ # The name of the repository whose files will be listed. For example: "projects/
690
+ # p1/locations/us-central1/repositories/repo1
617
691
  # @param [String] filter
618
692
  # An expression for filtering the results of the request. Filter rules are case
619
693
  # insensitive. The fields eligible for filtering are: * `name` * `owner` An
@@ -658,88 +732,6 @@ module Google
658
732
  execute_or_queue_command(command, &block)
659
733
  end
660
734
 
661
- # Imports GooGet artifacts. The returned Operation will complete once the
662
- # resources are imported. Package, Version, and File resources are created based
663
- # on the imported artifacts. Imported artifacts that conflict with existing
664
- # resources are ignored.
665
- # @param [String] parent
666
- # The name of the parent resource where the artifacts will be imported.
667
- # @param [Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsRequest] import_goo_get_artifacts_request_object
668
- # @param [String] fields
669
- # Selector specifying which fields to include in a partial response.
670
- # @param [String] quota_user
671
- # Available to use for quota purposes for server-side applications. Can be any
672
- # arbitrary string assigned to a user, but should not exceed 40 characters.
673
- # @param [Google::Apis::RequestOptions] options
674
- # Request-specific options
675
- #
676
- # @yield [result, err] Result & error if block supplied
677
- # @yieldparam result [Google::Apis::ArtifactregistryV1::Operation] parsed result object
678
- # @yieldparam err [StandardError] error object if request failed
679
- #
680
- # @return [Google::Apis::ArtifactregistryV1::Operation]
681
- #
682
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
683
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
684
- # @raise [Google::Apis::AuthorizationError] Authorization is required
685
- def import_goo_get_artifacts(parent, import_goo_get_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
686
- command = make_simple_command(:post, 'v1/{+parent}/gooGetArtifacts:import', options)
687
- command.request_representation = Google::Apis::ArtifactregistryV1::ImportGooGetArtifactsRequest::Representation
688
- command.request_object = import_goo_get_artifacts_request_object
689
- command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation
690
- command.response_class = Google::Apis::ArtifactregistryV1::Operation
691
- command.params['parent'] = parent unless parent.nil?
692
- command.query['fields'] = fields unless fields.nil?
693
- command.query['quotaUser'] = quota_user unless quota_user.nil?
694
- execute_or_queue_command(command, &block)
695
- end
696
-
697
- # Directly uploads a GooGet artifact. The returned Operation will complete once
698
- # the resources are uploaded. Package, Version, and File resources are created
699
- # based on the imported artifact. Imported artifacts that conflict with existing
700
- # resources are ignored.
701
- # @param [String] parent
702
- # The name of the parent resource where the artifacts will be uploaded.
703
- # @param [Google::Apis::ArtifactregistryV1::UploadGooGetArtifactRequest] upload_goo_get_artifact_request_object
704
- # @param [String] fields
705
- # Selector specifying which fields to include in a partial response.
706
- # @param [String] quota_user
707
- # Available to use for quota purposes for server-side applications. Can be any
708
- # arbitrary string assigned to a user, but should not exceed 40 characters.
709
- # @param [IO, String] upload_source
710
- # IO stream or filename containing content to upload
711
- # @param [String] content_type
712
- # Content type of the uploaded content.
713
- # @param [Google::Apis::RequestOptions] options
714
- # Request-specific options
715
- #
716
- # @yield [result, err] Result & error if block supplied
717
- # @yieldparam result [Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse] parsed result object
718
- # @yieldparam err [StandardError] error object if request failed
719
- #
720
- # @return [Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse]
721
- #
722
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
- # @raise [Google::Apis::AuthorizationError] Authorization is required
725
- def upload_googet_artifact_goo_get_artifact(parent, upload_goo_get_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
726
- if upload_source.nil?
727
- command = make_simple_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
728
- else
729
- command = make_upload_command(:post, 'v1/{+parent}/googetArtifacts:create', options)
730
- command.upload_source = upload_source
731
- command.upload_content_type = content_type
732
- end
733
- command.request_representation = Google::Apis::ArtifactregistryV1::UploadGooGetArtifactRequest::Representation
734
- command.request_object = upload_goo_get_artifact_request_object
735
- command.response_representation = Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse::Representation
736
- command.response_class = Google::Apis::ArtifactregistryV1::UploadGooGetArtifactMediaResponse
737
- command.params['parent'] = parent unless parent.nil?
738
- command.query['fields'] = fields unless fields.nil?
739
- command.query['quotaUser'] = quota_user unless quota_user.nil?
740
- execute_or_queue_command(command, &block)
741
- end
742
-
743
735
  # Deletes a package and all of its versions and tags. The returned operation
744
736
  # will complete once the package has been deleted.
745
737
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-artifactregistry_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.22.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: 2022-02-21 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1
63
63
  post_install_message:
64
64
  rdoc_options: []