google-apis-run_v1 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -906,6 +932,221 @@ module Google
906
932
  end
907
933
  end
908
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
+
909
1150
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
910
1151
  # CEL is a C-like expression language. The syntax and semantics of CEL are
911
1152
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -1013,6 +1254,45 @@ module Google
1013
1254
  end
1014
1255
  end
1015
1256
 
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
1264
+ include Google::Apis::Core::Hashable
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
+
1284
+ def initialize(**args)
1285
+ update!(**args)
1286
+ end
1287
+
1288
+ # Update properties of this object
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)
1293
+ end
1294
+ end
1295
+
1016
1296
  # Not supported by Cloud Run HTTPGetAction describes an action based on HTTP Get
1017
1297
  # requests.
1018
1298
  class HttpGetAction
@@ -1078,6 +1358,126 @@ module Google
1078
1358
  end
1079
1359
  end
1080
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
+
1081
1481
  # Maps a string key to a path within a volume.
1082
1482
  class KeyToPath
1083
1483
  include Google::Apis::Core::Hashable
@@ -1102,11 +1502,79 @@ module Google
1102
1502
  # @return [Fixnum]
1103
1503
  attr_accessor :mode
1104
1504
 
1105
- # The relative path of the file to map the key to. May not be an absolute path.
1106
- # May not contain the path element '..'. May not start with the string '..'.
1107
- # Corresponds to the JSON property `path`
1108
- # @return [String]
1109
- 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
1110
1578
 
1111
1579
  def initialize(**args)
1112
1580
  update!(**args)
@@ -1114,25 +1582,44 @@ module Google
1114
1582
 
1115
1583
  # Update properties of this object
1116
1584
  def update!(**args)
1117
- @key = args[:key] if args.key?(:key)
1118
- @mode = args[:mode] if args.key?(:mode)
1119
- @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)
1120
1590
  end
1121
1591
  end
1122
1592
 
1123
- # A list of Authorized Domains.
1124
- class ListAuthorizedDomainsResponse
1593
+ # ListDomainMappingsResponse is a list of DomainMapping resources.
1594
+ class ListDomainMappingsResponse
1125
1595
  include Google::Apis::Core::Hashable
1126
1596
 
1127
- # The authorized domains belonging to the user.
1128
- # Corresponds to the JSON property `domains`
1129
- # @return [Array<Google::Apis::RunV1::AuthorizedDomain>]
1130
- 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
1131
1601
 
1132
- # Continuation token for fetching the next page of results.
1133
- # 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`
1134
1609
  # @return [String]
1135
- 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
1136
1623
 
1137
1624
  def initialize(**args)
1138
1625
  update!(**args)
@@ -1140,26 +1627,29 @@ module Google
1140
1627
 
1141
1628
  # Update properties of this object
1142
1629
  def update!(**args)
1143
- @domains = args[:domains] if args.key?(:domains)
1144
- @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)
1145
1635
  end
1146
1636
  end
1147
1637
 
1148
- # ListConfigurationsResponse is a list of Configuration resources.
1149
- class ListConfigurationsResponse
1638
+ # ListExecutionsResponse is a list of Executions resources.
1639
+ class ListExecutionsResponse
1150
1640
  include Google::Apis::Core::Hashable
1151
1641
 
1152
- # 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".
1153
1643
  # Corresponds to the JSON property `apiVersion`
1154
1644
  # @return [String]
1155
1645
  attr_accessor :api_version
1156
1646
 
1157
- # List of Configurations.
1647
+ # List of Executions.
1158
1648
  # Corresponds to the JSON property `items`
1159
- # @return [Array<Google::Apis::RunV1::Configuration>]
1649
+ # @return [Array<Google::Apis::RunV1::Execution>]
1160
1650
  attr_accessor :items
1161
1651
 
1162
- # The kind of this resource, in this case "ConfigurationList".
1652
+ # The kind of this resource, in this case "ExecutionsList".
1163
1653
  # Corresponds to the JSON property `kind`
1164
1654
  # @return [String]
1165
1655
  attr_accessor :kind
@@ -1190,21 +1680,21 @@ module Google
1190
1680
  end
1191
1681
  end
1192
1682
 
1193
- # ListDomainMappingsResponse is a list of DomainMapping resources.
1194
- class ListDomainMappingsResponse
1683
+ # ListJobsResponse is a list of Jobs resources.
1684
+ class ListJobsResponse
1195
1685
  include Google::Apis::Core::Hashable
1196
1686
 
1197
- # 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".
1198
1688
  # Corresponds to the JSON property `apiVersion`
1199
1689
  # @return [String]
1200
1690
  attr_accessor :api_version
1201
1691
 
1202
- # List of DomainMappings.
1692
+ # List of Jobs.
1203
1693
  # Corresponds to the JSON property `items`
1204
- # @return [Array<Google::Apis::RunV1::DomainMapping>]
1694
+ # @return [Array<Google::Apis::RunV1::Job>]
1205
1695
  attr_accessor :items
1206
1696
 
1207
- # The kind of this resource, in this case "DomainMappingList".
1697
+ # The kind of this resource, in this case "JobsList".
1208
1698
  # Corresponds to the JSON property `kind`
1209
1699
  # @return [String]
1210
1700
  attr_accessor :kind
@@ -1440,6 +1930,51 @@ module Google
1440
1930
  end
1441
1931
  end
1442
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
+
1443
1978
  # Not supported by Cloud Run LocalObjectReference contains enough information to
1444
1979
  # let you locate the referenced object inside the same namespace.
1445
1980
  class LocalObjectReference
@@ -2315,6 +2850,19 @@ module Google
2315
2850
  end
2316
2851
  end
2317
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
+
2318
2866
  # Not supported by Cloud Run SecretEnvSource selects a Secret to populate the
2319
2867
  # environment variables with. The contents of the target Secret's Data field
2320
2868
  # will represent the key-value pairs as environment variables.
@@ -2884,6 +3432,229 @@ module Google
2884
3432
  end
2885
3433
  end
2886
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
+
2887
3658
  # Request message for `TestIamPermissions` method.
2888
3659
  class TestIamPermissionsRequest
2889
3660
  include Google::Apis::Core::Hashable
@@ -2948,15 +3719,13 @@ module Google
2948
3719
  alias_method :latest_revision?, :latest_revision
2949
3720
 
2950
3721
  # Percent specifies percent of the traffic to this Revision or Configuration.
2951
- # This defaults to zero if unspecified. Cloud Run currently requires 100 percent
2952
- # for a single ConfigurationName TrafficTarget entry.
3722
+ # This defaults to zero if unspecified.
2953
3723
  # Corresponds to the JSON property `percent`
2954
3724
  # @return [Fixnum]
2955
3725
  attr_accessor :percent
2956
3726
 
2957
3727
  # RevisionName of a specific revision to which to send this portion of traffic.
2958
- # This is mutually exclusive with ConfigurationName. Providing RevisionName in
2959
- # spec is not currently supported by Cloud Run.
3728
+ # This is mutually exclusive with ConfigurationName.
2960
3729
  # Corresponds to the JSON property `revisionName`
2961
3730
  # @return [String]
2962
3731
  attr_accessor :revision_name