google-apis-workloadmanager_v1 0.21.0 → 0.22.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: 656c40bbb1df562d4dca65c0818a7b1f6e7befb31b82a92a33a25c8adebda0d4
4
- data.tar.gz: 2ab0e413b83947d290b7b07e84ef71556bae06c49b64ef08137577dd93a585cb
3
+ metadata.gz: c144d435f1d21f56f29ce66ac8e55e35351532689f1da70a2aec2c54cfea0f53
4
+ data.tar.gz: 3ed7d1ef020f7661bd1edd1ba463072093a879b5af05936326a10e7237dca9e6
5
5
  SHA512:
6
- metadata.gz: adbcf0314915f41e9b75b766e3db91e41cfd8016646d552cfda0e3ace81f747d0267a121ef1703dddd1fe4689196a316702638d71f58faf219b20ebd887e8fd0
7
- data.tar.gz: 33fca748a0ba7d7fa691503cb47b098e79d271cc204e411140026e4d723119ee0210a0d2128a59f825b5cf615086cccf5afe03bca93d2798597129d92ba78add
6
+ metadata.gz: 23425cc0c61edcba8b608bbbc12ce1909de62f617f3ab414fee17821b5e4e81a0fd7139d5913db04235f830277b972fde0b72a16b2b90439d25445e66bf3bf51
7
+ data.tar.gz: e9e9986ba2fa8e6fb9200dfae4445285bef6fdfaefdce96b582bd0abe21270d2b39769968feb836c63ed75088bdebfaa7c5a8276780cb17f174afd35702e7d1a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-workloadmanager_v1
2
2
 
3
+ ### v0.22.0 (2024-06-26)
4
+
5
+ * Regenerated from discovery document revision 20240619
6
+
3
7
  ### v0.21.0 (2024-06-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20240616
@@ -22,6 +22,32 @@ module Google
22
22
  module Apis
23
23
  module WorkloadmanagerV1
24
24
 
25
+ # * An AgentCommand specifies a one-time executable program for the agent to run.
26
+ class AgentCommand
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # command is the name of the agent one-time executable that will be invoked.
30
+ # Corresponds to the JSON property `command`
31
+ # @return [String]
32
+ attr_accessor :command
33
+
34
+ # parameters is a map of key/value pairs that can be used to specify additional
35
+ # one-time executable settings.
36
+ # Corresponds to the JSON property `parameters`
37
+ # @return [Hash<String,String>]
38
+ attr_accessor :parameters
39
+
40
+ def initialize(**args)
41
+ update!(**args)
42
+ end
43
+
44
+ # Update properties of this object
45
+ def update!(**args)
46
+ @command = args[:command] if args.key?(:command)
47
+ @parameters = args[:parameters] if args.key?(:parameters)
48
+ end
49
+ end
50
+
25
51
  # Provides the mapping of a cloud asset to a direct physical location or to a
26
52
  # proxy that defines the location on its behalf.
27
53
  class AssetLocation
@@ -165,6 +191,31 @@ module Google
165
191
  end
166
192
  end
167
193
 
194
+ # * Command specifies the type of command to execute.
195
+ class Command
196
+ include Google::Apis::Core::Hashable
197
+
198
+ # * An AgentCommand specifies a one-time executable program for the agent to run.
199
+ # Corresponds to the JSON property `agentCommand`
200
+ # @return [Google::Apis::WorkloadmanagerV1::AgentCommand]
201
+ attr_accessor :agent_command
202
+
203
+ # * A ShellCommand is invoked via the agent's command line executor
204
+ # Corresponds to the JSON property `shellCommand`
205
+ # @return [Google::Apis::WorkloadmanagerV1::ShellCommand]
206
+ attr_accessor :shell_command
207
+
208
+ def initialize(**args)
209
+ update!(**args)
210
+ end
211
+
212
+ # Update properties of this object
213
+ def update!(**args)
214
+ @agent_command = args[:agent_command] if args.key?(:agent_command)
215
+ @shell_command = args[:shell_command] if args.key?(:shell_command)
216
+ end
217
+ end
218
+
168
219
  #
169
220
  class DirectLocationAssignment
170
221
  include Google::Apis::Core::Hashable
@@ -361,6 +412,11 @@ module Google
361
412
  class ExecutionResult
362
413
  include Google::Apis::Core::Hashable
363
414
 
415
+ # The commands to remediate the violation.
416
+ # Corresponds to the JSON property `commands`
417
+ # @return [Array<Google::Apis::WorkloadmanagerV1::Command>]
418
+ attr_accessor :commands
419
+
364
420
  # The URL for the documentation of the rule.
365
421
  # Corresponds to the JSON property `documentationUrl`
366
422
  # @return [String]
@@ -397,6 +453,7 @@ module Google
397
453
 
398
454
  # Update properties of this object
399
455
  def update!(**args)
456
+ @commands = args[:commands] if args.key?(:commands)
400
457
  @documentation_url = args[:documentation_url] if args.key?(:documentation_url)
401
458
  @resource = args[:resource] if args.key?(:resource)
402
459
  @rule = args[:rule] if args.key?(:rule)
@@ -410,7 +467,13 @@ module Google
410
467
  class ExternalDataSources
411
468
  include Google::Apis::Core::Hashable
412
469
 
