google-apis-run_v1 0.19.0 → 0.22.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
@@ -1516,7 +2051,7 @@ module Google
1516
2051
  # (Optional) Annotations is an unstructured key value map stored with a resource
1517
2052
  # that may be set by external tools to store and retrieve arbitrary metadata.
1518
2053
  # They are not queryable and should be preserved when modifying objects. More
1519
- # info: http://kubernetes.io/docs/user-guide/annotations
2054
+ # info: https://kubernetes.io/docs/user-guide/annotations
1520
2055
  # Corresponds to the JSON property `annotations`
1521
2056
  # @return [Hash<String,String>]
1522
2057
  attr_accessor :annotations
@@ -1603,7 +2138,8 @@ module Google
1603
2138
 
1604
2139
  # (Optional) Map of string keys and values that can be used to organize and
1605
2140
  # categorize (scope and select) objects. May match selectors of replication
1606
- # controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels
2141
+ # controllers and routes. More info: https://kubernetes.io/docs/user-guide/
2142
+ # labels
1607
2143
  # Corresponds to the JSON property `labels`
1608
2144
  # @return [Hash<String,String>]
1609
2145
  attr_accessor :labels
@@ -1612,7 +2148,7 @@ module Google
1612
2148
  # when creating resources, although some resources may allow a client to request
1613
2149
  # the generation of an appropriate name automatically. Name is primarily
1614
2150
  # intended for creation idempotence and configuration definition. Cannot be
1615
- # updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +
2151
+ # updated. More info: https://kubernetes.io/docs/user-guide/identifiers#names +
1616
2152
  # optional
1617
2153
  # Corresponds to the JSON property `name`
1618
2154
  # @return [String]
@@ -1654,7 +2190,7 @@ module Google
1654
2190
  # (Optional) UID is the unique in time and space value for this object. It is
1655
2191
  # typically generated by the server on successful creation of a resource and is
1656
2192
  # not allowed to change on PUT operations. Populated by the system. Read-only.
1657
- # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
2193
+ # More info: https://kubernetes.io/docs/user-guide/identifiers#uids
1658
2194
  # Corresponds to the JSON property `uid`
1659
2195
  # @return [String]
1660
2196
  attr_accessor :uid
@@ -1716,13 +2252,13 @@ module Google
1716
2252
  # @return [String]
1717
2253
  attr_accessor :kind
1718
2254
 
1719
- # Name of the referent. More info: http://kubernetes.io/docs/user-guide/
2255
+ # Name of the referent. More info: https://kubernetes.io/docs/user-guide/
1720
2256
  # identifiers#names
1721
2257
  # Corresponds to the JSON property `name`
1722
2258
  # @return [String]
1723
2259
  attr_accessor :name
1724
2260
 
1725
- # UID of the referent. More info: http://kubernetes.io/docs/user-guide/
2261
+ # UID of the referent. More info: https://kubernetes.io/docs/user-guide/
1726
2262
  # identifiers#uids
1727
2263
  # Corresponds to the JSON property `uid`
1728
2264
  # @return [String]
@@ -1869,14 +2405,15 @@ module Google
1869
2405
  attr_accessor :initial_delay_seconds
1870
2406
 
1871
2407
  # (Optional) How often (in seconds) to perform the probe. Default to 10 seconds.
1872
- # Minimum value is 1.
2408
+ # Minimum value is 1. Maximum value is 3600. Must be greater or equal than
2409
+ # timeout_seconds.
1873
2410
  # Corresponds to the JSON property `periodSeconds`
1874
2411
  # @return [Fixnum]
1875
2412
  attr_accessor :period_seconds
1876
2413
 
1877
2414
  # (Optional) Minimum consecutive successes for the probe to be considered
1878
- # successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum
1879
- # value is 1.
2415
+ # successful after having failed. Defaults to 1. Must be 1 for liveness and
2416
+ # startup Probes.
1880
2417
  # Corresponds to the JSON property `successThreshold`
1881
2418
  # @return [Fixnum]
1882
2419
  attr_accessor :success_threshold
@@ -1888,8 +2425,9 @@ module Google
1888
2425
  attr_accessor :tcp_socket
1889
2426
 
1890
2427
  # (Optional) Number of seconds after which the probe times out. Defaults to 1
