google-apis-workloadmanager_v1 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/workloadmanager_v1/classes.rb +427 -0
- data/lib/google/apis/workloadmanager_v1/gem_version.rb +2 -2
- data/lib/google/apis/workloadmanager_v1/representations.rb +184 -0
- data/lib/google/apis/workloadmanager_v1/service.rb +238 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44eace8646f9557478c40a59e6abfc4c5b9b6de10be052482e85a80df623916e
|
4
|
+
data.tar.gz: cd864f90e916e167f7a43d2673c37c79a2109cc70a9a6dc11bd136bf3f1c9c44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0d62bdc300fa224f6d29483ab0033a904daa18a561bba6b726250a899fff58af485b9b8fc1a2678a6718c7cec2f1b08b4d3a09e8bc22b6d01211571fc5bf109
|
7
|
+
data.tar.gz: 95f3554b15d35b65172410a85da59fec8379da74d923dd4bc61812bc56d2c01f8b7c730f59de7ba30311bdcdec33c5963ba5539f41b61b464eaba911259741e9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-workloadmanager_v1
|
2
2
|
|
3
|
+
### v0.5.0 (2023-04-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230406
|
6
|
+
|
7
|
+
### v0.4.0 (2023-03-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230308
|
10
|
+
|
3
11
|
### v0.3.0 (2023-03-05)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230301
|
@@ -96,6 +96,11 @@ module Google
|
|
96
96
|
# @return [Array<String>]
|
97
97
|
attr_accessor :rule_versions
|
98
98
|
|
99
|
+
# crontab format schedule for scheduled evaluation, example: 0 */3 * * *
|
100
|
+
# Corresponds to the JSON property `schedule`
|
101
|
+
# @return [String]
|
102
|
+
attr_accessor :schedule
|
103
|
+
|
99
104
|
# Output only. [Output only] Update time stamp
|
100
105
|
# Corresponds to the JSON property `updateTime`
|
101
106
|
# @return [String]
|
@@ -115,10 +120,123 @@ module Google
|
|
115
120
|
@resource_status = args[:resource_status] if args.key?(:resource_status)
|
116
121
|
@rule_names = args[:rule_names] if args.key?(:rule_names)
|
117
122
|
@rule_versions = args[:rule_versions] if args.key?(:rule_versions)
|
123
|
+
@schedule = args[:schedule] if args.key?(:schedule)
|
118
124
|
@update_time = args[:update_time] if args.key?(:update_time)
|
119
125
|
end
|
120
126
|
end
|
121
127
|
|
128
|
+
# Message describing Execution object
|
129
|
+
class Execution
|
130
|
+
include Google::Apis::Core::Hashable
|
131
|
+
|
132
|
+
# Output only. [Output only] End time stamp
|
133
|
+
# Corresponds to the JSON property `endTime`
|
134
|
+
# @return [String]
|
135
|
+
attr_accessor :end_time
|
136
|
+
|
137
|
+
# Output only. [Output only] Evaluation ID
|
138
|
+
# Corresponds to the JSON property `evaluationId`
|
139
|
+
# @return [String]
|
140
|
+
attr_accessor :evaluation_id
|
141
|
+
|
142
|
+
# Output only. [Output only] Inventory time stamp
|
143
|
+
# Corresponds to the JSON property `inventoryTime`
|
144
|
+
# @return [String]
|
145
|
+
attr_accessor :inventory_time
|
146
|
+
|
147
|
+
# Labels as key value pairs
|
148
|
+
# Corresponds to the JSON property `labels`
|
149
|
+
# @return [Hash<String,String>]
|
150
|
+
attr_accessor :labels
|
151
|
+
|
152
|
+
# The name of execution resource. The format is projects/`project`/locations/`
|
153
|
+
# location`/evaluations/`evaluation`/executions/`execution`
|
154
|
+
# Corresponds to the JSON property `name`
|
155
|
+
# @return [String]
|
156
|
+
attr_accessor :name
|
157
|
+
|
158
|
+
# type represent whether the execution executed directly by user or scheduled
|
159
|
+
# according evaluation.schedule field.
|
160
|
+
# Corresponds to the JSON property `runType`
|
161
|
+
# @return [String]
|
162
|
+
attr_accessor :run_type
|
163
|
+
|
164
|
+
# Output only. [Output only] Start time stamp
|
165
|
+
# Corresponds to the JSON property `startTime`
|
166
|
+
# @return [String]
|
167
|
+
attr_accessor :start_time
|
168
|
+
|
169
|
+
# Output only. [Output only] State
|
170
|
+
# Corresponds to the JSON property `state`
|
171
|
+
# @return [String]
|
172
|
+
attr_accessor :state
|
173
|
+
|
174
|
+
def initialize(**args)
|
175
|
+
update!(**args)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Update properties of this object
|
179
|
+
def update!(**args)
|
180
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
181
|
+
@evaluation_id = args[:evaluation_id] if args.key?(:evaluation_id)
|
182
|
+
@inventory_time = args[:inventory_time] if args.key?(:inventory_time)
|
183
|
+
@labels = args[:labels] if args.key?(:labels)
|
184
|
+
@name = args[:name] if args.key?(:name)
|
185
|
+
@run_type = args[:run_type] if args.key?(:run_type)
|
186
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
187
|
+
@state = args[:state] if args.key?(:state)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
# Message describing the result of an execution
|
192
|
+
class ExecutionResult
|
193
|
+
include Google::Apis::Core::Hashable
|
194
|
+
|
195
|
+
# the document url of the rule
|
196
|
+
# Corresponds to the JSON property `documentationUrl`
|
197
|
+
# @return [String]
|
198
|
+
attr_accessor :documentation_url
|
199
|
+
|
200
|
+
# Message represent resource in execution result
|
201
|
+
# Corresponds to the JSON property `resource`
|
202
|
+
# @return [Google::Apis::WorkloadmanagerV1::Resource]
|
203
|
+
attr_accessor :resource
|
204
|
+
|
205
|
+
# the rule which violate in execution
|
206
|
+
# Corresponds to the JSON property `rule`
|
207
|
+
# @return [String]
|
208
|
+
attr_accessor :rule
|
209
|
+
|
210
|
+
# severity of violation
|
211
|
+
# Corresponds to the JSON property `severity`
|
212
|
+
# @return [String]
|
213
|
+
attr_accessor :severity
|
214
|
+
|
215
|
+
# Message describing the violdation in execution result
|
216
|
+
# Corresponds to the JSON property `violationDetails`
|
217
|
+
# @return [Google::Apis::WorkloadmanagerV1::ViolationDetails]
|
218
|
+
attr_accessor :violation_details
|
219
|
+
|
220
|
+
# the violation message of an execution
|
221
|
+
# Corresponds to the JSON property `violationMessage`
|
222
|
+
# @return [String]
|
223
|
+
attr_accessor :violation_message
|
224
|
+
|
225
|
+
def initialize(**args)
|
226
|
+
update!(**args)
|
227
|
+
end
|
228
|
+
|
229
|
+
# Update properties of this object
|
230
|
+
def update!(**args)
|
231
|
+
@documentation_url = args[:documentation_url] if args.key?(:documentation_url)
|
232
|
+
@resource = args[:resource] if args.key?(:resource)
|
233
|
+
@rule = args[:rule] if args.key?(:rule)
|
234
|
+
@severity = args[:severity] if args.key?(:severity)
|
235
|
+
@violation_details = args[:violation_details] if args.key?(:violation_details)
|
236
|
+
@violation_message = args[:violation_message] if args.key?(:violation_message)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
122
240
|
# Message describing compute engine instance filter
|
123
241
|
class GceInstanceFilter
|
124
242
|
include Google::Apis::Core::Hashable
|
@@ -201,6 +319,63 @@ module Google
|
|
201
319
|
end
|
202
320
|
end
|
203
321
|
|
322
|
+
# Message for response of list execution results
|
323
|
+
class ListExecutionResultsResponse
|
324
|
+
include Google::Apis::Core::Hashable
|
325
|
+
|
326
|
+
# The versions from the specified publisher.
|
327
|
+
# Corresponds to the JSON property `executionResults`
|
328
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::ExecutionResult>]
|
329
|
+
attr_accessor :execution_results
|
330
|
+
|
331
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
332
|
+
# field is omitted, there are no subsequent pages.
|
333
|
+
# Corresponds to the JSON property `nextPageToken`
|
334
|
+
# @return [String]
|
335
|
+
attr_accessor :next_page_token
|
336
|
+
|
337
|
+
def initialize(**args)
|
338
|
+
update!(**args)
|
339
|
+
end
|
340
|
+
|
341
|
+
# Update properties of this object
|
342
|
+
def update!(**args)
|
343
|
+
@execution_results = args[:execution_results] if args.key?(:execution_results)
|
344
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
# Message for response to listing Executions
|
349
|
+
class ListExecutionsResponse
|
350
|
+
include Google::Apis::Core::Hashable
|
351
|
+
|
352
|
+
# The list of Execution
|
353
|
+
# Corresponds to the JSON property `executions`
|
354
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::Execution>]
|
355
|
+
attr_accessor :executions
|
356
|
+
|
357
|
+
# A token identifying a page of results the server should return.
|
358
|
+
# Corresponds to the JSON property `nextPageToken`
|
359
|
+
# @return [String]
|
360
|
+
attr_accessor :next_page_token
|
361
|
+
|
362
|
+
# Locations that could not be reached.
|
363
|
+
# Corresponds to the JSON property `unreachable`
|
364
|
+
# @return [Array<String>]
|
365
|
+
attr_accessor :unreachable
|
366
|
+
|
367
|
+
def initialize(**args)
|
368
|
+
update!(**args)
|
369
|
+
end
|
370
|
+
|
371
|
+
# Update properties of this object
|
372
|
+
def update!(**args)
|
373
|
+
@executions = args[:executions] if args.key?(:executions)
|
374
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
375
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
204
379
|
# The response message for Locations.ListLocations.
|
205
380
|
class ListLocationsResponse
|
206
381
|
include Google::Apis::Core::Hashable
|
@@ -251,6 +426,57 @@ module Google
|
|
251
426
|
end
|
252
427
|
end
|
253
428
|
|
429
|
+
# Mesesage of response of list rules
|
430
|
+
class ListRulesResponse
|
431
|
+
include Google::Apis::Core::Hashable
|
432
|
+
|
433
|
+
# A token identifying a page of results the server should return.
|
434
|
+
# Corresponds to the JSON property `nextPageToken`
|
435
|
+
# @return [String]
|
436
|
+
attr_accessor :next_page_token
|
437
|
+
|
438
|
+
# all rules in response
|
439
|
+
# Corresponds to the JSON property `rules`
|
440
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::Rule>]
|
441
|
+
attr_accessor :rules
|
442
|
+
|
443
|
+
def initialize(**args)
|
444
|
+
update!(**args)
|
445
|
+
end
|
446
|
+
|
447
|
+
# Update properties of this object
|
448
|
+
def update!(**args)
|
449
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
450
|
+
@rules = args[:rules] if args.key?(:rules)
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
454
|
+
# Message for response to list scanned resources
|
455
|
+
class ListScannedResourcesResponse
|
456
|
+
include Google::Apis::Core::Hashable
|
457
|
+
|
458
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
459
|
+
# field is omitted, there are no subsequent pages.
|
460
|
+
# Corresponds to the JSON property `nextPageToken`
|
461
|
+
# @return [String]
|
462
|
+
attr_accessor :next_page_token
|
463
|
+
|
464
|
+
# All scanned resources in response
|
465
|
+
# Corresponds to the JSON property `scannedResources`
|
466
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::ScannedResource>]
|
467
|
+
attr_accessor :scanned_resources
|
468
|
+
|
469
|
+
def initialize(**args)
|
470
|
+
update!(**args)
|
471
|
+
end
|
472
|
+
|
473
|
+
# Update properties of this object
|
474
|
+
def update!(**args)
|
475
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
476
|
+
@scanned_resources = args[:scanned_resources] if args.key?(:scanned_resources)
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
254
480
|
# A resource that represents Google Cloud Platform location.
|
255
481
|
class Location
|
256
482
|
include Google::Apis::Core::Hashable
|
@@ -419,6 +645,37 @@ module Google
|
|
419
645
|
end
|
420
646
|
end
|
421
647
|
|
648
|
+
# Message represent resource in execution result
|
649
|
+
class Resource
|
650
|
+
include Google::Apis::Core::Hashable
|
651
|
+
|
652
|
+
# the name of the resource
|
653
|
+
# Corresponds to the JSON property `name`
|
654
|
+
# @return [String]
|
655
|
+
attr_accessor :name
|
656
|
+
|
657
|
+
# the service account accosiate with resource
|
658
|
+
# Corresponds to the JSON property `serviceAccount`
|
659
|
+
# @return [String]
|
660
|
+
attr_accessor :service_account
|
661
|
+
|
662
|
+
# the type of reresource
|
663
|
+
# Corresponds to the JSON property `type`
|
664
|
+
# @return [String]
|
665
|
+
attr_accessor :type
|
666
|
+
|
667
|
+
def initialize(**args)
|
668
|
+
update!(**args)
|
669
|
+
end
|
670
|
+
|
671
|
+
# Update properties of this object
|
672
|
+
def update!(**args)
|
673
|
+
@name = args[:name] if args.key?(:name)
|
674
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
675
|
+
@type = args[:type] if args.key?(:type)
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
422
679
|
# Message describing resource filters
|
423
680
|
class ResourceFilter
|
424
681
|
include Google::Apis::Core::Hashable
|
@@ -481,6 +738,120 @@ module Google
|
|
481
738
|
end
|
482
739
|
end
|
483
740
|
|
741
|
+
# Message represent a rule
|
742
|
+
class Rule
|
743
|
+
include Google::Apis::Core::Hashable
|
744
|
+
|
745
|
+
# descrite rule in plain language
|
746
|
+
# Corresponds to the JSON property `description`
|
747
|
+
# @return [String]
|
748
|
+
attr_accessor :description
|
749
|
+
|
750
|
+
# the name display in UI
|
751
|
+
# Corresponds to the JSON property `displayName`
|
752
|
+
# @return [String]
|
753
|
+
attr_accessor :display_name
|
754
|
+
|
755
|
+
# the message template for rule
|
756
|
+
# Corresponds to the JSON property `errorMessage`
|
757
|
+
# @return [String]
|
758
|
+
attr_accessor :error_message
|
759
|
+
|
760
|
+
# rule name
|
761
|
+
# Corresponds to the JSON property `name`
|
762
|
+
# @return [String]
|
763
|
+
attr_accessor :name
|
764
|
+
|
765
|
+
# the primary category
|
766
|
+
# Corresponds to the JSON property `primaryCategory`
|
767
|
+
# @return [String]
|
768
|
+
attr_accessor :primary_category
|
769
|
+
|
770
|
+
# the remediation for the rule
|
771
|
+
# Corresponds to the JSON property `remediation`
|
772
|
+
# @return [String]
|
773
|
+
attr_accessor :remediation
|
774
|
+
|
775
|
+
# Output only. the version of the rule
|
776
|
+
# Corresponds to the JSON property `revisionId`
|
777
|
+
# @return [String]
|
778
|
+
attr_accessor :revision_id
|
779
|
+
|
780
|
+
# the secondary category
|
781
|
+
# Corresponds to the JSON property `secondaryCategory`
|
782
|
+
# @return [String]
|
783
|
+
attr_accessor :secondary_category
|
784
|
+
|
785
|
+
# the severity of the rule
|
786
|
+
# Corresponds to the JSON property `severity`
|
787
|
+
# @return [String]
|
788
|
+
attr_accessor :severity
|
789
|
+
|
790
|
+
# the docuement url for the rule
|
791
|
+
# Corresponds to the JSON property `uri`
|
792
|
+
# @return [String]
|
793
|
+
attr_accessor :uri
|
794
|
+
|
795
|
+
def initialize(**args)
|
796
|
+
update!(**args)
|
797
|
+
end
|
798
|
+
|
799
|
+
# Update properties of this object
|
800
|
+
def update!(**args)
|
801
|
+
@description = args[:description] if args.key?(:description)
|
802
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
803
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
804
|
+
@name = args[:name] if args.key?(:name)
|
805
|
+
@primary_category = args[:primary_category] if args.key?(:primary_category)
|
806
|
+
@remediation = args[:remediation] if args.key?(:remediation)
|
807
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
808
|
+
@secondary_category = args[:secondary_category] if args.key?(:secondary_category)
|
809
|
+
@severity = args[:severity] if args.key?(:severity)
|
810
|
+
@uri = args[:uri] if args.key?(:uri)
|
811
|
+
end
|
812
|
+
end
|
813
|
+
|
814
|
+
# Message for creating a Execution
|
815
|
+
class RunEvaluationRequest
|
816
|
+
include Google::Apis::Core::Hashable
|
817
|
+
|
818
|
+
# Message describing Execution object
|
819
|
+
# Corresponds to the JSON property `execution`
|
820
|
+
# @return [Google::Apis::WorkloadmanagerV1::Execution]
|
821
|
+
attr_accessor :execution
|
822
|
+
|
823
|
+
# Required. Id of the requesting object If auto-generating Id server-side,
|
824
|
+
# remove this field and execution_id from the method_signature of Create RPC
|
825
|
+
# Corresponds to the JSON property `executionId`
|
826
|
+
# @return [String]
|
827
|
+
attr_accessor :execution_id
|
828
|
+
|
829
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
830
|
+
# request ID so that if you must retry your request, the server will know to
|
831
|
+
# ignore the request if it has already been completed. The server will guarantee
|
832
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
833
|
+
# situation where you make an initial request and the request times out. If you
|
834
|
+
# make the request again with the same request ID, the server can check if
|
835
|
+
# original operation with the same request ID was received, and if so, will
|
836
|
+
# ignore the second request. This prevents clients from accidentally creating
|
837
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
838
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
839
|
+
# Corresponds to the JSON property `requestId`
|
840
|
+
# @return [String]
|
841
|
+
attr_accessor :request_id
|
842
|
+
|
843
|
+
def initialize(**args)
|
844
|
+
update!(**args)
|
845
|
+
end
|
846
|
+
|
847
|
+
# Update properties of this object
|
848
|
+
def update!(**args)
|
849
|
+
@execution = args[:execution] if args.key?(:execution)
|
850
|
+
@execution_id = args[:execution_id] if args.key?(:execution_id)
|
851
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
852
|
+
end
|
853
|
+
end
|
854
|
+
|
484
855
|
# The schema of SAP system discovery data.
|
485
856
|
class SapDiscovery
|
486
857
|
include Google::Apis::Core::Hashable
|
@@ -620,6 +991,11 @@ module Google
|
|
620
991
|
# @return [String]
|
621
992
|
attr_accessor :resource_kind
|
622
993
|
|
994
|
+
# Indicates whether this is a new, updated, or missing resource.
|
995
|
+
# Corresponds to the JSON property `resourceState`
|
996
|
+
# @return [String]
|
997
|
+
attr_accessor :resource_state
|
998
|
+
|
623
999
|
# The type of this resource.
|
624
1000
|
# Corresponds to the JSON property `resourceType`
|
625
1001
|
# @return [String]
|
@@ -643,6 +1019,7 @@ module Google
|
|
643
1019
|
def update!(**args)
|
644
1020
|
@related_resources = args[:related_resources] if args.key?(:related_resources)
|
645
1021
|
@resource_kind = args[:resource_kind] if args.key?(:resource_kind)
|
1022
|
+
@resource_state = args[:resource_state] if args.key?(:resource_state)
|
646
1023
|
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
647
1024
|
@resource_uri = args[:resource_uri] if args.key?(:resource_uri)
|
648
1025
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -694,6 +1071,25 @@ module Google
|
|
694
1071
|
end
|
695
1072
|
end
|
696
1073
|
|
1074
|
+
# Message of scanned resource
|
1075
|
+
class ScannedResource
|
1076
|
+
include Google::Apis::Core::Hashable
|
1077
|
+
|
1078
|
+
# resource name
|
1079
|
+
# Corresponds to the JSON property `resource`
|
1080
|
+
# @return [String]
|
1081
|
+
attr_accessor :resource
|
1082
|
+
|
1083
|
+
def initialize(**args)
|
1084
|
+
update!(**args)
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
# Update properties of this object
|
1088
|
+
def update!(**args)
|
1089
|
+
@resource = args[:resource] if args.key?(:resource)
|
1090
|
+
end
|
1091
|
+
end
|
1092
|
+
|
697
1093
|
# The `Status` type defines a logical error model that is suitable for different
|
698
1094
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
699
1095
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -733,6 +1129,37 @@ module Google
|
|
733
1129
|
end
|
734
1130
|
end
|
735
1131
|
|
1132
|
+
# Message describing the violdation in execution result
|
1133
|
+
class ViolationDetails
|
1134
|
+
include Google::Apis::Core::Hashable
|
1135
|
+
|
1136
|
+
# the name of asset
|
1137
|
+
# Corresponds to the JSON property `asset`
|
1138
|
+
# @return [String]
|
1139
|
+
attr_accessor :asset
|
1140
|
+
|
1141
|
+
# observed
|
1142
|
+
# Corresponds to the JSON property `observed`
|
1143
|
+
# @return [Hash<String,String>]
|
1144
|
+
attr_accessor :observed
|
1145
|
+
|
1146
|
+
# the service account associate with resource
|
1147
|
+
# Corresponds to the JSON property `serviceAccount`
|
1148
|
+
# @return [String]
|
1149
|
+
attr_accessor :service_account
|
1150
|
+
|
1151
|
+
def initialize(**args)
|
1152
|
+
update!(**args)
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# Update properties of this object
|
1156
|
+
def update!(**args)
|
1157
|
+
@asset = args[:asset] if args.key?(:asset)
|
1158
|
+
@observed = args[:observed] if args.key?(:observed)
|
1159
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
1160
|
+
end
|
1161
|
+
end
|
1162
|
+
|
736
1163
|
# Request for sending the data insights.
|
737
1164
|
class WriteInsightRequest
|
738
1165
|
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.
|
19
|
+
GEM_VERSION = "0.5.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230406"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,6 +40,18 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class Execution
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class ExecutionResult
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
43
55
|
class GceInstanceFilter
|
44
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
57
|
|
@@ -58,6 +70,18 @@ module Google
|
|
58
70
|
include Google::Apis::Core::JsonObjectSupport
|
59
71
|
end
|
60
72
|
|
73
|
+
class ListExecutionResultsResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ListExecutionsResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
61
85
|
class ListLocationsResponse
|
62
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
87
|
|
@@ -70,6 +94,18 @@ module Google
|
|
70
94
|
include Google::Apis::Core::JsonObjectSupport
|
71
95
|
end
|
72
96
|
|
97
|
+
class ListRulesResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class ListScannedResourcesResponse
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
73
109
|
class Location
|
74
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
111
|
|
@@ -88,6 +124,12 @@ module Google
|
|
88
124
|
include Google::Apis::Core::JsonObjectSupport
|
89
125
|
end
|
90
126
|
|
127
|
+
class Resource
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
91
133
|
class ResourceFilter
|
92
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
135
|
|
@@ -100,6 +142,18 @@ module Google
|
|
100
142
|
include Google::Apis::Core::JsonObjectSupport
|
101
143
|
end
|
102
144
|
|
145
|
+
class Rule
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class RunEvaluationRequest
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
103
157
|
class SapDiscovery
|
104
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
159
|
|
@@ -136,12 +190,24 @@ module Google
|
|
136
190
|
include Google::Apis::Core::JsonObjectSupport
|
137
191
|
end
|
138
192
|
|
193
|
+
class ScannedResource
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
139
199
|
class Status
|
140
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
201
|
|
142
202
|
include Google::Apis::Core::JsonObjectSupport
|
143
203
|
end
|
144
204
|
|
205
|
+
class ViolationDetails
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
145
211
|
class WriteInsightRequest
|
146
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
213
|
|
@@ -179,10 +245,39 @@ module Google
|
|
179
245
|
|
180
246
|
collection :rule_names, as: 'ruleNames'
|
181
247
|
collection :rule_versions, as: 'ruleVersions'
|
248
|
+
property :schedule, as: 'schedule'
|
182
249
|
property :update_time, as: 'updateTime'
|
183
250
|
end
|
184
251
|
end
|
185
252
|
|
253
|
+
class Execution
|
254
|
+
# @private
|
255
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
256
|
+
property :end_time, as: 'endTime'
|
257
|
+
property :evaluation_id, as: 'evaluationId'
|
258
|
+
property :inventory_time, as: 'inventoryTime'
|
259
|
+
hash :labels, as: 'labels'
|
260
|
+
property :name, as: 'name'
|
261
|
+
property :run_type, as: 'runType'
|
262
|
+
property :start_time, as: 'startTime'
|
263
|
+
property :state, as: 'state'
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
class ExecutionResult
|
268
|
+
# @private
|
269
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
270
|
+
property :documentation_url, as: 'documentationUrl'
|
271
|
+
property :resource, as: 'resource', class: Google::Apis::WorkloadmanagerV1::Resource, decorator: Google::Apis::WorkloadmanagerV1::Resource::Representation
|
272
|
+
|
273
|
+
property :rule, as: 'rule'
|
274
|
+
property :severity, as: 'severity'
|
275
|
+
property :violation_details, as: 'violationDetails', class: Google::Apis::WorkloadmanagerV1::ViolationDetails, decorator: Google::Apis::WorkloadmanagerV1::ViolationDetails::Representation
|
276
|
+
|
277
|
+
property :violation_message, as: 'violationMessage'
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
186
281
|
class GceInstanceFilter
|
187
282
|
# @private
|
188
283
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -211,6 +306,25 @@ module Google
|
|
211
306
|
end
|
212
307
|
end
|
213
308
|
|
309
|
+
class ListExecutionResultsResponse
|
310
|
+
# @private
|
311
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
312
|
+
collection :execution_results, as: 'executionResults', class: Google::Apis::WorkloadmanagerV1::ExecutionResult, decorator: Google::Apis::WorkloadmanagerV1::ExecutionResult::Representation
|
313
|
+
|
314
|
+
property :next_page_token, as: 'nextPageToken'
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
class ListExecutionsResponse
|
319
|
+
# @private
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
321
|
+
collection :executions, as: 'executions', class: Google::Apis::WorkloadmanagerV1::Execution, decorator: Google::Apis::WorkloadmanagerV1::Execution::Representation
|
322
|
+
|
323
|
+
property :next_page_token, as: 'nextPageToken'
|
324
|
+
collection :unreachable, as: 'unreachable'
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
214
328
|
class ListLocationsResponse
|
215
329
|
# @private
|
216
330
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -229,6 +343,24 @@ module Google
|
|
229
343
|
end
|
230
344
|
end
|
231
345
|
|
346
|
+
class ListRulesResponse
|
347
|
+
# @private
|
348
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
349
|
+
property :next_page_token, as: 'nextPageToken'
|
350
|
+
collection :rules, as: 'rules', class: Google::Apis::WorkloadmanagerV1::Rule, decorator: Google::Apis::WorkloadmanagerV1::Rule::Representation
|
351
|
+
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
355
|
+
class ListScannedResourcesResponse
|
356
|
+
# @private
|
357
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
358
|
+
property :next_page_token, as: 'nextPageToken'
|
359
|
+
collection :scanned_resources, as: 'scannedResources', class: Google::Apis::WorkloadmanagerV1::ScannedResource, decorator: Google::Apis::WorkloadmanagerV1::ScannedResource::Representation
|
360
|
+
|
361
|
+
end
|
362
|
+
end
|
363
|
+
|
232
364
|
class Location
|
233
365
|
# @private
|
234
366
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -265,6 +397,15 @@ module Google
|
|
265
397
|
end
|
266
398
|
end
|
267
399
|
|
400
|
+
class Resource
|
401
|
+
# @private
|
402
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
403
|
+
property :name, as: 'name'
|
404
|
+
property :service_account, as: 'serviceAccount'
|
405
|
+
property :type, as: 'type'
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
268
409
|
class ResourceFilter
|
269
410
|
# @private
|
270
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -284,6 +425,32 @@ module Google
|
|
284
425
|
end
|
285
426
|
end
|
286
427
|
|
428
|
+
class Rule
|
429
|
+
# @private
|
430
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
431
|
+
property :description, as: 'description'
|
432
|
+
property :display_name, as: 'displayName'
|
433
|
+
property :error_message, as: 'errorMessage'
|
434
|
+
property :name, as: 'name'
|
435
|
+
property :primary_category, as: 'primaryCategory'
|
436
|
+
property :remediation, as: 'remediation'
|
437
|
+
property :revision_id, as: 'revisionId'
|
438
|
+
property :secondary_category, as: 'secondaryCategory'
|
439
|
+
property :severity, as: 'severity'
|
440
|
+
property :uri, as: 'uri'
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
class RunEvaluationRequest
|
445
|
+
# @private
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
447
|
+
property :execution, as: 'execution', class: Google::Apis::WorkloadmanagerV1::Execution, decorator: Google::Apis::WorkloadmanagerV1::Execution::Representation
|
448
|
+
|
449
|
+
property :execution_id, as: 'executionId'
|
450
|
+
property :request_id, as: 'requestId'
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
287
454
|
class SapDiscovery
|
288
455
|
# @private
|
289
456
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -325,6 +492,7 @@ module Google
|
|
325
492
|
class Representation < Google::Apis::Core::JsonRepresentation
|
326
493
|
collection :related_resources, as: 'relatedResources'
|
327
494
|
property :resource_kind, as: 'resourceKind'
|
495
|
+
property :resource_state, as: 'resourceState'
|
328
496
|
property :resource_type, as: 'resourceType'
|
329
497
|
property :resource_uri, as: 'resourceUri'
|
330
498
|
property :update_time, as: 'updateTime'
|
@@ -347,6 +515,13 @@ module Google
|
|
347
515
|
end
|
348
516
|
end
|
349
517
|
|
518
|
+
class ScannedResource
|
519
|
+
# @private
|
520
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
521
|
+
property :resource, as: 'resource'
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
350
525
|
class Status
|
351
526
|
# @private
|
352
527
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -356,6 +531,15 @@ module Google
|
|
356
531
|
end
|
357
532
|
end
|
358
533
|
|
534
|
+
class ViolationDetails
|
535
|
+
# @private
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
537
|
+
property :asset, as: 'asset'
|
538
|
+
hash :observed, as: 'observed'
|
539
|
+
property :service_account, as: 'serviceAccount'
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
359
543
|
class WriteInsightRequest
|
360
544
|
# @private
|
361
545
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -244,6 +244,201 @@ module Google
|
|
244
244
|
execute_or_queue_command(command, &block)
|
245
245
|
end
|
246
246
|
|
247
|
+
# Gets details of a single Execution.
|
248
|
+
# @param [String] name
|
249
|
+
# Required. Name of the resource
|
250
|
+
# @param [String] fields
|
251
|
+
# Selector specifying which fields to include in a partial response.
|
252
|
+
# @param [String] quota_user
|
253
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
254
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
255
|
+
# @param [Google::Apis::RequestOptions] options
|
256
|
+
# Request-specific options
|
257
|
+
#
|
258
|
+
# @yield [result, err] Result & error if block supplied
|
259
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::Execution] parsed result object
|
260
|
+
# @yieldparam err [StandardError] error object if request failed
|
261
|
+
#
|
262
|
+
# @return [Google::Apis::WorkloadmanagerV1::Execution]
|
263
|
+
#
|
264
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
265
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
266
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
267
|
+
def get_project_location_evaluation_execution(name, fields: nil, quota_user: nil, options: nil, &block)
|
268
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
269
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::Execution::Representation
|
270
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::Execution
|
271
|
+
command.params['name'] = name unless name.nil?
|
272
|
+
command.query['fields'] = fields unless fields.nil?
|
273
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
274
|
+
execute_or_queue_command(command, &block)
|
275
|
+
end
|
276
|
+
|
277
|
+
# Lists Executions in a given project and location.
|
278
|
+
# @param [String] parent
|
279
|
+
# Required. The resource prefix of the Execution using the form: 'projects/`
|
280
|
+
# project`/locations/`location`/evaluations/`evaluation`'
|
281
|
+
# @param [String] filter
|
282
|
+
# Filtering results
|
283
|
+
# @param [String] order_by
|
284
|
+
# Field to sort by. See https://google.aip.dev/132#ordering for more details.
|
285
|
+
# @param [Fixnum] page_size
|
286
|
+
# Requested page size. Server may return fewer items than requested. If
|
287
|
+
# unspecified, server will pick an appropriate default.
|
288
|
+
# @param [String] page_token
|
289
|
+
# A token identifying a page of results the server should return.
|
290
|
+
# @param [String] fields
|
291
|
+
# Selector specifying which fields to include in a partial response.
|
292
|
+
# @param [String] quota_user
|
293
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
294
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
295
|
+
# @param [Google::Apis::RequestOptions] options
|
296
|
+
# Request-specific options
|
297
|
+
#
|
298
|
+
# @yield [result, err] Result & error if block supplied
|
299
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::ListExecutionsResponse] parsed result object
|
300
|
+
# @yieldparam err [StandardError] error object if request failed
|
301
|
+
#
|
302
|
+
# @return [Google::Apis::WorkloadmanagerV1::ListExecutionsResponse]
|
303
|
+
#
|
304
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
305
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
306
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
307
|
+
def list_project_location_evaluation_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
308
|
+
command = make_simple_command(:get, 'v1/{+parent}/executions', options)
|
309
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::ListExecutionsResponse::Representation
|
310
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::ListExecutionsResponse
|
311
|
+
command.params['parent'] = parent unless parent.nil?
|
312
|
+
command.query['filter'] = filter unless filter.nil?
|
313
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
314
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
315
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
316
|
+
command.query['fields'] = fields unless fields.nil?
|
317
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
318
|
+
execute_or_queue_command(command, &block)
|
319
|
+
end
|
320
|
+
|
321
|
+
# Creates a new Execution in a given project and location.
|
322
|
+
# @param [String] name
|
323
|
+
# Required. The resource name of the Execution using the form: 'projects/`
|
324
|
+
# project`/locations/`location`/evaluations/`evaluation`/executions/`execution`'
|
325
|
+
# @param [Google::Apis::WorkloadmanagerV1::RunEvaluationRequest] run_evaluation_request_object
|
326
|
+
# @param [String] fields
|
327
|
+
# Selector specifying which fields to include in a partial response.
|
328
|
+
# @param [String] quota_user
|
329
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
330
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
331
|
+
# @param [Google::Apis::RequestOptions] options
|
332
|
+
# Request-specific options
|
333
|
+
#
|
334
|
+
# @yield [result, err] Result & error if block supplied
|
335
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::Operation] parsed result object
|
336
|
+
# @yieldparam err [StandardError] error object if request failed
|
337
|
+
#
|
338
|
+
# @return [Google::Apis::WorkloadmanagerV1::Operation]
|
339
|
+
#
|
340
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
341
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
342
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
343
|
+
def run_execution_evaluation(name, run_evaluation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
344
|
+
command = make_simple_command(:post, 'v1/{+name}/executions:run', options)
|
345
|
+
command.request_representation = Google::Apis::WorkloadmanagerV1::RunEvaluationRequest::Representation
|
346
|
+
command.request_object = run_evaluation_request_object
|
347
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::Operation::Representation
|
348
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::Operation
|
349
|
+
command.params['name'] = name unless name.nil?
|
350
|
+
command.query['fields'] = fields unless fields.nil?
|
351
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
352
|
+
execute_or_queue_command(command, &block)
|
353
|
+
end
|
354
|
+
|
355
|
+
# List the running result of a single Execution.
|
356
|
+
# @param [String] parent
|
357
|
+
# Required. The execution results. Format: `parent`/evaluations/*/executions/*/
|
358
|
+
# results
|
359
|
+
# @param [String] filter
|
360
|
+
# Filtering results
|
361
|
+
# @param [Fixnum] page_size
|
362
|
+
# Requested page size. Server may return fewer items than requested. If
|
363
|
+
# unspecified, server will pick an appropriate default.
|
364
|
+
# @param [String] page_token
|
365
|
+
# A token identifying a page of results the server should return.
|
366
|
+
# @param [String] fields
|
367
|
+
# Selector specifying which fields to include in a partial response.
|
368
|
+
# @param [String] quota_user
|
369
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
370
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
371
|
+
# @param [Google::Apis::RequestOptions] options
|
372
|
+
# Request-specific options
|
373
|
+
#
|
374
|
+
# @yield [result, err] Result & error if block supplied
|
375
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::ListExecutionResultsResponse] parsed result object
|
376
|
+
# @yieldparam err [StandardError] error object if request failed
|
377
|
+
#
|
378
|
+
# @return [Google::Apis::WorkloadmanagerV1::ListExecutionResultsResponse]
|
379
|
+
#
|
380
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
381
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
382
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
383
|
+
def list_project_location_evaluation_execution_results(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
384
|
+
command = make_simple_command(:get, 'v1/{+parent}/results', options)
|
385
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::ListExecutionResultsResponse::Representation
|
386
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::ListExecutionResultsResponse
|
387
|
+
command.params['parent'] = parent unless parent.nil?
|
388
|
+
command.query['filter'] = filter unless filter.nil?
|
389
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
390
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
391
|
+
command.query['fields'] = fields unless fields.nil?
|
392
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
393
|
+
execute_or_queue_command(command, &block)
|
394
|
+
end
|
395
|
+
|
396
|
+
# List all scanned resources for a single Execution.
|
397
|
+
# @param [String] parent
|
398
|
+
# Required. parent for ListScannedResourcesRequest
|
399
|
+
# @param [String] filter
|
400
|
+
# Filtering results
|
401
|
+
# @param [String] order_by
|
402
|
+
# Field to sort by. See https://google.aip.dev/132#ordering for more details.
|
403
|
+
# @param [Fixnum] page_size
|
404
|
+
# Requested page size. Server may return fewer items than requested. If
|
405
|
+
# unspecified, server will pick an appropriate default.
|
406
|
+
# @param [String] page_token
|
407
|
+
# A token identifying a page of results the server should return.
|
408
|
+
# @param [String] rule
|
409
|
+
# rule name
|
410
|
+
# @param [String] fields
|
411
|
+
# Selector specifying which fields to include in a partial response.
|
412
|
+
# @param [String] quota_user
|
413
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
414
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
415
|
+
# @param [Google::Apis::RequestOptions] options
|
416
|
+
# Request-specific options
|
417
|
+
#
|
418
|
+
# @yield [result, err] Result & error if block supplied
|
419
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::ListScannedResourcesResponse] parsed result object
|
420
|
+
# @yieldparam err [StandardError] error object if request failed
|
421
|
+
#
|
422
|
+
# @return [Google::Apis::WorkloadmanagerV1::ListScannedResourcesResponse]
|
423
|
+
#
|
424
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
425
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
426
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
427
|
+
def list_project_location_evaluation_execution_scanned_resources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, rule: nil, fields: nil, quota_user: nil, options: nil, &block)
|
428
|
+
command = make_simple_command(:get, 'v1/{+parent}/scannedResources', options)
|
429
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::ListScannedResourcesResponse::Representation
|
430
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::ListScannedResourcesResponse
|
431
|
+
command.params['parent'] = parent unless parent.nil?
|
432
|
+
command.query['filter'] = filter unless filter.nil?
|
433
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
434
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
435
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
436
|
+
command.query['rule'] = rule unless rule.nil?
|
437
|
+
command.query['fields'] = fields unless fields.nil?
|
438
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
439
|
+
execute_or_queue_command(command, &block)
|
440
|
+
end
|
441
|
+
|
247
442
|
# Write the data insights to workload manager data warehouse.
|
248
443
|
# @param [String] location
|
249
444
|
# Required. The GCP location. The format is: projects/`project`/locations/`
|
@@ -383,13 +578,7 @@ module Google
|
|
383
578
|
end
|
384
579
|
|
385
580
|
# Lists operations that match the specified filter in the request. If the server
|
386
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
387
|
-
# binding allows API services to override the binding to use different resource
|
388
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
389
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
390
|
-
# service configuration. For backwards compatibility, the default name includes
|
391
|
-
# the operations collection id, however overriding users must ensure the name
|
392
|
-
# binding is the parent resource, without the operations collection id.
|
581
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
393
582
|
# @param [String] name
|
394
583
|
# The name of the operation's parent resource.
|
395
584
|
# @param [String] filter
|
@@ -427,6 +616,48 @@ module Google
|
|
427
616
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
428
617
|
execute_or_queue_command(command, &block)
|
429
618
|
end
|
619
|
+
|
620
|
+
# Lists rules in a given project.
|
621
|
+
# @param [String] parent
|
622
|
+
# Required. The [project] on which to execute the request. The format is:
|
623
|
+
# projects/`project_id`/locations/`location` Currently, the pre-defined rules
|
624
|
+
# are global available to all projects and all regions
|
625
|
+
# @param [String] filter
|
626
|
+
# Filter based on primary_category, secondary_category
|
627
|
+
# @param [Fixnum] page_size
|
628
|
+
# Requested page size. Server may return fewer items than requested. If
|
629
|
+
# unspecified, server will pick an appropriate default.
|
630
|
+
# @param [String] page_token
|
631
|
+
# A token identifying a page of results the server should return.
|
632
|
+
# @param [String] fields
|
633
|
+
# Selector specifying which fields to include in a partial response.
|
634
|
+
# @param [String] quota_user
|
635
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
636
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
637
|
+
# @param [Google::Apis::RequestOptions] options
|
638
|
+
# Request-specific options
|
639
|
+
#
|
640
|
+
# @yield [result, err] Result & error if block supplied
|
641
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::ListRulesResponse] parsed result object
|
642
|
+
# @yieldparam err [StandardError] error object if request failed
|
643
|
+
#
|
644
|
+
# @return [Google::Apis::WorkloadmanagerV1::ListRulesResponse]
|
645
|
+
#
|
646
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
647
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
648
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
649
|
+
def list_project_location_rules(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
650
|
+
command = make_simple_command(:get, 'v1/{+parent}/rules', options)
|
651
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::ListRulesResponse::Representation
|
652
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::ListRulesResponse
|
653
|
+
command.params['parent'] = parent unless parent.nil?
|
654
|
+
command.query['filter'] = filter unless filter.nil?
|
655
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
656
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
657
|
+
command.query['fields'] = fields unless fields.nil?
|
658
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
659
|
+
execute_or_queue_command(command, &block)
|
660
|
+
end
|
430
661
|
|
431
662
|
protected
|
432
663
|
|
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.
|
4
|
+
version: 0.5.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: 2023-
|
11
|
+
date: 2023-04-16 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-workloadmanager_v1/v0.5.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: []
|