google-apis-batch_v1 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 706eb356e715e204cc66df1e5c07d0f19842698c9b8d601ad897f3c00665e203
4
- data.tar.gz: 22369070242ff7d7bcfcd73f73c15fb621fd219da7ff865338ce39b029f07cd1
3
+ metadata.gz: 9d2a2ad7d591b5acf94f1c37ddf37a2fb30552237c91858ee618e0a2b83d8080
4
+ data.tar.gz: dcd9999e6b12ba3f4e90c30114bdd9c830c6369c5894b177e17a2c93aee978fe
5
5
  SHA512:
6
- metadata.gz: 2c5af1f788be6f760c5fa7b408fa70331d82dc4c507f50c580cb33eeb19bf6dfbfc5df009486df51f22c4f12d5216f933d5dd8a91e34d5e78bfb640cf0bae64c
7
- data.tar.gz: 0fe1402f3523ba71ee086ec73fd82935ef74c3239792be6e907b1d6f2ce7366dd4657718c0f48dc1db1e72ad3f2f8c53bcf17397390f5551e8089845a3c804ea
6
+ metadata.gz: a9c0a6c6282265ae1111e7660c3cafe161457a60c17f4e23b78e1d05cf120cfb29a98237c34578c37b984bef8d912fdc11e3f3d93add287d818d187bbb1b6a7d
7
+ data.tar.gz: 6cdc1c2d0a37104b107f01042efccb563514beed056d224486b0d638432389259e747979f95b04f216d8ad099979145cb2d71dc9c600fe89e575ee9f5f865335
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-batch_v1
2
2
 
3
+ ### v0.7.0 (2023-02-19)
4
+
5
+ * Regenerated from discovery document revision 20230213
6
+ * Regenerated using generator version 0.12.0
7
+
3
8
  ### v0.6.0 (2023-02-12)
4
9
 
5
10
  * Regenerated from discovery document revision 20230130
@@ -382,77 +382,6 @@ module Google
382
382
  end
383
383
  end
384
384
 
385
- # Specifies the audit configuration for a service. The configuration determines
386
- # which permission types are logged, and what identities, if any, are exempted
387
- # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
388
- # are AuditConfigs for both `allServices` and a specific service, the union of
389
- # the two AuditConfigs is used for that service: the log_types specified in each
390
- # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
391
- # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
392
- # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
393
- # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
394
- # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
395
- # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
396
- # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
397
- # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
398
- # exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com`
399
- # from DATA_WRITE logging.
400
- class AuditConfig
401
- include Google::Apis::Core::Hashable
402
-
403
- # The configuration for logging of each type of permission.
404
- # Corresponds to the JSON property `auditLogConfigs`
405
- # @return [Array<Google::Apis::BatchV1::AuditLogConfig>]
406
- attr_accessor :audit_log_configs
407
-
408
- # Specifies a service that will be enabled for audit logging. For example, `
409
- # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
410
- # value that covers all services.
411
- # Corresponds to the JSON property `service`
412
- # @return [String]
413
- attr_accessor :service
414
-
415
- def initialize(**args)
416
- update!(**args)
417
- end
418
-
419
- # Update properties of this object
420
- def update!(**args)
421
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
422
- @service = args[:service] if args.key?(:service)
423
- end
424
- end
425
-
426
- # Provides the configuration for logging a type of permissions. Example: ` "
427
- # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
428
- # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
429
- # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
430
- # DATA_READ logging.
431
- class AuditLogConfig
432
- include Google::Apis::Core::Hashable
433
-
434
- # Specifies the identities that do not cause logging for this type of permission.
435
- # Follows the same format of Binding.members.
436
- # Corresponds to the JSON property `exemptedMembers`
437
- # @return [Array<String>]
438
- attr_accessor :exempted_members
439
-
440
- # The log type that this config enables.
441
- # Corresponds to the JSON property `logType`
442
- # @return [String]
443
- attr_accessor :log_type
444
-
445
- def initialize(**args)
446
- update!(**args)
447
- end
448
-
449
- # Update properties of this object
450
- def update!(**args)
451
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
452
- @log_type = args[:log_type] if args.key?(:log_type)
453
- end
454
- end
455
-
456
385
  # Barrier runnable blocks until all tasks in a taskgroup reach it.
457
386
  class Barrier
458
387
  include Google::Apis::Core::Hashable
@@ -473,82 +402,6 @@ module Google
473
402
  end
474
403
  end