1891
- # second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/
1892
- # workloads/pods/pod-lifecycle#container-probes
2428
+ # second. Minimum value is 1. Maximum value is 3600. Must be smaller than
2429
+ # period_seconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/
2430
+ # pod-lifecycle#container-probes
1893
2431
  # Corresponds to the JSON property `timeoutSeconds`
1894
2432
  # @return [Fixnum]
1895
2433
  attr_accessor :timeout_seconds
@@ -2315,6 +2853,19 @@ module Google
2315
2853
  end
2316
2854
  end
2317
2855
 
2856
+ # Request message for creating a new execution of a job.
2857
+ class RunJobRequest
2858
+ include Google::Apis::Core::Hashable
2859
+
2860
+ def initialize(**args)
2861
+ update!(**args)
2862
+ end
2863
+
2864
+ # Update properties of this object
2865
+ def update!(**args)
2866
+ end
2867
+ end
2868
+
2318
2869
  # Not supported by Cloud Run SecretEnvSource selects a Secret to populate the
2319
2870
  # environment variables with. The contents of the target Secret's Data field
2320
2871
  # will represent the key-value pairs as environment variables.
@@ -2835,7 +3386,7 @@ module Google
2835
3386
  attr_accessor :retry_after_seconds
2836
3387
 
2837
3388
  # UID of the resource. (when there is a single resource which can be described).
2838
- # More info: http://kubernetes.io/docs/user-guide/identifiers#uids +optional
3389
+ # More info: https://kubernetes.io/docs/user-guide/identifiers#uids +optional
2839
3390
  # Corresponds to the JSON property `uid`
2840
3391
  # @return [String]
2841
3392
  attr_accessor :uid
@@ -2884,6 +3435,229 @@ module Google
2884
3435
  end
2885
3436
  end
2886
3437
 
