google-apis-workloadmanager_v1 0.42.0 → 0.44.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: 140b099533621068134907a145d9797a7584c614d03293be3a632e5af2205d07
4
- data.tar.gz: 277e47d7e4ba32727ae1ffef4bd854fe1ed753292e59a727c03d540e921733d5
3
+ metadata.gz: 0eacec53adec1f20f3bcdafcb8a72e8f4866375b35c7cbad2ae9644fa320803f
4
+ data.tar.gz: bae222a3519c73d9d853a9ba6cc77fb232a7ae0d64d432ef62c20df250f67e9d
5
5
  SHA512:
6
- metadata.gz: 8e064341578c8c000e9f3e59d91d54d520c61508403f72988d80cf264e3296d7309a32dfa804182d12f6b0b9e46d66b882c7968fd59cdf838aede1c87a632315
7
- data.tar.gz: 1213ed6f756e5a59c1ea498f44c724a429e74c91eac53e5f1470ef38f1072bcc173a1c8b69dd3470b32ff88be4473be65d9cf3a5d5c87e7f795482e02ee43da8
6
+ metadata.gz: 491b502f5a2743832175b52e7e142543bc8f7f0e7f9055f7ae24e3282c0d5a53cef55b7934aecd410c26c35cb2d222279499faf032f172a0fa87a9660dab438d
7
+ data.tar.gz: 528039f65fbd0d16249328ca0be488eb2904619cc8d57d2de4628dd52cd8b450d1f8122f32307af22abf6e08828d1091ae47b26e84e2779ad6e422614a893ca4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-workloadmanager_v1
2
2
 
3
+ ### v0.44.0 (2025-10-12)
4
+
5
+ * Regenerated from discovery document revision 20251001
6
+
7
+ ### v0.43.0 (2025-09-21)
8
+
9
+ * Regenerated from discovery document revision 20250910
10
+
3
11
  ### v0.42.0 (2025-09-14)
4
12
 
5
13
  * Regenerated from discovery document revision 20250903
@@ -846,6 +846,12 @@ module Google
846
846
  # @return [String]
847
847
  attr_accessor :instance_id
848
848
 
849
+ # A presentation of OpenShift workload insight. The schema of OpenShift
850
+ # workloads validation related data.
851
+ # Corresponds to the JSON property `openShiftValidation`
852
+ # @return [Google::Apis::WorkloadmanagerV1::OpenShiftValidation]
853
+ attr_accessor :open_shift_validation
854
+
849
855
  # The schema of SAP system discovery data.
850
856
  # Corresponds to the JSON property `sapDiscovery`
851
857
  # @return [Google::Apis::WorkloadmanagerV1::SapDiscovery]
@@ -881,6 +887,7 @@ module Google
881
887
  def update!(**args)
882
888
  @agent_status = args[:agent_status] if args.key?(:agent_status)
883
889
  @instance_id = args[:instance_id] if args.key?(:instance_id)
890
+ @open_shift_validation = args[:open_shift_validation] if args.key?(:open_shift_validation)
884
891
  @sap_discovery = args[:sap_discovery] if args.key?(:sap_discovery)
885
892
  @sap_validation = args[:sap_validation] if args.key?(:sap_validation)
886
893
  @sent_time = args[:sent_time] if args.key?(:sent_time)
@@ -938,6 +945,62 @@ module Google
938
945
  end
939
946
  end
940
947
 
948
+ # Message represent an rule that failed to be validated.
949
+ class InvalidRule
950
+ include Google::Apis::Core::Hashable
951
+
952
+ # display name of the invalid rule
953
+ # Corresponds to the JSON property `displayName`
954
+ # @return [String]
955
+ attr_accessor :display_name
956
+
957
+ # cloud storage destination of the invalid rule
958
+ # Corresponds to the JSON property `gcsUri`
959
+ # @return [String]
960
+ attr_accessor :gcs_uri
961
+
962
+ # name of the invalid rule
963
+ # Corresponds to the JSON property `name`
964
+ # @return [String]
965
+ attr_accessor :name
966
+
967
+ # The error message of valdating rule formats.
968
+ # Corresponds to the JSON property `valiadtionError`
969
+ # @return [String]
970
+ attr_accessor :valiadtion_error
971
+
972
+ def initialize(**args)
973
+ update!(**args)
974
+ end
975
+
976
+ # Update properties of this object
977
+ def update!(**args)
978
+ @display_name = args[:display_name] if args.key?(:display_name)
979
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
980
+ @name = args[:name] if args.key?(:name)
981
+ @valiadtion_error = args[:valiadtion_error] if args.key?(:valiadtion_error)
982
+ end
983
+ end
984
+
985
+ # Message wrappes a list of invalid rules.
986
+ class InvalidRulesWrapper
987
+ include Google::Apis::Core::Hashable
988
+
989
+ # The invalid rules that failed to be validated.
990
+ # Corresponds to the JSON property `invalidRules`
991
+ # @return [Array<Google::Apis::WorkloadmanagerV1::InvalidRule>]
992
+ attr_accessor :invalid_rules
993
+
994
+ def initialize(**args)
995
+ update!(**args)
996
+ end
997
+
998
+ # Update properties of this object
999
+ def update!(**args)
1000
+ @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)
1001
+ end
1002
+ end
1003
+
941
1004
  # List discovered profile Response returns discovered profiles from agents
