google-apis-run_v1 0.16.0 → 0.20.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.
@@ -653,6 +653,32 @@ module Google
653
653
  end
654
654
  end
655
655
 
656
+ # ContainerStatus holds the information of container name and image digest value.
657
+ class ContainerStatus
658
+ include Google::Apis::Core::Hashable
659
+
660
+ # ImageDigest holds the resolved digest for the image specified, regardless of
661
+ # whether a tag or digest was originally specified in the Container object.
662
+ # Corresponds to the JSON property `imageDigest`
663
+ # @return [String]
664
+ attr_accessor :image_digest
665
+
666
+ # The name of the container, if specified.
667
+ # Corresponds to the JSON property `name`
668
+ # @return [String]
669
+ attr_accessor :name
670
+
671
+ def initialize(**args)
672
+ update!(**args)
673
+ end
674
+
675
+ # Update properties of this object
676
+ def update!(**args)
677
+ @image_digest = args[:image_digest] if args.key?(:image_digest)
678
+ @name = args[:name] if args.key?(:name)
679
+ end
680
+ end
681
+
656
682
  # Resource to hold the state and status of a user's domain mapping. NOTE: This
657
683
  # resource is currently in Beta.
658
684
  class DomainMapping
@@ -784,23 +810,6 @@ module Google
784
810
  end
785
811
  end
786
812
 
787
- # A generic empty message that you can re-use to avoid defining duplicated empty
788
- # messages in your APIs. A typical example is to use it as the request or the
789
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
790
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
791
- # `Empty` is empty JSON object ````.
792
- class Empty
793
- include Google::Apis::Core::Hashable
794
-
795
- def initialize(**args)
796
- update!(**args)
797
- end
798
-
799
- # Update properties of this object
800
- def update!(**args)
801
- end
802
- end
803
-
804
813
  # Not supported by Cloud Run EnvFromSource represents the source of a set of
805
814
  # ConfigMaps
806
815
  class EnvFromSource
@@ -923,6 +932,221 @@ module Google
923
932
  end
924
933
  end
925
934
 
