google-apis-workloadmanager_v1 0.20.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: 1df0d391f7fd7aa7168ea0c6bdd6a528fe53afec075eccb18234528f5577a941
4
- data.tar.gz: 610937da242de6cac6fd514d387deab409d21124ce9aacdefc09557001fab674
3
+ metadata.gz: c144d435f1d21f56f29ce66ac8e55e35351532689f1da70a2aec2c54cfea0f53
4
+ data.tar.gz: 3ed7d1ef020f7661bd1edd1ba463072093a879b5af05936326a10e7237dca9e6
5
5
  SHA512:
6
- metadata.gz: bfa1d807ccca89900e1e82c281231f8e64debab508e5b4974d40b9ceca2394a71de5eaf1718b8b8bfd7484ed614a54fbd76e0c07e4329b06983607fd7524c2df
7
- data.tar.gz: 8f4a1f1f58538e6b3537243c9f6036251de99fa1b8abb231a1d7ee354ff4d23a774c78db6d493d0da4edb8684067f077eef7de87ab7cf5d55d9c6f5b263d6ec7
6
+ metadata.gz: 23425cc0c61edcba8b608bbbc12ce1909de62f617f3ab414fee17821b5e4e81a0fd7139d5913db04235f830277b972fde0b72a16b2b90439d25445e66bf3bf51
7
+ data.tar.gz: e9e9986ba2fa8e6fb9200dfae4445285bef6fdfaefdce96b582bd0abe21270d2b39769968feb836c63ed75088bdebfaa7c5a8276780cb17f174afd35702e7d1a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.21.0 (2024-06-23)
8
+
9
+ * Regenerated from discovery document revision 20240616
10
+
3
11
  ### v0.20.0 (2024-05-19)
4
12
 
5
13
  * Regenerated from discovery document revision 20240501
@@ -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,7 +412,12 @@ module Google
361
412
  class ExecutionResult
362
413
  include Google::Apis::Core::Hashable
363
414
 
364
- # the document url of the rule
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
+
420
+ # The URL for the documentation of the rule.
365
421
  # Corresponds to the JSON property `documentationUrl`
366
422
  # @return [String]
367
423
  attr_accessor :documentation_url
@@ -371,22 +427,22 @@ module Google
371
427
  # @return [Google::Apis::WorkloadmanagerV1::Resource]
372
428
  attr_accessor :resource
373
429
 
374
- # the rule which violate in execution
430
+ # The rule that is violated in an evaluation.
375
431
  # Corresponds to the JSON property `rule`
376
432
  # @return [String]
377
433
  attr_accessor :rule
378
434
 
379
- # severity of violation
435
+ # The severity of violation.
380
436
  # Corresponds to the JSON property `severity`
381
437
  # @return [String]
382
438
  attr_accessor :severity
383
439
 
384
- # Message describing the violdation in execution result
440
+ # Message describing the violation in an evaluation result.
385
441
  # Corresponds to the JSON property `violationDetails`
386
442
  # @return [Google::Apis::WorkloadmanagerV1::ViolationDetails]
387
443
  attr_accessor :violation_details
388
444
 
389
- # the violation message of an execution
445
+ # The violation message of an execution.
390
446
  # Corresponds to the JSON property `violationMessage`
391
447
  # @return [String]
392
448
  attr_accessor :violation_message
@@ -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)
@@ -866,6 +930,12 @@ module Google
866
930
  # @return [Google::Apis::WorkloadmanagerV1::TenantProjectProxy]
867
931
  attr_accessor :gcp_project_proxy
868
932
 
933
+ # Message describing that the location of the customer resource is tied to
934
+ # placer allocations
935
+ # Corresponds to the JSON property `placerLocation`
936
+ # @return [Google::Apis::WorkloadmanagerV1::PlacerLocation]
937
+ attr_accessor :placer_location
938
+
869
939
  #
870
940
  # Corresponds to the JSON property `spannerLocation`
871
941
  # @return [Google::Apis::WorkloadmanagerV1::SpannerLocation]
@@ -881,6 +951,7 @@ module Google
881
951
  @child_asset_location = args[:child_asset_location] if args.key?(:child_asset_location)
882
952
  @direct_location = args[:direct_location] if args.key?(:direct_location)
883
953
  @gcp_project_proxy = args[:gcp_project_proxy] if args.key?(:gcp_project_proxy)
954
+ @placer_location = args[:placer_location] if args.key?(:placer_location)
884
955
  @spanner_location = args[:spanner_location] if args.key?(:spanner_location)
885
956
  end
886
957
  end
@@ -1006,6 +1077,27 @@ module Google
1006
1077
  end
1007
1078
  end
1008
1079
 