475
404
 
476
- # Associates `members`, or principals, with a `role`.
477
- class Binding
478
- include Google::Apis::Core::Hashable
479
-
480
- # Represents a textual expression in the Common Expression Language (CEL) syntax.
481
- # CEL is a C-like expression language. The syntax and semantics of CEL are
482
- # documented at https://github.com/google/cel-spec. Example (Comparison): title:
483
- # "Summary size limit" description: "Determines if a summary is less than 100
484
- # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
485
- # Requestor is owner" description: "Determines if requestor is the document
486
- # owner" expression: "document.owner == request.auth.claims.email" Example (
487
- # Logic): title: "Public documents" description: "Determine whether the document
488
- # should be publicly visible" expression: "document.type != 'private' &&
489
- # document.type != 'internal'" Example (Data Manipulation): title: "Notification
490
- # string" description: "Create a notification string with a timestamp."
491
- # expression: "'New message received at ' + string(document.create_time)" The
492
- # exact variables and functions that may be referenced within an expression are
493
- # determined by the service that evaluates it. See the service documentation for
494
- # additional information.
495
- # Corresponds to the JSON property `condition`
496
- # @return [Google::Apis::BatchV1::Expr]
497
- attr_accessor :condition
498
-
499
- # Specifies the principals requesting access for a Google Cloud resource. `
500
- # members` can have the following values: * `allUsers`: A special identifier
501
- # that represents anyone who is on the internet; with or without a Google
502
- # account. * `allAuthenticatedUsers`: A special identifier that represents
503
- # anyone who is authenticated with a Google account or a service account. Does
504
- # not include identities that come from external identity providers (IdPs)
505
- # through identity federation. * `user:`emailid``: An email address that
506
- # represents a specific Google account. For example, `alice@example.com` . * `
507
- # serviceAccount:`emailid``: An email address that represents a Google service
508
- # account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
509
- # serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An
510
- # identifier for a [Kubernetes service account](https://cloud.google.com/
511
- # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
512
- # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
513
- # email address that represents a Google group. For example, `admins@example.com`
514
- # . * `domain:`domain``: The G Suite domain (primary) that represents all the
515
- # users of that domain. For example, `google.com` or `example.com`. * `deleted:
516
- # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
517
- # representing a user that has been recently deleted. For example, `alice@
518
- # example.com?uid=123456789012345678901`. If the user is recovered, this value
519
- # reverts to `user:`emailid`` and the recovered user retains the role in the
520
- # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
521
- # (plus unique identifier) representing a service account that has been recently
522
- # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
523
- # 123456789012345678901`. If the service account is undeleted, this value
524
- # reverts to `serviceAccount:`emailid`` and the undeleted service account
525
- # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
526
- # An email address (plus unique identifier) representing a Google group that has
527
- # been recently deleted. For example, `admins@example.com?uid=
528
- # 123456789012345678901`. If the group is recovered, this value reverts to `
529
- # group:`emailid`` and the recovered group retains the role in the binding.
530
- # Corresponds to the JSON property `members`
531
- # @return [Array<String>]
532
- attr_accessor :members
533
-
534
- # Role that is assigned to the list of `members`, or principals. For example, `
535
- # roles/viewer`, `roles/editor`, or `roles/owner`.
536
- # Corresponds to the JSON property `role`
537
- # @return [String]
538
- attr_accessor :role
539
-
540
- def initialize(**args)
541
- update!(**args)
542
- end
543
-
544
- # Update properties of this object
545
- def update!(**args)
546
- @condition = args[:condition] if args.key?(:condition)
547
- @members = args[:members] if args.key?(:members)
548
- @role = args[:role] if args.key?(:role)
549
- end
550
- end
551
-
552
405
  # The request message for Operations.CancelOperation.
553
406
  class CancelOperationRequest
554
407
  include Google::Apis::Core::Hashable
@@ -777,60 +630,6 @@ module Google
777
630
  end
778
631
  end
779
632
 
