google-apis-batch_v1 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b99bdda99ce3d8138d574f7df15d140ea33196197cdc5e8bd59e713e9d40e5da
|
4
|
+
data.tar.gz: 674cfc7cf55e885f09e826c6a4215407a825b5d42bdf246ae4263d57ecea5b95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52c75794fab9d77c8bceea2cd9ffbb1857cde66e1a465d255b9f6f4a8ecffa36f6f35e9581ab031d2ef56234ee13030d1e938eadfe4b561e1261a26358dc5b35
|
7
|
+
data.tar.gz: 82b28287ca6ebcaa0c5ea673a3bb55ed094aeb8f3732121438f1d177f396761ba1b2608f71c194706676cf8c959ee870521e1979e89a3634f50890cbce8ff718
|
data/CHANGELOG.md
CHANGED
@@ -123,7 +123,7 @@ module Google
|
|
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]
|
@@ -168,6 +173,7 @@ module Google
|
|
168
173
|
def update!(**args)
|
169
174
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
170
175
|
@creator = args[:creator] if args.key?(:creator)
|
176
|
+
@image_version = args[:image_version] if args.key?(:image_version)
|
171
177
|
@instance = args[:instance] if args.key?(:instance)
|
172
178
|
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
173
179
|
@os_release = args[:os_release] if args.key?(:os_release)
|
@@ -252,6 +258,37 @@ module Google
|
|
252
258
|
end
|
253
259
|
end
|
254
260
|
|
261
|
+
# VM timing information
|
262
|
+
class AgentTimingInfo
|
263
|
+
include Google::Apis::Core::Hashable
|
264
|
+
|
265
|
+
# Agent startup time
|
266
|
+
# Corresponds to the JSON property `agentStartupTime`
|
267
|
+
# @return [String]
|
268
|
+
attr_accessor :agent_startup_time
|
269
|
+
|
270
|
+
# Boot timestamp of the VM OS
|
271
|
+
# Corresponds to the JSON property `bootTime`
|
272
|
+
# @return [String]
|
273
|
+
attr_accessor :boot_time
|
274
|
+
|
275
|
+
# Startup time of the Batch VM script.
|
276
|
+
# Corresponds to the JSON property `scriptStartupTime`
|
277
|
+
# @return [String]
|
278
|
+
attr_accessor :script_startup_time
|
279
|
+
|
280
|
+
def initialize(**args)
|
281
|
+
update!(**args)
|
282
|
+
end
|
283
|
+
|
284
|
+
# Update properties of this object
|
285
|
+
def update!(**args)
|
286
|
+
@agent_startup_time = args[:agent_startup_time] if args.key?(:agent_startup_time)
|
287
|
+
@boot_time = args[:boot_time] if args.key?(:boot_time)
|
288
|
+
@script_startup_time = args[:script_startup_time] if args.key?(:script_startup_time)
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
255
292
|
# A Job's resource allocation policy describes when, where, and how compute
|
256
293
|
# resources should be allocated for the Job.
|
257
294
|
class AllocationPolicy
|
@@ -583,15 +620,15 @@ module Google
|
|
583
620
|
# @return [String]
|
584
621
|
attr_accessor :options
|
585
622
|
|
586
|
-
# Optional password for logging in to a docker registry. If password matches
|
587
|
-
# projects/*/secrets/*/versions
|
623
|
+
# Optional password for logging in to a docker registry. If password matches `
|
624
|
+
# projects/*/secrets/*/versions/*` then Batch will read the password from the
|
588
625
|
# Secret Manager;
|
589
626
|
# Corresponds to the JSON property `password`
|
590
627
|
# @return [String]
|
591
628
|
attr_accessor :password
|
592
629
|
|
593
|
-
# Optional username for logging in to a docker registry. If username matches
|
594
|
-
# projects/*/secrets/*/versions
|
630
|
+
# Optional username for logging in to a docker registry. If username matches `
|
631
|
+
# projects/*/secrets/*/versions/*` then Batch will read the username from the
|
595
632
|
# Secret Manager.
|
596
633
|
# Corresponds to the JSON property `username`
|
597
634
|
# @return [String]
|
@@ -1349,7 +1386,10 @@ module Google
|
|
1349
1386
|
class NetworkInterface
|
1350
1387
|
include Google::Apis::Core::Hashable
|
1351
1388
|
|
1352
|
-
# The URL of
|
1389
|
+
# The URL of an existing network resource. You can specify the network as a full
|
1390
|
+
# or partial URL. For example, the following are all valid URLs: https://www.
|
1391
|
+
# googleapis.com/compute/v1/projects/`project`/global/networks/`network`
|
1392
|
+
# projects/`project`/global/networks/`network` global/networks/`network`
|
1353
1393
|
# Corresponds to the JSON property `network`
|
1354
1394
|
# @return [String]
|
1355
1395
|
attr_accessor :network
|
@@ -1364,7 +1404,11 @@ module Google
|
|
1364
1404
|
attr_accessor :no_external_ip_address
|
1365
1405
|
alias_method :no_external_ip_address?, :no_external_ip_address
|
1366
1406
|
|
1367
|
-
# The URL of
|
1407
|
+
# The URL of an existing subnetwork resource in the network. You can specify the
|
1408
|
+
# subnetwork as a full or partial URL. For example, the following are all valid
|
1409
|
+
# URLs: https://www.googleapis.com/compute/v1/projects/`project`/regions/`region`
|
1410
|
+
# /subnetworks/`subnetwork` projects/`project`/regions/`region`/subnetworks/`
|
1411
|
+
# subnetwork` regions/`region`/subnetworks/`subnetwork`
|
1368
1412
|
# Corresponds to the JSON property `subnetwork`
|
1369
1413
|
# @return [String]
|
1370
1414
|
attr_accessor :subnetwork
|
@@ -1626,6 +1670,11 @@ module Google
|
|
1626
1670
|
# @return [Google::Apis::BatchV1::AgentInfo]
|
1627
1671
|
attr_accessor :agent_info
|
1628
1672
|
|
1673
|
+
# VM timing information
|
1674
|
+
# Corresponds to the JSON property `agentTimingInfo`
|
1675
|
+
# @return [Google::Apis::BatchV1::AgentTimingInfo]
|
1676
|
+
attr_accessor :agent_timing_info
|
1677
|
+
|
1629
1678
|
# AgentMetadata never changes for a single instance of VM agent.
|
1630
1679
|
# Corresponds to the JSON property `metadata`
|
1631
1680
|
# @return [Google::Apis::BatchV1::AgentMetadata]
|
@@ -1638,6 +1687,7 @@ module Google
|
|
1638
1687
|
# Update properties of this object
|
1639
1688
|
def update!(**args)
|
1640
1689
|
@agent_info = args[:agent_info] if args.key?(:agent_info)
|
1690
|
+
@agent_timing_info = args[:agent_timing_info] if args.key?(:agent_timing_info)
|
1641
1691
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1642
1692
|
end
|
1643
1693
|
end
|
@@ -1646,6 +1696,11 @@ module Google
|
|
1646
1696
|
class ReportAgentStateResponse
|
1647
1697
|
include Google::Apis::Core::Hashable
|
1648
1698
|
|
1699
|
+
# Minimum report interval override
|
1700
|
+
# Corresponds to the JSON property `minReportInterval`
|
1701
|
+
# @return [String]
|
1702
|
+
attr_accessor :min_report_interval
|
1703
|
+
|
1649
1704
|
# Tasks assigned to the agent
|
1650
1705
|
# Corresponds to the JSON property `tasks`
|
1651
1706
|
# @return [Array<Google::Apis::BatchV1::AgentTask>]
|
@@ -1657,6 +1712,7 @@ module Google
|
|
1657
1712
|
|
1658
1713
|
# Update properties of this object
|
1659
1714
|
def update!(**args)
|
1715
|
+
@min_report_interval = args[:min_report_interval] if args.key?(:min_report_interval)
|
1660
1716
|
@tasks = args[:tasks] if args.key?(:tasks)
|
1661
1717
|
end
|
1662
1718
|
end
|
@@ -2078,8 +2134,7 @@ module Google
|
|
2078
2134
|
# @return [Google::Apis::BatchV1::Environment]
|
2079
2135
|
attr_accessor :environment
|
2080
2136
|
|
2081
|
-
#
|
2082
|
-
# environments.
|
2137
|
+
# Deprecated: please use environment(non-plural) instead.
|
2083
2138
|
# Corresponds to the JSON property `environments`
|
2084
2139
|
# @return [Hash<String,String>]
|
2085
2140
|
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.
|
19
|
+
GEM_VERSION = "0.2.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 = "
|
25
|
+
REVISION = "20221201"
|
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
|
|
@@ -403,6 +409,7 @@ module Google
|
|
403
409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
404
410
|
property :creation_time, as: 'creationTime'
|
405
411
|
property :creator, as: 'creator'
|
412
|
+
property :image_version, as: 'imageVersion'
|
406
413
|
property :instance, as: 'instance'
|
407
414
|
property :instance_id, :numeric_string => true, as: 'instanceId'
|
408
415
|
hash :os_release, as: 'osRelease'
|
@@ -434,6 +441,15 @@ module Google
|
|
434
441
|
end
|
435
442
|
end
|
436
443
|
|
444
|
+
class AgentTimingInfo
|
445
|
+
# @private
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
447
|
+
property :agent_startup_time, as: 'agentStartupTime'
|
448
|
+
property :boot_time, as: 'bootTime'
|
449
|
+
property :script_startup_time, as: 'scriptStartupTime'
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
437
453
|
class AllocationPolicy
|
438
454
|
# @private
|
439
455
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -787,6 +803,8 @@ module Google
|
|
787
803
|
class Representation < Google::Apis::Core::JsonRepresentation
|
788
804
|
property :agent_info, as: 'agentInfo', class: Google::Apis::BatchV1::AgentInfo, decorator: Google::Apis::BatchV1::AgentInfo::Representation
|
789
805
|
|
806
|
+
property :agent_timing_info, as: 'agentTimingInfo', class: Google::Apis::BatchV1::AgentTimingInfo, decorator: Google::Apis::BatchV1::AgentTimingInfo::Representation
|
807
|
+
|
790
808
|
property :metadata, as: 'metadata', class: Google::Apis::BatchV1::AgentMetadata, decorator: Google::Apis::BatchV1::AgentMetadata::Representation
|
791
809
|
|
792
810
|
end
|
@@ -795,6 +813,7 @@ module Google
|
|
795
813
|
class ReportAgentStateResponse
|
796
814
|
# @private
|
797
815
|
class Representation < Google::Apis::Core::JsonRepresentation
|
816
|
+
property :min_report_interval, as: 'minReportInterval'
|
798
817
|
collection :tasks, as: 'tasks', class: Google::Apis::BatchV1::AgentTask, decorator: Google::Apis::BatchV1::AgentTask::Representation
|
799
818
|
|
800
819
|
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.
|
4
|
+
version: 0.2.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
|
+
date: 2022-12-12 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.2.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: []
|