google-apis-batch_v1 0.1.0 → 0.3.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: cdb3c58f91c6e259e1b7ef6a64fdab6880f1d933bcf17ad9a56343ac18662537
4
- data.tar.gz: 2f4bf0538ace71fd2d2fafc934f21d251337078eb6e0241811c8df5c777e8744
3
+ metadata.gz: 35d60c4045224a25d0fb2d259d8c0f0d4a4a9b4bd7de6d1e23b4ad5a6a9283b0
4
+ data.tar.gz: 92235c7f1333618459bba2649bfd5fcdd54c0359733ef92ac3594ac365f8d538
5
5
  SHA512:
6
- metadata.gz: 9eefda498492bda72a3cdb942f53a01861dbf5988826e9390d0506ebc824426b835b37afe9603451b97bf1d262914c05b06acb64604acc845d269b49cba7938e
7
- data.tar.gz: d5ed0d04eef4db682df63cc6b3a263bde0c11ba7ff2a2ab7f749468d7ad7870feecda97c99549d5117d517d9d97eeb12c0a4a13680f722e46e08351dbbc7d2b0
6
+ metadata.gz: 4e5dd27793e1be284e09bd8b18627bb9b565f89faa4faf4d54a3bb49f322533ca7a1df61ad1401ab7001d3f8e0ffa75b5c61570433eee43b9cf2be17f2069021
7
+ data.tar.gz: ff1c1ed1bd24264af3ba5b4a253f303f3b1ea5214945f4758ba0ff4bc170e84cb3c02a759a7ad90b9830a247a1592e68c35596d93c975e6d1d9b2294ddfa791b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-batch_v1
2
2
 
3
+ ### v0.3.0 (2022-12-14)
4
+
5
+ * Regenerated from discovery document revision 20221212
6
+
7
+ ### v0.2.0 (2022-12-07)
8
+
9
+ * Regenerated from discovery document revision 20221201
10
+
3
11
  ### v0.1.0 (2022-11-04)
4
12
 
5
13
  * Regenerated from discovery document revision 20221017
@@ -119,11 +119,11 @@ module Google
119
119
  end
120
120
  end
121
121
 
122
- # AgentMetadata never changes for a single instance of VM agent.
122
+ # VM Agent Metadata.
123
123
  class AgentMetadata
124
124
  include Google::Apis::Core::Hashable
125
125
 
126
- # When the VM agent started.
126
+ # When the VM agent started. Use agent_startup_time instead.
127
127
  # Corresponds to the JSON property `creationTime`
128
128
  # @return [String]
129
129
  attr_accessor :creation_time
@@ -135,6 +135,11 @@ module Google
135
135
  # @return [String]
136
136
  attr_accessor :creator
137
137
 
138
+ # image version for the VM that this agent is installed on.
139
+ # Corresponds to the JSON property `imageVersion`
140
+ # @return [String]
141
+ attr_accessor :image_version
142
+
138
143
  # GCP instance name (go/instance-name).
139
144
  # Corresponds to the JSON property `instance`
140
145
  # @return [String]
@@ -145,6 +150,12 @@ module Google
145
150
  # @return [Fixnum]
146
151
  attr_accessor :instance_id
147
152
 
153
+ # If the GCP instance has received preemption notice.
154
+ # Corresponds to the JSON property `instancePreemptionNoticeReceived`
155
+ # @return [Boolean]
156
+ attr_accessor :instance_preemption_notice_received
157
+ alias_method :instance_preemption_notice_received?, :instance_preemption_notice_received
158
+
148
159
  # parsed contents of /etc/os-release
149
160
  # Corresponds to the JSON property `osRelease`
150
161
  # @return [Hash<String,String>]
@@ -168,8 +179,10 @@ module Google
168
179
  def update!(**args)
169
180
  @creation_time = args[:creation_time] if args.key?(:creation_time)
170
181
  @creator = args[:creator] if args.key?(:creator)
182
+ @image_version = args[:image_version] if args.key?(:image_version)
171
183
  @instance = args[:instance] if args.key?(:instance)
172
184
  @instance_id = args[:instance_id] if args.key?(:instance_id)
185
+ @instance_preemption_notice_received = args[:instance_preemption_notice_received] if args.key?(:instance_preemption_notice_received)
173
186
  @os_release = args[:os_release] if args.key?(:os_release)