413
- # Required. Name of external data source. The name will be used inside the rego/
470
+ # Required. The asset type of the external data source must be one of go/cai-
471
+ # asset-types
472
+ # Corresponds to the JSON property `assetType`
473
+ # @return [String]
474
+ attr_accessor :asset_type
475
+
476
+ # Optional. Name of external data source. The name will be used inside the rego/
414
477
  # sql to refer the external data
415
478
  # Corresponds to the JSON property `name`
416
479
  # @return [String]
@@ -433,6 +496,7 @@ module Google
433
496
 
434
497
  # Update properties of this object
435
498
  def update!(**args)
499
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
436
500
  @name = args[:name] if args.key?(:name)
437
501
  @type = args[:type] if args.key?(:type)
438
502
  @uri = args[:uri] if args.key?(:uri)
@@ -1841,6 +1905,37 @@ module Google
1841
1905
  end
1842
1906
  end
1843
1907
 
1908
+ # * A ShellCommand is invoked via the agent's command line executor
1909
+ class ShellCommand
1910
+ include Google::Apis::Core::Hashable
1911
+
1912
+ # args is a string of arguments to be passed to the command.
1913
+ # Corresponds to the JSON property `args`
1914
+ # @return [String]
1915
+ attr_accessor :args
1916
+
1917
+ # command is the name of the command to be executed.
1918
+ # Corresponds to the JSON property `command`
1919
+ # @return [String]
1920
+ attr_accessor :command
1921
+
1922
+ # Optional. If not specified, the default timeout is 60 seconds.
1923
+ # Corresponds to the JSON property `timeoutSeconds`
1924
+ # @return [Fixnum]
1925
+ attr_accessor :timeout_seconds
1926
+
1927
+ def initialize(**args)
1928
+ update!(**args)
1929
+ end
1930
+
1931
+ # Update properties of this object
1932
+ def update!(**args)
1933
+ @args = args[:args] if args.key?(:args)
1934
+ @command = args[:command] if args.key?(:command)
1935
+ @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
1936
+ end
1937
+ end
1938
+
1844
1939
  #
1845
1940
  class SpannerLocation
1846
1941
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module WorkloadmanagerV1
18
18
  # Version of the google-apis-workloadmanager_v1 gem
19
- GEM_VERSION = "0.21.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240616"
25
+ REVISION = "20240619"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module WorkloadmanagerV1
24
24
 
25
+ class AgentCommand
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AssetLocation
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -58,6 +64,12 @@ module Google
58
64
  include Google::Apis::Core::JsonObjectSupport
59
65
  end
60
66
 
67
+ class Command
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class DirectLocationAssignment
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -316,6 +328,12 @@ module Google
316
328
  include Google::Apis::Core::JsonObjectSupport
317
329
  end
318
330
 
331
+ class ShellCommand
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
319
337
  class SpannerLocation
320
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
339
 
@@ -376,6 +394,14 @@ module Google
376
394
  include Google::Apis::Core::JsonObjectSupport
377
395
  end
378
396
 
397
+ class AgentCommand
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ property :command, as: 'command'
401
+ hash :parameters, as: 'parameters'
402
+ end
403
+ end
404
+
379
405
  class AssetLocation
380
406
  # @private
381
407
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -427,6 +453,16 @@ module Google
427
453
  end
428
454
  end
429
455
 
456
+ class Command
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :agent_command, as: 'agentCommand', class: Google::Apis::WorkloadmanagerV1::AgentCommand, decorator: Google::Apis::WorkloadmanagerV1::AgentCommand::Representation
460
+
461
+ property :shell_command, as: 'shellCommand', class: Google::Apis::WorkloadmanagerV1::ShellCommand, decorator: Google::Apis::WorkloadmanagerV1::ShellCommand::Representation
462
+
463
+ end
464
+ end
465
+
430
466
  class DirectLocationAssignment
431
467
  # @private
432
468
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -481,6 +517,8 @@ module Google
481
517
  class ExecutionResult
482
518
  # @private
483
519
  class Representation < Google::Apis::Core::JsonRepresentation
520
+ collection :commands, as: 'commands', class: Google::Apis::WorkloadmanagerV1::Command, decorator: Google::Apis::WorkloadmanagerV1::Command::Representation
521
+
484
522
  property :documentation_url, as: 'documentationUrl'
485
523
  property :resource, as: 'resource', class: Google::Apis::WorkloadmanagerV1::Resource, decorator: Google::Apis::WorkloadmanagerV1::Resource::Representation
486
524
 
@@ -495,6 +533,7 @@ module Google
495
533
  class ExternalDataSources
496
534
  # @private
497
535
  class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :asset_type, as: 'assetType'
498
537
  property :name, as: 'name'
499
538
  property :type, as: 'type'
500
539
  property :uri, as: 'uri'
@@ -900,6 +939,15 @@ module Google
900
939
  end
901
940
  end
902
941
 
942
+ class ShellCommand
943
+ # @private
944
+ class Representation < Google::Apis::Core::JsonRepresentation
945
+ property :args, as: 'args'
946
+ property :command, as: 'command'
947
+ property :timeout_seconds, as: 'timeoutSeconds'
948
+ end
949
+ end
950
+
903
951
  class SpannerLocation
904
952
  # @private
905
953
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-workloadmanager_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.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-06-23 00:00:00.000000000 Z
11
+ date: 2024-06-27 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-workloadmanager_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-workloadmanager_v1/v0.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workloadmanager_v1/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workloadmanager_v1
63
63
  post_install_message:
64
64
  rdoc_options: []