google-apis-workloadmanager_v1 0.4.0 → 0.6.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 +486 -1
- data/lib/google/apis/workloadmanager_v1/gem_version.rb +2 -2
- data/lib/google/apis/workloadmanager_v1/representations.rb +215 -0
- data/lib/google/apis/workloadmanager_v1/service.rb +237 -0
- 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: 94549fc7fde942cb278abec271838bff9bcab00c756bc958ace727310852dccc
|
4
|
+
data.tar.gz: 159ce15ac778a522edcf22a965c89da1a116c9af3f7ae38e2688d08d6576a1b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfffa5cf168aab779c6de0736714aa05ab870011545793c3dde514854ba3ee26f05769c406945c411bd3e0c4f85d3ebee68045dce955a53f2a00d5fc1d6174b3
|
7
|
+
data.tar.gz: 9bfed866de4a9082a218315ac94e6873755056094ea9964b7c15f6af5851bbbcdfc01b40828085a13f8af9a8f115fa6d54a7ded4af6d02ee6e604883c9cf93de
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-workloadmanager_v1
|
2
2
|
|
3
|
+
### v0.6.0 (2023-05-14)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230503
|
6
|
+
|
7
|
+
### v0.5.0 (2023-04-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230406
|
10
|
+
|
3
11
|
### v0.4.0 (2023-03-26)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230308
|
@@ -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
|
@@ -158,6 +276,12 @@ module Google
|
|
158
276
|
# @return [String]
|
159
277
|
attr_accessor :sent_time
|
160
278
|
|
279
|
+
# A presentation of SQLServer workload insight. The schema of SqlServer
|
280
|
+
# workloads validation related data.
|
281
|
+
# Corresponds to the JSON property `sqlserverValidation`
|
282
|
+
# @return [Google::Apis::WorkloadmanagerV1::SqlserverValidation]
|
283
|
+
attr_accessor :sqlserver_validation
|
284
|
+
|
161
285
|
def initialize(**args)
|
162
286
|
update!(**args)
|
163
287
|
end
|
@@ -167,6 +291,7 @@ module Google
|
|
167
291
|
@sap_discovery = args[:sap_discovery] if args.key?(:sap_discovery)
|
168
292
|
@sap_validation = args[:sap_validation] if args.key?(:sap_validation)
|
169
293
|
@sent_time = args[:sent_time] if args.key?(:sent_time)
|
294
|
+
@sqlserver_validation = args[:sqlserver_validation] if args.key?(:sqlserver_validation)
|
170
295
|
end
|
171
296
|
end
|
172
297
|
|
@@ -201,6 +326,63 @@ module Google
|
|
201
326
|
end
|
202
327
|
end
|
203
328
|
|
329
|
+
# Message for response of list execution results
|
330
|
+
class ListExecutionResultsResponse
|
331
|
+
include Google::Apis::Core::Hashable
|
332
|
+
|
333
|
+
# The versions from the specified publisher.
|
334
|
+
# Corresponds to the JSON property `executionResults`
|
335
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::ExecutionResult>]
|
336
|
+
attr_accessor :execution_results
|
337
|
+
|
338
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
339
|
+
# field is omitted, there are no subsequent pages.
|
340
|
+
# Corresponds to the JSON property `nextPageToken`
|
341
|
+
# @return [String]
|
342
|
+
attr_accessor :next_page_token
|
343
|
+
|
344
|
+
def initialize(**args)
|
345
|
+
update!(**args)
|
346
|
+
end
|
347
|
+
|
348
|
+
# Update properties of this object
|
349
|
+
def update!(**args)
|
350
|
+
@execution_results = args[:execution_results] if args.key?(:execution_results)
|
351
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
355
|
+
# Message for response to listing Executions
|
356
|
+
class ListExecutionsResponse
|
357
|
+
include Google::Apis::Core::Hashable
|
358
|
+
|
359
|
+
# The list of Execution
|
360
|
+
# Corresponds to the JSON property `executions`
|
361
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::Execution>]
|
362
|
+
attr_accessor :executions
|
363
|
+
|
364
|
+
# A token identifying a page of results the server should return.
|
365
|
+
# Corresponds to the JSON property `nextPageToken`
|
366
|
+
# @return [String]
|
367
|
+
attr_accessor :next_page_token
|
368
|
+
|
369
|
+
# Locations that could not be reached.
|
370
|
+
# Corresponds to the JSON property `unreachable`
|
371
|
+
# @return [Array<String>]
|
372
|
+
attr_accessor :unreachable
|
373
|
+
|
374
|
+
def initialize(**args)
|
375
|
+
update!(**args)
|
376
|
+
end
|
377
|
+
|
378
|
+
# Update properties of this object
|
379
|
+
def update!(**args)
|
380
|
+
@executions = args[:executions] if args.key?(:executions)
|
381
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
382
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
204
386
|
# The response message for Locations.ListLocations.
|
205
387
|
class ListLocationsResponse
|
206
388
|
include Google::Apis::Core::Hashable
|
@@ -251,7 +433,58 @@ module Google
|
|
251
433
|
end
|
252
434
|
end
|
253
435
|
|
254
|
-
#
|
436
|
+
# Mesesage of response of list rules
|
437
|
+
class ListRulesResponse
|
438
|
+
include Google::Apis::Core::Hashable
|
439
|
+
|
440
|
+
# A token identifying a page of results the server should return.
|
441
|
+
# Corresponds to the JSON property `nextPageToken`
|
442
|
+
# @return [String]
|
443
|
+
attr_accessor :next_page_token
|
444
|
+
|
445
|
+
# all rules in response
|
446
|
+
# Corresponds to the JSON property `rules`
|
447
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::Rule>]
|
448
|
+
attr_accessor :rules
|
449
|
+
|
450
|
+
def initialize(**args)
|
451
|
+
update!(**args)
|
452
|
+
end
|
453
|
+
|
454
|
+
# Update properties of this object
|
455
|
+
def update!(**args)
|
456
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
457
|
+
@rules = args[:rules] if args.key?(:rules)
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
# Message for response to list scanned resources
|
462
|
+
class ListScannedResourcesResponse
|
463
|
+
include Google::Apis::Core::Hashable
|
464
|
+
|
465
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
466
|
+
# field is omitted, there are no subsequent pages.
|
467
|
+
# Corresponds to the JSON property `nextPageToken`
|
468
|
+
# @return [String]
|
469
|
+
attr_accessor :next_page_token
|
470
|
+
|
471
|
+
# All scanned resources in response
|
472
|
+
# Corresponds to the JSON property `scannedResources`
|
473
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::ScannedResource>]
|
474
|
+
attr_accessor :scanned_resources
|
475
|
+
|
476
|
+
def initialize(**args)
|
477
|
+
update!(**args)
|
478
|
+
end
|
479
|
+
|
480
|
+
# Update properties of this object
|
481
|
+
def update!(**args)
|
482
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
483
|
+
@scanned_resources = args[:scanned_resources] if args.key?(:scanned_resources)
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
# A resource that represents a Google Cloud location.
|
255
488
|
class Location
|
256
489
|
include Google::Apis::Core::Hashable
|
257
490
|
|
@@ -419,6 +652,37 @@ module Google
|
|
419
652
|
end
|
420
653
|
end
|
421
654
|
|
655
|
+
# Message represent resource in execution result
|
656
|
+
class Resource
|
657
|
+
include Google::Apis::Core::Hashable
|
658
|
+
|
659
|
+
# the name of the resource
|
660
|
+
# Corresponds to the JSON property `name`
|
661
|
+
# @return [String]
|
662
|
+
attr_accessor :name
|
663
|
+
|
664
|
+
# the service account accosiate with resource
|
665
|
+
# Corresponds to the JSON property `serviceAccount`
|
666
|
+
# @return [String]
|
667
|
+
attr_accessor :service_account
|
668
|
+
|
669
|
+
# the type of reresource
|
670
|
+
# Corresponds to the JSON property `type`
|
671
|
+
# @return [String]
|
672
|
+
attr_accessor :type
|
673
|
+
|
674
|
+
def initialize(**args)
|
675
|
+
update!(**args)
|
676
|
+
end
|
677
|
+
|
678
|
+
# Update properties of this object
|
679
|
+
def update!(**args)
|
680
|
+
@name = args[:name] if args.key?(:name)
|
681
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
682
|
+
@type = args[:type] if args.key?(:type)
|
683
|
+
end
|
684
|
+
end
|
685
|
+
|
422
686
|
# Message describing resource filters
|
423
687
|
class ResourceFilter
|
424
688
|
include Google::Apis::Core::Hashable
|
@@ -481,6 +745,120 @@ module Google
|
|
481
745
|
end
|
482
746
|
end
|
483
747
|
|
748
|
+
# Message represent a rule
|
749
|
+
class Rule
|
750
|
+
include Google::Apis::Core::Hashable
|
751
|
+
|
752
|
+
# descrite rule in plain language
|
753
|
+
# Corresponds to the JSON property `description`
|
754
|
+
# @return [String]
|
755
|
+
attr_accessor :description
|
756
|
+
|
757
|
+
# the name display in UI
|
758
|
+
# Corresponds to the JSON property `displayName`
|
759
|
+
# @return [String]
|
760
|
+
attr_accessor :display_name
|
761
|
+
|
762
|
+
# the message template for rule
|
763
|
+
# Corresponds to the JSON property `errorMessage`
|
764
|
+
# @return [String]
|
765
|
+
attr_accessor :error_message
|
766
|
+
|
767
|
+
# rule name
|
768
|
+
# Corresponds to the JSON property `name`
|
769
|
+
# @return [String]
|
770
|
+
attr_accessor :name
|
771
|
+
|
772
|
+
# the primary category
|
773
|
+
# Corresponds to the JSON property `primaryCategory`
|
774
|
+
# @return [String]
|
775
|
+
attr_accessor :primary_category
|
776
|
+
|
777
|
+
# the remediation for the rule
|
778
|
+
# Corresponds to the JSON property `remediation`
|
779
|
+
# @return [String]
|
780
|
+
attr_accessor :remediation
|
781
|
+
|
782
|
+
# Output only. the version of the rule
|
783
|
+
# Corresponds to the JSON property `revisionId`
|
784
|
+
# @return [String]
|
785
|
+
attr_accessor :revision_id
|
786
|
+
|
787
|
+
# the secondary category
|
788
|
+
# Corresponds to the JSON property `secondaryCategory`
|
789
|
+
# @return [String]
|
790
|
+
attr_accessor :secondary_category
|
791
|
+
|
792
|
+
# the severity of the rule
|
793
|
+
# Corresponds to the JSON property `severity`
|
794
|
+
# @return [String]
|
795
|
+
attr_accessor :severity
|
796
|
+
|
797
|
+
# the docuement url for the rule
|
798
|
+
# Corresponds to the JSON property `uri`
|
799
|
+
# @return [String]
|
800
|
+
attr_accessor :uri
|
801
|
+
|
802
|
+
def initialize(**args)
|
803
|
+
update!(**args)
|
804
|
+
end
|
805
|
+
|
806
|
+
# Update properties of this object
|
807
|
+
def update!(**args)
|
808
|
+
@description = args[:description] if args.key?(:description)
|
809
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
810
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
811
|
+
@name = args[:name] if args.key?(:name)
|
812
|
+
@primary_category = args[:primary_category] if args.key?(:primary_category)
|
813
|
+
@remediation = args[:remediation] if args.key?(:remediation)
|
814
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
815
|
+
@secondary_category = args[:secondary_category] if args.key?(:secondary_category)
|
816
|
+
@severity = args[:severity] if args.key?(:severity)
|
817
|
+
@uri = args[:uri] if args.key?(:uri)
|
818
|
+
end
|
819
|
+
end
|
820
|
+
|
821
|
+
# Message for creating a Execution
|
822
|
+
class RunEvaluationRequest
|
823
|
+
include Google::Apis::Core::Hashable
|
824
|
+
|
825
|
+
# Message describing Execution object
|
826
|
+
# Corresponds to the JSON property `execution`
|
827
|
+
# @return [Google::Apis::WorkloadmanagerV1::Execution]
|
828
|
+
attr_accessor :execution
|
829
|
+
|
830
|
+
# Required. Id of the requesting object If auto-generating Id server-side,
|
831
|
+
# remove this field and execution_id from the method_signature of Create RPC
|
832
|
+
# Corresponds to the JSON property `executionId`
|
833
|
+
# @return [String]
|
834
|
+
attr_accessor :execution_id
|
835
|
+
|
836
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
837
|
+
# request ID so that if you must retry your request, the server will know to
|
838
|
+
# ignore the request if it has already been completed. The server will guarantee
|
839
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
840
|
+
# situation where you make an initial request and the request times out. If you
|
841
|
+
# make the request again with the same request ID, the server can check if
|
842
|
+
# original operation with the same request ID was received, and if so, will
|
843
|
+
# ignore the second request. This prevents clients from accidentally creating
|
844
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
845
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
846
|
+
# Corresponds to the JSON property `requestId`
|
847
|
+
# @return [String]
|
848
|
+
attr_accessor :request_id
|
849
|
+
|
850
|
+
def initialize(**args)
|
851
|
+
update!(**args)
|
852
|
+
end
|
853
|
+
|
854
|
+
# Update properties of this object
|
855
|
+
def update!(**args)
|
856
|
+
@execution = args[:execution] if args.key?(:execution)
|
857
|
+
@execution_id = args[:execution_id] if args.key?(:execution_id)
|
858
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
859
|
+
end
|
860
|
+
end
|
861
|
+
|
484
862
|
# The schema of SAP system discovery data.
|
485
863
|
class SapDiscovery
|
486
864
|
include Google::Apis::Core::Hashable
|
@@ -694,6 +1072,82 @@ module Google
|
|
694
1072
|
end
|
695
1073
|
end
|
696
1074
|
|
1075
|
+
# Message of scanned resource
|
1076
|
+
class ScannedResource
|
1077
|
+
include Google::Apis::Core::Hashable
|
1078
|
+
|
1079
|
+
# resource name
|
1080
|
+
# Corresponds to the JSON property `resource`
|
1081
|
+
# @return [String]
|
1082
|
+
attr_accessor :resource
|
1083
|
+
|
1084
|
+
def initialize(**args)
|
1085
|
+
update!(**args)
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# Update properties of this object
|
1089
|
+
def update!(**args)
|
1090
|
+
@resource = args[:resource] if args.key?(:resource)
|
1091
|
+
end
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
# A presentation of SQLServer workload insight. The schema of SqlServer
|
1095
|
+
# workloads validation related data.
|
1096
|
+
class SqlserverValidation
|
1097
|
+
include Google::Apis::Core::Hashable
|
1098
|
+
|
1099
|
+
# The agent version collected this data point
|
1100
|
+
# Corresponds to the JSON property `agentVersion`
|
1101
|
+
# @return [String]
|
1102
|
+
attr_accessor :agent_version
|
1103
|
+
|
1104
|
+
# A list of SqlServer validation metrics data.
|
1105
|
+
# Corresponds to the JSON property `validationDetails`
|
1106
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::SqlserverValidationValidationDetail>]
|
1107
|
+
attr_accessor :validation_details
|
1108
|
+
|
1109
|
+
def initialize(**args)
|
1110
|
+
update!(**args)
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
# Update properties of this object
|
1114
|
+
def update!(**args)
|
1115
|
+
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
1116
|
+
@validation_details = args[:validation_details] if args.key?(:validation_details)
|
1117
|
+
end
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# Message describing the Sqlserver validation metrics.
|
1121
|
+
class SqlserverValidationValidationDetail
|
1122
|
+
include Google::Apis::Core::Hashable
|
1123
|
+
|
1124
|
+
# The pairs of metrics data: field name & field value.
|
1125
|
+
# Corresponds to the JSON property `details`
|
1126
|
+
# @return [Hash<String,String>]
|
1127
|
+
attr_accessor :details
|
1128
|
+
|
1129
|
+
# The instance id where the ValidationDetail is generated from
|
1130
|
+
# Corresponds to the JSON property `instanceId`
|
1131
|
+
# @return [String]
|
1132
|
+
attr_accessor :instance_id
|
1133
|
+
|
1134
|
+
# The Sqlserver system that the validation data is from.
|
1135
|
+
# Corresponds to the JSON property `type`
|
1136
|
+
# @return [String]
|
1137
|
+
attr_accessor :type
|
1138
|
+
|
1139
|
+
def initialize(**args)
|
1140
|
+
update!(**args)
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
# Update properties of this object
|
1144
|
+
def update!(**args)
|
1145
|
+
@details = args[:details] if args.key?(:details)
|
1146
|
+
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
1147
|
+
@type = args[:type] if args.key?(:type)
|
1148
|
+
end
|
1149
|
+
end
|
1150
|
+
|
697
1151
|
# The `Status` type defines a logical error model that is suitable for different
|
698
1152
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
699
1153
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -733,6 +1187,37 @@ module Google
|
|
733
1187
|
end
|
734
1188
|
end
|
735
1189
|
|
1190
|
+
# Message describing the violdation in execution result
|
1191
|
+
class ViolationDetails
|
1192
|
+
include Google::Apis::Core::Hashable
|
1193
|
+
|
1194
|
+
# the name of asset
|
1195
|
+
# Corresponds to the JSON property `asset`
|
1196
|
+
# @return [String]
|
1197
|
+
attr_accessor :asset
|
1198
|
+
|
1199
|
+
# observed
|
1200
|
+
# Corresponds to the JSON property `observed`
|
1201
|
+
# @return [Hash<String,String>]
|
1202
|
+
attr_accessor :observed
|
1203
|
+
|
1204
|
+
# the service account associate with resource
|
1205
|
+
# Corresponds to the JSON property `serviceAccount`
|
1206
|
+
# @return [String]
|
1207
|
+
attr_accessor :service_account
|
1208
|
+
|
1209
|
+
def initialize(**args)
|
1210
|
+
update!(**args)
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
# Update properties of this object
|
1214
|
+
def update!(**args)
|
1215
|
+
@asset = args[:asset] if args.key?(:asset)
|
1216
|
+
@observed = args[:observed] if args.key?(:observed)
|
1217
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
1218
|
+
end
|
1219
|
+
end
|
1220
|
+
|
736
1221
|
# Request for sending the data insights.
|
737
1222
|
class WriteInsightRequest
|
738
1223
|
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.6.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 = "20230503"
|
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,36 @@ 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
|
+
|
199
|
+
class SqlserverValidation
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class SqlserverValidationValidationDetail
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
139
211
|
class Status
|
140
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
213
|
|
142
214
|
include Google::Apis::Core::JsonObjectSupport
|
143
215
|
end
|
144
216
|
|
217
|
+
class ViolationDetails
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
145
223
|
class WriteInsightRequest
|
146
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
225
|
|
@@ -179,10 +257,39 @@ module Google
|
|
179
257
|
|
180
258
|
collection :rule_names, as: 'ruleNames'
|
181
259
|
collection :rule_versions, as: 'ruleVersions'
|
260
|
+
property :schedule, as: 'schedule'
|
182
261
|
property :update_time, as: 'updateTime'
|
183
262
|
end
|
184
263
|
end
|
185
264
|
|
265
|
+
class Execution
|
266
|
+
# @private
|
267
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
268
|
+
property :end_time, as: 'endTime'
|
269
|
+
property :evaluation_id, as: 'evaluationId'
|
270
|
+
property :inventory_time, as: 'inventoryTime'
|
271
|
+
hash :labels, as: 'labels'
|
272
|
+
property :name, as: 'name'
|
273
|
+
property :run_type, as: 'runType'
|
274
|
+
property :start_time, as: 'startTime'
|
275
|
+
property :state, as: 'state'
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
class ExecutionResult
|
280
|
+
# @private
|
281
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
282
|
+
property :documentation_url, as: 'documentationUrl'
|
283
|
+
property :resource, as: 'resource', class: Google::Apis::WorkloadmanagerV1::Resource, decorator: Google::Apis::WorkloadmanagerV1::Resource::Representation
|
284
|
+
|
285
|
+
property :rule, as: 'rule'
|
286
|
+
property :severity, as: 'severity'
|
287
|
+
property :violation_details, as: 'violationDetails', class: Google::Apis::WorkloadmanagerV1::ViolationDetails, decorator: Google::Apis::WorkloadmanagerV1::ViolationDetails::Representation
|
288
|
+
|
289
|
+
property :violation_message, as: 'violationMessage'
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
186
293
|
class GceInstanceFilter
|
187
294
|
# @private
|
188
295
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -198,6 +305,8 @@ module Google
|
|
198
305
|
property :sap_validation, as: 'sapValidation', class: Google::Apis::WorkloadmanagerV1::SapValidation, decorator: Google::Apis::WorkloadmanagerV1::SapValidation::Representation
|
199
306
|
|
200
307
|
property :sent_time, as: 'sentTime'
|
308
|
+
property :sqlserver_validation, as: 'sqlserverValidation', class: Google::Apis::WorkloadmanagerV1::SqlserverValidation, decorator: Google::Apis::WorkloadmanagerV1::SqlserverValidation::Representation
|
309
|
+
|
201
310
|
end
|
202
311
|
end
|
203
312
|
|
@@ -211,6 +320,25 @@ module Google
|
|
211
320
|
end
|
212
321
|
end
|
213
322
|
|
323
|
+
class ListExecutionResultsResponse
|
324
|
+
# @private
|
325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
326
|
+
collection :execution_results, as: 'executionResults', class: Google::Apis::WorkloadmanagerV1::ExecutionResult, decorator: Google::Apis::WorkloadmanagerV1::ExecutionResult::Representation
|
327
|
+
|
328
|
+
property :next_page_token, as: 'nextPageToken'
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
class ListExecutionsResponse
|
333
|
+
# @private
|
334
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
335
|
+
collection :executions, as: 'executions', class: Google::Apis::WorkloadmanagerV1::Execution, decorator: Google::Apis::WorkloadmanagerV1::Execution::Representation
|
336
|
+
|
337
|
+
property :next_page_token, as: 'nextPageToken'
|
338
|
+
collection :unreachable, as: 'unreachable'
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
214
342
|
class ListLocationsResponse
|
215
343
|
# @private
|
216
344
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -229,6 +357,24 @@ module Google
|
|
229
357
|
end
|
230
358
|
end
|
231
359
|
|
360
|
+
class ListRulesResponse
|
361
|
+
# @private
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
363
|
+
property :next_page_token, as: 'nextPageToken'
|
364
|
+
collection :rules, as: 'rules', class: Google::Apis::WorkloadmanagerV1::Rule, decorator: Google::Apis::WorkloadmanagerV1::Rule::Representation
|
365
|
+
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
class ListScannedResourcesResponse
|
370
|
+
# @private
|
371
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
372
|
+
property :next_page_token, as: 'nextPageToken'
|
373
|
+
collection :scanned_resources, as: 'scannedResources', class: Google::Apis::WorkloadmanagerV1::ScannedResource, decorator: Google::Apis::WorkloadmanagerV1::ScannedResource::Representation
|
374
|
+
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
232
378
|
class Location
|
233
379
|
# @private
|
234
380
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -265,6 +411,15 @@ module Google
|
|
265
411
|
end
|
266
412
|
end
|
267
413
|
|
414
|
+
class Resource
|
415
|
+
# @private
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
417
|
+
property :name, as: 'name'
|
418
|
+
property :service_account, as: 'serviceAccount'
|
419
|
+
property :type, as: 'type'
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
268
423
|
class ResourceFilter
|
269
424
|
# @private
|
270
425
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -284,6 +439,32 @@ module Google
|
|
284
439
|
end
|
285
440
|
end
|
286
441
|
|
442
|
+
class Rule
|
443
|
+
# @private
|
444
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
445
|
+
property :description, as: 'description'
|
446
|
+
property :display_name, as: 'displayName'
|
447
|
+
property :error_message, as: 'errorMessage'
|
448
|
+
property :name, as: 'name'
|
449
|
+
property :primary_category, as: 'primaryCategory'
|
450
|
+
property :remediation, as: 'remediation'
|
451
|
+
property :revision_id, as: 'revisionId'
|
452
|
+
property :secondary_category, as: 'secondaryCategory'
|
453
|
+
property :severity, as: 'severity'
|
454
|
+
property :uri, as: 'uri'
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
class RunEvaluationRequest
|
459
|
+
# @private
|
460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
461
|
+
property :execution, as: 'execution', class: Google::Apis::WorkloadmanagerV1::Execution, decorator: Google::Apis::WorkloadmanagerV1::Execution::Representation
|
462
|
+
|
463
|
+
property :execution_id, as: 'executionId'
|
464
|
+
property :request_id, as: 'requestId'
|
465
|
+
end
|
466
|
+
end
|
467
|
+
|
287
468
|
class SapDiscovery
|
288
469
|
# @private
|
289
470
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -347,6 +528,31 @@ module Google
|
|
347
528
|
end
|
348
529
|
end
|
349
530
|
|
531
|
+
class ScannedResource
|
532
|
+
# @private
|
533
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
534
|
+
property :resource, as: 'resource'
|
535
|
+
end
|
536
|
+
end
|
537
|
+
|
538
|
+
class SqlserverValidation
|
539
|
+
# @private
|
540
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
541
|
+
property :agent_version, as: 'agentVersion'
|
542
|
+
collection :validation_details, as: 'validationDetails', class: Google::Apis::WorkloadmanagerV1::SqlserverValidationValidationDetail, decorator: Google::Apis::WorkloadmanagerV1::SqlserverValidationValidationDetail::Representation
|
543
|
+
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
547
|
+
class SqlserverValidationValidationDetail
|
548
|
+
# @private
|
549
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
550
|
+
hash :details, as: 'details'
|
551
|
+
property :instance_id, as: 'instanceId'
|
552
|
+
property :type, as: 'type'
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
350
556
|
class Status
|
351
557
|
# @private
|
352
558
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -356,6 +562,15 @@ module Google
|
|
356
562
|
end
|
357
563
|
end
|
358
564
|
|
565
|
+
class ViolationDetails
|
566
|
+
# @private
|
567
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
568
|
+
property :asset, as: 'asset'
|
569
|
+
hash :observed, as: 'observed'
|
570
|
+
property :service_account, as: 'serviceAccount'
|
571
|
+
end
|
572
|
+
end
|
573
|
+
|
359
574
|
class WriteInsightRequest
|
360
575
|
# @private
|
361
576
|
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/`
|
@@ -421,6 +616,48 @@ module Google
|
|
421
616
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
422
617
|
execute_or_queue_command(command, &block)
|
423
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
|
424
661
|
|
425
662
|
protected
|
426
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.6.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-05-14 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.6.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: []
|