google-apis-batch_v1 0.40.0 → 0.42.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: 999b0e75e4924e5e55ec86e8d8ed9e4bdddef5b53c9eb1cc6b23ed31e48ee330
4
- data.tar.gz: 132271704627c632cc84ad6f27255ffc2d62fdc1bd9f9c077114d88e429436c6
3
+ metadata.gz: 72bd4958d620b731bb2aa6f68713031b48d2ffe0a915e3f7994e361834fa47fb
4
+ data.tar.gz: fe7d721aa1b0710066406b57239d18d4c328de9e46aaab4e819be610dd69bbf5
5
5
  SHA512:
6
- metadata.gz: 85249d78cfc770acb45bcce7a38d62be779dd589ddd77f2a62b16264d4fdfaf92931f0fe019529a43722c5f53315b2c395e855de35d9d3e7b70f946e77db8985
7
- data.tar.gz: 73ab705973bc9fb7cb5ecd3012fdf6b9a769a25af9bddd4616bdf5be18885db4a389dc3489477ba7a32104deb2c97cea3e650b08bfa4671f87af227d26e1b19b
6
+ metadata.gz: 9ae247bb72f888d146f915d18958c27fc195d70281c99a8a2a042cd54b22b46912b44a3f946137967bd188f52fb7b7e78bce8ec769daa1ac0f643685b5e87c3d
7
+ data.tar.gz: b3df45db4df34fc25af34b5f9a25f42284d84b631657913747ece2a77932583bdcfcddf879a6d91ff1bc67077566f8f623ee117c9403f6970476f967f35e008f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-batch_v1
2
2
 
3
+ ### v0.42.0 (2024-09-01)
4
+
5
+ * Regenerated from discovery document revision 20240821
6
+
7
+ ### v0.41.0 (2024-08-25)
8
+
9
+ * Regenerated from discovery document revision 20240813
10
+
3
11
  ### v0.40.0 (2024-08-11)
4
12
 
5
13
  * Regenerated from discovery document revision 20240801
@@ -436,6 +436,25 @@ module Google
436
436
  end
437
437
  end
438
438
 
439
+ # AgentTaskLoggingOption contains the options for the logging of the task.
440
+ class AgentTaskLoggingOption
441
+ include Google::Apis::Core::Hashable
442
+
443
+ # Labels to be added to the log entry. Now only cloud logging is supported.
444
+ # Corresponds to the JSON property `labels`
445
+ # @return [Hash<String,String>]
446
+ attr_accessor :labels
447
+
448
+ def initialize(**args)
449
+ update!(**args)
450
+ end
451
+
452
+ # Update properties of this object
453
+ def update!(**args)
454
+ @labels = args[:labels] if args.key?(:labels)
455
+ end
456
+ end
457
+
439
458
  # AgentTaskRunnable is the Runnable representation between Agent and CLH
440
459
  # communication.
441
460
  class AgentTaskRunnable
@@ -515,6 +534,11 @@ module Google
515
534
  # @return [Google::Apis::BatchV1::AgentEnvironment]
516
535
  attr_accessor :environment
517
536
 
537
+ # AgentTaskLoggingOption contains the options for the logging of the task.
538
+ # Corresponds to the JSON property `loggingOption`
539
+ # @return [Google::Apis::BatchV1::AgentTaskLoggingOption]
540
+ attr_accessor :logging_option
541
+
518
542
  # Maximum duration the task should run before being automatically retried (if
519
543
  # enabled) or automatically failed. Format the value of this field as a time
520
544
  # limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field
@@ -545,6 +569,7 @@ module Google
545
569
  # Update properties of this object
546
570
  def update!(**args)
547
571
  @environment = args[:environment] if args.key?(:environment)
572
+ @logging_option = args[:logging_option] if args.key?(:logging_option)
548
573
  @max_run_duration = args[:max_run_duration] if args.key?(:max_run_duration)
549
574
  @runnables = args[:runnables] if args.key?(:runnables)
550
575
  @user_account = args[:user_account] if args.key?(:user_account)