1080
+ # Message describing that the location of the customer resource is tied to
1081
+ # placer allocations
1082
+ class PlacerLocation
1083
+ include Google::Apis::Core::Hashable
1084
+
1085
+ # Directory with a config related to it in placer (e.g. "/placer/prod/home/my-
1086
+ # root/my-dir")
1087
+ # Corresponds to the JSON property `placerConfig`
1088
+ # @return [String]
1089
+ attr_accessor :placer_config
1090
+
1091
+ def initialize(**args)
1092
+ update!(**args)
1093
+ end
1094
+
1095
+ # Update properties of this object
1096
+ def update!(**args)
1097
+ @placer_config = args[:placer_config] if args.key?(:placer_config)
1098
+ end
1099
+ end
1100
+
1009
1101
  # To be used for specifying the intended distribution of regional compute.
1010
1102
  # googleapis.com/InstanceGroupManager instances
1011
1103
  class RegionalMigDistributionPolicy
@@ -1037,17 +1129,17 @@ module Google
1037
1129
  class Resource
1038
1130
  include Google::Apis::Core::Hashable
1039
1131
 
1040
- # the name of the resource
1132
+ # The name of the resource.
1041
1133
  # Corresponds to the JSON property `name`
1042
1134
  # @return [String]
1043
1135
  attr_accessor :name
1044
1136
 
1045
- # the service account accosiate with resource
1137
+ # The service account associated with the resource.
1046
1138
  # Corresponds to the JSON property `serviceAccount`
1047
1139
  # @return [String]
1048
1140
  attr_accessor :service_account
1049
1141
 
1050
- # the type of reresource
1142
+ # The type of resource.
1051
1143
  # Corresponds to the JSON property `type`
1052
1144
  # @return [String]
1053
1145
  attr_accessor :type
@@ -1327,6 +1419,12 @@ module Google
1327
1419
  # @return [String]
1328
1420
  attr_accessor :host_project
1329
1421
 
1422
+ # Optional. A list of replication sites used in Disaster Recovery (DR)
1423
+ # configurations.
1424
+ # Corresponds to the JSON property `replicationSites`
1425
+ # @return [Array<Google::Apis::WorkloadmanagerV1::SapDiscoveryComponent>]
1426
+ attr_accessor :replication_sites
1427
+
1330
1428
  # Optional. The resources in a component.
1331
1429
  # Corresponds to the JSON property `resources`
1332
1430
  # @return [Array<Google::Apis::WorkloadmanagerV1::SapDiscoveryResource>]
@@ -1353,6 +1451,7 @@ module Google
1353
1451
  @database_properties = args[:database_properties] if args.key?(:database_properties)
1354
1452
  @ha_hosts = args[:ha_hosts] if args.key?(:ha_hosts)
1355
1453
  @host_project = args[:host_project] if args.key?(:host_project)
1454
+ @replication_sites = args[:replication_sites] if args.key?(:replication_sites)
1356
1455
  @resources = args[:resources] if args.key?(:resources)
1357
1456
  @sid = args[:sid] if args.key?(:sid)
1358
1457
  @topology_type = args[:topology_type] if args.key?(:topology_type)
@@ -1363,8 +1462,8 @@ module Google
1363
1462
  class SapDiscoveryComponentApplicationProperties
1364
1463
  include Google::Apis::Core::Hashable
1365
1464
 
1366
- # Optional. Indicates whether this is a Java or ABAP Netweaver instance. true
1367
- # means it is ABAP, false means it is Java.
1465
+ # Optional. Deprecated: ApplicationType now tells you whether this is ABAP or
1466
+ # Java.
1368
1467
  # Corresponds to the JSON property `abap`
1369
1468
  # @return [Boolean]
1370
1469
  attr_accessor :abap
@@ -1806,6 +1905,37 @@ module Google
1806
1905
  end
1807
1906
  end
1808
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
+
1809
1939
  #
1810
1940
  class SpannerLocation
1811
1941
  include Google::Apis::Core::Hashable
@@ -1967,21 +2097,21 @@ module Google
1967
2097
  end
1968
2098
  end
1969
2099
 
1970
- # Message describing the violdation in execution result
2100
+ # Message describing the violation in an evaluation result.
1971
2101
  class ViolationDetails
1972
2102
  include Google::Apis::Core::Hashable
1973
2103
 
1974
- # the name of asset
2104
+ # The name of the asset.
1975
2105
  # Corresponds to the JSON property `asset`
1976
2106
  # @return [String]
1977
2107
  attr_accessor :asset
1978
2108
 
1979
- # observed
2109
+ # Details of the violation.
1980
2110
  # Corresponds to the JSON property `observed`
1981
2111
  # @return [Hash<String,String>]
1982
2112
  attr_accessor :observed
1983
2113
 
1984
- # the service account associate with resource
2114
+ # The service account associated with the resource.
1985
2115
  # Corresponds to the JSON property `serviceAccount`
