google-apis-batch_v1 0.2.0 → 0.4.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: b99bdda99ce3d8138d574f7df15d140ea33196197cdc5e8bd59e713e9d40e5da
4
- data.tar.gz: 674cfc7cf55e885f09e826c6a4215407a825b5d42bdf246ae4263d57ecea5b95
3
+ metadata.gz: e632ec21f8b0277559df56eb49b0e90698473c303e8d677b5740563b67c145fb
4
+ data.tar.gz: f33a47f93a6909988d1a051f5560b2af513f3708431d00974d7fb6fceaeb921d
5
5
  SHA512:
6
- metadata.gz: 52c75794fab9d77c8bceea2cd9ffbb1857cde66e1a465d255b9f6f4a8ecffa36f6f35e9581ab031d2ef56234ee13030d1e938eadfe4b561e1261a26358dc5b35
7
- data.tar.gz: 82b28287ca6ebcaa0c5ea673a3bb55ed094aeb8f3732121438f1d177f396761ba1b2608f71c194706676cf8c959ee870521e1979e89a3634f50890cbce8ff718
6
+ metadata.gz: 54d82bcd14d90c77de26ea76ad10d0a5cc7b2ad709da10dddcc116b8fe29f2cf58810218b5df607d488875a19d6746dced5d06ff2183a0fe1d9db26295e533a0
7
+ data.tar.gz: 6052595e2d20b5b489ccd411a0d041a44fe72d2de549ef7e7400d063a650fa48686770afa95439e4e46271601a68b0fad59ec8daf0976ee4b976236a4ca5b25f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-batch_v1
2
2
 
3
+ ### v0.4.0 (2023-01-15)
4
+
5
+ * Regenerated from discovery document revision 20230105
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.3.0 (2022-12-14)
9
+
10
+ * Regenerated from discovery document revision 20221212
11
+
3
12
  ### v0.2.0 (2022-12-07)
4
13
 
5
14
  * Regenerated from discovery document revision 20221201
@@ -119,7 +119,7 @@ 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
 
@@ -150,6 +150,12 @@ module Google
150
150
  # @return [Fixnum]
151
151
  attr_accessor :instance_id
152
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
+
153
159
  # parsed contents of /etc/os-release
154
160
  # Corresponds to the JSON property `osRelease`
155
161
  # @return [Hash<String,String>]
@@ -176,6 +182,7 @@ module Google
176
182
  @image_version = args[:image_version] if args.key?(:image_version)
177
183
  @instance = args[:instance] if args.key?(:instance)
178
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)
179
186
  @os_release = args[:os_release] if args.key?(:os_release)
180
187
  @version = args[:version] if args.key?(:version)
181
188
  @zone = args[:zone] if args.key?(:zone)
@@ -671,14 +678,25 @@ module Google
671
678
  # @return [String]
672
679
  attr_accessor :disk_interface
673
680
 
674
- # Name of a public or custom image used as the data source.
681
+ # Name of a public or custom image used as the data source. For example, the
682
+ # following are all valid URLs: (1) Specify the image by its family name:
683
+ # projects/`project`/global/images/family/`image_family` (2) Specify the image
684
+ # version: projects/`project`/global/images/`image_version` You can also use
685
+ # Batch customized image in short names. The following image values are
686
+ # supported for a boot disk: "batch-debian": use Batch Debian images. "batch-
687
+ # centos": use Batch CentOS images. "batch-cos": use Batch Container-Optimized
688
+ # images.
675
689
  # Corresponds to the JSON property `image`
676
690
  # @return [String]
677
691
  attr_accessor :image
678
692
 
679
- # Disk size in GB. This field is ignored if `data_source` is `disk` or `image`.
680
- # If `type` is `local-ssd`, size_gb should be a multiple of 375GB, otherwise,
681
- # the final size will be the next greater multiple of 375 GB.
693
+ # Disk size in GB. For persistent disk, this field is ignored if `data_source`
694
+ # is `image` or `snapshot`. For local SSD, size_gb should be a multiple of 375GB,
695
+ # otherwise, the final size will be the next greater multiple of 375 GB. For
696
+ # boot disk, Batch will calculate the boot disk size based on source image and
697
+ # task requirements if you do not speicify the size. If both this field and the
698
+ # boot_disk_mib field in task spec's compute_resource are defined, Batch will
699
+ # only honor this field.
682
700
  # Corresponds to the JSON property `sizeGb`
683
701
  # @return [Fixnum]