3438
+ # Task represents a single run of a container to completion.
3439
+ class Task
3440
+ include Google::Apis::Core::Hashable
3441
+
3442
+ # Optional. APIVersion defines the versioned schema of this representation of an
3443
+ # object. Servers should convert recognized schemas to the latest internal value,
3444
+ # and may reject unrecognized values. More info: https://git.k8s.io/community/
3445
+ # contributors/devel/sig-architecture/api-conventions.md#resources +optional
3446
+ # Corresponds to the JSON property `apiVersion`
3447
+ # @return [String]
3448
+ attr_accessor :api_version
3449
+
3450
+ # Optional. Kind is a string value representing the REST resource this object
3451
+ # represents. Servers may infer this from the endpoint the client submits
3452
+ # requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/
3453
+ # community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +
3454
+ # optional
3455
+ # Corresponds to the JSON property `kind`
3456
+ # @return [String]
3457
+ attr_accessor :kind
3458
+
3459
+ # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted
3460
+ # resources must have, which includes all objects users must create.
3461
+ # Corresponds to the JSON property `metadata`
3462
+ # @return [Google::Apis::RunV1::ObjectMeta]
3463
+ attr_accessor :metadata
3464
+
3465
+ # TaskSpec is a description of a task.
3466
+ # Corresponds to the JSON property `spec`
3467
+ # @return [Google::Apis::RunV1::TaskSpec]
3468
+ attr_accessor :spec
3469
+
3470
+ # TaskStatus represents the status of a task of a job execution.
3471
+ # Corresponds to the JSON property `status`
3472
+ # @return [Google::Apis::RunV1::TaskStatus]
3473
+ attr_accessor :status
3474
+
3475
+ def initialize(**args)
3476
+ update!(**args)
3477
+ end
3478
+
3479
+ # Update properties of this object
3480
+ def update!(**args)
3481
+ @api_version = args[:api_version] if args.key?(:api_version)
3482
+ @kind = args[:kind] if args.key?(:kind)
3483
+ @metadata = args[:metadata] if args.key?(:metadata)
3484
+ @spec = args[:spec] if args.key?(:spec)
3485
+ @status = args[:status] if args.key?(:status)
3486
+ end
3487
+ end
3488
+
3489
+ # Result of a task attempt.
3490
+ class TaskAttemptResult
3491
+ include Google::Apis::Core::Hashable
3492
+
3493
+ # Optional. The exit code of this attempt. This may be unset if the container
3494
+ # was unable to exit cleanly with a code due to some other failure. See status
3495
+ # field for possible failure details.
3496
+ # Corresponds to the JSON property `exitCode`
3497
+ # @return [Fixnum]
3498
+ attr_accessor :exit_code
3499
+
3500
+ # The `Status` type defines a logical error model that is suitable for different
3501
+ # programming environments, including REST APIs and RPC APIs. It is used by [
3502
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
3503
+ # data: error code, error message, and error details. You can find out more
3504
+ # about this error model and how to work with it in the [API Design Guide](https:
3505
+ # //cloud.google.com/apis/design/errors).
3506
+ # Corresponds to the JSON property `status`
3507
+ # @return [Google::Apis::RunV1::GoogleRpcStatus]
3508
+ attr_accessor :status
3509
+
3510
+ def initialize(**args)
3511
+ update!(**args)
3512
+ end
3513
+
3514
+ # Update properties of this object
3515
+ def update!(**args)
3516
+ @exit_code = args[:exit_code] if args.key?(:exit_code)
3517
+ @status = args[:status] if args.key?(:status)
3518
+ end
3519
+ end
3520
+
3521
+ # TaskSpec is a description of a task.
3522
+ class TaskSpec
3523
+ include Google::Apis::Core::Hashable
3524
+
3525
+ # Optional. List of containers belonging to the task. We disallow a number of
3526
+ # fields on this Container. Only a single container may be provided.
3527
+ # Corresponds to the JSON property `containers`
3528
+ # @return [Array<Google::Apis::RunV1::Container>]
3529
+ attr_accessor :containers
3530
+
3531
+ # Optional. Number of retries allowed per task, before marking this job failed.
3532
+ # Corresponds to the JSON property `maxRetries`
3533
+ # @return [Fixnum]
3534
+ attr_accessor :max_retries
3535
+
3536
+ # Optional. Email address of the IAM service account associated with the task of
3537
+ # a job execution. The service account represents the identity of the running
3538
+ # task, and determines what permissions the task has. If not provided, the task
3539
+ # will use the project's default service account. +optional
3540
+ # Corresponds to the JSON property `serviceAccountName`
3541
+ # @return [String]
3542
+ attr_accessor :service_account_name
3543
+
3544
+ # Optional. Optional duration in seconds the task may be active before the
3545
+ # system will actively try to mark it failed and kill associated containers.
3546
+ # This applies per attempt of a task, meaning each retry can run for the full
3547
+ # timeout. +optional
3548
+ # Corresponds to the JSON property `timeoutSeconds`
3549
+ # @return [Fixnum]
3550
+ attr_accessor :timeout_seconds
3551
+
3552
+ # Optional. List of volumes that can be mounted by containers belonging to the
3553
+ # task. More info: https://kubernetes.io/docs/concepts/storage/volumes +optional
3554
+ # Corresponds to the JSON property `volumes`
3555
+ # @return [Array<Google::Apis::RunV1::Volume>]
3556
+ attr_accessor :volumes
3557
+
3558
+ def initialize(**args)
3559
+ update!(**args)
3560
+ end
3561
+
3562
+ # Update properties of this object
3563
+ def update!(**args)
3564
+ @containers = args[:containers] if args.key?(:containers)
3565
+ @max_retries = args[:max_retries] if args.key?(:max_retries)
3566
+ @service_account_name = args[:service_account_name] if args.key?(:service_account_name)
3567
+ @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
3568
+ @volumes = args[:volumes] if args.key?(:volumes)
3569
+ end
3570
+ end
3571
+
3572
+ # TaskStatus represents the status of a task of a job execution.
3573
+ class TaskStatus
3574
+ include Google::Apis::Core::Hashable
3575
+
3576
+ # Optional. Represents time when the task was completed. It is not guaranteed to
3577
+ # be set in happens-before order across separate operations. It is represented
3578
+ # in RFC3339 form and is in UTC. +optional
3579
+ # Corresponds to the JSON property `completionTime`
3580
+ # @return [String]
3581
+ attr_accessor :completion_time
3582
+
3583
+ # Optional. The latest available observations of a task's current state. More
3584
+ # info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-
3585
+ # completion/ +optional
3586
+ # Corresponds to the JSON property `conditions`
3587
+ # @return [Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>]
3588
+ attr_accessor :conditions
3589
+
3590
+ # Required. Index of the task, unique per execution, and beginning at 0.
3591
+ # Corresponds to the JSON property `index`
3592
+ # @return [Fixnum]
3593
+ attr_accessor :index
3594
+
3595
+ # Result of a task attempt.
3596
+ # Corresponds to the JSON property `lastAttemptResult`
3597
+ # @return [Google::Apis::RunV1::TaskAttemptResult]
3598
+ attr_accessor :last_attempt_result
3599
+
3600
+ # Optional. URI where logs for this task can be found in Cloud Console.
3601
+ # Corresponds to the JSON property `logUri`
3602
+ # @return [String]
3603
+ attr_accessor :log_uri
3604
+
3605
+ # Optional. The 'generation' of the execution that was last processed by the
3606
+ # controller.
3607
+ # Corresponds to the JSON property `observedGeneration`
3608
+ # @return [Fixnum]
3609
+ attr_accessor :observed_generation
3610
+
3611
+ # Optional. The number of times this task was retried. Instances are retried
3612
+ # when they fail up to the maxRetries limit. +optional
3613
+ # Corresponds to the JSON property `retried`
3614
+ # @return [Fixnum]
3615
+ attr_accessor :retried
3616
+
3617
+ # Optional. Represents time when the task started to run. It is not guaranteed
3618
+ # to be set in happens-before order across separate operations. It is
3619
+ # represented in RFC3339 form and is in UTC. +optional
3620
+ # Corresponds to the JSON property `startTime`
3621
+ # @return [String]
3622
+ attr_accessor :start_time
3623
+
3624
+ def initialize(**args)
3625
+ update!(**args)
3626
+ end
3627
+
3628
+ # Update properties of this object
3629
+ def update!(**args)
3630
+ @completion_time = args[:completion_time] if args.key?(:completion_time)
3631
+ @conditions = args[:conditions] if args.key?(:conditions)
3632
+ @index = args[:index] if args.key?(:index)
3633
+ @last_attempt_result = args[:last_attempt_result] if args.key?(:last_attempt_result)
3634
+ @log_uri = args[:log_uri] if args.key?(:log_uri)
3635
+ @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
3636
+ @retried = args[:retried] if args.key?(:retried)
3637
+ @start_time = args[:start_time] if args.key?(:start_time)
3638
+ end
3639
+ end
3640
+
3641
+ # TaskTemplateSpec describes the data a task should have when created from a
3642
+ # template.
3643
+ class TaskTemplateSpec
3644
+ include Google::Apis::Core::Hashable
3645
+
3646
+ # TaskSpec is a description of a task.
3647
+ # Corresponds to the JSON property `spec`
3648
+ # @return [Google::Apis::RunV1::TaskSpec]
3649
+ attr_accessor :spec
3650
+
3651
+ def initialize(**args)
3652
+ update!(**args)
3653
+ end
3654
+
3655
+ # Update properties of this object
3656
+ def update!(**args)
3657
+ @spec = args[:spec] if args.key?(:spec)
3658
+ end
3659
+ end
3660
+
2887
3661
  # Request message for `TestIamPermissions` method.