780
- # Represents a textual expression in the Common Expression Language (CEL) syntax.
781
- # CEL is a C-like expression language. The syntax and semantics of CEL are
782
- # documented at https://github.com/google/cel-spec. Example (Comparison): title:
783
- # "Summary size limit" description: "Determines if a summary is less than 100
784
- # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
785
- # Requestor is owner" description: "Determines if requestor is the document
786
- # owner" expression: "document.owner == request.auth.claims.email" Example (
787
- # Logic): title: "Public documents" description: "Determine whether the document
788
- # should be publicly visible" expression: "document.type != 'private' &&
789
- # document.type != 'internal'" Example (Data Manipulation): title: "Notification
790
- # string" description: "Create a notification string with a timestamp."
791
- # expression: "'New message received at ' + string(document.create_time)" The
792
- # exact variables and functions that may be referenced within an expression are
793
- # determined by the service that evaluates it. See the service documentation for
794
- # additional information.
795
- class Expr
796
- include Google::Apis::Core::Hashable
797
-
798
- # Optional. Description of the expression. This is a longer text which describes
799
- # the expression, e.g. when hovered over it in a UI.
800
- # Corresponds to the JSON property `description`
801
- # @return [String]
802
- attr_accessor :description
803
-
804
- # Textual representation of an expression in Common Expression Language syntax.
805
- # Corresponds to the JSON property `expression`
806
- # @return [String]
807
- attr_accessor :expression
808
-
809
- # Optional. String indicating the location of the expression for error reporting,
810
- # e.g. a file name and a position in the file.
811
- # Corresponds to the JSON property `location`
812
- # @return [String]
813
- attr_accessor :location
814
-
815
- # Optional. Title for the expression, i.e. a short string describing its purpose.
816
- # This can be used e.g. in UIs which allow to enter the expression.
817
- # Corresponds to the JSON property `title`
818
- # @return [String]
819
- attr_accessor :title
820
-
821
- def initialize(**args)
822
- update!(**args)
823
- end
824
-
825
- # Update properties of this object
826
- def update!(**args)
827
- @description = args[:description] if args.key?(:description)
828
- @expression = args[:expression] if args.key?(:expression)
829
- @location = args[:location] if args.key?(:location)
830
- @title = args[:title] if args.key?(:title)
831
- end
832
- end
833
-
834
633
  # Represents a Google Cloud Storage volume.
835
634
  class Gcs
836
635
  include Google::Apis::Core::Hashable
@@ -1021,9 +820,9 @@ module Google
1021
820
  # @return [Array<Google::Apis::BatchV1::JobNotification>]
1022
821
  attr_accessor :notifications
1023
822
 
1024
- # Priority of the Job. The valid value range is [0, 100). A job with higher
1025
- # priority value is more likely to run earlier if all other requirements are
1026
- # satisfied.
823
+ # Priority of the Job. The valid value range is [0, 100). Default value is 0.
824
+ # Higher value indicates higher priority. A job with higher priority value is
825
+ # more likely to run earlier if all other requirements are satisfied.
1027
826
  # Corresponds to the JSON property `priority`
1028
827
  # @return [Fixnum]
1029
828
  attr_accessor :priority
@@ -1165,7 +964,10 @@ module Google
1165
964
  class LifecyclePolicy
1166
965
  include Google::Apis::Core::Hashable
1167
966
 
1168
- # Action to execute when ActionCondition is true.
967
+ # Action to execute when ActionCondition is true. When RETRY_TASK is specified,
968
+ # we will retry failed tasks if we notice any exit code match and fail tasks if
969
+ # no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks
970
+ # if we notice any exit code match and retry tasks if no match is found.
1169
971
  # Corresponds to the JSON property `action`
1170
972
  # @return [String]
1171
973
  attr_accessor :action
@@ -1639,101 +1441,6 @@ module Google
1639
1441
  end
1640
1442
  end
1641
1443
 