935
+ # Execution represents the configuration of a single execution. A execution an
936
+ # immutable resource that references a container image which is run to
937
+ # completion.
938
+ class Execution
939
+ include Google::Apis::Core::Hashable
940
+
941
+ # Optional. APIVersion defines the versioned schema of this representation of an
942
+ # object. Servers should convert recognized schemas to the latest internal value,
943
+ # and may reject unrecognized values. More info: https://git.k8s.io/community/
944
+ # contributors/devel/sig-architecture/api-conventions.md#resources +optional
945
+ # Corresponds to the JSON property `apiVersion`
946
+ # @return [String]
947
+ attr_accessor :api_version
948
+
949
+ # Optional. Kind is a string value representing the REST resource this object
950
+ # represents. Servers may infer this from the endpoint the client submits
951
+ # requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/
952
+ # community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +
953
+ # optional
954
+ # Corresponds to the JSON property `kind`
955
+ # @return [String]
956
+ attr_accessor :kind
957
+
958
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
959
+ # resources must have, which includes all objects users must create.
960
+ # Corresponds to the JSON property `metadata`
961
+ # @return [Google::Apis::RunV1::ObjectMeta]
962
+ attr_accessor :metadata
963
+
964
+ # ExecutionSpec describes how the execution will look.
965
+ # Corresponds to the JSON property `spec`
966
+ # @return [Google::Apis::RunV1::ExecutionSpec]
967
+ attr_accessor :spec
968
+
969
+ # ExecutionStatus represents the current state of a Execution.
970
+ # Corresponds to the JSON property `status`
971
+ # @return [Google::Apis::RunV1::ExecutionStatus]
972
+ attr_accessor :status
973
+
974
+ def initialize(**args)
975
+ update!(**args)
976
+ end
977
+
978
+ # Update properties of this object
979
+ def update!(**args)
980
+ @api_version = args[:api_version] if args.key?(:api_version)
981
+ @kind = args[:kind] if args.key?(:kind)
982
+ @metadata = args[:metadata] if args.key?(:metadata)
983
+ @spec = args[:spec] if args.key?(:spec)
984
+ @status = args[:status] if args.key?(:status)
985
+ end
986
+ end
987
+
988
+ # Reference to an Execution. Use /Executions.GetExecution with the given name to
989
+ # get full execution including the latest status.
990
+ class ExecutionReference
991
+ include Google::Apis::Core::Hashable
992
+
993
+ # Optional. Creation timestamp of the execution.
994
+ # Corresponds to the JSON property `creationTimestamp`
995
+ # @return [String]
996
+ attr_accessor :creation_timestamp
997
+
998
+ # Optional. Name of the execution.
999
+ # Corresponds to the JSON property `name`
1000
+ # @return [String]
1001
+ attr_accessor :name
1002
+
1003
+ def initialize(**args)
1004
+ update!(**args)
1005
+ end
1006
+
1007
+ # Update properties of this object
1008
+ def update!(**args)
1009
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
1010
+ @name = args[:name] if args.key?(:name)
1011
+ end
1012
+ end
1013
+
1014
+ # ExecutionSpec describes how the execution will look.
1015
+ class ExecutionSpec
1016
+ include Google::Apis::Core::Hashable
1017
+
1018
+ # Optional. Specifies the maximum desired number of tasks the execution should
1019
+ # run at any given time. Must be <= task_count. The actual number of tasks
1020
+ # running in steady state will be less than this number when ((.spec.task_count -
1021
+ # .status.successful) < .spec.parallelism), i.e. when the work left to do is
1022
+ # less than max parallelism. More info: https://kubernetes.io/docs/concepts/
1023
+ # workloads/controllers/jobs-run-to-completion/ +optional
1024
+ # Corresponds to the JSON property `parallelism`
1025
+ # @return [Fixnum]
1026
+ attr_accessor :parallelism
1027
+
1028
+ # Optional. Specifies the desired number of tasks the execution should run.
1029
+ # Setting to 1 means that parallelism is limited to 1 and the success of that
1030
+ # task signals the success of the execution. More info: https://kubernetes.io/
1031
+ # docs/concepts/workloads/controllers/jobs-run-to-completion/ +optional
1032
+ # Corresponds to the JSON property `taskCount`
1033
+ # @return [Fixnum]
1034
+ attr_accessor :task_count
1035
+
1036
+ # TaskTemplateSpec describes the data a task should have when created from a
1037
+ # template.
1038
+ # Corresponds to the JSON property `template`
1039
+ # @return [Google::Apis::RunV1::TaskTemplateSpec]
1040
+ attr_accessor :template
1041
+
1042
+ def initialize(**args)
1043
+ update!(**args)
1044
+ end
1045
+
1046
+ # Update properties of this object
1047
+ def update!(**args)
1048
+ @parallelism = args[:parallelism] if args.key?(:parallelism)
1049
+ @task_count = args[:task_count] if args.key?(:task_count)
1050
+ @template = args[:template] if args.key?(:template)
1051
+ end
1052
+ end
1053
+
1054
+ # ExecutionStatus represents the current state of a Execution.
1055
+ class ExecutionStatus
1056
+ include Google::Apis::Core::Hashable
1057
+
1058
+ # Optional. Represents time when the execution was completed. It is not
1059
+ # guaranteed to be set in happens-before order across separate operations. It is
1060
+ # represented in RFC3339 form and is in UTC. +optional
1061
+ # Corresponds to the JSON property `completionTime`
1062
+ # @return [String]
1063
+ attr_accessor :completion_time
1064
+
1065
+ # Optional. The latest available observations of an execution's current state.
1066
+ # More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-
1067
+ # to-completion/ +optional
1068
+ # Corresponds to the JSON property `conditions`
1069
+ # @return [Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>]
1070
+ attr_accessor :conditions
1071
+
1072
+ # Optional. The number of tasks which reached phase Failed. +optional
1073
+ # Corresponds to the JSON property `failedCount`
1074
+ # @return [Fixnum]
1075
+ attr_accessor :failed_count
1076
+
1077
+ # Optional. URI where logs for this execution can be found in Cloud Console.
1078
+ # Corresponds to the JSON property `logUri`
1079
+ # @return [String]
1080
+ attr_accessor :log_uri
1081
+
1082
+ # Optional. The 'generation' of the execution that was last processed by the
1083
+ # controller.
1084
+ # Corresponds to the JSON property `observedGeneration`
1085
+ # @return [Fixnum]
1086
+ attr_accessor :observed_generation
1087
+
1088
+ # Optional. The number of actively running tasks. +optional
1089
+ # Corresponds to the JSON property `runningCount`
1090
+ # @return [Fixnum]
1091
+ attr_accessor :running_count
1092
+
1093
+ # Optional. Represents time when the execution started to run. It is not
1094
+ # guaranteed to be set in happens-before order across separate operations. It is
1095
+ # represented in RFC3339 form and is in UTC. +optional
1096
+ # Corresponds to the JSON property `startTime`
1097
+ # @return [String]
1098
+ attr_accessor :start_time
1099
+
1100
+ # Optional. The number of tasks which reached phase Succeeded. +optional
1101
+ # Corresponds to the JSON property `succeededCount`
1102
+ # @return [Fixnum]
1103
+ attr_accessor :succeeded_count
1104
+
1105
+ def initialize(**args)
1106
+ update!(**args)
1107
+ end
1108
+
1109
+ # Update properties of this object
1110
+ def update!(**args)
1111
+ @completion_time = args[:completion_time] if args.key?(:completion_time)
1112
+ @conditions = args[:conditions] if args.key?(:conditions)
1113
+ @failed_count = args[:failed_count] if args.key?(:failed_count)
1114
+ @log_uri = args[:log_uri] if args.key?(:log_uri)
1115
+ @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
1116
+ @running_count = args[:running_count] if args.key?(:running_count)
1117
+ @start_time = args[:start_time] if args.key?(:start_time)
1118
+ @succeeded_count = args[:succeeded_count] if args.key?(:succeeded_count)
1119
+ end
1120
+ end
1121
+
1122
+ # ExecutionTemplateSpec describes the metadata and spec an Execution should have
1123
+ # when created from a job. Based on: https://github.com/kubernetes/api/blob/
1124
+ # e771f807/core/v1/types.go#L3179-L3190
1125
+ class ExecutionTemplateSpec
1126
+ include Google::Apis::Core::Hashable
1127
+
1128
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
1129
+ # resources must have, which includes all objects users must create.
1130
+ # Corresponds to the JSON property `metadata`
1131
+ # @return [Google::Apis::RunV1::ObjectMeta]
1132
+ attr_accessor :metadata
1133
+
1134
+ # ExecutionSpec describes how the execution will look.
1135
+ # Corresponds to the JSON property `spec`
1136
+ # @return [Google::Apis::RunV1::ExecutionSpec]
1137
+ attr_accessor :spec
1138
+
1139
+ def initialize(**args)
1140
+ update!(**args)
1141
+ end
1142
+
1143
+ # Update properties of this object
1144
+ def update!(**args)
1145
+ @metadata = args[:metadata] if args.key?(:metadata)
1146
+ @spec = args[:spec] if args.key?(:spec)
1147
+ end
1148
+ end
1149
+
926
1150
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
927
1151
  # CEL is a C-like expression language. The syntax and semantics of CEL are
928
1152
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -977,7 +1201,7 @@ module Google
977
1201
  end
978
1202
  end
979
1203
 
980
- # Condition defines a generic condition for a Resource
1204
+ # Condition defines a generic condition for a Resource.
981
1205
  class GoogleCloudRunV1Condition
982
1206
  include Google::Apis::Core::Hashable
983
1207
 
@@ -1030,16 +1254,42 @@ module Google
1030
1254
  end
