google-apis-artifactregistry_v1 0.57.0 → 0.58.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/artifactregistry_v1/classes.rb +126 -0
- data/lib/google/apis/artifactregistry_v1/gem_version.rb +2 -2
- data/lib/google/apis/artifactregistry_v1/representations.rb +58 -0
- data/lib/google/apis/artifactregistry_v1/service.rb +47 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97d40e94274b0ae802c2dfa2670d07fe548b5bf2019bc072596949d57d5e4b33
|
4
|
+
data.tar.gz: e95a910be35e5e3865506ea3aba97364e52664f2749a300bbbafa8b0acc1add8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3b38c759c47b71ae652ec1c72f5da652ef662aae51290c18c27411eb22324bedcb1908c343e999675de43549e99f0aefadedcb4a69dcbdce6f195eecc276b07
|
7
|
+
data.tar.gz: 215bc69a81d97da67365492e4260ff662a8ab97f1856df154cc7d2c247ef33e8bb15f1b3dc581ddb9feed17a88b0d50fbedde927844648db1a15579c934887db
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -2507,6 +2547,92 @@ module Google
|
|
2507
2547
|
end
|
2508
2548
|
end
|
2509
2549
|
|
2550
|
+
# The response to upload a generic artifact.
|
2551
|
+
class UploadGenericArtifactMediaResponse
|
2552
|
+
include Google::Apis::Core::Hashable
|
2553
|
+
|
2554
|
+
# This resource represents a long-running operation that is the result of a
|
2555
|
+
# network API call.
|
2556
|
+
# Corresponds to the JSON property `operation`
|
2557
|
+
# @return [Google::Apis::ArtifactregistryV1::Operation]
|
2558
|
+
attr_accessor :operation
|
2559
|
+
|
2560
|
+
def initialize(**args)
|
2561
|
+
update!(**args)
|
2562
|
+
end
|
2563
|
+
|
2564
|
+
# Update properties of this object
|
2565
|
+
def update!(**args)
|
2566
|
+
@operation = args[:operation] if args.key?(:operation)
|
2567
|
+
end
|
2568
|
+
end
|
2569
|
+
|
2570
|
+
# The operation metadata for uploading generic artifacts.
|
2571
|
+
class UploadGenericArtifactMetadata
|
2572
|
+
include Google::Apis::Core::Hashable
|
2573
|
+
|
2574
|
+
def initialize(**args)
|
2575
|
+
update!(**args)
|
2576
|
+
end
|
2577
|
+
|
2578
|
+
# Update properties of this object
|
2579
|
+
def update!(**args)
|
2580
|
+
end
|
2581
|
+
end
|
2582
|
+
|
2583
|
+
# The request to upload a generic artifact. The created GenericArtifact will
|
2584
|
+
# have the resource name `parent`/genericArtifacts/package_id:version_id. The
|
2585
|
+
# created file will have the resource name `parent`/files/package_id:version_id:
|
2586
|
+
# filename.
|
2587
|
+
class UploadGenericArtifactRequest
|
2588
|
+
include Google::Apis::Core::Hashable
|
2589
|
+
|
2590
|
+
# The name of the file of the generic artifact to be uploaded. E.g. "example-
|
2591
|
+
# file.zip" The filename should only include letters, numbers, and url safe
|
2592
|
+
# characters, i.e. [a-zA-Z0-9-_.~@].
|
2593
|
+
# Corresponds to the JSON property `filename`
|
2594
|
+
# @return [String]
|
2595
|
+
attr_accessor :filename
|
2596
|
+
|
2597
|
+
# Deprecated. Use package_id, version_id and filename instead. The resource name
|
2598
|
+
# of the generic artifact. E.g. "projects/math/locations/us/repositories/
|
2599
|
+
# operations/genericArtifacts/addition/1.0.0/add.py"
|
2600
|
+
# Corresponds to the JSON property `name`
|
2601
|
+
# @return [String]
|
2602
|
+
attr_accessor :name
|
2603
|
+
|
2604
|
+
# The ID of the package of the generic artifact. If the package does not exist,
|
2605
|
+
# a new package will be created. E.g. "pkg-1" The package_id must start with a
|
2606
|
+
# letter, end with a letter or number, only contain letters, numbers, hyphens
|
2607
|
+
# and periods i.e. [a-z0-9-.], and cannot exceed 256 characters.
|
2608
|
+
# Corresponds to the JSON property `packageId`
|
2609
|
+
# @return [String]
|
2610
|
+
attr_accessor :package_id
|
2611
|
+
|
2612
|
+
# The ID of the version of the generic artifact. If the version does not exist,
|
2613
|
+
# a new version will be created. E.g."1.0.0" The version_id must start and end
|
2614
|
+
# with a letter or number, can only contain lowercase letters, numbers, hyphens
|
2615
|
+
# and periods, i.e. [a-z0-9-.] and cannot exceed a total of 128 characters.
|
2616
|
+
# While "latest" is a well-known name for the latest version of a package, it is
|
2617
|
+
# not yet supported and is reserved for future use. Creating a version called "
|
2618
|
+
# latest" is not allowed.
|
2619
|
+
# Corresponds to the JSON property `versionId`
|
2620
|
+
# @return [String]
|
2621
|
+
attr_accessor :version_id
|
2622
|
+
|
2623
|
+
def initialize(**args)
|
2624
|
+
update!(**args)
|
2625
|
+
end
|
2626
|
+
|
2627
|
+
# Update properties of this object
|
2628
|
+
def update!(**args)
|
2629
|
+
@filename = args[:filename] if args.key?(:filename)
|
2630
|
+
@name = args[:name] if args.key?(:name)
|
2631
|
+
@package_id = args[:package_id] if args.key?(:package_id)
|
2632
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
2633
|
+
end
|
2634
|
+
end
|
2635
|
+
|
2510
2636
|
# The response to upload a Go module.
|
2511
2637
|
class UploadGoModuleMediaResponse
|
2512
2638
|
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.58.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240423"
|
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
|
@@ -1311,6 +1345,30 @@ module Google
|
|
1311
1345
|
end
|
1312
1346
|
end
|
1313
1347
|
|
1348
|
+
class UploadGenericArtifactMediaResponse
|
1349
|
+
# @private
|
1350
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1351
|
+
property :operation, as: 'operation', class: Google::Apis::ArtifactregistryV1::Operation, decorator: Google::Apis::ArtifactregistryV1::Operation::Representation
|
1352
|
+
|
1353
|
+
end
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
class UploadGenericArtifactMetadata
|
1357
|
+
# @private
|
1358
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1359
|
+
end
|
1360
|
+
end
|
1361
|
+
|
1362
|
+
class UploadGenericArtifactRequest
|
1363
|
+
# @private
|
1364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1365
|
+
property :filename, as: 'filename'
|
1366
|
+
property :name, as: 'name'
|
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
|
@@ -845,6 +845,53 @@ module Google
|
|
845
845
|
execute_or_queue_command(command, &block)
|
846
846
|
end
|
847
847
|
|
848
|
+
# Directly uploads a Generic artifact. The returned Operation will complete once
|
849
|
+
# the resources are uploaded. Package, Version, and File resources are created
|
850
|
+
# based on the uploaded artifact. Uploaded artifacts that conflict with existing
|
851
|
+
# resources will raise an ALREADY_EXISTS error.
|
852
|
+
# @param [String] parent
|
853
|
+
# The resource name of the repository where the generic artifact will be
|
854
|
+
# uploaded.
|
855
|
+
# @param [Google::Apis::ArtifactregistryV1::UploadGenericArtifactRequest] upload_generic_artifact_request_object
|
856
|
+
# @param [String] fields
|
857
|
+
# Selector specifying which fields to include in a partial response.
|
858
|
+
# @param [String] quota_user
|
859
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
860
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
861
|
+
# @param [IO, String] upload_source
|
862
|
+
# IO stream or filename containing content to upload
|
863
|
+
# @param [String] content_type
|
864
|
+
# Content type of the uploaded content.
|
865
|
+
# @param [Google::Apis::RequestOptions] options
|
866
|
+
# Request-specific options
|
867
|
+
#
|
868
|
+
# @yield [result, err] Result & error if block supplied
|
869
|
+
# @yieldparam result [Google::Apis::ArtifactregistryV1::UploadGenericArtifactMediaResponse] parsed result object
|
870
|
+
# @yieldparam err [StandardError] error object if request failed
|
871
|
+
#
|
872
|
+
# @return [Google::Apis::ArtifactregistryV1::UploadGenericArtifactMediaResponse]
|
873
|
+
#
|
874
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
875
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
876
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
877
|
+
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)
|
878
|
+
if upload_source.nil?
|
879
|
+
command = make_simple_command(:post, 'v1/{+parent}/genericArtifacts:create', options)
|
880
|
+
else
|
881
|
+
command = make_upload_command(:post, 'v1/{+parent}/genericArtifacts:create', options)
|
882
|
+
command.upload_source = upload_source
|
883
|
+
command.upload_content_type = content_type
|
884
|
+
end
|
885
|
+
command.request_representation = Google::Apis::ArtifactregistryV1::UploadGenericArtifactRequest::Representation
|
886
|
+
command.request_object = upload_generic_artifact_request_object
|
887
|
+
command.response_representation = Google::Apis::ArtifactregistryV1::UploadGenericArtifactMediaResponse::Representation
|
888
|
+
command.response_class = Google::Apis::ArtifactregistryV1::UploadGenericArtifactMediaResponse
|
889
|
+
command.params['parent'] = parent unless parent.nil?
|
890
|
+
command.query['fields'] = fields unless fields.nil?
|
891
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
892
|
+
execute_or_queue_command(command, &block)
|
893
|
+
end
|
894
|
+
|
848
895
|
# Directly uploads a Go module. The returned Operation will complete once the Go
|
849
896
|
# module is uploaded. Package, Version, and File resources are created based on
|
850
897
|
# the uploaded Go module.
|
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.58.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-04-28 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1/v0.58.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: []
|