google-apis-batch_v1 0.2.0 → 0.3.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: b99bdda99ce3d8138d574f7df15d140ea33196197cdc5e8bd59e713e9d40e5da
4
- data.tar.gz: 674cfc7cf55e885f09e826c6a4215407a825b5d42bdf246ae4263d57ecea5b95
3
+ metadata.gz: 35d60c4045224a25d0fb2d259d8c0f0d4a4a9b4bd7de6d1e23b4ad5a6a9283b0
4
+ data.tar.gz: 92235c7f1333618459bba2649bfd5fcdd54c0359733ef92ac3594ac365f8d538
5
5
  SHA512:
6
- metadata.gz: 52c75794fab9d77c8bceea2cd9ffbb1857cde66e1a465d255b9f6f4a8ecffa36f6f35e9581ab031d2ef56234ee13030d1e938eadfe4b561e1261a26358dc5b35
7
- data.tar.gz: 82b28287ca6ebcaa0c5ea673a3bb55ed094aeb8f3732121438f1d177f396761ba1b2608f71c194706676cf8c959ee870521e1979e89a3634f50890cbce8ff718
6
+ metadata.gz: 4e5dd27793e1be284e09bd8b18627bb9b565f89faa4faf4d54a3bb49f322533ca7a1df61ad1401ab7001d3f8e0ffa75b5c61570433eee43b9cf2be17f2069021
7
+ data.tar.gz: ff1c1ed1bd24264af3ba5b4a253f303f3b1ea5214945f4758ba0ff4bc170e84cb3c02a759a7ad90b9830a247a1592e68c35596d93c975e6d1d9b2294ddfa791b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.2.0 (2022-12-07)
4
8
 
5
9
  * 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)
@@ -729,6 +736,18 @@ module Google
729
736
  class Environment
730
737
  include Google::Apis::Core::Hashable
731
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
+
732
751
  # A map of environment variable names to values.
733
752
  # Corresponds to the JSON property `variables`
734
753
  # @return [Hash<String,String>]
@@ -740,6 +759,8 @@ module Google
740
759
 
741
760
  # Update properties of this object
742
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)
743
764
  @variables = args[:variables] if args.key?(:variables)
744
765
  end
745
766
  end
@@ -1086,6 +1107,31 @@ module Google
1086
1107
  end
1087
1108
  end
1088
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
+
1089
1135
  # LifecyclePolicy describes how to deal with task failures based on different
1090
1136
  # conditions.
1091
1137
  class LifecyclePolicy
@@ -1675,7 +1721,7 @@ module Google
1675
1721
  # @return [Google::Apis::BatchV1::AgentTimingInfo]
1676
1722
  attr_accessor :agent_timing_info
1677
1723
 
1678
- # AgentMetadata never changes for a single instance of VM agent.
1724
+ # VM Agent Metadata.
1679
1725
  # Corresponds to the JSON property `metadata`
1680
1726
  # @return [Google::Apis::BatchV1::AgentMetadata]
1681
1727
  attr_accessor :metadata
@@ -1696,6 +1742,11 @@ module Google
1696
1742
  class ReportAgentStateResponse
1697
1743
  include Google::Apis::Core::Hashable
1698
1744
 
1745
+ # Default report interval override
1746
+ # Corresponds to the JSON property `defaultReportInterval`
1747
+ # @return [String]
1748
+ attr_accessor :default_report_interval
1749
+
1699
1750
  # Minimum report interval override
1700
1751
  # Corresponds to the JSON property `minReportInterval`
1701
1752
  # @return [String]
@@ -1712,6 +1763,7 @@ module Google
1712
1763
 
1713
1764
  # Update properties of this object
1714
1765
  def update!(**args)
1766
+ @default_report_interval = args[:default_report_interval] if args.key?(:default_report_interval)
1715
1767
  @min_report_interval = args[:min_report_interval] if args.key?(:min_report_interval)
1716
1768
  @tasks = args[:tasks] if args.key?(:tasks)
1717
1769
  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.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 = "20221201"
25
+ REVISION = "20221212"
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
@@ -654,6 +664,14 @@ module Google
654
664
  end
655
665
  end
656
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
+
657
675
  class LifecyclePolicy
658
676
  # @private
659
677
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -813,6 +831,7 @@ module Google
813
831
  class ReportAgentStateResponse
814
832
  # @private
815
833
  class Representation < Google::Apis::Core::JsonRepresentation
834
+ property :default_report_interval, as: 'defaultReportInterval'
816
835
  property :min_report_interval, as: 'minReportInterval'
817
836
  collection :tasks, as: 'tasks', class: Google::Apis::BatchV1::AgentTask, decorator: Google::Apis::BatchV1::AgentTask::Representation
818
837
 
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.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-12-12 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.2.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: []