684
702
  attr_accessor :size_gb
@@ -688,8 +706,9 @@ module Google
688
706
  # @return [String]
689
707
  attr_accessor :snapshot
690
708
 
691
- # Disk type as shown in `gcloud compute disk-types list` For example, "pd-ssd", "
692
- # pd-standard", "pd-balanced", "local-ssd".
709
+ # Disk type as shown in `gcloud compute disk-types list`. For example, local SSD
710
+ # uses type "local-ssd". Persistent disks and boot disks use "pd-balanced", "pd-
711
+ # extreme", "pd-ssd" or "pd-standard".
693
712
  # Corresponds to the JSON property `type`
694
713
  # @return [String]
695
714
  attr_accessor :type
@@ -729,6 +748,18 @@ module Google
729
748
  class Environment
730
749
  include Google::Apis::Core::Hashable
731
750
 
751
+ # An encrypted JSON dictionary where the key/value pairs correspond to
752
+ # environment variable names and their values.
753
+ # Corresponds to the JSON property `encryptedVariables`
754
+ # @return [Google::Apis::BatchV1::KmsEnvMap]
755
+ attr_accessor :encrypted_variables
756
+
757
+ # A map of environment variable names to Secret Manager secret names. The VM
758
+ # will access the named secrets to set the value of each environment variable.
759
+ # Corresponds to the JSON property `secretVariables`
760
+ # @return [Hash<String,String>]
761
+ attr_accessor :secret_variables
762
+
732
763
  # A map of environment variable names to values.
733
764
  # Corresponds to the JSON property `variables`
734
765
  # @return [Hash<String,String>]
@@ -740,6 +771,8 @@ module Google
740
771
 
741
772
  # Update properties of this object
742
773
  def update!(**args)
774
+ @encrypted_variables = args[:encrypted_variables] if args.key?(:encrypted_variables)
775
+ @secret_variables = args[:secret_variables] if args.key?(:secret_variables)
743
776
  @variables = args[:variables] if args.key?(:variables)
744
777
  end
745
778
  end
@@ -828,6 +861,13 @@ module Google
828
861
  # @return [Array<Google::Apis::BatchV1::Accelerator>]
829
862
  attr_accessor :accelerators
830
863
 
864
+ # A new persistent disk or a local ssd. A VM can only have one local SSD setting
865
+ # but multiple local SSD partitions. https://cloud.google.com/compute/docs/disks#
866
+ # pdspecs. https://cloud.google.com/compute/docs/disks#localssds.
867
+ # Corresponds to the JSON property `bootDisk`
868
+ # @return [Google::Apis::BatchV1::Disk]
869
+ attr_accessor :boot_disk
870
+
831
871
  # Non-boot disks to be attached for each VM created by this InstancePolicy. New
832
872
  # disks will be deleted when the VM is deleted.
833
873
  # Corresponds to the JSON property `disks`
@@ -857,6 +897,7 @@ module Google
857
897
  # Update properties of this object
858
898
  def update!(**args)
859
899
  @accelerators = args[:accelerators] if args.key?(:accelerators)
900
+ @boot_disk = args[:boot_disk] if args.key?(:boot_disk)
860
901
  @disks = args[:disks] if args.key?(:disks)
861
902
  @machine_type = args[:machine_type] if args.key?(:machine_type)
862
903
  @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@@ -1086,6 +1127,31 @@ module Google
1086
1127
  end
1087
1128
  end
1088
1129
 
1130
+ #
1131
+ class KmsEnvMap
1132
+ include Google::Apis::Core::Hashable
1133
+
1134
+ # The value of the cipherText response from the `encrypt` method.
1135
+ # Corresponds to the JSON property `cipherText`
1136
+ # @return [String]
1137
+ attr_accessor :cipher_text
1138
+
1139
+ # The name of the KMS key that will be used to decrypt the cipher text.
1140
+ # Corresponds to the JSON property `keyName`
1141
+ # @return [String]
1142
+ attr_accessor :key_name
1143
+
1144
+ def initialize(**args)
1145
+ update!(**args)
1146
+ end
1147
+
1148
+ # Update properties of this object
1149
+ def update!(**args)
1150
+ @cipher_text = args[:cipher_text] if args.key?(:cipher_text)
1151
+ @key_name = args[:key_name] if args.key?(:key_name)
1152
+ end
1153
+ end
1154
+
1089
1155
  # LifecyclePolicy describes how to deal with task failures based on different
1090
1156
  # conditions.