@@ -1156,6 +1181,22 @@ module Google
1156
1181
  class InstancePolicyOrTemplate
1157
1182
  include Google::Apis::Core::Hashable
1158
1183
 
1184
+ # Optional. Set this field to `true` if you want Batch to block project-level
1185
+ # SSH keys from accessing this job's VMs. Alternatively, you can configure the
1186
+ # job to specify a VM instance template that blocks project-level SSH keys. In
1187
+ # either case, Batch blocks project-level SSH keys while creating the VMs for
1188
+ # this job. Batch allows project-level SSH keys for a job's VMs only if all the
1189
+ # following are true: + This field is undefined or set to `false`. + The job's
1190
+ # VM instance template (if any) doesn't block project-level SSH keys. Notably,
1191
+ # you can override this behavior by manually updating a VM to block or allow
1192
+ # project-level SSH keys. For more information about blocking project-level SSH
1193
+ # keys, see the Compute Engine documentation: https://cloud.google.com/compute/
1194
+ # docs/connect/restrict-ssh-keys#block-keys
1195
+ # Corresponds to the JSON property `blockProjectSshKeys`
1196
+ # @return [Boolean]
1197
+ attr_accessor :block_project_ssh_keys
1198
+ alias_method :block_project_ssh_keys?, :block_project_ssh_keys
1199
+
1159
1200
  # Set this field true if you want Batch to help fetch drivers from a third party
1160
1201
  # location and install them for GPUs specified in `policy.accelerators` or `
1161
1202
  # instance_template` on your behalf. Default is false. For Container-Optimized
@@ -1194,6 +1235,7 @@ module Google
1194
1235
 
1195
1236
  # Update properties of this object
1196
1237
  def update!(**args)
1238
+ @block_project_ssh_keys = args[:block_project_ssh_keys] if args.key?(:block_project_ssh_keys)
1197
1239
  @install_gpu_drivers = args[:install_gpu_drivers] if args.key?(:install_gpu_drivers)
1198
1240
  @install_ops_agent = args[:install_ops_agent] if args.key?(:install_ops_agent)
1199
1241
  @instance_template = args[:instance_template] if args.key?(:instance_template)
@@ -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.40.0"
19
+ GEM_VERSION = "0.42.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240801"
25
+ REVISION = "20240821"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class AgentTaskLoggingOption
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class AgentTaskRunnable
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -496,6 +502,13 @@ module Google
496
502
  end
497
503
  end
498
504
 
505
+ class AgentTaskLoggingOption
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ hash :labels, as: 'labels'
509
+ end
510
+ end
511
+
499
512
  class AgentTaskRunnable
500
513
  # @private
501
514
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -517,6 +530,8 @@ module Google
517
530
  class Representation < Google::Apis::Core::JsonRepresentation
518
531
  property :environment, as: 'environment', class: Google::Apis::BatchV1::AgentEnvironment, decorator: Google::Apis::BatchV1::AgentEnvironment::Representation
519
532
 
533
+ property :logging_option, as: 'loggingOption', class: Google::Apis::BatchV1::AgentTaskLoggingOption, decorator: Google::Apis::BatchV1::AgentTaskLoggingOption::Representation
534
+
520
535
  property :max_run_duration, as: 'maxRunDuration'
521
536
  collection :runnables, as: 'runnables', class: Google::Apis::BatchV1::AgentTaskRunnable, decorator: Google::Apis::BatchV1::AgentTaskRunnable::Representation
522
537
 
@@ -667,6 +682,7 @@ module Google
667
682
  class InstancePolicyOrTemplate
668
683
  # @private
669
684
  class Representation < Google::Apis::Core::JsonRepresentation
685
+ property :block_project_ssh_keys, as: 'blockProjectSshKeys'
670
686
  property :install_gpu_drivers, as: 'installGpuDrivers'
671
687
  property :install_ops_agent, as: 'installOpsAgent'
672
688
  property :instance_template, as: 'instanceTemplate'
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.40.0
4
+ version: 0.42.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: 2024-08-11 00:00:00.000000000 Z
11
+ date: 2024-09-01 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.40.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.42.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: []