174
187
  @version = args[:version] if args.key?(:version)
175
188
  @zone = args[:zone] if args.key?(:zone)
@@ -252,6 +265,37 @@ module Google
252
265
  end
253
266
  end
254
267
 
268
+ # VM timing information
269
+ class AgentTimingInfo
270
+ include Google::Apis::Core::Hashable
271
+
272
+ # Agent startup time
273
+ # Corresponds to the JSON property `agentStartupTime`
274
+ # @return [String]
275
+ attr_accessor :agent_startup_time
276
+
277
+ # Boot timestamp of the VM OS
278
+ # Corresponds to the JSON property `bootTime`
279
+ # @return [String]
280
+ attr_accessor :boot_time
281
+
282
+ # Startup time of the Batch VM script.
283
+ # Corresponds to the JSON property `scriptStartupTime`
284
+ # @return [String]
285
+ attr_accessor :script_startup_time
286
+
287
+ def initialize(**args)
288
+ update!(**args)
289
+ end
290
+
291
+ # Update properties of this object
292
+ def update!(**args)
293
+ @agent_startup_time = args[:agent_startup_time] if args.key?(:agent_startup_time)
294
+ @boot_time = args[:boot_time] if args.key?(:boot_time)
295
+ @script_startup_time = args[:script_startup_time] if args.key?(:script_startup_time)
296
+ end
297
+ end
298
+
255
299
  # A Job's resource allocation policy describes when, where, and how compute
256
300
  # resources should be allocated for the Job.
257
301
  class AllocationPolicy
@@ -583,15 +627,15 @@ module Google
583
627
  # @return [String]
584
628
  attr_accessor :options
585
629
 
586
- # Optional password for logging in to a docker registry. If password matches "
587
- # projects/*/secrets/*/versions/*" then Batch will read the password from the
630
+ # Optional password for logging in to a docker registry. If password matches `
631
+ # projects/*/secrets/*/versions/*` then Batch will read the password from the
588
632
  # Secret Manager;
589
633
  # Corresponds to the JSON property `password`
590
634
  # @return [String]
591
635
  attr_accessor :password
592
636
 
593
- # Optional username for logging in to a docker registry. If username matches "
594
- # projects/*/secrets/*/versions/*" then Batch will read the username from the
637
+ # Optional username for logging in to a docker registry. If username matches `
638
+ # projects/*/secrets/*/versions/*` then Batch will read the username from the
595
639
  # Secret Manager.
596
640
  # Corresponds to the JSON property `username`
597
641
  # @return [String]
@@ -692,6 +736,18 @@ module Google
692
736
  class Environment
693
737
  include Google::Apis::Core::Hashable
694
738
 
739
+ # An encrypted JSON dictionary where the key/value pairs correspond to
740
+ # environment variable names and their values.
741
+ # Corresponds to the JSON property `encryptedVariables`
742
+ # @return [Google::Apis::BatchV1::KmsEnvMap]
743
+ attr_accessor :encrypted_variables
744
+
745
+ # A map of environment variable names to Secret Manager secret names. The VM
746
+ # will access the named secrets to set the value of each environment variable.
747
+ # Corresponds to the JSON property `secretVariables`
748
+ # @return [Hash<String,String>]
749
+ attr_accessor :secret_variables
750
+
695
751
  # A map of environment variable names to values.
696
752
  # Corresponds to the JSON property `variables`
697
753
  # @return [Hash<String,String>]
@@ -703,6 +759,8 @@ module Google
703
759
 
704
760
  # Update properties of this object
705
761
  def update!(**args)
762
+ @encrypted_variables = args[:encrypted_variables] if args.key?(:encrypted_variables)
763
+ @secret_variables = args[:secret_variables] if args.key?(:secret_variables)
706
764
  @variables = args[:variables] if args.key?(:variables)
707
765
  end
708
766
  end
@@ -1049,6 +1107,31 @@ module Google
1049
1107
  end
1050
1108
  end
1051
1109
 
