google-apis-run_v2 0.60.0 → 0.61.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/run_v2/classes.rb +201 -5
- data/lib/google/apis/run_v2/gem_version.rb +2 -2
- data/lib/google/apis/run_v2/representations.rb +103 -0
- data/lib/google/apis/run_v2/service.rb +178 -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: 621112af1f70a7b12eba2f7a8babb1def5cc3598f4baf36ca9f3ca94d94b6e78
|
4
|
+
data.tar.gz: b382fe2985531c31668f077c36953fdcf4bc5a8c45cf1b35878dc312c7b223df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e819f5050d23cb1057d1cceb5934e1230f8a5c78aaff2c60935a6d3c421ce1be7935a237480ac85eb8b7950b8116b684cb20398651aabe85a67b3a90c164e18
|
7
|
+
data.tar.gz: 136dd6ff2c5db2d1554dce40a5eaa2ed03212ba65209e2157c8cc567101b04ab94de60d653d841c84f8f601566c007d696257206c0bee78a820153eacd3586d8
|
data/CHANGELOG.md
CHANGED
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
# @return [String]
|
35
35
|
attr_accessor :breakglass_justification
|
36
36
|
|
37
|
+
# The path to a binary authorization policy. Format: projects/`project`/
|
38
|
+
# platforms/cloudRun/`policy-name`
|
39
|
+
# Corresponds to the JSON property `policy`
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :policy
|
42
|
+
|
37
43
|
# If True, indicates to use the default project's binary authorization policy.
|
38
44
|
# If False, binary authorization will be disabled.
|
39
45
|
# Corresponds to the JSON property `useDefault`
|
@@ -48,6 +54,7 @@ module Google
|
|
48
54
|
# Update properties of this object
|
49
55
|
def update!(**args)
|
50
56
|
@breakglass_justification = args[:breakglass_justification] if args.key?(:breakglass_justification)
|
57
|
+
@policy = args[:policy] if args.key?(:policy)
|
51
58
|
@use_default = args[:use_default] if args.key?(:use_default)
|
52
59
|
end
|
53
60
|
end
|
@@ -733,16 +740,88 @@ module Google
|
|
733
740
|
end
|
734
741
|
end
|
735
742
|
|
736
|
-
#
|
743
|
+
# Request message for exporting Cloud Run image.
|
744
|
+
class GoogleCloudRunV2ExportImageRequest
|
745
|
+
include Google::Apis::Core::Hashable
|
746
|
+
|
747
|
+
# Required. The export destination url (the Artifact Registry repo).
|
748
|
+
# Corresponds to the JSON property `destinationRepo`
|
749
|
+
# @return [String]
|
750
|
+
attr_accessor :destination_repo
|
751
|
+
|
752
|
+
def initialize(**args)
|
753
|
+
update!(**args)
|
754
|
+
end
|
755
|
+
|
756
|
+
# Update properties of this object
|
757
|
+
def update!(**args)
|
758
|
+
@destination_repo = args[:destination_repo] if args.key?(:destination_repo)
|
759
|
+
end
|
760
|
+
end
|
761
|
+
|
762
|
+
# ExportImageResponse contains an operation Id to track the image export
|
763
|
+
# operation.
|
764
|
+
class GoogleCloudRunV2ExportImageResponse
|
765
|
+
include Google::Apis::Core::Hashable
|
766
|
+
|
767
|
+
# An operation ID used to track the status of image exports tied to the original
|
768
|
+
# pod ID in the request.
|
769
|
+
# Corresponds to the JSON property `operationId`
|
770
|
+
# @return [String]
|
771
|
+
attr_accessor :operation_id
|
772
|
+
|
773
|
+
def initialize(**args)
|
774
|
+
update!(**args)
|
775
|
+
end
|
776
|
+
|
777
|
+
# Update properties of this object
|
778
|
+
def update!(**args)
|
779
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
780
|
+
end
|
781
|
+
end
|
782
|
+
|
783
|
+
# ExportStatusResponse contains the status of image export operation, with the
|
784
|
+
# status of each image export job.
|
785
|
+
class GoogleCloudRunV2ExportStatusResponse
|
786
|
+
include Google::Apis::Core::Hashable
|
787
|
+
|
788
|
+
# The status of each image export job.
|
789
|
+
# Corresponds to the JSON property `imageExportStatuses`
|
790
|
+
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2ImageExportStatus>]
|
791
|
+
attr_accessor :image_export_statuses
|
792
|
+
|
793
|
+
# The operation id.
|
794
|
+
# Corresponds to the JSON property `operationId`
|
795
|
+
# @return [String]
|
796
|
+
attr_accessor :operation_id
|
797
|
+
|
798
|
+
# Output only. The state of the overall export operation.
|
799
|
+
# Corresponds to the JSON property `operationState`
|
800
|
+
# @return [String]
|
801
|
+
attr_accessor :operation_state
|
802
|
+
|
803
|
+
def initialize(**args)
|
804
|
+
update!(**args)
|
805
|
+
end
|
806
|
+
|
807
|
+
# Update properties of this object
|
808
|
+
def update!(**args)
|
809
|
+
@image_export_statuses = args[:image_export_statuses] if args.key?(:image_export_statuses)
|
810
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
811
|
+
@operation_state = args[:operation_state] if args.key?(:operation_state)
|
812
|
+
end
|
813
|
+
end
|
814
|
+
|
815
|
+
# Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.
|
737
816
|
class GoogleCloudRunV2GcsVolumeSource
|
738
817
|
include Google::Apis::Core::Hashable
|
739
818
|
|
740
|
-
#
|
819
|
+
# Cloud Storage Bucket name.
|
741
820
|
# Corresponds to the JSON property `bucket`
|
742
821
|
# @return [String]
|
743
822
|
attr_accessor :bucket
|
744
823
|
|
745
|
-
# If true,
|
824
|
+
# If true, the volume will be mounted as read only for all mounts.
|
746
825
|
# Corresponds to the JSON property `readOnly`
|
747
826
|
# @return [Boolean]
|
748
827
|
attr_accessor :read_only
|
@@ -846,6 +925,44 @@ module Google
|
|
846
925
|
end
|
847
926
|
end
|
848
927
|
|
928
|
+
# The status of an image export job.
|
929
|
+
class GoogleCloudRunV2ImageExportStatus
|
930
|
+
include Google::Apis::Core::Hashable
|
931
|
+
|
932
|
+
# Output only. Has the image export job finished (regardless of successful or
|
933
|
+
# failure).
|
934
|
+
# Corresponds to the JSON property `exportJobState`
|
935
|
+
# @return [String]
|
936
|
+
attr_accessor :export_job_state
|
937
|
+
|
938
|
+
# The exported image ID as it will appear in Artifact Registry.
|
939
|
+
# Corresponds to the JSON property `exportedImageDigest`
|
940
|
+
# @return [String]
|
941
|
+
attr_accessor :exported_image_digest
|
942
|
+
|
943
|
+
# Wire-format for a Status object
|
944
|
+
# Corresponds to the JSON property `status`
|
945
|
+
# @return [Google::Apis::RunV2::UtilStatusProto]
|
946
|
+
attr_accessor :status
|
947
|
+
|
948
|
+
# The image tag as it will appear in Artifact Registry.
|
949
|
+
# Corresponds to the JSON property `tag`
|
950
|
+
# @return [String]
|
951
|
+
attr_accessor :tag
|
952
|
+
|
953
|
+
def initialize(**args)
|
954
|
+
update!(**args)
|
955
|
+
end
|
956
|
+
|
957
|
+
# Update properties of this object
|
958
|
+
def update!(**args)
|
959
|
+
@export_job_state = args[:export_job_state] if args.key?(:export_job_state)
|
960
|
+
@exported_image_digest = args[:exported_image_digest] if args.key?(:exported_image_digest)
|
961
|
+
@status = args[:status] if args.key?(:status)
|
962
|
+
@tag = args[:tag] if args.key?(:tag)
|
963
|
+
end
|
964
|
+
end
|
965
|
+
|
849
966
|
# Job represents the configuration of a single job, which references a container
|
850
967
|
# image that is run to completion.
|
851
968
|
class GoogleCloudRunV2Job
|
@@ -1183,6 +1300,25 @@ module Google
|
|
1183
1300
|
end
|
1184
1301
|
end
|
1185
1302
|
|
1303
|
+
# Metadata represents the JSON encoded generated customer metadata.
|
1304
|
+
class GoogleCloudRunV2Metadata
|
1305
|
+
include Google::Apis::Core::Hashable
|
1306
|
+
|
1307
|
+
# JSON encoded Google-generated Customer Metadata for a given resource/project.
|
1308
|
+
# Corresponds to the JSON property `metadata`
|
1309
|
+
# @return [String]
|
1310
|
+
attr_accessor :metadata
|
1311
|
+
|
1312
|
+
def initialize(**args)
|
1313
|
+
update!(**args)
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
# Update properties of this object
|
1317
|
+
def update!(**args)
|
1318
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1319
|
+
end
|
1320
|
+
end
|
1321
|
+
|
1186
1322
|
# Represents an NFS mount.
|
1187
1323
|
class GoogleCloudRunV2NfsVolumeSource
|
1188
1324
|
include Google::Apis::Core::Hashable
|
@@ -1192,7 +1328,7 @@ module Google
|
|
1192
1328
|
# @return [String]
|
1193
1329
|
attr_accessor :path
|
1194
1330
|
|
1195
|
-
# If true,
|
1331
|
+
# If true, the volume will be mounted as read only for all mounts.
|
1196
1332
|
# Corresponds to the JSON property `readOnly`
|
1197
1333
|
# @return [Boolean]
|
1198
1334
|
attr_accessor :read_only
|
@@ -2698,7 +2834,7 @@ module Google
|
|
2698
2834
|
# @return [Google::Apis::RunV2::GoogleCloudRunV2EmptyDirVolumeSource]
|
2699
2835
|
attr_accessor :empty_dir
|
2700
2836
|
|
2701
|
-
# Represents a
|
2837
|
+
# Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.
|
2702
2838
|
# Corresponds to the JSON property `gcs`
|
2703
2839
|
# @return [Google::Apis::RunV2::GoogleCloudRunV2GcsVolumeSource]
|
2704
2840
|
attr_accessor :gcs
|
@@ -5042,6 +5178,66 @@ module Google
|
|
5042
5178
|
@title = args[:title] if args.key?(:title)
|
5043
5179
|
end
|
5044
5180
|
end
|
5181
|
+
|
5182
|
+
# This is proto2's version of MessageSet.
|
5183
|
+
class Proto2BridgeMessageSet
|
5184
|
+
include Google::Apis::Core::Hashable
|
5185
|
+
|
5186
|
+
def initialize(**args)
|
5187
|
+
update!(**args)
|
5188
|
+
end
|
5189
|
+
|
5190
|
+
# Update properties of this object
|
5191
|
+
def update!(**args)
|
5192
|
+
end
|
5193
|
+
end
|
5194
|
+
|
5195
|
+
# Wire-format for a Status object
|
5196
|
+
class UtilStatusProto
|
5197
|
+
include Google::Apis::Core::Hashable
|
5198
|
+
|
5199
|
+
# The canonical error code (see codes.proto) that most closely corresponds to
|
5200
|
+
# this status. This may be missing, and in the common case of the generic space,
|
5201
|
+
# it definitely will be.
|
5202
|
+
# Corresponds to the JSON property `canonicalCode`
|
5203
|
+
# @return [Fixnum]
|
5204
|
+
attr_accessor :canonical_code
|
5205
|
+
|
5206
|
+
# Numeric code drawn from the space specified below. Often, this is the
|
5207
|
+
# canonical error space, and code is drawn from google3/util/task/codes.proto
|
5208
|
+
# Corresponds to the JSON property `code`
|
5209
|
+
# @return [Fixnum]
|
5210
|
+
attr_accessor :code
|
5211
|
+
|
5212
|
+
# Detail message
|
5213
|
+
# Corresponds to the JSON property `message`
|
5214
|
+
# @return [String]
|
5215
|
+
attr_accessor :message
|
5216
|
+
|
5217
|
+
# This is proto2's version of MessageSet.
|
5218
|
+
# Corresponds to the JSON property `messageSet`
|
5219
|
+
# @return [Google::Apis::RunV2::Proto2BridgeMessageSet]
|
5220
|
+
attr_accessor :message_set
|
5221
|
+
|
5222
|
+
# The following are usually only present when code != 0 Space to which this
|
5223
|
+
# status belongs
|
5224
|
+
# Corresponds to the JSON property `space`
|
5225
|
+
# @return [String]
|
5226
|
+
attr_accessor :space
|
5227
|
+
|
5228
|
+
def initialize(**args)
|
5229
|
+
update!(**args)
|
5230
|
+
end
|
5231
|
+
|
5232
|
+
# Update properties of this object
|
5233
|
+
def update!(**args)
|
5234
|
+
@canonical_code = args[:canonical_code] if args.key?(:canonical_code)
|
5235
|
+
@code = args[:code] if args.key?(:code)
|
5236
|
+
@message = args[:message] if args.key?(:message)
|
5237
|
+
@message_set = args[:message_set] if args.key?(:message_set)
|
5238
|
+
@space = args[:space] if args.key?(:space)
|
5239
|
+
end
|
5240
|
+
end
|
5045
5241
|
end
|
5046
5242
|
end
|
5047
5243
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RunV2
|
18
18
|
# Version of the google-apis-run_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.61.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 = "20240322"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,24 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GoogleCloudRunV2ExportImageRequest
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class GoogleCloudRunV2ExportImageResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class GoogleCloudRunV2ExportStatusResponse
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
103
121
|
class GoogleCloudRunV2GcsVolumeSource
|
104
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
123
|
|
@@ -124,6 +142,12 @@ module Google
|
|
124
142
|
include Google::Apis::Core::JsonObjectSupport
|
125
143
|
end
|
126
144
|
|
145
|
+
class GoogleCloudRunV2ImageExportStatus
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
127
151
|
class GoogleCloudRunV2Job
|
128
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
153
|
|
@@ -160,6 +184,12 @@ module Google
|
|
160
184
|
include Google::Apis::Core::JsonObjectSupport
|
161
185
|
end
|
162
186
|
|
187
|
+
class GoogleCloudRunV2Metadata
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
163
193
|
class GoogleCloudRunV2NfsVolumeSource
|
164
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
195
|
|
@@ -592,10 +622,23 @@ module Google
|
|
592
622
|
include Google::Apis::Core::JsonObjectSupport
|
593
623
|
end
|
594
624
|
|
625
|
+
class Proto2BridgeMessageSet
|
626
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
627
|
+
|
628
|
+
include Google::Apis::Core::JsonObjectSupport
|
629
|
+
end
|
630
|
+
|
631
|
+
class UtilStatusProto
|
632
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
|
+
|
634
|
+
include Google::Apis::Core::JsonObjectSupport
|
635
|
+
end
|
636
|
+
|
595
637
|
class GoogleCloudRunV2BinaryAuthorization
|
596
638
|
# @private
|
597
639
|
class Representation < Google::Apis::Core::JsonRepresentation
|
598
640
|
property :breakglass_justification, as: 'breakglassJustification'
|
641
|
+
property :policy, as: 'policy'
|
599
642
|
property :use_default, as: 'useDefault'
|
600
643
|
end
|
601
644
|
end
|
@@ -754,6 +797,30 @@ module Google
|
|
754
797
|
end
|
755
798
|
end
|
756
799
|
|
800
|
+
class GoogleCloudRunV2ExportImageRequest
|
801
|
+
# @private
|
802
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
803
|
+
property :destination_repo, as: 'destinationRepo'
|
804
|
+
end
|
805
|
+
end
|
806
|
+
|
807
|
+
class GoogleCloudRunV2ExportImageResponse
|
808
|
+
# @private
|
809
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
810
|
+
property :operation_id, as: 'operationId'
|
811
|
+
end
|
812
|
+
end
|
813
|
+
|
814
|
+
class GoogleCloudRunV2ExportStatusResponse
|
815
|
+
# @private
|
816
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
817
|
+
collection :image_export_statuses, as: 'imageExportStatuses', class: Google::Apis::RunV2::GoogleCloudRunV2ImageExportStatus, decorator: Google::Apis::RunV2::GoogleCloudRunV2ImageExportStatus::Representation
|
818
|
+
|
819
|
+
property :operation_id, as: 'operationId'
|
820
|
+
property :operation_state, as: 'operationState'
|
821
|
+
end
|
822
|
+
end
|
823
|
+
|
757
824
|
class GoogleCloudRunV2GcsVolumeSource
|
758
825
|
# @private
|
759
826
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -788,6 +855,17 @@ module Google
|
|
788
855
|
end
|
789
856
|
end
|
790
857
|
|
858
|
+
class GoogleCloudRunV2ImageExportStatus
|
859
|
+
# @private
|
860
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
861
|
+
property :export_job_state, as: 'exportJobState'
|
862
|
+
property :exported_image_digest, as: 'exportedImageDigest'
|
863
|
+
property :status, as: 'status', class: Google::Apis::RunV2::UtilStatusProto, decorator: Google::Apis::RunV2::UtilStatusProto::Representation
|
864
|
+
|
865
|
+
property :tag, as: 'tag'
|
866
|
+
end
|
867
|
+
end
|
868
|
+
|
791
869
|
class GoogleCloudRunV2Job
|
792
870
|
# @private
|
793
871
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -868,6 +946,13 @@ module Google
|
|
868
946
|
end
|
869
947
|
end
|
870
948
|
|
949
|
+
class GoogleCloudRunV2Metadata
|
950
|
+
# @private
|
951
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
952
|
+
property :metadata, as: 'metadata'
|
953
|
+
end
|
954
|
+
end
|
955
|
+
|
871
956
|
class GoogleCloudRunV2NfsVolumeSource
|
872
957
|
# @private
|
873
958
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1759,6 +1844,24 @@ module Google
|
|
1759
1844
|
property :title, as: 'title'
|
1760
1845
|
end
|
1761
1846
|
end
|
1847
|
+
|
1848
|
+
class Proto2BridgeMessageSet
|
1849
|
+
# @private
|
1850
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1851
|
+
end
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
class UtilStatusProto
|
1855
|
+
# @private
|
1856
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1857
|
+
property :canonical_code, as: 'canonicalCode'
|
1858
|
+
property :code, as: 'code'
|
1859
|
+
property :message, as: 'message'
|
1860
|
+
property :message_set, as: 'messageSet', class: Google::Apis::RunV2::Proto2BridgeMessageSet, decorator: Google::Apis::RunV2::Proto2BridgeMessageSet::Representation
|
1861
|
+
|
1862
|
+
property :space, as: 'space'
|
1863
|
+
end
|
1864
|
+
end
|
1762
1865
|
end
|
1763
1866
|
end
|
1764
1867
|
end
|
@@ -54,6 +54,110 @@ module Google
|
|
54
54
|
@batch_path = 'batch'
|
55
55
|
end
|
56
56
|
|
57
|
+
# Export image for a given resource.
|
58
|
+
# @param [String] name
|
59
|
+
# Required. The name of the resource of which image metadata should be exported.
|
60
|
+
# Format: `projects/`project_id_or_number`/locations/`location`/services/`
|
61
|
+
# service`/revisions/`revision`` for Revision `projects/`project_id_or_number`/
|
62
|
+
# locations/`location`/jobs/`job`/executions/`execution`` for Execution
|
63
|
+
# @param [Google::Apis::RunV2::GoogleCloudRunV2ExportImageRequest] google_cloud_run_v2_export_image_request_object
|
64
|
+
# @param [String] fields
|
65
|
+
# Selector specifying which fields to include in a partial response.
|
66
|
+
# @param [String] quota_user
|
67
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
+
# @param [Google::Apis::RequestOptions] options
|
70
|
+
# Request-specific options
|
71
|
+
#
|
72
|
+
# @yield [result, err] Result & error if block supplied
|
73
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse] parsed result object
|
74
|
+
# @yieldparam err [StandardError] error object if request failed
|
75
|
+
#
|
76
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse]
|
77
|
+
#
|
78
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
+
def export_project_location_image(name, google_cloud_run_v2_export_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
+
command = make_simple_command(:post, 'v2/{+name}:exportImage', options)
|
83
|
+
command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportImageRequest::Representation
|
84
|
+
command.request_object = google_cloud_run_v2_export_image_request_object
|
85
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse::Representation
|
86
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse
|
87
|
+
command.params['name'] = name unless name.nil?
|
88
|
+
command.query['fields'] = fields unless fields.nil?
|
89
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
+
execute_or_queue_command(command, &block)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Export image metadata for a given resource.
|
94
|
+
# @param [String] name
|
95
|
+
# Required. The name of the resource of which image metadata should be exported.
|
96
|
+
# Format: `projects/`project_id_or_number`/locations/`location`/services/`
|
97
|
+
# service`/revisions/`revision`` for Revision `projects/`project_id_or_number`/
|
98
|
+
# locations/`location`/jobs/`job`/executions/`execution`` for Execution
|
99
|
+
# @param [String] fields
|
100
|
+
# Selector specifying which fields to include in a partial response.
|
101
|
+
# @param [String] quota_user
|
102
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
103
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
+
# @param [Google::Apis::RequestOptions] options
|
105
|
+
# Request-specific options
|
106
|
+
#
|
107
|
+
# @yield [result, err] Result & error if block supplied
|
108
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Metadata] parsed result object
|
109
|
+
# @yieldparam err [StandardError] error object if request failed
|
110
|
+
#
|
111
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2Metadata]
|
112
|
+
#
|
113
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
+
def export_project_location_image_metadata(name, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
+
command = make_simple_command(:get, 'v2/{+name}:exportImageMetadata', options)
|
118
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Metadata::Representation
|
119
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Metadata
|
120
|
+
command.params['name'] = name unless name.nil?
|
121
|
+
command.query['fields'] = fields unless fields.nil?
|
122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
|
+
execute_or_queue_command(command, &block)
|
124
|
+
end
|
125
|
+
|
126
|
+
# Export generated customer metadata for a given resource.
|
127
|
+
# @param [String] name
|
128
|
+
# Required. The name of the resource of which metadata should be exported.
|
129
|
+
# Format: `projects/`project_id_or_number`/locations/`location`/services/`
|
130
|
+
# service`` for Service `projects/`project_id_or_number`/locations/`location`/
|
131
|
+
# services/`service`/revisions/`revision`` for Revision `projects/`
|
132
|
+
# project_id_or_number`/locations/`location`/jobs/`job`/executions/`execution``
|
133
|
+
# for Execution
|
134
|
+
# @param [String] fields
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
136
|
+
# @param [String] quota_user
|
137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
139
|
+
# @param [Google::Apis::RequestOptions] options
|
140
|
+
# Request-specific options
|
141
|
+
#
|
142
|
+
# @yield [result, err] Result & error if block supplied
|
143
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Metadata] parsed result object
|
144
|
+
# @yieldparam err [StandardError] error object if request failed
|
145
|
+
#
|
146
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2Metadata]
|
147
|
+
#
|
148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
151
|
+
def export_project_location_metadata(name, fields: nil, quota_user: nil, options: nil, &block)
|
152
|
+
command = make_simple_command(:get, 'v2/{+name}:exportMetadata', options)
|
153
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Metadata::Representation
|
154
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Metadata
|
155
|
+
command.params['name'] = name unless name.nil?
|
156
|
+
command.query['fields'] = fields unless fields.nil?
|
157
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
158
|
+
execute_or_queue_command(command, &block)
|
159
|
+
end
|
160
|
+
|
57
161
|
# Creates a Job.
|
58
162
|
# @param [String] parent
|
59
163
|
# Required. The location and project in which this Job should be created. Format:
|
@@ -477,6 +581,43 @@ module Google
|
|
477
581
|
execute_or_queue_command(command, &block)
|
478
582
|
end
|
479
583
|
|
584
|
+
# Read the status of an image export operation.
|
585
|
+
# @param [String] name
|
586
|
+
# Required. The name of the resource of which image export operation status has
|
587
|
+
# to be fetched. Format: `projects/`project_id_or_number`/locations/`location`/
|
588
|
+
# services/`service`/revisions/`revision`` for Revision `projects/`
|
589
|
+
# project_id_or_number`/locations/`location`/jobs/`job`/executions/`execution``
|
590
|
+
# for Execution
|
591
|
+
# @param [String] operation_id
|
592
|
+
# Required. The operation id returned from ExportImage.
|
593
|
+
# @param [String] fields
|
594
|
+
# Selector specifying which fields to include in a partial response.
|
595
|
+
# @param [String] quota_user
|
596
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
597
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
598
|
+
# @param [Google::Apis::RequestOptions] options
|
599
|
+
# Request-specific options
|
600
|
+
#
|
601
|
+
# @yield [result, err] Result & error if block supplied
|
602
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse] parsed result object
|
603
|
+
# @yieldparam err [StandardError] error object if request failed
|
604
|
+
#
|
605
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse]
|
606
|
+
#
|
607
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
608
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
609
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
610
|
+
def export_project_location_job_execution_status(name, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
611
|
+
command = make_simple_command(:get, 'v2/{+name}/{+operationId}:exportStatus', options)
|
612
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse::Representation
|
613
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse
|
614
|
+
command.params['name'] = name unless name.nil?
|
615
|
+
command.params['operationId'] = operation_id unless operation_id.nil?
|
616
|
+
command.query['fields'] = fields unless fields.nil?
|
617
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
618
|
+
execute_or_queue_command(command, &block)
|
619
|
+
end
|
620
|
+
|
480
621
|
# Gets information about an Execution.
|
481
622
|
# @param [String] name
|
482
623
|
# Required. The full name of the Execution. Format: `projects/`project`/
|
@@ -1137,6 +1278,43 @@ module Google
|
|
1137
1278
|
execute_or_queue_command(command, &block)
|
1138
1279
|
end
|
1139
1280
|
|
1281
|
+
# Read the status of an image export operation.
|
1282
|
+
# @param [String] name
|
1283
|
+
# Required. The name of the resource of which image export operation status has
|
1284
|
+
# to be fetched. Format: `projects/`project_id_or_number`/locations/`location`/
|
1285
|
+
# services/`service`/revisions/`revision`` for Revision `projects/`
|
1286
|
+
# project_id_or_number`/locations/`location`/jobs/`job`/executions/`execution``
|
1287
|
+
# for Execution
|
1288
|
+
# @param [String] operation_id
|
1289
|
+
# Required. The operation id returned from ExportImage.
|
1290
|
+
# @param [String] fields
|
1291
|
+
# Selector specifying which fields to include in a partial response.
|
1292
|
+
# @param [String] quota_user
|
1293
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1294
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1295
|
+
# @param [Google::Apis::RequestOptions] options
|
1296
|
+
# Request-specific options
|
1297
|
+
#
|
1298
|
+
# @yield [result, err] Result & error if block supplied
|
1299
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse] parsed result object
|
1300
|
+
# @yieldparam err [StandardError] error object if request failed
|
1301
|
+
#
|
1302
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse]
|
1303
|
+
#
|
1304
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1305
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1306
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1307
|
+
def export_project_location_service_revision_status(name, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
1308
|
+
command = make_simple_command(:get, 'v2/{+name}/{+operationId}:exportStatus', options)
|
1309
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse::Representation
|
1310
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse
|
1311
|
+
command.params['name'] = name unless name.nil?
|
1312
|
+
command.params['operationId'] = operation_id unless operation_id.nil?
|
1313
|
+
command.query['fields'] = fields unless fields.nil?
|
1314
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1315
|
+
execute_or_queue_command(command, &block)
|
1316
|
+
end
|
1317
|
+
|
1140
1318
|
# Gets information about a Revision.
|
1141
1319
|
# @param [String] name
|
1142
1320
|
# Required. The full name of the Revision. Format: projects/`project`/locations/`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-run_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.61.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-03-
|
11
|
+
date: 2024-03-31 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-run_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.61.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|