1642
- # An Identity and Access Management (IAM) policy, which specifies access
1643
- # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1644
- # A `binding` binds one or more `members`, or principals, to a single `role`.
1645
- # Principals can be user accounts, service accounts, Google groups, and domains (
1646
- # such as G Suite). A `role` is a named list of permissions; each `role` can be
1647
- # an IAM predefined role or a user-created custom role. For some types of Google
1648
- # Cloud resources, a `binding` can also specify a `condition`, which is a
1649
- # logical expression that allows access to a resource only if the expression
1650
- # evaluates to `true`. A condition can add constraints based on attributes of
1651
- # the request, the resource, or both. To learn which resources support
1652
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1653
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1654
- # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1655
- # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1656
- # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1657
- # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1658
- # ], "condition": ` "title": "expirable access", "description": "Does not grant
1659
- # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1660
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1661
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
1662
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1663
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1664
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1665
- # access description: Does not grant access after Sep 2020 expression: request.
1666
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1667
- # a description of IAM and its features, see the [IAM documentation](https://
1668
- # cloud.google.com/iam/docs/).
1669
- class Policy
1670
- include Google::Apis::Core::Hashable
1671
-
1672
- # Specifies cloud audit logging configuration for this policy.
1673
- # Corresponds to the JSON property `auditConfigs`
1674
- # @return [Array<Google::Apis::BatchV1::AuditConfig>]
1675
- attr_accessor :audit_configs
1676
-
1677
- # Associates a list of `members`, or principals, with a `role`. Optionally, may
1678
- # specify a `condition` that determines how and when the `bindings` are applied.
1679
- # Each of the `bindings` must contain at least one principal. The `bindings` in
1680
- # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
1681
- # can be Google groups. Each occurrence of a principal counts towards these
1682
- # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
1683
- # example.com`, and not to any other principal, then you can add another 1,450
1684
- # principals to the `bindings` in the `Policy`.
1685
- # Corresponds to the JSON property `bindings`
1686
- # @return [Array<Google::Apis::BatchV1::Binding>]
1687
- attr_accessor :bindings
1688
-
1689
- # `etag` is used for optimistic concurrency control as a way to help prevent
1690
- # simultaneous updates of a policy from overwriting each other. It is strongly
1691
- # suggested that systems make use of the `etag` in the read-modify-write cycle
1692
- # to perform policy updates in order to avoid race conditions: An `etag` is
1693
- # returned in the response to `getIamPolicy`, and systems are expected to put
1694
- # that etag in the request to `setIamPolicy` to ensure that their change will be
1695
- # applied to the same version of the policy. **Important:** If you use IAM
1696
- # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1697
- # If you omit this field, then IAM allows you to overwrite a version `3` policy
1698
- # with a version `1` policy, and all of the conditions in the version `3` policy
1699
- # are lost.
1700
- # Corresponds to the JSON property `etag`
1701
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
1702
- # @return [String]
1703
- attr_accessor :etag
1704
-
1705
- # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1706
- # Requests that specify an invalid value are rejected. Any operation that
1707
- # affects conditional role bindings must specify version `3`. This requirement
1708
- # applies to the following operations: * Getting a policy that includes a
1709
- # conditional role binding * Adding a conditional role binding to a policy *
1710
- # Changing a conditional role binding in a policy * Removing any role binding,
1711
- # with or without a condition, from a policy that includes conditions **
1712
- # Important:** If you use IAM Conditions, you must include the `etag` field
1713
- # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1714
- # to overwrite a version `3` policy with a version `1` policy, and all of the
1715
- # conditions in the version `3` policy are lost. If a policy does not include
1716
- # any conditions, operations on that policy may specify any valid version or
1717
- # leave the field unset. To learn which resources support conditions in their
1718
- # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1719
- # conditions/resource-policies).
1720
- # Corresponds to the JSON property `version`
1721
- # @return [Fixnum]
1722
- attr_accessor :version
1723
-
1724
- def initialize(**args)
1725
- update!(**args)
1726
- end
1727
-
1728
- # Update properties of this object
1729
- def update!(**args)
1730
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1731
- @bindings = args[:bindings] if args.key?(:bindings)
1732
- @etag = args[:etag] if args.key?(:etag)
1733
- @version = args[:version] if args.key?(:version)
1734
- end
1735
- end
1736
-
1737
1444
  # Request to report agent's state. The Request itself implies the agent is
1738
1445
  # healthy.
1739
1446
  class ReportAgentStateRequest
@@ -1934,59 +1641,6 @@ module Google
1934
1641
  end
1935
1642
  end
1936
1643
 