1110
+ #
1111
+ class KmsEnvMap
1112
+ include Google::Apis::Core::Hashable
1113
+
1114
+ # The value of the cipherText response from the `encrypt` method.
1115
+ # Corresponds to the JSON property `cipherText`
1116
+ # @return [String]
1117
+ attr_accessor :cipher_text
1118
+
1119
+ # The name of the KMS key that will be used to decrypt the cipher text.
1120
+ # Corresponds to the JSON property `keyName`
1121
+ # @return [String]
1122
+ attr_accessor :key_name
1123
+
1124
+ def initialize(**args)
1125
+ update!(**args)
1126
+ end
1127
+
1128
+ # Update properties of this object
1129
+ def update!(**args)
1130
+ @cipher_text = args[:cipher_text] if args.key?(:cipher_text)
1131
+ @key_name = args[:key_name] if args.key?(:key_name)
1132
+ end
1133
+ end
1134
+
1052
1135
  # LifecyclePolicy describes how to deal with task failures based on different
1053
1136
  # conditions.
1054
1137
  class LifecyclePolicy
@@ -1349,7 +1432,10 @@ module Google
1349
1432
  class NetworkInterface
1350
1433
  include Google::Apis::Core::Hashable
1351
1434
 
1352
- # The URL of the network resource.
1435
+ # The URL of an existing network resource. You can specify the network as a full
1436
+ # or partial URL. For example, the following are all valid URLs: https://www.
1437
+ # googleapis.com/compute/v1/projects/`project`/global/networks/`network`
1438
+ # projects/`project`/global/networks/`network` global/networks/`network`
1353
1439
  # Corresponds to the JSON property `network`
1354
1440
  # @return [String]
1355
1441
  attr_accessor :network
@@ -1364,7 +1450,11 @@ module Google
1364
1450
  attr_accessor :no_external_ip_address
1365
1451
  alias_method :no_external_ip_address?, :no_external_ip_address
1366
1452
 
1367
- # The URL of the Subnetwork resource.
1453
+ # The URL of an existing subnetwork resource in the network. You can specify the
1454
+ # subnetwork as a full or partial URL. For example, the following are all valid
1455
+ # URLs: https://www.googleapis.com/compute/v1/projects/`project`/regions/`region`
1456
+ # /subnetworks/`subnetwork` projects/`project`/regions/`region`/subnetworks/`
1457
+ # subnetwork` regions/`region`/subnetworks/`subnetwork`
1368
1458
  # Corresponds to the JSON property `subnetwork`
1369
1459
  # @return [String]
1370
1460
  attr_accessor :subnetwork
@@ -1626,7 +1716,12 @@ module Google
1626
1716
  # @return [Google::Apis::BatchV1::AgentInfo]
1627
1717
  attr_accessor :agent_info
1628
1718
 
1629
- # AgentMetadata never changes for a single instance of VM agent.
1719
+ # VM timing information
1720
+ # Corresponds to the JSON property `agentTimingInfo`
1721
+ # @return [Google::Apis::BatchV1::AgentTimingInfo]
1722
+ attr_accessor :agent_timing_info
1723
+
1724
+ # VM Agent Metadata.
1630
1725
  # Corresponds to the JSON property `metadata`
1631
1726
  # @return [Google::Apis::BatchV1::AgentMetadata]
1632
1727
  attr_accessor :metadata
@@ -1638,6 +1733,7 @@ module Google
1638
1733
  # Update properties of this object
1639
1734
  def update!(**args)
1640
1735
  @agent_info = args[:agent_info] if args.key?(:agent_info)
1736
+ @agent_timing_info = args[:agent_timing_info] if args.key?(:agent_timing_info)
1641
1737
  @metadata = args[:metadata] if args.key?(:metadata)
1642
1738
  end
1643
1739
  end
@@ -1646,6 +1742,16 @@ module Google
1646
1742
  class ReportAgentStateResponse
1647
1743
  include Google::Apis::Core::Hashable
1648
1744
 
1745
+ # Default report interval override
1746
+ # Corresponds to the JSON property `defaultReportInterval`
1747
+ # @return [String]
1748
+ attr_accessor :default_report_interval
1749
+
1750
+ # Minimum report interval override
1751
+ # Corresponds to the JSON property `minReportInterval`
1752
+ # @return [String]
1753
+ attr_accessor :min_report_interval
1754
+
1649
1755
  # Tasks assigned to the agent
1650
1756
  # Corresponds to the JSON property `tasks`
1651
1757
  # @return [Array<Google::Apis::BatchV1::AgentTask>]
@@ -1657,6 +1763,8 @@ module Google
1657
1763
 