1031
1255
  end
1032
1256
 
1033
- # The request message for Operations.CancelOperation.
1034
- class GoogleLongrunningCancelOperationRequest
1257
+ # The `Status` type defines a logical error model that is suitable for different
1258
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1259
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1260
+ # data: error code, error message, and error details. You can find out more
1261
+ # about this error model and how to work with it in the [API Design Guide](https:
1262
+ # //cloud.google.com/apis/design/errors).
1263
+ class GoogleRpcStatus
1035
1264
  include Google::Apis::Core::Hashable
1036
1265
 
1266
+ # The status code, which should be an enum value of google.rpc.Code.
1267
+ # Corresponds to the JSON property `code`
1268
+ # @return [Fixnum]
1269
+ attr_accessor :code
1270
+
1271
+ # A list of messages that carry the error details. There is a common set of
1272
+ # message types for APIs to use.
1273
+ # Corresponds to the JSON property `details`
1274
+ # @return [Array<Hash<String,Object>>]
1275
+ attr_accessor :details
1276
+
1277
+ # A developer-facing error message, which should be in English. Any user-facing
1278
+ # error message should be localized and sent in the google.rpc.Status.details
1279
+ # field, or localized by the client.
1280
+ # Corresponds to the JSON property `message`
1281
+ # @return [String]
1282
+ attr_accessor :message
1283
+
1037
1284
  def initialize(**args)
1038
1285
  update!(**args)
1039
1286
  end
1040
1287
 
1041
1288
  # Update properties of this object
1042
1289
  def update!(**args)
1290
+ @code = args[:code] if args.key?(:code)
1291
+ @details = args[:details] if args.key?(:details)
1292
+ @message = args[:message] if args.key?(:message)
1043
1293
  end
1044
1294
  end
1045
1295
 
@@ -1108,6 +1358,126 @@ module Google
1108
1358
  end
1109
1359
  end
1110
1360
 
1361
+ # Job represents the configuration of a single job. A job an immutable resource
1362
+ # that references a container image which is run to completion.
1363
+ class Job
1364
+ include Google::Apis::Core::Hashable
1365
+
1366
+ # Optional. APIVersion defines the versioned schema of this representation of an
1367
+ # object. Servers should convert recognized schemas to the latest internal value,
1368
+ # and may reject unrecognized values. More info: https://git.k8s.io/community/
1369
+ # contributors/devel/sig-architecture/api-conventions.md#resources +optional
1370
+ # Corresponds to the JSON property `apiVersion`
1371
+ # @return [String]
1372
+ attr_accessor :api_version
1373
+
1374
+ # Optional. Kind is a string value representing the REST resource this object
1375
+ # represents. Servers may infer this from the endpoint the client submits
1376
+ # requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/
1377
+ # community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +
1378
+ # optional
1379
+ # Corresponds to the JSON property `kind`
1380
+ # @return [String]
1381
+ attr_accessor :kind
1382
+
1383
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
1384
+ # resources must have, which includes all objects users must create.
1385
+ # Corresponds to the JSON property `metadata`
1386
+ # @return [Google::Apis::RunV1::ObjectMeta]
1387
+ attr_accessor :metadata
1388
+
1389
+ # JobSpec describes how the job will look.
1390
+ # Corresponds to the JSON property `spec`
1391
+ # @return [Google::Apis::RunV1::JobSpec]
1392
+ attr_accessor :spec
1393
+
1394
+ # JobStatus represents the current state of a Job.
1395
+ # Corresponds to the JSON property `status`
1396
+ # @return [Google::Apis::RunV1::JobStatus]
1397
+ attr_accessor :status
1398
+
1399
+ def initialize(**args)
1400
+ update!(**args)
1401
+ end
1402
+
1403
+ # Update properties of this object
1404
+ def update!(**args)
1405
+ @api_version = args[:api_version] if args.key?(:api_version)
1406
+ @kind = args[:kind] if args.key?(:kind)
1407
+ @metadata = args[:metadata] if args.key?(:metadata)
1408
+ @spec = args[:spec] if args.key?(:spec)
1409
+ @status = args[:status] if args.key?(:status)
1410
+ end
1411
+ end
1412
+
1413
+ # JobSpec describes how the job will look.
1414
+ class JobSpec
1415
+ include Google::Apis::Core::Hashable
1416
+
1417
+ # ExecutionTemplateSpec describes the metadata and spec an Execution should have
1418
+ # when created from a job. Based on: https://github.com/kubernetes/api/blob/
1419
+ # e771f807/core/v1/types.go#L3179-L3190
1420
+ # Corresponds to the JSON property `template`
1421
+ # @return [Google::Apis::RunV1::ExecutionTemplateSpec]
1422
+ attr_accessor :template
1423
+
1424
+ def initialize(**args)
1425
+ update!(**args)
1426
+ end
1427
+
1428
+ # Update properties of this object
1429
+ def update!(**args)
1430
+ @template = args[:template] if args.key?(:template)
1431
+ end
1432
+ end
1433
+
1434
+ # JobStatus represents the current state of a Job.
1435
+ class JobStatus
1436
+ include Google::Apis::Core::Hashable
1437
+
1438
+ # The latest available observations of a job's current state. More info: https://
1439
+ # kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1440
+ # Corresponds to the JSON property `conditions`
1441
+ # @return [Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>]
1442
+ attr_accessor :conditions
1443
+
1444
+ # Status information for each of the specified containers. The status includes
1445
+ # the resolved digest for specified images, which occurs during creation of the
1446
+ # job.
1447
+ # Corresponds to the JSON property `containerStatuses`
1448
+ # @return [Array<Google::Apis::RunV1::ContainerStatus>]
1449
+ attr_accessor :container_statuses
1450
+
1451
+ # Number of executions created for this job.
1452
+ # Corresponds to the JSON property `executionCount`
1453
+ # @return [Fixnum]
1454
+ attr_accessor :execution_count
1455
+
1456
+ # Reference to an Execution. Use /Executions.GetExecution with the given name to
1457
+ # get full execution including the latest status.
1458
+ # Corresponds to the JSON property `latestCreatedExecution`
1459
+ # @return [Google::Apis::RunV1::ExecutionReference]
1460
+ attr_accessor :latest_created_execution
1461
+
1462
+ # The 'generation' of the job that was last processed by the controller.
1463
+ # Corresponds to the JSON property `observedGeneration`
1464
+ # @return [Fixnum]
1465
+ attr_accessor :observed_generation
1466
+
1467
+ def initialize(**args)
1468
+ update!(**args)
1469
+ end
1470
+
1471
+ # Update properties of this object
1472
+ def update!(**args)
1473
+ @conditions = args[:conditions] if args.key?(:conditions)
1474
+ @container_statuses = args[:container_statuses] if args.key?(:container_statuses)
1475
+ @execution_count = args[:execution_count] if args.key?(:execution_count)
1476
+ @latest_created_execution = args[:latest_created_execution] if args.key?(:latest_created_execution)
1477
+ @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
1478
+ end
1479
+ end
1480
+
1111
1481
  # Maps a string key to a path within a volume.