1937
- # Request message for `SetIamPolicy` method.
1938
- class SetIamPolicyRequest
1939
- include Google::Apis::Core::Hashable
1940
-
1941
- # An Identity and Access Management (IAM) policy, which specifies access
1942
- # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1943
- # A `binding` binds one or more `members`, or principals, to a single `role`.
1944
- # Principals can be user accounts, service accounts, Google groups, and domains (
1945
- # such as G Suite). A `role` is a named list of permissions; each `role` can be
1946
- # an IAM predefined role or a user-created custom role. For some types of Google
1947
- # Cloud resources, a `binding` can also specify a `condition`, which is a
1948
- # logical expression that allows access to a resource only if the expression
1949
- # evaluates to `true`. A condition can add constraints based on attributes of
1950
- # the request, the resource, or both. To learn which resources support
1951
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1952
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1953
- # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1954
- # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1955
- # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1956
- # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1957
- # ], "condition": ` "title": "expirable access", "description": "Does not grant
1958
- # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1959
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1960
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
1961
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1962
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1963
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1964
- # access description: Does not grant access after Sep 2020 expression: request.
1965
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1966
- # a description of IAM and its features, see the [IAM documentation](https://
1967
- # cloud.google.com/iam/docs/).
1968
- # Corresponds to the JSON property `policy`
1969
- # @return [Google::Apis::BatchV1::Policy]
1970
- attr_accessor :policy
1971
-
1972
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1973
- # the fields in the mask will be modified. If no mask is provided, the following
1974
- # default mask is used: `paths: "bindings, etag"`
1975
- # Corresponds to the JSON property `updateMask`
1976
- # @return [String]
1977
- attr_accessor :update_mask
1978
-
1979
- def initialize(**args)
1980
- update!(**args)
1981
- end
1982
-
1983
- # Update properties of this object
1984
- def update!(**args)
1985
- @policy = args[:policy] if args.key?(:policy)
1986
- @update_mask = args[:update_mask] if args.key?(:update_mask)
1987
- end
1988
- end
1989
-
1990
1644
  # The `Status` type defines a logical error model that is suitable for different
1991
1645
  # programming environments, including REST APIs and RPC APIs. It is used by [
1992
1646
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -2241,14 +1895,12 @@ module Google
2241
1895
  # @return [Hash<String,String>]
2242
1896
  attr_accessor :environments
2243
1897
 
2244
- # Lifecycle management schema when any task in a task group is failed. The valid
2245
- # size of lifecycle policies are [0, 10]. For each lifecycle policy, when the
2246
- # condition is met, the action in that policy will execute. If there are
2247
- # multiple policies that the task execution result matches, we use the action
2248
- # from the first matched policy. If task execution result does not meet with any
2249
- # of the defined lifecycle policy, we consider it as the default policy. Default
2250
- # policy means if the exit code is 0, exit task. If task ends with non-zero exit
2251
- # code, retry the task with max_retry_count.
1898
+ # Lifecycle management schema when any task in a task group is failed. Currently
1899
+ # we only support one lifecycle policy. When the lifecycle policy condition is
1900
+ # met, the action in the policy will execute. If task execution result does not
1901
+ # meet with the defined lifecycle policy, we consider it as the default policy.
1902
+ # Default policy means if the exit code is 0, exit task. If task ends with non-
1903
+ # zero exit code, retry the task with max_retry_count.
2252
1904
  # Corresponds to the JSON property `lifecyclePolicies`
2253
1905
  # @return [Array<Google::Apis::BatchV1::LifecyclePolicy>]
2254
1906
  attr_accessor :lifecycle_policies
@@ -2324,46 +1976,6 @@ module Google
2324
1976
  end
2325
1977
  end
2326
1978
 
2327
- # Request message for `TestIamPermissions` method.
2328
- class TestIamPermissionsRequest
2329
- include Google::Apis::Core::Hashable
2330
-
2331
- # The set of permissions to check for the `resource`. Permissions with wildcards
2332
- # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
2333
- # Overview](https://cloud.google.com/iam/docs/overview#permissions).
2334
- # Corresponds to the JSON property `permissions`
2335
- # @return [Array<String>]
2336
- attr_accessor :permissions
2337
-
2338
- def initialize(**args)
2339
- update!(**args)
2340
- end
2341
-
2342
- # Update properties of this object
2343
- def update!(**args)
2344
- @permissions = args[:permissions] if args.key?(:permissions)
2345
- end
2346
- end
2347
-
2348
- # Response message for `TestIamPermissions` method.
2349
- class TestIamPermissionsResponse
2350
- include Google::Apis::Core::Hashable
2351
-
2352
- # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2353
- # Corresponds to the JSON property `permissions`
2354
- # @return [Array<String>]
2355
- attr_accessor :permissions
2356
-
2357
- def initialize(**args)
2358
- update!(**args)
2359
- end
2360
-
2361
- # Update properties of this object
2362
- def update!(**args)
2363
- @permissions = args[:permissions] if args.key?(:permissions)
2364
- end
2365
- end
2366
-
2367
1979
  # Volume describes a volume and parameters for it to be mounted to a VM.
2368
1980
  class Volume
2369
1981
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BatchV1
18
18
  # Version of the google-apis-batch_v1 gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230130"
25
+ REVISION = "20230213"
26
26
  end