1658
1764
  # Update properties of this object
1659
1765
  def update!(**args)
1766
+ @default_report_interval = args[:default_report_interval] if args.key?(:default_report_interval)
1767
+ @min_report_interval = args[:min_report_interval] if args.key?(:min_report_interval)
1660
1768
  @tasks = args[:tasks] if args.key?(:tasks)
1661
1769
  end
1662
1770
  end
@@ -2078,8 +2186,7 @@ module Google
2078
2186
  # @return [Google::Apis::BatchV1::Environment]
2079
2187
  attr_accessor :environment
2080
2188
 
2081
- # Environment variables to set before running the Task. You can set up to 100
2082
- # environments.
2189
+ # Deprecated: please use environment(non-plural) instead.
2083
2190
  # Corresponds to the JSON property `environments`
2084
2191
  # @return [Hash<String,String>]
2085
2192
  attr_accessor :environments
@@ -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.1.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221017"
25
+ REVISION = "20221212"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,12 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class AgentTimingInfo
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class AllocationPolicy
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
@@ -178,6 +184,12 @@ module Google
178
184
  include Google::Apis::Core::JsonObjectSupport
179
185
  end
180
186
 
187
+ class KmsEnvMap
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class LifecyclePolicy
182
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
195
 
@@ -403,8 +415,10 @@ module Google
403
415
  class Representation < Google::Apis::Core::JsonRepresentation
404
416
  property :creation_time, as: 'creationTime'
405
417
  property :creator, as: 'creator'
418
+ property :image_version, as: 'imageVersion'
406
419
  property :instance, as: 'instance'
407
420
  property :instance_id, :numeric_string => true, as: 'instanceId'
421
+ property :instance_preemption_notice_received, as: 'instancePreemptionNoticeReceived'
408
422
  hash :os_release, as: 'osRelease'
409
423
  property :version, as: 'version'
410
424
  property :zone, as: 'zone'
@@ -434,6 +448,15 @@ module Google
434
448
  end
435
449
  end
436
450
 
451
+ class AgentTimingInfo
452
+ # @private
453
+ class Representation < Google::Apis::Core::JsonRepresentation
454
+ property :agent_startup_time, as: 'agentStartupTime'
455
+ property :boot_time, as: 'bootTime'
456
+ property :script_startup_time, as: 'scriptStartupTime'
457
+ end
458
+ end
459
+
437
460
  class AllocationPolicy
438
461
  # @private
439
462
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -542,6 +565,9 @@ module Google
542
565
  class Environment
543
566
  # @private
544
567
  class Representation < Google::Apis::Core::JsonRepresentation
568
+ property :encrypted_variables, as: 'encryptedVariables', class: Google::Apis::BatchV1::KmsEnvMap, decorator: Google::Apis::BatchV1::KmsEnvMap::Representation
569
+
570
+ hash :secret_variables, as: 'secretVariables'
545
571
  hash :variables, as: 'variables'
546
572
  end
547
573
  end
@@ -638,6 +664,14 @@ module Google
638
664
  end
639
665
  end
640
666
 
667
+ class KmsEnvMap
668
+ # @private
669
+ class Representation < Google::Apis::Core::JsonRepresentation
670
+ property :cipher_text, as: 'cipherText'
671
+ property :key_name, as: 'keyName'
672
+ end
673
+ end
674
+
641
675
  class LifecyclePolicy
642
676
  # @private
643
677
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -787,6 +821,8 @@ module Google
787
821
  class Representation < Google::Apis::Core::JsonRepresentation
788
822
  property :agent_info, as: 'agentInfo', class: Google::Apis::BatchV1::AgentInfo, decorator: Google::Apis::BatchV1::AgentInfo::Representation
789
823
 
824
+ property :agent_timing_info, as: 'agentTimingInfo', class: Google::Apis::BatchV1::AgentTimingInfo, decorator: Google::Apis::BatchV1::AgentTimingInfo::Representation
825
+
790
826
  property :metadata, as: 'metadata', class: Google::Apis::BatchV1::AgentMetadata, decorator: Google::Apis::BatchV1::AgentMetadata::Representation
791
827
 
792
828
  end
@@ -795,6 +831,8 @@ module Google
795
831
  class ReportAgentStateResponse
796
832
  # @private