1112
1482
  class KeyToPath
1113
1483
  include Google::Apis::Core::Hashable
@@ -1132,11 +1502,79 @@ module Google
1132
1502
  # @return [Fixnum]
1133
1503
  attr_accessor :mode
1134
1504
 
1135
- # The relative path of the file to map the key to. May not be an absolute path.
1136
- # May not contain the path element '..'. May not start with the string '..'.
1137
- # Corresponds to the JSON property `path`
1138
- # @return [String]
1139
- attr_accessor :path
1505
+ # The relative path of the file to map the key to. May not be an absolute path.
1506
+ # May not contain the path element '..'. May not start with the string '..'.
1507
+ # Corresponds to the JSON property `path`
1508
+ # @return [String]
1509
+ attr_accessor :path
1510
+
1511
+ def initialize(**args)
1512
+ update!(**args)
1513
+ end
1514
+
1515
+ # Update properties of this object
1516
+ def update!(**args)
1517
+ @key = args[:key] if args.key?(:key)
1518
+ @mode = args[:mode] if args.key?(:mode)
1519
+ @path = args[:path] if args.key?(:path)
1520
+ end
1521
+ end
1522
+
1523
+ # A list of Authorized Domains.
1524
+ class ListAuthorizedDomainsResponse
1525
+ include Google::Apis::Core::Hashable
1526
+
1527
+ # The authorized domains belonging to the user.
1528
+ # Corresponds to the JSON property `domains`
1529
+ # @return [Array<Google::Apis::RunV1::AuthorizedDomain>]
1530
+ attr_accessor :domains
1531
+
1532
+ # Continuation token for fetching the next page of results.
1533
+ # Corresponds to the JSON property `nextPageToken`
1534
+ # @return [String]
1535
+ attr_accessor :next_page_token
1536
+
1537
+ def initialize(**args)
1538
+ update!(**args)
1539
+ end
1540
+
1541
+ # Update properties of this object
1542
+ def update!(**args)
1543
+ @domains = args[:domains] if args.key?(:domains)
1544
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1545
+ end
1546
+ end
1547
+
1548
+ # ListConfigurationsResponse is a list of Configuration resources.
1549
+ class ListConfigurationsResponse
1550
+ include Google::Apis::Core::Hashable
1551
+
1552
+ # The API version for this call such as "serving.knative.dev/v1".
1553
+ # Corresponds to the JSON property `apiVersion`
1554
+ # @return [String]
1555
+ attr_accessor :api_version
1556
+
1557
+ # List of Configurations.
1558
+ # Corresponds to the JSON property `items`
1559
+ # @return [Array<Google::Apis::RunV1::Configuration>]
1560
+ attr_accessor :items
1561
+
1562
+ # The kind of this resource, in this case "ConfigurationList".
1563
+ # Corresponds to the JSON property `kind`
1564
+ # @return [String]
1565
+ attr_accessor :kind
1566
+
1567
+ # ListMeta describes metadata that synthetic resources must have, including
1568
+ # lists and various status objects. A resource may have only one of `ObjectMeta,
1569
+ # ListMeta`.
1570
+ # Corresponds to the JSON property `metadata`
1571
+ # @return [Google::Apis::RunV1::ListMeta]
1572
+ attr_accessor :metadata
1573
+
1574
+ # Locations that could not be reached.
1575
+ # Corresponds to the JSON property `unreachable`
1576
+ # @return [Array<String>]
1577
+ attr_accessor :unreachable
1140
1578
 
1141
1579
  def initialize(**args)
1142
1580
  update!(**args)
@@ -1144,25 +1582,44 @@ module Google
1144
1582
 
1145
1583
  # Update properties of this object
1146
1584
  def update!(**args)
1147
- @key = args[:key] if args.key?(:key)
1148
- @mode = args[:mode] if args.key?(:mode)
1149
- @path = args[:path] if args.key?(:path)
1585
+ @api_version = args[:api_version] if args.key?(:api_version)
1586
+ @items = args[:items] if args.key?(:items)
1587
+ @kind = args[:kind] if args.key?(:kind)
1588
+ @metadata = args[:metadata] if args.key?(:metadata)
1589
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1150
1590
  end
1151
1591
  end
1152
1592
 
1153
- # A list of Authorized Domains.
1154
- class ListAuthorizedDomainsResponse
1593
+ # ListDomainMappingsResponse is a list of DomainMapping resources.
1594
+ class ListDomainMappingsResponse
1155
1595
  include Google::Apis::Core::Hashable
1156
1596
 