27
27
  end
28
28
  end
@@ -76,30 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class AuditConfig
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class AuditLogConfig
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
79
  class Barrier
92
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
81
 
94
82
  include Google::Apis::Core::JsonObjectSupport
95
83
  end
96
84
 
97
- class Binding
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
85
  class CancelOperationRequest
104
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
87
 
@@ -136,12 +118,6 @@ module Google
136
118
  include Google::Apis::Core::JsonObjectSupport
137
119
  end
138
120
 
139
- class Expr
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
141
-
142
- include Google::Apis::Core::JsonObjectSupport
143
- end
144
-
145
121
  class Gcs
146
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
123
 
@@ -274,12 +250,6 @@ module Google
274
250
  include Google::Apis::Core::JsonObjectSupport
275
251
  end
276
252
 
277
- class Policy
278
- class Representation < Google::Apis::Core::JsonRepresentation; end
279
-
280
- include Google::Apis::Core::JsonObjectSupport
281
- end
282
-
283
253
  class ReportAgentStateRequest
284
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
255
 
@@ -310,12 +280,6 @@ module Google
310
280
  include Google::Apis::Core::JsonObjectSupport
311
281
  end
312
282
 
313
- class SetIamPolicyRequest
314
- class Representation < Google::Apis::Core::JsonRepresentation; end
315
-
316
- include Google::Apis::Core::JsonObjectSupport
317
- end
318
-
319
283
  class Status
320
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
285
 
@@ -364,18 +328,6 @@ module Google
364
328
  include Google::Apis::Core::JsonObjectSupport
365
329
  end
366
330
 
367
- class TestIamPermissionsRequest
368
- class Representation < Google::Apis::Core::JsonRepresentation; end
369
-
370
- include Google::Apis::Core::JsonObjectSupport
371
- end
372
-
373
- class TestIamPermissionsResponse
374
- class Representation < Google::Apis::Core::JsonRepresentation; end
375
-
376
- include Google::Apis::Core::JsonObjectSupport
377
- end
378
-
379
331
  class Volume
380
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
333
 
@@ -482,23 +434,6 @@ module Google
482
434
  end
483
435
  end
484
436
 
485
- class AuditConfig
486
- # @private
487
- class Representation < Google::Apis::Core::JsonRepresentation
488
- collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::BatchV1::AuditLogConfig, decorator: Google::Apis::BatchV1::AuditLogConfig::Representation
489
-
490
- property :service, as: 'service'
491
- end
492
- end
493
-
494
- class AuditLogConfig
495
- # @private
496
- class Representation < Google::Apis::Core::JsonRepresentation
497
- collection :exempted_members, as: 'exemptedMembers'
498
- property :log_type, as: 'logType'
499
- end
500
- end
501
-
502
437
  class Barrier
503
438
  # @private
504
439
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -506,16 +441,6 @@ module Google
506
441
  end
507
442
  end
508
443
 
509
- class Binding
510
- # @private
511
- class Representation < Google::Apis::Core::JsonRepresentation
512
- property :condition, as: 'condition', class: Google::Apis::BatchV1::Expr, decorator: Google::Apis::BatchV1::Expr::Representation
513
-
514
- collection :members, as: 'members'
515
- property :role, as: 'role'
516
- end
517
- end
518
-
519
444
  class CancelOperationRequest
520
445
  # @private
521
446
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -572,16 +497,6 @@ module Google
572
497
  end
573
498
  end
574
499
 
575
- class Expr
576
- # @private
577
- class Representation < Google::Apis::Core::JsonRepresentation
578
- property :description, as: 'description'
579
- property :expression, as: 'expression'
580
- property :location, as: 'location'
581
- property :title, as: 'title'
582
- end
583
- end
584
-
585
500
  class Gcs
586
501
  # @private
587
502
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -808,18 +723,6 @@ module Google
808
723
  end
809
724
  end
810
725
 
811
- class Policy
812
- # @private
813
- class Representation < Google::Apis::Core::JsonRepresentation
814
- collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BatchV1::AuditConfig, decorator: Google::Apis::BatchV1::AuditConfig::Representation
815
-
816
- collection :bindings, as: 'bindings', class: Google::Apis::BatchV1::Binding, decorator: Google::Apis::BatchV1::Binding::Representation
817
-
818
- property :etag, :base64 => true, as: 'etag'
819
- property :version, as: 'version'
820
- end
821
- end
822
-
823
726
  class ReportAgentStateRequest