1986
2116
  # @return [String]
1987
2117
  attr_accessor :service_account
@@ -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.20.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 = "20240501"
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
 
@@ -190,6 +202,12 @@ module Google
190
202
  include Google::Apis::Core::JsonObjectSupport
191
203
  end
192
204
 
205
+ class PlacerLocation
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
193
211
  class RegionalMigDistributionPolicy
194
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
213
 
@@ -310,6 +328,12 @@ module Google
310
328
  include Google::Apis::Core::JsonObjectSupport
311
329
  end
312
330
 
331
+ class ShellCommand
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
313
337
  class SpannerLocation
314
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
339
 
@@ -370,6 +394,14 @@ module Google
370
394
  include Google::Apis::Core::JsonObjectSupport
371
395
  end
372
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
+
373
405
  class AssetLocation
374
406
  # @private
375
407
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -421,6 +453,16 @@ module Google
421
453
  end
422
454
  end
423
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
+
424
466
  class DirectLocationAssignment
425
467
  # @private
426
468
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -475,6 +517,8 @@ module Google
475
517
  class ExecutionResult
476
518
  # @private
477
519
  class Representation < Google::Apis::Core::JsonRepresentation
520
+ collection :commands, as: 'commands', class: Google::Apis::WorkloadmanagerV1::Command, decorator: Google::Apis::WorkloadmanagerV1::Command::Representation
521
+
478
522
  property :documentation_url, as: 'documentationUrl'
479
523
  property :resource, as: 'resource', class: Google::Apis::WorkloadmanagerV1::Resource, decorator: Google::Apis::WorkloadmanagerV1::Resource::Representation
480
524
 
@@ -489,6 +533,7 @@ module Google
489
533
  class ExternalDataSources
490
534
  # @private
491
535
  class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :asset_type, as: 'assetType'
492
537
  property :name, as: 'name'
493
538
  property :type, as: 'type'
494
539
  property :uri, as: 'uri'
@@ -632,6 +677,8 @@ module Google
632
677
 
633
678
  property :gcp_project_proxy, as: 'gcpProjectProxy', class: Google::Apis::WorkloadmanagerV1::TenantProjectProxy, decorator: Google::Apis::WorkloadmanagerV1::TenantProjectProxy::Representation
634
679
 
680
+ property :placer_location, as: 'placerLocation', class: Google::Apis::WorkloadmanagerV1::PlacerLocation, decorator: Google::Apis::WorkloadmanagerV1::PlacerLocation::Representation
681
+
635
682
  property :spanner_location, as: 'spannerLocation', class: Google::Apis::WorkloadmanagerV1::SpannerLocation, decorator: Google::Apis::WorkloadmanagerV1::SpannerLocation::Representation
636
683
 
637
684
  end
@@ -662,6 +709,13 @@ module Google
662
709
  end
663
710
  end
664
711
 
712
+ class PlacerLocation
713
+ # @private
714
+ class Representation < Google::Apis::Core::JsonRepresentation
715
+ property :placer_config, as: 'placerConfig'
716
+ end
717
+ end
718
+
665
719
  class RegionalMigDistributionPolicy
666
720
  # @private
667
721
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -752,6 +806,8 @@ module Google
752
806
 
753
807
  collection :ha_hosts, as: 'haHosts'
754
808
  property :host_project, as: 'hostProject'
809
+ collection :replication_sites, as: 'replicationSites', class: Google::Apis::WorkloadmanagerV1::SapDiscoveryComponent, decorator: Google::Apis::WorkloadmanagerV1::SapDiscoveryComponent::Representation
810
+
755
811
  collection :resources, as: 'resources', class: Google::Apis::WorkloadmanagerV1::SapDiscoveryResource, decorator: Google::Apis::WorkloadmanagerV1::SapDiscoveryResource::Representation
756
812
 
757
813
  property :sid, as: 'sid'
@@ -883,6 +939,15 @@ module Google
883
939
  end
884
940
  end
885
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
+
886
951
  class SpannerLocation
887
952
  # @private
888
953
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -254,7 +254,7 @@ module Google
254
254
  # @param [String] parent
255
255
  # Required. Parent value for ListEvaluationsRequest
256
256
  # @param [String] filter
257
- # Filtering results
257
+ # Filter to be applied when listing the evaluation results.
258
258
  # @param [String] order_by
259
259
  # Hint for how to order the results
260
260
  # @param [Fixnum] page_size
@@ -443,7 +443,7 @@ module Google
443
443
  execute_or_queue_command(command, &block)
444
444
  end
445
445
 
446
- # List the running result of a single Execution.
446
+ # Lists the result of a single evaluation.
447
447
  # @param [String] parent
448
448
  # Required. The execution results. Format: `parent`/evaluations/*/executions/*/
449
449
  # results
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.20.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-05-26 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.20.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: []