1157
- # The authorized domains belonging to the user.
1158
- # Corresponds to the JSON property `domains`
1159
- # @return [Array<Google::Apis::RunV1::AuthorizedDomain>]
1160
- attr_accessor :domains
1597
+ # The API version for this call such as "domains.cloudrun.com/v1".
1598
+ # Corresponds to the JSON property `apiVersion`
1599
+ # @return [String]
1600
+ attr_accessor :api_version
1161
1601
 
1162
- # Continuation token for fetching the next page of results.
1163
- # Corresponds to the JSON property `nextPageToken`
1602
+ # List of DomainMappings.
1603
+ # Corresponds to the JSON property `items`
1604
+ # @return [Array<Google::Apis::RunV1::DomainMapping>]
1605
+ attr_accessor :items
1606
+
1607
+ # The kind of this resource, in this case "DomainMappingList".
1608
+ # Corresponds to the JSON property `kind`
1164
1609
  # @return [String]
1165
- attr_accessor :next_page_token
1610
+ attr_accessor :kind
1611
+
1612
+ # ListMeta describes metadata that synthetic resources must have, including
1613
+ # lists and various status objects. A resource may have only one of `ObjectMeta,
1614
+ # ListMeta`.
1615
+ # Corresponds to the JSON property `metadata`
1616
+ # @return [Google::Apis::RunV1::ListMeta]
1617
+ attr_accessor :metadata
1618
+
1619
+ # Locations that could not be reached.
1620
+ # Corresponds to the JSON property `unreachable`
1621
+ # @return [Array<String>]
1622
+ attr_accessor :unreachable
1166
1623
 
1167
1624
  def initialize(**args)
1168
1625
  update!(**args)
@@ -1170,26 +1627,29 @@ module Google
1170
1627
 
1171
1628
  # Update properties of this object
1172
1629
  def update!(**args)
1173
- @domains = args[:domains] if args.key?(:domains)
1174
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1630
+ @api_version = args[:api_version] if args.key?(:api_version)
1631
+ @items = args[:items] if args.key?(:items)
1632
+ @kind = args[:kind] if args.key?(:kind)
1633
+ @metadata = args[:metadata] if args.key?(:metadata)
1634
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1175
1635
  end
1176
1636
  end
1177
1637
 
1178
- # ListConfigurationsResponse is a list of Configuration resources.
1179
- class ListConfigurationsResponse
1638
+ # ListExecutionsResponse is a list of Executions resources.
1639
+ class ListExecutionsResponse
1180
1640
  include Google::Apis::Core::Hashable
1181
1641
 
1182
- # The API version for this call such as "serving.knative.dev/v1".
1642
+ # The API version for this call such as "run.googleapis.com/v1".
1183
1643
  # Corresponds to the JSON property `apiVersion`
1184
1644
  # @return [String]
1185
1645
  attr_accessor :api_version
1186
1646
 
1187
- # List of Configurations.
1647
+ # List of Executions.
1188
1648
  # Corresponds to the JSON property `items`
1189
- # @return [Array<Google::Apis::RunV1::Configuration>]
1649
+ # @return [Array<Google::Apis::RunV1::Execution>]
1190
1650
  attr_accessor :items
1191
1651
 
1192
- # The kind of this resource, in this case "ConfigurationList".
1652
+ # The kind of this resource, in this case "ExecutionsList".
1193
1653
  # Corresponds to the JSON property `kind`
1194
1654
  # @return [String]
1195
1655
  attr_accessor :kind
@@ -1220,21 +1680,21 @@ module Google
1220
1680
  end
1221
1681
  end
1222
1682
 
1223
- # ListDomainMappingsResponse is a list of DomainMapping resources.
1224
- class ListDomainMappingsResponse
1683
+ # ListJobsResponse is a list of Jobs resources.
1684
+ class ListJobsResponse
1225
1685
  include Google::Apis::Core::Hashable
1226
1686
 
1227
- # The API version for this call such as "domains.cloudrun.com/v1".
1687
+ # The API version for this call such as "run.googleapis.com/v1".
1228
1688
  # Corresponds to the JSON property `apiVersion`
1229
1689
  # @return [String]
1230
1690
  attr_accessor :api_version
1231
1691
 
1232
- # List of DomainMappings.
1692
+ # List of Jobs.
1233
1693
  # Corresponds to the JSON property `items`
1234
- # @return [Array<Google::Apis::RunV1::DomainMapping>]
1694
+ # @return [Array<Google::Apis::RunV1::Job>]
1235
1695
  attr_accessor :items
1236
1696
 
1237
- # The kind of this resource, in this case "DomainMappingList".
1697
+ # The kind of this resource, in this case "JobsList".
1238
1698
  # Corresponds to the JSON property `kind`
1239
1699
  # @return [String]
1240
1700
  attr_accessor :kind
@@ -1470,6 +1930,51 @@ module Google
1470
1930
  end
1471
1931
  end
1472
1932
 
1933
+ # ListTasksResponse is a list of Tasks resources.
1934
+ class ListTasksResponse
1935
+ include Google::Apis::Core::Hashable
1936
+
1937
+ # The API version for this call such as "run.googleapis.com/v1".
1938
+ # Corresponds to the JSON property `apiVersion`
1939
+ # @return [String]
1940
+ attr_accessor :api_version
1941
+
1942
+ # List of Tasks.
1943
+ # Corresponds to the JSON property `items`
1944
+ # @return [Array<Google::Apis::RunV1::Task>]
1945
+ attr_accessor :items
1946
+
1947
+ # The kind of this resource, in this case "TasksList".
1948
+ # Corresponds to the JSON property `kind`
1949
+ # @return [String]
1950
+ attr_accessor :kind
1951
+
1952
+ # ListMeta describes metadata that synthetic resources must have, including
1953
+ # lists and various status objects. A resource may have only one of `ObjectMeta,
1954
+ # ListMeta`.
1955
+ # Corresponds to the JSON property `metadata`
1956
+ # @return [Google::Apis::RunV1::ListMeta]
1957
+ attr_accessor :metadata
1958
+
1959
+ # Locations that could not be reached.
1960
+ # Corresponds to the JSON property `unreachable`
1961
+ # @return [Array<String>]
1962
+ attr_accessor :unreachable
1963
+
1964
+ def initialize(**args)
1965
+ update!(**args)
1966
+ end
1967
+
1968
+ # Update properties of this object
1969
+ def update!(**args)
1970
+ @api_version = args[:api_version] if args.key?(:api_version)
1971
+ @items = args[:items] if args.key?(:items)
1972
+ @kind = args[:kind] if args.key?(:kind)
1973
+ @metadata = args[:metadata] if args.key?(:metadata)
1974
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1975
+ end
1976
+ end
1977
+
1473
1978
  # Not supported by Cloud Run LocalObjectReference contains enough information to