824
727
  # @private
825
728
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -876,15 +779,6 @@ module Google
876
779
  end
877
780
  end
878
781
 
879
- class SetIamPolicyRequest
880
- # @private
881
- class Representation < Google::Apis::Core::JsonRepresentation
882
- property :policy, as: 'policy', class: Google::Apis::BatchV1::Policy, decorator: Google::Apis::BatchV1::Policy::Representation
883
-
884
- property :update_mask, as: 'updateMask'
885
- end
886
- end
887
-
888
782
  class Status
889
783
  # @private
890
784
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -975,20 +869,6 @@ module Google
975
869
  end
976
870
  end
977
871
 
978
- class TestIamPermissionsRequest
979
- # @private
980
- class Representation < Google::Apis::Core::JsonRepresentation
981
- collection :permissions, as: 'permissions'
982
- end
983
- end
984
-
985
- class TestIamPermissionsResponse
986
- # @private
987
- class Representation < Google::Apis::Core::JsonRepresentation
988
- collection :permissions, as: 'permissions'
989
- end
990
- end
991
-
992
872
  class Volume
993
873
  # @private
994
874
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -139,7 +139,7 @@ module Google
139
139
  # request ID so that if you must retry your request, the server will know to
140
140
  # ignore the request if it has already been completed. The server will guarantee
141
141
  # that for at least 60 minutes since the first request. For example, consider a
142
- # situation where you make an initial request and t he request times out. If you
142
+ # situation where you make an initial request and the request times out. If you
143
143
  # make the request again with the same request ID, the server can check if
144
144
  # original operation with the same request ID was received, and if so, will
145
145
  # ignore the second request. This prevents clients from accidentally creating
@@ -186,7 +186,7 @@ module Google
186
186
  # request ID so that if you must retry your request, the server will know to
187
187
  # ignore the request if it has already been completed. The server will guarantee
188
188
  # that for at least 60 minutes after the first request. For example, consider a
189
- # situation where you make an initial request and t he request times out. If you
189
+ # situation where you make an initial request and the request times out. If you
190
190
  # make the request again with the same request ID, the server can check if
191
191
  # original operation with the same request ID was received, and if so, will
192
192
  # ignore the second request. This prevents clients from accidentally creating
@@ -251,51 +251,6 @@ module Google
251
251
  execute_or_queue_command(command, &block)
252
252
  end
253
253
 
254
- # Gets the access control policy for a resource. Returns an empty policy if the
255
- # resource exists and does not have a policy set.
256
- # @param [String] resource
257
- # REQUIRED: The resource for which the policy is being requested. See [Resource
258
- # names](https://cloud.google.com/apis/design/resource_names) for the
259
- # appropriate value for this field.
260
- # @param [Fixnum] options_requested_policy_version
261
- # Optional. The maximum policy version that will be used to format the policy.
262
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
263
- # rejected. Requests for policies with any conditional role bindings must
264
- # specify version 3. Policies with no conditional role bindings may specify any
265
- # valid value or leave the field unset. The policy in the response might use the
266
- # policy version that you specified, or it might use a lower policy version. For
267
- # example, if you specify version 3, but the policy has no conditional role
268
- # bindings, the response uses version 1. To learn which resources support
269
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
270
- # google.com/iam/help/conditions/resource-policies).
271
- # @param [String] fields
272
- # Selector specifying which fields to include in a partial response.
273
- # @param [String] quota_user
274
- # Available to use for quota purposes for server-side applications. Can be any
275
- # arbitrary string assigned to a user, but should not exceed 40 characters.
276
- # @param [Google::Apis::RequestOptions] options
277
- # Request-specific options
278
- #
279
- # @yield [result, err] Result & error if block supplied
280
- # @yieldparam result [Google::Apis::BatchV1::Policy] parsed result object
281
- # @yieldparam err [StandardError] error object if request failed
282
- #
283
- # @return [Google::Apis::BatchV1::Policy]
284
- #
285
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
286
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
287
- # @raise [Google::Apis::AuthorizationError] Authorization is required
288
- def get_project_location_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
289
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
290
- command.response_representation = Google::Apis::BatchV1::Policy::Representation
291
- command.response_class = Google::Apis::BatchV1::Policy
292
- command.params['resource'] = resource unless resource.nil?
293
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
294
- command.query['fields'] = fields unless fields.nil?
295
- command.query['quotaUser'] = quota_user unless quota_user.nil?
296
- execute_or_queue_command(command, &block)
297
- end
298
-
299
254
  # List all Jobs for a project within a region.