1091
1157
  class LifecyclePolicy
@@ -1675,7 +1741,7 @@ module Google
1675
1741
  # @return [Google::Apis::BatchV1::AgentTimingInfo]
1676
1742
  attr_accessor :agent_timing_info
1677
1743
 
1678
- # AgentMetadata never changes for a single instance of VM agent.
1744
+ # VM Agent Metadata.
1679
1745
  # Corresponds to the JSON property `metadata`
1680
1746
  # @return [Google::Apis::BatchV1::AgentMetadata]
1681
1747
  attr_accessor :metadata
@@ -1696,6 +1762,11 @@ module Google
1696
1762
  class ReportAgentStateResponse
1697
1763
  include Google::Apis::Core::Hashable
1698
1764
 
1765
+ # Default report interval override
1766
+ # Corresponds to the JSON property `defaultReportInterval`
1767
+ # @return [String]
1768
+ attr_accessor :default_report_interval
1769
+
1699
1770
  # Minimum report interval override
1700
1771
  # Corresponds to the JSON property `minReportInterval`
1701
1772
  # @return [String]
@@ -1712,6 +1783,7 @@ module Google
1712
1783
 
1713
1784
  # Update properties of this object
1714
1785
  def update!(**args)
1786
+ @default_report_interval = args[:default_report_interval] if args.key?(:default_report_interval)
1715
1787
  @min_report_interval = args[:min_report_interval] if args.key?(:min_report_interval)
1716
1788
  @tasks = args[:tasks] if args.key?(:tasks)
1717
1789
  end
@@ -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.2.0"
19
+ GEM_VERSION = "0.4.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221201"
25
+ REVISION = "20230105"
26
26
  end
27
27
  end
28
28
  end
@@ -184,6 +184,12 @@ module Google
184
184
  include Google::Apis::Core::JsonObjectSupport
185
185
  end
186
186
 
187
+ class KmsEnvMap
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
187
193
  class LifecyclePolicy
188
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
195
 
@@ -412,6 +418,7 @@ module Google
412
418
  property :image_version, as: 'imageVersion'
413
419
  property :instance, as: 'instance'
414
420
  property :instance_id, :numeric_string => true, as: 'instanceId'
421
+ property :instance_preemption_notice_received, as: 'instancePreemptionNoticeReceived'
415
422
  hash :os_release, as: 'osRelease'
416
423
  property :version, as: 'version'
417
424
  property :zone, as: 'zone'
@@ -558,6 +565,9 @@ module Google
558
565
  class Environment
559
566
  # @private
560
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'
561
571
  hash :variables, as: 'variables'
562
572
  end
563
573
  end
@@ -584,6 +594,8 @@ module Google
584
594
  class Representation < Google::Apis::Core::JsonRepresentation
585
595
  collection :accelerators, as: 'accelerators', class: Google::Apis::BatchV1::Accelerator, decorator: Google::Apis::BatchV1::Accelerator::Representation
586
596
 
597
+ property :boot_disk, as: 'bootDisk', class: Google::Apis::BatchV1::Disk, decorator: Google::Apis::BatchV1::Disk::Representation
598
+
587
599
  collection :disks, as: 'disks', class: Google::Apis::BatchV1::AttachedDisk, decorator: Google::Apis::BatchV1::AttachedDisk::Representation
588
600
 
589
601
  property :machine_type, as: 'machineType'
@@ -654,6 +666,14 @@ module Google
654
666
  end
655
667
  end
656
668
 
669
+ class KmsEnvMap
670
+ # @private
671
+ class Representation < Google::Apis::Core::JsonRepresentation
672
+ property :cipher_text, as: 'cipherText'
673
+ property :key_name, as: 'keyName'
674
+ end
675
+ end
676
+
657
677
  class LifecyclePolicy
658
678
  # @private
659
679
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -813,6 +833,7 @@ module Google
813
833
  class ReportAgentStateResponse
814
834
  # @private
815
835
  class Representation < Google::Apis::Core::JsonRepresentation
836
+ property :default_report_interval, as: 'defaultReportInterval'
816
837
  property :min_report_interval, as: 'minReportInterval'
817
838
  collection :tasks, as: 'tasks', class: Google::Apis::BatchV1::AgentTask, decorator: Google::Apis::BatchV1::AgentTask::Representation
818
839
 
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.2.0
4
+ version: 0.4.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-12-12 00:00:00.000000000 Z
11
+ date: 2023-01-15 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.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.4.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Batch API V1