1474
1979
  # let you locate the referenced object inside the same namespace.
1475
1980
  class LocalObjectReference
@@ -1978,23 +2483,20 @@ module Google
1978
2483
  class ResourceRequirements
1979
2484
  include Google::Apis::Core::Hashable
1980
2485
 
1981
- # (Optional) Only memory and CPU are supported. Note: The only supported values
1982
- # for CPU are '1', '2', and '4'. Setting 4 CPU requires at least 2Gi of memory.
1983
- # Limits describes the maximum amount of compute resources allowed. The values
1984
- # of the map is string form of the 'quantity' k8s type: https://github.com/
1985
- # kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
1986
- # resource/quantity.go
2486
+ # (Optional) Only memory and CPU are supported. Limits describes the maximum
2487
+ # amount of compute resources allowed. The values of the map is string form of
2488
+ # the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/
2489
+ # staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
1987
2490
  # Corresponds to the JSON property `limits`
1988
2491
  # @return [Hash<String,String>]
1989
2492
  attr_accessor :limits
1990
2493
 
1991
- # (Optional) Only memory and CPU are supported. Note: The only supported values
1992
- # for CPU are '1' and '2'. Requests describes the minimum amount of compute
1993
- # resources required. If Requests is omitted for a container, it defaults to
1994
- # Limits if that is explicitly specified, otherwise to an implementation-defined
1995
- # value. The values of the map is string form of the 'quantity' k8s type: https:/
1996
- # /github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/
1997
- # pkg/api/resource/quantity.go
2494
+ # (Optional) Only memory and CPU are supported. Requests describes the minimum
2495
+ # amount of compute resources required. If Requests is omitted for a container,
2496
+ # it defaults to Limits if that is explicitly specified, otherwise to an
2497
+ # implementation-defined value. The values of the map is string form of the '
2498
+ # quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/
2499
+ # staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
1998
2500
  # Corresponds to the JSON property `requests`
1999
2501
  # @return [Hash<String,String>]
2000
2502
  attr_accessor :requests
@@ -2062,11 +2564,11 @@ module Google
2062
2564
  class RevisionSpec
2063
2565
  include Google::Apis::Core::Hashable
2064
2566
 
2065
- # Optional. ContainerConcurrency specifies the maximum allowed in-flight (
2066
- # concurrent) requests per container instance of the Revision. Cloud Run fully
2067
- # managed: supported, defaults to 80 Cloud Run for Anthos: supported, defaults
2068
- # to 0, which means concurrency to the application is not limited, and the
2069
- # system decides the target concurrency for the autoscaler.
2567
+ # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
2568
+ # requests per container instance of the Revision. Cloud Run fully managed:
2569
+ # supported, defaults to 80 Cloud Run for Anthos: supported, defaults to 0,
2570
+ # which means concurrency to the application is not limited, and the system
2571
+ # decides the target concurrency for the autoscaler.
2070
2572
  # Corresponds to the JSON property `containerConcurrency`
2071
2573
  # @return [Fixnum]
2072
2574
  attr_accessor :container_concurrency
@@ -2080,6 +2582,25 @@ module Google
2080
2582
  # @return [Array<Google::Apis::RunV1::Container>]
2081
2583
  attr_accessor :containers
2082
2584
 
2585
+ # Indicates whether information about services should be injected into pod's
2586
+ # environment variables, matching the syntax of Docker links. Cloud Run fully
2587
+ # managed: Not supported. Cloud Run for Anthos: supported, defaults to true.
2588
+ # Corresponds to the JSON property `enableServiceLinks`
2589
+ # @return [Boolean]
2590
+ attr_accessor :enable_service_links
2591
+ alias_method :enable_service_links?, :enable_service_links
2592
+
2593
+ # ImagePullSecrets is a list of references to secrets in the same namespace to
2594
+ # use for pulling any images in pods that reference this ServiceAccount.
2595
+ # ImagePullSecrets are distinct from Secrets because Secrets can be mounted in
2596
+ # the pod, but ImagePullSecrets are only accessed by the kubelet. More info:
2597
+ # https://kubernetes.io/docs/concepts/containers/images/#specifying-
2598
+ # imagepullsecrets-on-a-pod Cloud Run fully managed: Not supported. Cloud Run
2599
+ # for Anthos: supported.
2600
+ # Corresponds to the JSON property `imagePullSecrets`
2601
+ # @return [Array<Google::Apis::RunV1::LocalObjectReference>]
2602
+ attr_accessor :image_pull_secrets
2603
+
2083
2604
  # Email address of the IAM service account associated with the revision of the
2084
2605
  # service. The service account represents the identity of the running revision,
2085
2606
  # and determines what permissions the revision has. If not provided, the
@@ -2110,6 +2631,8 @@ module Google
2110
2631
  def update!(**args)
2111
2632
  @container_concurrency = args[:container_concurrency] if args.key?(:container_concurrency)
2112
2633
  @containers = args[:containers] if args.key?(:containers)
2634
+ @enable_service_links = args[:enable_service_links] if args.key?(:enable_service_links)
2635
+ @image_pull_secrets = args[:image_pull_secrets] if args.key?(:image_pull_secrets)
2113
2636
  @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