797
833
  class Representation < Google::Apis::Core::JsonRepresentation
834
+ property :default_report_interval, as: 'defaultReportInterval'
835
+ property :min_report_interval, as: 'minReportInterval'
798
836
  collection :tasks, as: 'tasks', class: Google::Apis::BatchV1::AgentTask, decorator: Google::Apis::BatchV1::AgentTask::Representation
799
837
 
800
838
  end
@@ -482,127 +482,6 @@ module Google
482
482
  execute_or_queue_command(command, &block)
483
483
  end
484
484
 
485
- # Gets the access control policy for a resource. Returns an empty policy if the
486
- # resource exists and does not have a policy set.
487
- # @param [String] resource
488
- # REQUIRED: The resource for which the policy is being requested. See [Resource
489
- # names](https://cloud.google.com/apis/design/resource_names) for the
490
- # appropriate value for this field.
491
- # @param [Fixnum] options_requested_policy_version
492
- # Optional. The maximum policy version that will be used to format the policy.
493
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
494
- # rejected. Requests for policies with any conditional role bindings must
495
- # specify version 3. Policies with no conditional role bindings may specify any
496
- # valid value or leave the field unset. The policy in the response might use the
497
- # policy version that you specified, or it might use a lower policy version. For
498
- # example, if you specify version 3, but the policy has no conditional role
499
- # bindings, the response uses version 1. To learn which resources support
500
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
501
- # google.com/iam/help/conditions/resource-policies).
502
- # @param [String] fields
503
- # Selector specifying which fields to include in a partial response.
504
- # @param [String] quota_user
505
- # Available to use for quota purposes for server-side applications. Can be any
506
- # arbitrary string assigned to a user, but should not exceed 40 characters.
507
- # @param [Google::Apis::RequestOptions] options
508
- # Request-specific options
509
- #
510
- # @yield [result, err] Result & error if block supplied
511
- # @yieldparam result [Google::Apis::BatchV1::Policy] parsed result object
512
- # @yieldparam err [StandardError] error object if request failed
513
- #
514
- # @return [Google::Apis::BatchV1::Policy]
515
- #
516
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
517
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
518
- # @raise [Google::Apis::AuthorizationError] Authorization is required
519
- def get_project_location_node_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
520
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
521
- command.response_representation = Google::Apis::BatchV1::Policy::Representation
522
- command.response_class = Google::Apis::BatchV1::Policy
523
- command.params['resource'] = resource unless resource.nil?
524
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
525
- command.query['fields'] = fields unless fields.nil?
526
- command.query['quotaUser'] = quota_user unless quota_user.nil?
527
- execute_or_queue_command(command, &block)
528
- end
529
-
530
- # Sets the access control policy on the specified resource. Replaces any
531
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
532
- # PERMISSION_DENIED` errors.
533
- # @param [String] resource
534
- # REQUIRED: The resource for which the policy is being specified. See [Resource
535
- # names](https://cloud.google.com/apis/design/resource_names) for the
536
- # appropriate value for this field.
537
- # @param [Google::Apis::BatchV1::SetIamPolicyRequest] set_iam_policy_request_object
538
- # @param [String] fields
539
- # Selector specifying which fields to include in a partial response.
540
- # @param [String] quota_user
541
- # Available to use for quota purposes for server-side applications. Can be any
542
- # arbitrary string assigned to a user, but should not exceed 40 characters.
543
- # @param [Google::Apis::RequestOptions] options
544
- # Request-specific options
545
- #
546
- # @yield [result, err] Result & error if block supplied
547
- # @yieldparam result [Google::Apis::BatchV1::Policy] parsed result object
548
- # @yieldparam err [StandardError] error object if request failed
549
- #
550
- # @return [Google::Apis::BatchV1::Policy]
551
- #
552
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
553
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
554
- # @raise [Google::Apis::AuthorizationError] Authorization is required
555
- def set_node_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
556
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
557
- command.request_representation = Google::Apis::BatchV1::SetIamPolicyRequest::Representation
558
- command.request_object = set_iam_policy_request_object
559
- command.response_representation = Google::Apis::BatchV1::Policy::Representation
560
- command.response_class = Google::Apis::BatchV1::Policy
561
- command.params['resource'] = resource unless resource.nil?
562
- command.query['fields'] = fields unless fields.nil?
563
- command.query['quotaUser'] = quota_user unless quota_user.nil?
564
- execute_or_queue_command(command, &block)
565
- end
566
-
567
- # Returns permissions that a caller has on the specified resource. If the
568
- # resource does not exist, this will return an empty set of permissions, not a `
569
- # NOT_FOUND` error. Note: This operation is designed to be used for building
570
- # permission-aware UIs and command-line tools, not for authorization checking.
571
- # This operation may "fail open" without warning.
572
- # @param [String] resource
573
- # REQUIRED: The resource for which the policy detail is being requested. See [
574
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
575
- # appropriate value for this field.
576
- # @param [Google::Apis::BatchV1::TestIamPermissionsRequest] test_iam_permissions_request_object
577
- # @param [String] fields
578
- # Selector specifying which fields to include in a partial response.
579
- # @param [String] quota_user
580
- # Available to use for quota purposes for server-side applications. Can be any
581
- # arbitrary string assigned to a user, but should not exceed 40 characters.
582
- # @param [Google::Apis::RequestOptions] options
583
- # Request-specific options
584
- #
585
- # @yield [result, err] Result & error if block supplied
586
- # @yieldparam result [Google::Apis::BatchV1::TestIamPermissionsResponse] parsed result object
587
- # @yieldparam err [StandardError] error object if request failed
588
- #
589
- # @return [Google::Apis::BatchV1::TestIamPermissionsResponse]
590
- #
591
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
592
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
593
- # @raise [Google::Apis::AuthorizationError] Authorization is required
594
- def test_node_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
595
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
596
- command.request_representation = Google::Apis::BatchV1::TestIamPermissionsRequest::Representation
597
- command.request_object = test_iam_permissions_request_object
598
- command.response_representation = Google::Apis::BatchV1::TestIamPermissionsResponse::Representation
599
- command.response_class = Google::Apis::BatchV1::TestIamPermissionsResponse
600
- command.params['resource'] = resource unless resource.nil?
601
- command.query['fields'] = fields unless fields.nil?
602
- command.query['quotaUser'] = quota_user unless quota_user.nil?
603
- execute_or_queue_command(command, &block)
604
- end
605
-
606
485
  # Starts asynchronous cancellation on a long-running operation. The server makes
