google-apis-artifactregistry_v1 0.57.0 → 0.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/artifactregistry_v1/classes.rb +127 -3
- data/lib/google/apis/artifactregistry_v1/gem_version.rb +3 -3
- data/lib/google/apis/artifactregistry_v1/representations.rb +58 -0
- data/lib/google/apis/artifactregistry_v1/service.rb +92 -44
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f48d7c8149416358662f110f00a32dd3ebbea6eed3b623d57242cc2645b7d0c
|
4
|
+
data.tar.gz: 58674cfe2823d24c84a0a37d8b825132fefe645b8770772ecb29cbfa9f4f2c9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4d87677af8f20060f423338fe64797b52fa894cb714db47e602fdf3108948fed22c98ff498eb6ba13e6950a7375c82033883c7e6c87f18ac611fbc1fc59c0cf
|
7
|
+
data.tar.gz: fcaacd9b6fd194413d1cd1a63ea946d6237ba282140571fd946c2ee462590714f933341b9a4099ca4abee8605374820b5c74424b133c5a9ae25a5635616c0182
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-artifactregistry_v1
|
2
2
|
|
3
|
+
### v0.59.0 (2024-05-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240513
|
6
|
+
* Regenerated using generator version 0.15.0
|
7
|
+
|
8
|
+
### v0.58.0 (2024-04-28)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240423
|
11
|
+
|
3
12
|
### v0.57.0 (2024-03-10)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240305
|
@@ -574,6 +574,46 @@ module Google
|
|
574
574
|
end
|
575
575
|
end
|
576
576
|
|
577
|
+
# GenericArtifact represents a generic artifact
|
578
|
+
class GenericArtifact
|
579
|
+
include Google::Apis::Core::Hashable
|
580
|
+
|
581
|
+
# Output only. The time when the Generic module is created.
|
582
|
+
# Corresponds to the JSON property `createTime`
|
583
|
+
# @return [String]
|
584
|
+
attr_accessor :create_time
|
585
|
+
|
586
|
+
# Resource name of the generic artifact. project, location, repository,
|
587
|
+
# package_id and version_id create a unique generic artifact. i.e. "projects/
|
588
|
+
# test-project/locations/us-west4/repositories/test-repo/ genericArtifacts/
|
589
|
+
# package_id:version_id"
|
590
|
+
# Corresponds to the JSON property `name`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :name
|
593
|
+
|
594
|
+
# Output only. The time when the Generic module is updated.
|
595
|
+
# Corresponds to the JSON property `updateTime`
|
596
|
+
# @return [String]
|
597
|
+
attr_accessor :update_time
|
598
|
+
|
599
|
+
# The version of the generic artifact.
|
600
|
+
# Corresponds to the JSON property `version`
|
601
|
+
# @return [String]
|
602
|
+
attr_accessor :version
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
611
|
+
@name = args[:name] if args.key?(:name)
|
612
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
613
|
+
@version = args[:version] if args.key?(:version)
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
577
617
|
# GoModule represents a Go module.
|
578
618
|
class GoModule
|
579
619
|
include Google::Apis::Core::Hashable
|
@@ -663,8 +703,8 @@ module Google
|
|
663
703
|
# @return [Array<Google::Apis::ArtifactregistryV1::HashProp>]
|
664
704
|
attr_accessor :hashes
|
665
705
|
|
666
|
-
# The name of the file, for example:
|
667
|
-
# repositories/repo1/files/a%2Fb%2Fc.txt
|
706
|
+
# The name of the file, for example: `projects/p1/locations/us-central1/
|
707
|
+
# repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes,
|
668
708
|
# they are escaped.
|
669
709
|
# Corresponds to the JSON property `name`
|
670
710
|
# @return [String]
|
@@ -2227,7 +2267,8 @@ module Google
|
|
2227
2267
|
attr_accessor :mode
|
2228
2268
|
|
2229
2269
|
# The name of the repository, for example: `projects/p1/locations/us-central1/
|
2230
|
-
# repositories/repo1`.
|
2270
|
+
# repositories/repo1`. For each location in a project, repository names must be
|
2271
|
+
# unique.
|
2231
2272
|
# Corresponds to the JSON property `name`
|
2232
2273
|
# @return [String]
|
2233
2274
|
attr_accessor :name
|
@@ -2237,6 +2278,12 @@ module Google
|
|
2237
2278
|
# @return [Google::Apis::ArtifactregistryV1::RemoteRepositoryConfig]
|
2238
2279
|
attr_accessor :remote_repository_config
|
2239
2280
|
|
2281
|
+
# Output only. If set, the repository satisfies physical zone isolation.
|
2282
|
+
# Corresponds to the JSON property `satisfiesPzi`
|
2283
|
+
# @return [Boolean]
|
2284
|
+
attr_accessor :satisfies_pzi
|
2285
|
+
alias_method :satisfies_pzi?, :satisfies_pzi
|
2286
|
+
|
2240
2287
|
# Output only. If set, the repository satisfies physical zone separation.
|
2241
2288
|
# Corresponds to the JSON property `satisfiesPzs`
|
2242
2289
|
# @return [Boolean]
|
@@ -2279,6 +2326,7 @@ module Google
|
|
2279
2326
|
@mode = args[:mode] if args.key?(:mode)
|
2280
2327
|
@name = args[:name] if args.key?(:name)
|
2281
2328
|
@remote_repository_config = args[:remote_repository_config] if args.key?(:remote_repository_config)
|
2329
|
+
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
2282
2330
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
2283
2331
|
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
|
2284
2332
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -2507,6 +2555,82 @@ module Google
|
|
2507
2555
|
end
|
2508
2556
|
end
|
2509
2557
|
|
2558
|
+
# The response to upload a generic artifact.
|
2559
|
+
class UploadGenericArtifactMediaResponse
|
2560
|
+
include Google::Apis::Core::Hashable
|
2561
|
+
|
2562
|
+
# This resource represents a long-running operation that is the result of a
|
2563
|
+
# network API call.
|
2564
|
+
# Corresponds to the JSON property `operation`
|
2565
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
2566
|
+
attr_accessor :operation
|
2567
|
+
|
2568
|
+
def initialize(**args)
|
2569
|
+
update!(**args)
|
2570
|
+
end
|
2571
|
+
|
2572
|
+
# Update properties of this object
|
2573
|
+
def update!(**args)
|
2574
|
+
@operation = args[:operation] if args.key?(:operation)
|
2575
|
+
end
|
2576
|
+
end
|
2577
|
+
|
2578
|
+
# The operation metadata for uploading generic artifacts.
|
2579
|
+
class UploadGenericArtifactMetadata
|
2580
|
+
include Google::Apis::Core::Hashable
|
2581
|
+
|
2582
|
+
def initialize(**args)
|
2583
|
+
update!(**args)
|
2584
|
+
end
|
2585
|
+
|
2586
|
+
# Update properties of this object
|
2587
|
+
def update!(**args)
|
2588
|
+
end
|
2589
|
+
end
|
2590
|
+
|
2591
|
+
# The request to upload a generic artifact. The created GenericArtifact will
|
2592
|
+
# have the resource name `parent`/genericArtifacts/package_id:version_id. The
|
2593
|
+
# created file will have the resource name `parent`/files/package_id:version_id:
|
2594
|
+
# filename.
|
2595
|
+
class UploadGenericArtifactRequest
|
2596
|
+
include Google::Apis::Core::Hashable
|
2597
|
+
|
2598
|
+
# The name of the file of the generic artifact to be uploaded. E.g. `example-
|
2599
|
+
# file.zip` The filename is limited to letters, numbers, and url safe characters,
|
2600
|
+
# i.e. [a-zA-Z0-9-_.~@].
|
2601
|
+
# Corresponds to the JSON property `filename`
|
2602
|
+
# @return [String]
|
2603
|
+
attr_accessor :filename
|
2604
|
+
|
2605
|
+
# The ID of the package of the generic artifact. If the package does not exist,
|
2606
|
+
# a new package will be created. The `package_id` must start with a letter, end
|
2607
|
+
# with a letter or number, only contain letters, numbers, hyphens and periods i.
|
2608
|
+
# e. [a-z0-9-.], and cannot exceed 256 characters.
|
2609
|
+
# Corresponds to the JSON property `packageId`
|
2610
|
+
# @return [String]
|
2611
|
+
attr_accessor :package_id
|
2612
|
+
|
2613
|
+
# The ID of the version of the generic artifact. If the version does not exist,
|
2614
|
+
# a new version will be created. The version_id must start and end with a letter
|
2615
|
+
# or number, can only contain lowercase letters, numbers, hyphens and periods, i.
|
2616
|
+
# e. [a-z0-9-.] and cannot exceed a total of 128 characters. Creating a version
|
2617
|
+
# called `latest` is not allowed.
|
2618
|
+
# Corresponds to the JSON property `versionId`
|
2619
|
+
# @return [String]
|
2620
|
+
attr_accessor :version_id
|
2621
|
+
|
2622
|
+
def initialize(**args)
|
2623
|
+
update!(**args)
|
2624
|
+
end
|
2625
|
+
|
2626
|
+
# Update properties of this object
|
2627
|
+
def update!(**args)
|
2628
|
+
@filename = args[:filename] if args.key?(:filename)
|
2629
|
+
@package_id = args[:package_id] if args.key?(:package_id)
|
2630
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
2631
|
+
end
|
2632
|
+
end
|
2633
|
+
|
2510
2634
|
# The response to upload a Go module.
|
2511
2635
|
class UploadGoModuleMediaResponse
|
2512
2636
|
include Google::Apis::Core::Hashable
|
@@ -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
|
+
GEM_VERSION = "0.59.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240513"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -106,6 +106,12 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
+
class GenericArtifact
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
109
115
|
class GoModule
|
110
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
117
|
|
@@ -478,6 +484,24 @@ module Google
|
|
478
484
|
include Google::Apis::Core::JsonObjectSupport
|
479
485
|
end
|
480
486
|
|
487
|
+
class UploadGenericArtifactMediaResponse
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
|
+
|
490
|
+
include Google::Apis::Core::JsonObjectSupport
|
491
|
+
end
|
492
|
+
|
493
|
+
class UploadGenericArtifactMetadata
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
+
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
497
|
+
end
|
498
|
+
|
499
|
+
class UploadGenericArtifactRequest
|
500
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
|
+
|
502
|
+
include Google::Apis::Core::JsonObjectSupport
|
503
|
+
end
|
504
|
+
|
481
505
|
class UploadGoModuleMediaResponse
|
482
506
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
507
|
|
@@ -741,6 +765,16 @@ module Google
|
|
741
765
|
end
|
742
766
|
end
|
743
767
|
|
768
|
+
class GenericArtifact
|
769
|
+
# @private
|
770
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
771
|
+
property :create_time, as: 'createTime'
|
772
|
+
property :name, as: 'name'
|
773
|
+
property :update_time, as: 'updateTime'
|
774
|
+
property :version, as: 'version'
|
775
|
+
end
|
776
|
+
end
|
777
|
+
|
744
778
|
class GoModule
|
745
779
|
# @private
|
746
780
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1236,6 +1270,7 @@ module Google
|
|
1236
1270
|
property :name, as: 'name'
|
1237
1271
|
property :remote_repository_config, as: 'remoteRepositoryConfig', class: Google::Apis::ArtifactregistryV1::RemoteRepositoryConfig, decorator: Google::Apis::ArtifactregistryV1::RemoteRepositoryConfig::Representation
|
1238
1272
|
|
1273
|
+
property :satisfies_pzi, as: 'satisfiesPzi'
|
1239
1274
|
property :satisfies_pzs, as: 'satisfiesPzs'
|
1240
1275
|
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
|
1241
1276
|
property :update_time, as: 'updateTime'
|
@@ -1311,6 +1346,29 @@ module Google
|
|
1311
1346
|
end
|
1312
1347
|
end
|
1313
1348
|
|
1349
|
+
class UploadGenericArtifactMediaResponse
|
1350
|
+
# @private
|
1351
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1352
|
+
property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
|
1353
|
+
|
1354
|
+
end
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
class UploadGenericArtifactMetadata
|
1358
|
+
# @private
|
1359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1360
|
+
end
|
1361
|
+
end
|
1362
|
+
|
1363
|
+
class UploadGenericArtifactRequest
|
1364
|
+
# @private
|
1365
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1366
|
+
property :filename, as: 'filename'
|
1367
|
+
property :package_id, as: 'packageId'
|
1368
|
+
property :version_id, as: 'versionId'
|
1369
|
+
end
|
1370
|
+
end
|
1371
|
+
|
1314
1372
|
class UploadGoModuleMediaResponse
|
1315
1373
|
# @private
|
1316
1374
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -52,43 +52,6 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
-
# Download a file.
|
56
|
-
# @param [String] name
|
57
|
-
# Required. The name of the file to download.
|
58
|
-
# @param [String] fields
|
59
|
-
# Selector specifying which fields to include in a partial response.
|
60
|
-
# @param [String] quota_user
|
61
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
-
# @param [IO, String] download_dest
|
64
|
-
# IO stream or filename to receive content download
|
65
|
-
# @param [Google::Apis::RequestOptions] options
|
66
|
-
# Request-specific options
|
67
|
-
#
|
68
|
-
# @yield [result, err] Result & error if block supplied
|
69
|
-
# @yieldparam result [Google::Apis::ArtifactregistryV1::DownloadFileResponse] parsed result object
|
70
|
-
# @yieldparam err [StandardError] error object if request failed
|
71
|
-
#
|
72
|
-
# @return [Google::Apis::ArtifactregistryV1::DownloadFileResponse]
|
73
|
-
#
|
74
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
75
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
76
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
77
|
-
def download_medium(name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
|
78
|
-
if download_dest.nil?
|
79
|
-
command = make_simple_command(:get, 'v1/{+name}:download', options)
|
80
|
-
else
|
81
|
-
command = make_download_command(:get, 'v1/{+name}:download', options)
|
82
|
-
command.download_dest = download_dest
|
83
|
-
end
|
84
|
-
command.response_representation = Google::Apis::ArtifactregistryV1::DownloadFileResponse::Representation
|
85
|
-
command.response_class = Google::Apis::ArtifactregistryV1::DownloadFileResponse
|
86
|
-
command.params['name'] = name unless name.nil?
|
87
|
-
command.query['fields'] = fields unless fields.nil?
|
88
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
89
|
-
execute_or_queue_command(command, &block)
|
90
|
-
end
|
91
|
-
|
92
55
|
# Retrieves the Settings for the Project.
|
93
56
|
# @param [String] name
|
94
57
|
# Required. The name of the projectSettings resource.
|
@@ -510,7 +473,8 @@ module Google
|
|
510
473
|
# Updates a repository.
|
511
474
|
# @param [String] name
|
512
475
|
# The name of the repository, for example: `projects/p1/locations/us-central1/
|
513
|
-
# repositories/repo1`.
|
476
|
+
# repositories/repo1`. For each location in a project, repository names must be
|
477
|
+
# unique.
|
514
478
|
# @param [Google::Apis::ArtifactregistryV1::Repository] repository_object
|
515
479
|
# @param [String] update_mask
|
516
480
|
# The update mask applies to the resource. For the `FieldMask` definition, see
|
@@ -734,7 +698,7 @@ module Google
|
|
734
698
|
# @param [String] order_by
|
735
699
|
# The field to order the results by.
|
736
700
|
# @param [Fixnum] page_size
|
737
|
-
# The maximum number of artifacts to return.
|
701
|
+
# The maximum number of artifacts to return. Maximum page size is 1,000.
|
738
702
|
# @param [String] page_token
|
739
703
|
# The next_page_token value returned from a previous list request, if any.
|
740
704
|
# @param [String] fields
|
@@ -767,6 +731,43 @@ module Google
|
|
767
731
|
execute_or_queue_command(command, &block)
|
768
732
|
end
|
769
733
|
|
734
|
+
# Download a file.
|
735
|
+
# @param [String] name
|
736
|
+
# Required. The name of the file to download.
|
737
|
+
# @param [String] fields
|
738
|
+
# Selector specifying which fields to include in a partial response.
|
739
|
+
# @param [String] quota_user
|
740
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
741
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
742
|
+
# @param [IO, String] download_dest
|
743
|
+
# IO stream or filename to receive content download
|
744
|
+
# @param [Google::Apis::RequestOptions] options
|
745
|
+
# Request-specific options
|
746
|
+
#
|
747
|
+
# @yield [result, err] Result & error if block supplied
|
748
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::DownloadFileResponse] parsed result object
|
749
|
+
# @yieldparam err [StandardError] error object if request failed
|
750
|
+
#
|
751
|
+
# @return [Google::Apis::ArtifactregistryV1::DownloadFileResponse]
|
752
|
+
#
|
753
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
754
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
755
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
756
|
+
def download_project_location_repository_file(name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
|
757
|
+
if download_dest.nil?
|
758
|
+
command = make_simple_command(:get, 'v1/{+name}:download', options)
|
759
|
+
else
|
760
|
+
command = make_download_command(:get, 'v1/{+name}:download', options)
|
761
|
+
command.download_dest = download_dest
|
762
|
+
end
|
763
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::DownloadFileResponse::Representation
|
764
|
+
command.response_class = Google::Apis::ArtifactregistryV1::DownloadFileResponse
|
765
|
+
command.params['name'] = name unless name.nil?
|
766
|
+
command.query['fields'] = fields unless fields.nil?
|
767
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
768
|
+
execute_or_queue_command(command, &block)
|
769
|
+
end
|
770
|
+
|
770
771
|
# Gets a file.
|
771
772
|
# @param [String] name
|
772
773
|
# Required. The name of the file to retrieve.
|
@@ -811,7 +812,7 @@ module Google
|
|
811
812
|
# @param [String] order_by
|
812
813
|
# The field to order the results by.
|
813
814
|
# @param [Fixnum] page_size
|
814
|
-
# The maximum number of files to return.
|
815
|
+
# The maximum number of files to return. Maximum page size is 1,000.
|
815
816
|
# @param [String] page_token
|
816
817
|
# The next_page_token value returned from a previous list request, if any.
|
817
818
|
# @param [String] fields
|
@@ -845,6 +846,53 @@ module Google
|
|
845
846
|
execute_or_queue_command(command, &block)
|
846
847
|
end
|
847
848
|
|
849
|
+
# Directly uploads a Generic artifact. The returned operation will complete once
|
850
|
+
# the resources are uploaded. Package, version, and file resources are created
|
851
|
+
# based on the uploaded artifact. Uploaded artifacts that conflict with existing
|
852
|
+
# resources will raise an `ALREADY_EXISTS` error.
|
853
|
+
# @param [String] parent
|
854
|
+
# The resource name of the repository where the generic artifact will be
|
855
|
+
# uploaded.
|
856
|
+
# @param [Google::Apis::ArtifactregistryV1::UploadGenericArtifactRequest] upload_generic_artifact_request_object
|
857
|
+
# @param [String] fields
|
858
|
+
# Selector specifying which fields to include in a partial response.
|
859
|
+
# @param [String] quota_user
|
860
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
861
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
862
|
+
# @param [IO, String] upload_source
|
863
|
+
# IO stream or filename containing content to upload
|
864
|
+
# @param [String] content_type
|
865
|
+
# Content type of the uploaded content.
|
866
|
+
# @param [Google::Apis::RequestOptions] options
|
867
|
+
# Request-specific options
|
868
|
+
#
|
869
|
+
# @yield [result, err] Result & error if block supplied
|
870
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::UploadGenericArtifactMediaResponse] parsed result object
|
871
|
+
# @yieldparam err [StandardError] error object if request failed
|
872
|
+
#
|
873
|
+
# @return [Google::Apis::ArtifactregistryV1::UploadGenericArtifactMediaResponse]
|
874
|
+
#
|
875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
878
|
+
def upload_generic_artifact(parent, upload_generic_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
879
|
+
if upload_source.nil?
|
880
|
+
command = make_simple_command(:post, 'v1/{+parent}/genericArtifacts:create', options)
|
881
|
+
else
|
882
|
+
command = make_upload_command(:post, 'v1/{+parent}/genericArtifacts:create', options)
|
883
|
+
command.upload_source = upload_source
|
884
|
+
command.upload_content_type = content_type
|
885
|
+
end
|
886
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::UploadGenericArtifactRequest::Representation
|
887
|
+
command.request_object = upload_generic_artifact_request_object
|
888
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::UploadGenericArtifactMediaResponse::Representation
|
889
|
+
command.response_class = Google::Apis::ArtifactregistryV1::UploadGenericArtifactMediaResponse
|
890
|
+
command.params['parent'] = parent unless parent.nil?
|
891
|
+
command.query['fields'] = fields unless fields.nil?
|
892
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
893
|
+
execute_or_queue_command(command, &block)
|
894
|
+
end
|
895
|
+
|
848
896
|
# Directly uploads a Go module. The returned Operation will complete once the Go
|
849
897
|
# module is uploaded. Package, Version, and File resources are created based on
|
850
898
|
# the uploaded Go module.
|
@@ -1052,7 +1100,7 @@ module Google
|
|
1052
1100
|
# @param [String] parent
|
1053
1101
|
# Required. The name of the parent resource whose maven artifacts will be listed.
|
1054
1102
|
# @param [Fixnum] page_size
|
1055
|
-
# The maximum number of artifacts to return.
|
1103
|
+
# The maximum number of artifacts to return. Maximum page size is 1,000.
|
1056
1104
|
# @param [String] page_token
|
1057
1105
|
# The next_page_token value returned from a previous list request, if any.
|
1058
1106
|
# @param [String] fields
|
@@ -1118,7 +1166,7 @@ module Google
|
|
1118
1166
|
# @param [String] parent
|
1119
1167
|
# Required. The name of the parent resource whose npm packages will be listed.
|
1120
1168
|
# @param [Fixnum] page_size
|
1121
|
-
# The maximum number of artifacts to return.
|
1169
|
+
# The maximum number of artifacts to return. Maximum page size is 1,000.
|
1122
1170
|
# @param [String] page_token
|
1123
1171
|
# The next_page_token value returned from a previous list request, if any.
|
1124
1172
|
# @param [String] fields
|
@@ -1394,7 +1442,7 @@ module Google
|
|
1394
1442
|
# repo1/packages/pkg1/versions/1.0"` --> Tags that are applied to the version `1.
|
1395
1443
|
# 0` in package `pkg1`.
|
1396
1444
|
# @param [Fixnum] page_size
|
1397
|
-
# The maximum number of tags to return. Maximum page size is
|
1445
|
+
# The maximum number of tags to return. Maximum page size is 1,000.
|
1398
1446
|
# @param [String] page_token
|
1399
1447
|
# The next_page_token value returned from a previous list request, if any.
|
1400
1448
|
# @param [String] fields
|
@@ -1646,7 +1694,7 @@ module Google
|
|
1646
1694
|
# @param [String] parent
|
1647
1695
|
# Required. The name of the parent resource whose python packages will be listed.
|
1648
1696
|
# @param [Fixnum] page_size
|
1649
|
-
# The maximum number of artifacts to return.
|
1697
|
+
# The maximum number of artifacts to return. Maximum page size is 1,000.
|
1650
1698
|
# @param [String] page_token
|
1651
1699
|
# The next_page_token value returned from a previous list request, if any.
|
1652
1700
|
# @param [String] fields
|
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.
|
4
|
+
version: 0.59.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.59.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: []
|