2888
3662
  class TestIamPermissionsRequest
2889
3663
  include Google::Apis::Core::Hashable
@@ -2948,15 +3722,13 @@ module Google
2948
3722
  alias_method :latest_revision?, :latest_revision
2949
3723
 
2950
3724
  # 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.
3725
+ # This defaults to zero if unspecified.
2953
3726
  # Corresponds to the JSON property `percent`
2954
3727
  # @return [Fixnum]
2955
3728
  attr_accessor :percent
2956
3729
 
2957
3730
  # 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.
3731
+ # This is mutually exclusive with ConfigurationName.
2960
3732
  # Corresponds to the JSON property `revisionName`
2961
3733
  # @return [String]
2962
3734
  attr_accessor :revision_name
@@ -2969,7 +3741,7 @@ module Google
2969
3741
 
2970
3742
  # Output only. URL displays the URL for accessing tagged traffic targets. URL is
2971
3743
  # displayed in status, and is disallowed on spec. URL must contain a scheme (e.g.
2972
- # http://) and a hostname, but may not contain anything else (e.g. basic auth,
3744
+ # https://) and a hostname, but may not contain anything else (e.g. basic auth,
2973
3745
  # url path, etc.)
2974
3746
  # Corresponds to the JSON property `url`
2975
3747
  # @return [String]