942
1005
  class ListDiscoveredProfilesResponse
943
1006
  include Google::Apis::Core::Hashable
@@ -1096,6 +1159,13 @@ module Google
1096
1159
  # @return [Array<Google::Apis::WorkloadmanagerV1::Operation>]
1097
1160
  attr_accessor :operations
1098
1161
 
1162
+ # Unordered list. Unreachable resources. Populated when the request sets `
1163
+ # ListOperationsRequest.return_partial_success` and reads across collections e.g.
1164
+ # when attempting to list all resources across all supported locations.
1165
+ # Corresponds to the JSON property `unreachable`
1166
+ # @return [Array<String>]
1167
+ attr_accessor :unreachable
1168
+
1099
1169
  def initialize(**args)
1100
1170
  update!(**args)
1101
1171
  end
@@ -1104,6 +1174,7 @@ module Google
1104
1174
  def update!(**args)
1105
1175
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1106
1176
  @operations = args[:operations] if args.key?(:operations)
1177
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1107
1178
  end
1108
1179
  end
1109
1180
 
@@ -1111,10 +1182,10 @@ module Google
1111
1182
  class ListRulesResponse
1112
1183
  include Google::Apis::Core::Hashable
1113
1184
 
1114
- # A token identifying a page of results the server should return.
1115
- # Corresponds to the JSON property `nextPageToken`
1116
- # @return [String]
1117
- attr_accessor :next_page_token
1185
+ # Message wrappes a list of invalid rules.
1186
+ # Corresponds to the JSON property `invalidRulesWrapper`
1187
+ # @return [Google::Apis::WorkloadmanagerV1::InvalidRulesWrapper]
1188
+ attr_accessor :invalid_rules_wrapper
1118
1189
 
1119
1190
  # all rules in response
1120
1191
  # Corresponds to the JSON property `rules`
@@ -1127,7 +1198,7 @@ module Google
1127
1198
 
1128
1199
  # Update properties of this object
1129
1200
  def update!(**args)
1130
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1201
+ @invalid_rules_wrapper = args[:invalid_rules_wrapper] if args.key?(:invalid_rules_wrapper)
1131
1202
  @rules = args[:rules] if args.key?(:rules)
1132
1203
  end
1133
1204
  end
@@ -1224,6 +1295,32 @@ module Google
1224
1295
  end
1225
1296
  end
1226
1297
 
1298
+ # A presentation of OpenShift workload insight. The schema of OpenShift
1299
+ # workloads validation related data.
1300
+ class OpenShiftValidation
1301
+ include Google::Apis::Core::Hashable
1302
+
1303
+ # Required. The OpenShift cluster ID (e.g. 8371bb05-7cac-4d38-82c0-0f58c4f6f936).
1304
+ # Corresponds to the JSON property `clusterId`
1305
+ # @return [String]
1306
+ attr_accessor :cluster_id
1307
+
1308
+ # Required. The validation details of the OpenShift cluster in JSON format.
1309
+ # Corresponds to the JSON property `validationDetails`
1310
+ # @return [Hash<String,Object>]
1311
+ attr_accessor :validation_details
1312
+
1313
+ def initialize(**args)
1314
+ update!(**args)
1315
+ end
1316
+
1317
+ # Update properties of this object
1318
+ def update!(**args)
1319
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
1320
+ @validation_details = args[:validation_details] if args.key?(:validation_details)
1321
+ end
1322
+ end
1323
+
1227
1324
  # This resource represents a long-running operation that is the result of a
1228
1325
  # network API call.
1229
1326
  class Operation
@@ -1467,6 +1564,12 @@ module Google
1467
1564
  class Rule
1468
1565
  include Google::Apis::Core::Hashable
1469
1566
 
1567
+ # The CAI asset type of the rule is evaluating, for joined asset types, it will
1568
+ # be the corresponding primary asset types.
1569
+ # Corresponds to the JSON property `assetType`
1570
+ # @return [String]
1571
+ attr_accessor :asset_type
1572
+
1470
1573
  # descrite rule in plain language
1471
1574
  # Corresponds to the JSON property `description`
1472
1575
  # @return [String]
@@ -1533,6 +1636,7 @@ module Google
1533
1636
 