607
486
  # a best effort to cancel the operation, but success is not guaranteed. If the
608
487
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -786,127 +665,6 @@ module Google
786
665
  command.query['quotaUser'] = quota_user unless quota_user.nil?
787
666
  execute_or_queue_command(command, &block)
788
667
  end
789
-
790
- # Gets the access control policy for a resource. Returns an empty policy if the
791
- # resource exists and does not have a policy set.
792
- # @param [String] resource
793
- # REQUIRED: The resource for which the policy is being requested. See [Resource
794
- # names](https://cloud.google.com/apis/design/resource_names) for the
795
- # appropriate value for this field.
796
- # @param [Fixnum] options_requested_policy_version
797
- # Optional. The maximum policy version that will be used to format the policy.
798
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
799
- # rejected. Requests for policies with any conditional role bindings must
800
- # specify version 3. Policies with no conditional role bindings may specify any
801
- # valid value or leave the field unset. The policy in the response might use the
802
- # policy version that you specified, or it might use a lower policy version. For
803
- # example, if you specify version 3, but the policy has no conditional role
804
- # bindings, the response uses version 1. To learn which resources support
805
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
806
- # google.com/iam/help/conditions/resource-policies).
807
- # @param [String] fields
808
- # Selector specifying which fields to include in a partial response.
809
- # @param [String] quota_user
810
- # Available to use for quota purposes for server-side applications. Can be any
811
- # arbitrary string assigned to a user, but should not exceed 40 characters.
812
- # @param [Google::Apis::RequestOptions] options
813
- # Request-specific options
814
- #
815
- # @yield [result, err] Result & error if block supplied
816
- # @yieldparam result [Google::Apis::BatchV1::Policy] parsed result object
817
- # @yieldparam err [StandardError] error object if request failed
818
- #
819
- # @return [Google::Apis::BatchV1::Policy]
820
- #
821
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
822
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
823
- # @raise [Google::Apis::AuthorizationError] Authorization is required
824
- def get_project_location_task_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
825
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
826
- command.response_representation = Google::Apis::BatchV1::Policy::Representation
827
- command.response_class = Google::Apis::BatchV1::Policy
828
- command.params['resource'] = resource unless resource.nil?
829
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
830
- command.query['fields'] = fields unless fields.nil?
831
- command.query['quotaUser'] = quota_user unless quota_user.nil?
832
- execute_or_queue_command(command, &block)
833
- end
834
-
835
- # Sets the access control policy on the specified resource. Replaces any
836
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
837
- # PERMISSION_DENIED` errors.
838
- # @param [String] resource
839
- # REQUIRED: The resource for which the policy is being specified. See [Resource
840
- # names](https://cloud.google.com/apis/design/resource_names) for the
841
- # appropriate value for this field.
842
- # @param [Google::Apis::BatchV1::SetIamPolicyRequest] set_iam_policy_request_object
843
- # @param [String] fields
844
- # Selector specifying which fields to include in a partial response.
845
- # @param [String] quota_user
846
- # Available to use for quota purposes for server-side applications. Can be any
847
- # arbitrary string assigned to a user, but should not exceed 40 characters.
848
- # @param [Google::Apis::RequestOptions] options
849
- # Request-specific options
850
- #
851
- # @yield [result, err] Result & error if block supplied
852
- # @yieldparam result [Google::Apis::BatchV1::Policy] parsed result object
853
- # @yieldparam err [StandardError] error object if request failed
854
- #
855
- # @return [Google::Apis::BatchV1::Policy]
856
- #
857
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
858
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
859
- # @raise [Google::Apis::AuthorizationError] Authorization is required
860
- def set_task_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
861
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
862
- command.request_representation = Google::Apis::BatchV1::SetIamPolicyRequest::Representation
863
- command.request_object = set_iam_policy_request_object
864
- command.response_representation = Google::Apis::BatchV1::Policy::Representation
865
- command.response_class = Google::Apis::BatchV1::Policy
866
- command.params['resource'] = resource unless resource.nil?
867
- command.query['fields'] = fields unless fields.nil?
868
- command.query['quotaUser'] = quota_user unless quota_user.nil?
869
- execute_or_queue_command(command, &block)
870
- end
871
-
872
- # Returns permissions that a caller has on the specified resource. If the
873
- # resource does not exist, this will return an empty set of permissions, not a `
874
- # NOT_FOUND` error. Note: This operation is designed to be used for building
875
- # permission-aware UIs and command-line tools, not for authorization checking.
876
- # This operation may "fail open" without warning.
877
- # @param [String] resource
878
- # REQUIRED: The resource for which the policy detail is being requested. See [
879
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
880
- # appropriate value for this field.
881
- # @param [Google::Apis::BatchV1::TestIamPermissionsRequest] test_iam_permissions_request_object
882
- # @param [String] fields
883
- # Selector specifying which fields to include in a partial response.
884
- # @param [String] quota_user
885
- # Available to use for quota purposes for server-side applications. Can be any
886
- # arbitrary string assigned to a user, but should not exceed 40 characters.
887
- # @param [Google::Apis::RequestOptions] options
888
- # Request-specific options
889
- #
890
- # @yield [result, err] Result & error if block supplied
891
- # @yieldparam result [Google::Apis::BatchV1::TestIamPermissionsResponse] parsed result object
892
- # @yieldparam err [StandardError] error object if request failed
893
- #
894
- # @return [Google::Apis::BatchV1::TestIamPermissionsResponse]
895
- #
896
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
897
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
898
- # @raise [Google::Apis::AuthorizationError] Authorization is required
899
- def test_task_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
900
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
901
- command.request_representation = Google::Apis::BatchV1::TestIamPermissionsRequest::Representation
902
- command.request_object = test_iam_permissions_request_object
903
- command.response_representation = Google::Apis::BatchV1::TestIamPermissionsResponse::Representation
904
- command.response_class = Google::Apis::BatchV1::TestIamPermissionsResponse
905
- command.params['resource'] = resource unless resource.nil?
906
- command.query['fields'] = fields unless fields.nil?
907
- command.query['quotaUser'] = quota_user unless quota_user.nil?
908
- execute_or_queue_command(command, &block)
909
- end
910
668
 
911
669
  protected
912
670
 
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.1.0
4
+ version: 0.3.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: 2022-11-07 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-batch_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.3.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: []