2114
2637
  @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
2115
2638
  @volumes = args[:volumes] if args.key?(:volumes)
@@ -2327,6 +2850,19 @@ module Google
2327
2850
  end
2328
2851
  end
2329
2852
 
2853
+ # Request message for creating a new execution of a job.
2854
+ class RunJobRequest
2855
+ include Google::Apis::Core::Hashable
2856
+
2857
+ def initialize(**args)
2858
+ update!(**args)
2859
+ end
2860
+
2861
+ # Update properties of this object
2862
+ def update!(**args)
2863
+ end
2864
+ end
2865
+
2330
2866
  # Not supported by Cloud Run SecretEnvSource selects a Secret to populate the
2331
2867
  # environment variables with. The contents of the target Secret's Data field
2332
2868
  # will represent the key-value pairs as environment variables.
@@ -2896,6 +3432,229 @@ module Google
2896
3432
  end
2897
3433
  end
2898
3434
 
3435
+ # Task represents a single run of a container to completion.
3436
+ class Task
3437
+ include Google::Apis::Core::Hashable
3438
+
3439
+ # Optional. APIVersion defines the versioned schema of this representation of an
3440
+ # object. Servers should convert recognized schemas to the latest internal value,
3441
+ # and may reject unrecognized values. More info: https://git.k8s.io/community/
3442
+ # contributors/devel/sig-architecture/api-conventions.md#resources +optional
3443
+ # Corresponds to the JSON property `apiVersion`
3444
+ # @return [String]
3445
+ attr_accessor :api_version
3446
+
3447
+ # Optional. Kind is a string value representing the REST resource this object
3448
+ # represents. Servers may infer this from the endpoint the client submits
3449
+ # requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/
3450
+ # community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +
3451
+ # optional
3452
+ # Corresponds to the JSON property `kind`
3453
+ # @return [String]
3454
+ attr_accessor :kind
3455
+
3456
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
3457
+ # resources must have, which includes all objects users must create.
3458
+ # Corresponds to the JSON property `metadata`
3459
+ # @return [Google::Apis::RunV1::ObjectMeta]
3460
+ attr_accessor :metadata
3461
+
3462
+ # TaskSpec is a description of a task.
3463
+ # Corresponds to the JSON property `spec`
3464
+ # @return [Google::Apis::RunV1::TaskSpec]
3465
+ attr_accessor :spec
3466
+
3467
+ # TaskStatus represents the status of a task of a job execution.
3468
+ # Corresponds to the JSON property `status`
3469
+ # @return [Google::Apis::RunV1::TaskStatus]
3470
+ attr_accessor :status
3471
+
3472
+ def initialize(**args)
3473
+ update!(**args)
3474
+ end
3475
+
3476
+ # Update properties of this object
3477
+ def update!(**args)
3478
+ @api_version = args[:api_version] if args.key?(:api_version)
3479
+ @kind = args[:kind] if args.key?(:kind)
3480
+ @metadata = args[:metadata] if args.key?(:metadata)
3481
+ @spec = args[:spec] if args.key?(:spec)
3482
+ @status = args[:status] if args.key?(:status)
3483
+ end
3484
+ end
3485
+
3486
+ # Result of a task attempt.
3487
+ class TaskAttemptResult
3488
+ include Google::Apis::Core::Hashable
3489
+
3490
+ # Optional. The exit code of this attempt. This may be unset if the container
3491
+ # was unable to exit cleanly with a code due to some other failure. See status
3492
+ # field for possible failure details.
3493
+ # Corresponds to the JSON property `exitCode`
3494
+ # @return [Fixnum]
3495
+ attr_accessor :exit_code
3496
+
3497
+ # The `Status` type defines a logical error model that is suitable for different
3498
+ # programming environments, including REST APIs and RPC APIs. It is used by [
3499
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
3500
+ # data: error code, error message, and error details. You can find out more
3501
+ # about this error model and how to work with it in the [API Design Guide](https:
3502
+ # //cloud.google.com/apis/design/errors).
3503
+ # Corresponds to the JSON property `status`
3504
+ # @return [Google::Apis::RunV1::GoogleRpcStatus]
3505
+ attr_accessor :status
3506
+
3507
+ def initialize(**args)
3508
+ update!(**args)
3509
+ end
3510
+
3511
+ # Update properties of this object
3512
+ def update!(**args)
3513
+ @exit_code = args[:exit_code] if args.key?(:exit_code)
3514
+ @status = args[:status] if args.key?(:status)
3515
+ end
3516
+ end
3517
+
3518
+ # TaskSpec is a description of a task.
3519
+ class TaskSpec
3520
+ include Google::Apis::Core::Hashable
3521
+
3522
+ # Optional. List of containers belonging to the task. We disallow a number of
3523
+ # fields on this Container. Only a single container may be provided.
3524
+ # Corresponds to the JSON property `containers`
3525
+ # @return [Array<Google::Apis::RunV1::Container>]
3526
+ attr_accessor :containers
3527
+
3528
+ # Optional. Number of retries allowed per task, before marking this job failed.
3529
+ # Corresponds to the JSON property `maxRetries`
3530
+ # @return [Fixnum]
3531
+ attr_accessor :max_retries
3532
+
3533
+ # Optional. Email address of the IAM service account associated with the task of
3534
+ # a job execution. The service account represents the identity of the running
3535
+ # task, and determines what permissions the task has. If not provided, the task
3536
+ # will use the project's default service account. +optional
3537
+ # Corresponds to the JSON property `serviceAccountName`
3538
+ # @return [String]
3539
+ attr_accessor :service_account_name
3540
+
3541
+ # Optional. Optional duration in seconds the task may be active before the
3542
+ # system will actively try to mark it failed and kill associated containers.
3543
+ # This applies per attempt of a task, meaning each retry can run for the full
3544
+ # timeout. +optional
3545
+ # Corresponds to the JSON property `timeoutSeconds`
3546
+ # @return [Fixnum]
3547
+ attr_accessor :timeout_seconds
3548
+
3549
+ # Optional. List of volumes that can be mounted by containers belonging to the
3550
+ # task. More info: https://kubernetes.io/docs/concepts/storage/volumes +optional
3551
+ # Corresponds to the JSON property `volumes`
3552
+ # @return [Array<Google::Apis::RunV1::Volume>]
3553
+ attr_accessor :volumes
3554
+
3555
+ def initialize(**args)
3556
+ update!(**args)
3557
+ end
3558
+
3559
+ # Update properties of this object
3560
+ def update!(**args)
3561
+ @containers = args[:containers] if args.key?(:containers)
3562
+ @max_retries = args[:max_retries] if args.key?(:max_retries)
3563
+ @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
3564
+ @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
3565
+ @volumes = args[:volumes] if args.key?(:volumes)
3566
+ end
3567
+ end
3568
+
3569
+ # TaskStatus represents the status of a task of a job execution.
3570
+ class TaskStatus
3571
+ include Google::Apis::Core::Hashable
3572
+
3573
+ # Optional. Represents time when the task was completed. It is not guaranteed to
3574
+ # be set in happens-before order across separate operations. It is represented
3575
+ # in RFC3339 form and is in UTC. +optional
3576
+ # Corresponds to the JSON property `completionTime`
3577
+ # @return [String]
3578
+ attr_accessor :completion_time
3579
+
3580
+ # Optional. The latest available observations of a task's current state. More
3581
+ # info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-
3582
+ # completion/ +optional
3583
+ # Corresponds to the JSON property `conditions`
3584
+ # @return [Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>]
3585
+ attr_accessor :conditions
3586
+
3587
+ # Required. Index of the task, unique per execution, and beginning at 0.
3588
+ # Corresponds to the JSON property `index`
3589
+ # @return [Fixnum]
3590
+ attr_accessor :index
3591
+
3592
+ # Result of a task attempt.
3593
+ # Corresponds to the JSON property `lastAttemptResult`
3594
+ # @return [Google::Apis::RunV1::TaskAttemptResult]
3595
+ attr_accessor :last_attempt_result
3596
+
3597
+ # Optional. URI where logs for this task can be found in Cloud Console.
3598
+ # Corresponds to the JSON property `logUri`
3599
+ # @return [String]
3600
+ attr_accessor :log_uri
3601
+
3602
+ # Optional. The 'generation' of the execution that was last processed by the
3603
+ # controller.
3604
+ # Corresponds to the JSON property `observedGeneration`
3605
+ # @return [Fixnum]
3606
+ attr_accessor :observed_generation
3607
+
3608
+ # Optional. The number of times this task was retried. Instances are retried
3609
+ # when they fail up to the maxRetries limit. +optional
3610
+ # Corresponds to the JSON property `retried`
3611
+ # @return [Fixnum]
3612
+ attr_accessor :retried
3613
+
3614
+ # Optional. Represents time when the task started to run. It is not guaranteed
3615
+ # to be set in happens-before order across separate operations. It is
3616
+ # represented in RFC3339 form and is in UTC. +optional
3617
+ # Corresponds to the JSON property `startTime`
3618
+ # @return [String]
3619
+ attr_accessor :start_time
3620
+
3621
+ def initialize(**args)
3622
+ update!(**args)
3623
+ end
3624
+
3625
+ # Update properties of this object
3626
+ def update!(**args)
3627
+ @completion_time = args[:completion_time] if args.key?(:completion_time)
3628
+ @conditions = args[:conditions] if args.key?(:conditions)
3629
+ @index = args[:index] if args.key?(:index)
3630
+ @last_attempt_result = args[:last_attempt_result] if args.key?(:last_attempt_result)
3631
+ @log_uri = args[:log_uri] if args.key?(:log_uri)
3632
+ @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
3633
+ @retried = args[:retried] if args.key?(:retried)
3634
+ @start_time = args[:start_time] if args.key?(:start_time)
3635
+ end
3636
+ end
3637
+
3638
+ # TaskTemplateSpec describes the data a task should have when created from a
3639
+ # template.
3640
+ class TaskTemplateSpec
3641
+ include Google::Apis::Core::Hashable
3642
+
3643
+ # TaskSpec is a description of a task.
3644
+ # Corresponds to the JSON property `spec`
3645
+ # @return [Google::Apis::RunV1::TaskSpec]
3646
+ attr_accessor :spec
3647
+
3648
+ def initialize(**args)
3649
+ update!(**args)
3650
+ end
3651
+
3652
+ # Update properties of this object
3653
+ def update!(**args)
3654
+ @spec = args[:spec] if args.key?(:spec)
3655
+ end
3656
+ end
3657
+
2899
3658
  # Request message for `TestIamPermissions` method.
2900
3659
  class TestIamPermissionsRequest
2901
3660
  include Google::Apis::Core::Hashable
@@ -2960,15 +3719,13 @@ module Google
2960
3719
  alias_method :latest_revision?, :latest_revision
2961
3720
 
2962
3721
  # Percent specifies percent of the traffic to this Revision or Configuration.
2963
- # This defaults to zero if unspecified. Cloud Run currently requires 100 percent
2964
- # for a single ConfigurationName TrafficTarget entry.
3722
+ # This defaults to zero if unspecified.
2965
3723
  # Corresponds to the JSON property `percent`
2966
3724
  # @return [Fixnum]
2967
3725
  attr_accessor :percent
2968
3726
 
2969
3727
  # RevisionName of a specific revision to which to send this portion of traffic.
2970
- # This is mutually exclusive with ConfigurationName. Providing RevisionName in
2971
- # spec is not currently supported by Cloud Run.
3728
+ # This is mutually exclusive with ConfigurationName.
2972
3729
  # Corresponds to the JSON property `revisionName`
2973
3730
  # @return [String]
2974
3731
  attr_accessor :revision_name