1534
1637
  # Update properties of this object
1535
1638
  def update!(**args)
1639
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
1536
1640
  @description = args[:description] if args.key?(:description)
1537
1641
  @display_name = args[:display_name] if args.key?(:display_name)
1538
1642
  @error_message = args[:error_message] if args.key?(:error_message)
@@ -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.42.0"
19
+ GEM_VERSION = "0.44.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250903"
25
+ REVISION = "20251001"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,18 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class InvalidRule
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class InvalidRulesWrapper
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class ListDiscoveredProfilesResponse
158
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
171
 
@@ -214,6 +226,12 @@ module Google
214
226
  include Google::Apis::Core::JsonObjectSupport
215
227
  end
216
228
 
229
+ class OpenShiftValidation
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
217
235
  class Operation
218
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
237
 
@@ -708,6 +726,8 @@ module Google
708
726
  property :agent_status, as: 'agentStatus', class: Google::Apis::WorkloadmanagerV1::AgentStatus, decorator: Google::Apis::WorkloadmanagerV1::AgentStatus::Representation
709
727
 
710
728
  property :instance_id, as: 'instanceId'
729
+ property :open_shift_validation, as: 'openShiftValidation', class: Google::Apis::WorkloadmanagerV1::OpenShiftValidation, decorator: Google::Apis::WorkloadmanagerV1::OpenShiftValidation::Representation
730
+
711
731
  property :sap_discovery, as: 'sapDiscovery', class: Google::Apis::WorkloadmanagerV1::SapDiscovery, decorator: Google::Apis::WorkloadmanagerV1::SapDiscovery::Representation
712
732
 
713
733
  property :sap_validation, as: 'sapValidation', class: Google::Apis::WorkloadmanagerV1::SapValidation, decorator: Google::Apis::WorkloadmanagerV1::SapValidation::Representation
@@ -734,6 +754,24 @@ module Google
734
754
  end
735
755
  end
736
756
 
757
+ class InvalidRule
758
+ # @private
759
+ class Representation < Google::Apis::Core::JsonRepresentation
760
+ property :display_name, as: 'displayName'
761
+ property :gcs_uri, as: 'gcsUri'
762
+ property :name, as: 'name'
763
+ property :valiadtion_error, as: 'valiadtionError'
764
+ end
765
+ end
766
+
767
+ class InvalidRulesWrapper
768
+ # @private
769
+ class Representation < Google::Apis::Core::JsonRepresentation
770
+ collection :invalid_rules, as: 'invalidRules', class: Google::Apis::WorkloadmanagerV1::InvalidRule, decorator: Google::Apis::WorkloadmanagerV1::InvalidRule::Representation
771
+
772
+ end
773
+ end
774
+
737
775
  class ListDiscoveredProfilesResponse
738
776
  # @private
739
777
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -788,13 +826,15 @@ module Google
788
826
  property :next_page_token, as: 'nextPageToken'
789
827
  collection :operations, as: 'operations', class: Google::Apis::WorkloadmanagerV1::Operation, decorator: Google::Apis::WorkloadmanagerV1::Operation::Representation
790
828
 
829
+ collection :unreachable, as: 'unreachable'
791
830
  end
792
831
  end
793
832
 
794
833
  class ListRulesResponse
795
834
  # @private
796
835
  class Representation < Google::Apis::Core::JsonRepresentation
797
- property :next_page_token, as: 'nextPageToken'
836
+ property :invalid_rules_wrapper, as: 'invalidRulesWrapper', class: Google::Apis::WorkloadmanagerV1::InvalidRulesWrapper, decorator: Google::Apis::WorkloadmanagerV1::InvalidRulesWrapper::Representation
837
+
798
838
  collection :rules, as: 'rules', class: Google::Apis::WorkloadmanagerV1::Rule, decorator: Google::Apis::WorkloadmanagerV1::Rule::Representation
799
839
 
800
840
  end
@@ -827,6 +867,14 @@ module Google
827
867
  end
828
868
  end
829
869
 
870
+ class OpenShiftValidation
871
+ # @private
872
+ class Representation < Google::Apis::Core::JsonRepresentation
873
+ property :cluster_id, as: 'clusterId'
874
+ hash :validation_details, as: 'validationDetails'
875
+ end
876
+ end
877
+
830
878
  class Operation
831
879
  # @private
832
880
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -891,6 +939,7 @@ module Google
891
939
  class Rule
892
940
  # @private
893
941
  class Representation < Google::Apis::Core::JsonRepresentation
942
+ property :asset_type, as: 'assetType'
894
943
  property :description, as: 'description'
895
944
  property :display_name, as: 'displayName'
896
945
  property :error_message, as: 'errorMessage'
@@ -337,6 +337,58 @@ module Google
337
337
  execute_or_queue_command(command, &block)