300
255
  # @param [String] parent
301
256
  # Parent path.
@@ -335,82 +290,6 @@ module Google
335
290
  execute_or_queue_command(command, &block)
336
291
  end
337
292
 
338
- # Sets the access control policy on the specified resource. Replaces any
339
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
340
- # PERMISSION_DENIED` errors.
341
- # @param [String] resource
342
- # REQUIRED: The resource for which the policy is being specified. See [Resource
343
- # names](https://cloud.google.com/apis/design/resource_names) for the
344
- # appropriate value for this field.
345
- # @param [Google::Apis::BatchV1::SetIamPolicyRequest] set_iam_policy_request_object
346
- # @param [String] fields
347
- # Selector specifying which fields to include in a partial response.
348
- # @param [String] quota_user
349
- # Available to use for quota purposes for server-side applications. Can be any
350
- # arbitrary string assigned to a user, but should not exceed 40 characters.
351
- # @param [Google::Apis::RequestOptions] options
352
- # Request-specific options
353
- #
354
- # @yield [result, err] Result & error if block supplied
355
- # @yieldparam result [Google::Apis::BatchV1::Policy] parsed result object
356
- # @yieldparam err [StandardError] error object if request failed
357
- #
358
- # @return [Google::Apis::BatchV1::Policy]
359
- #
360
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
361
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
362
- # @raise [Google::Apis::AuthorizationError] Authorization is required
363
- def set_job_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
364
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
365
- command.request_representation = Google::Apis::BatchV1::SetIamPolicyRequest::Representation
366
- command.request_object = set_iam_policy_request_object
367
- command.response_representation = Google::Apis::BatchV1::Policy::Representation
368
- command.response_class = Google::Apis::BatchV1::Policy
369
- command.params['resource'] = resource unless resource.nil?
370
- command.query['fields'] = fields unless fields.nil?
371
- command.query['quotaUser'] = quota_user unless quota_user.nil?
372
- execute_or_queue_command(command, &block)
373
- end
374
-
375
- # Returns permissions that a caller has on the specified resource. If the
376
- # resource does not exist, this will return an empty set of permissions, not a `
377
- # NOT_FOUND` error. Note: This operation is designed to be used for building
378
- # permission-aware UIs and command-line tools, not for authorization checking.
379
- # This operation may "fail open" without warning.
380
- # @param [String] resource
381
- # REQUIRED: The resource for which the policy detail is being requested. See [
382
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
383
- # appropriate value for this field.
384
- # @param [Google::Apis::BatchV1::TestIamPermissionsRequest] test_iam_permissions_request_object
385
- # @param [String] fields
386
- # Selector specifying which fields to include in a partial response.
387
- # @param [String] quota_user
388
- # Available to use for quota purposes for server-side applications. Can be any
389
- # arbitrary string assigned to a user, but should not exceed 40 characters.
390
- # @param [Google::Apis::RequestOptions] options
391
- # Request-specific options
392
- #
393
- # @yield [result, err] Result & error if block supplied
394
- # @yieldparam result [Google::Apis::BatchV1::TestIamPermissionsResponse] parsed result object
395
- # @yieldparam err [StandardError] error object if request failed
396
- #
397
- # @return [Google::Apis::BatchV1::TestIamPermissionsResponse]
398
- #
399
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
400
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
401
- # @raise [Google::Apis::AuthorizationError] Authorization is required
402
- def test_job_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
403
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
404
- command.request_representation = Google::Apis::BatchV1::TestIamPermissionsRequest::Representation
405
- command.request_object = test_iam_permissions_request_object
406
- command.response_representation = Google::Apis::BatchV1::TestIamPermissionsResponse::Representation
407
- command.response_class = Google::Apis::BatchV1::TestIamPermissionsResponse
408
- command.params['resource'] = resource unless resource.nil?
409
- command.query['fields'] = fields unless fields.nil?
410
- command.query['quotaUser'] = quota_user unless quota_user.nil?
411
- execute_or_queue_command(command, &block)
412
- end
413
-
414
293
  # Return a single Task.
415
294
  # @param [String] name
416
295
  # Required. Task name.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-batch_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-12 00:00:00.000000000 Z
11
+ date: 2023-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-batch_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.7.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-batch_v1
63
63
  post_install_message:
64
64
  rdoc_options: []