338
338
  end
339
339
 
340
+ # Updates the parameters of a single Evaluation.
341
+ # @param [String] name
342
+ # name of resource names have the form 'projects/`project_id`/locations/`
343
+ # location_id`/evaluations/`evaluation_id`'
344
+ # @param [Google::Apis::WorkloadmanagerV1::Evaluation] evaluation_object
345
+ # @param [String] request_id
346
+ # Optional. An optional request ID to identify requests. Specify a unique
347
+ # request ID so that if you must retry your request, the server will know to
348
+ # ignore the request if it has already been completed. The server will guarantee
349
+ # that for at least 60 minutes since the first request. For example, consider a
350
+ # situation where you make an initial request and the request times out. If you
351
+ # make the request again with the same request ID, the server can check if
352
+ # original operation with the same request ID was received, and if so, will
353
+ # ignore the second request. This prevents clients from accidentally creating
354
+ # duplicate commitments. The request ID must be a valid UUID with the exception
355
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
356
+ # @param [String] update_mask
357
+ # Required. Field mask is used to specify the fields to be overwritten in the
358
+ # Evaluation resource by the update. The fields specified in the update_mask are
359
+ # relative to the resource, not the full request. A field will be overwritten if
360
+ # it is in the mask.
361
+ # @param [String] fields
362
+ # Selector specifying which fields to include in a partial response.
363
+ # @param [String] quota_user
364
+ # Available to use for quota purposes for server-side applications. Can be any
365
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
366
+ # @param [Google::Apis::RequestOptions] options
367
+ # Request-specific options
368
+ #
369
+ # @yield [result, err] Result & error if block supplied
370
+ # @yieldparam result [Google::Apis::WorkloadmanagerV1::Operation] parsed result object
371
+ # @yieldparam err [StandardError] error object if request failed
372
+ #
373
+ # @return [Google::Apis::WorkloadmanagerV1::Operation]
374
+ #
375
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
376
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
377
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
378
+ def patch_project_location_evaluation(name, evaluation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
379
+ command = make_simple_command(:patch, 'v1/{+name}', options)
380
+ command.request_representation = Google::Apis::WorkloadmanagerV1::Evaluation::Representation
381
+ command.request_object = evaluation_object
382
+ command.response_representation = Google::Apis::WorkloadmanagerV1::Operation::Representation
383
+ command.response_class = Google::Apis::WorkloadmanagerV1::Operation
384
+ command.params['name'] = name unless name.nil?
385
+ command.query['requestId'] = request_id unless request_id.nil?
386
+ command.query['updateMask'] = update_mask unless update_mask.nil?
387
+ command.query['fields'] = fields unless fields.nil?
388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
389
+ execute_or_queue_command(command, &block)
390
+ end
391
+
340
392
  # Deletes a single Execution.
341
393
  # @param [String] name
342
394
  # Required. Name of the resource
@@ -765,6 +817,13 @@ module Google
765
817
  # The standard list page size.
766
818
  # @param [String] page_token
767
819
  # The standard list page token.
820
+ # @param [Boolean] return_partial_success
821
+ # When set to `true`, operations that are reachable are returned as normal, and
822
+ # those that are unreachable are returned in the [ListOperationsResponse.
823
+ # unreachable] field. This can only be `true` when reading across collections e.
824
+ # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
825
+ # by default supported and will result in an `UNIMPLEMENTED` error if set unless
826
+ # explicitly documented otherwise in service or product specific documentation.
768
827
  # @param [String] fields
769
828
  # Selector specifying which fields to include in a partial response.
770
829
  # @param [String] quota_user
@@ -782,7 +841,7 @@ module Google
782
841
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
842
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
843
  # @raise [Google::Apis::AuthorizationError] Authorization is required
785
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
844
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
786
845
  command = make_simple_command(:get, 'v1/{+name}/operations', options)
787
846
  command.response_representation = Google::Apis::WorkloadmanagerV1::ListOperationsResponse::Representation
788
847
  command.response_class = Google::Apis::WorkloadmanagerV1::ListOperationsResponse
@@ -790,6 +849,7 @@ module Google
790
849
  command.query['filter'] = filter unless filter.nil?
791
850
  command.query['pageSize'] = page_size unless page_size.nil?
792
851
  command.query['pageToken'] = page_token unless page_token.nil?
852
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
793
853
  command.query['fields'] = fields unless fields.nil?
794
854
  command.query['quotaUser'] = quota_user unless quota_user.nil?
795
855
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-workloadmanager_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.42.0
4
+ version: 0.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workloadmanager_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-workloadmanager_v1/v0.42.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workloadmanager_v1/v0.44.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workloadmanager_v1
62
62
  rdoc_options: []
63
63
  require_paths: