google-apis-workloadmanager_v1 0.5.0 → 0.7.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 +78 -12
- data/lib/google/apis/workloadmanager_v1/gem_version.rb +2 -2
- data/lib/google/apis/workloadmanager_v1/representations.rb +33 -1
- data/lib/google/apis/workloadmanager_v1/service.rb +4 -1
- 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: 2256f724ff91b9a9f7bb9a819b4547a36d633e6771676e17cacaad80acb27968
|
4
|
+
data.tar.gz: 9e71f7c5d412fd26765e18e152e347fa0f0d6995b52c1e5bb7fe9b7f6ba03eb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 134c9c6e7c28164e9c7a38c407669d3d96b9e54ebb16cb25b1e3a100bf31753fcfc0a6f3e35cca77650a88fa86b306be35afbd1ea12382c714b3d12d10c00ab0
|
7
|
+
data.tar.gz: a8bb755b890602e3d96987a4bf3bbb7091d872519a16e3a3fdf66ce6e63fb906f3ea85c0e7e30c7b8670ccd3e331e846a1775d1fbda148e76a6ee38d78caf6cc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-workloadmanager_v1
|
2
2
|
|
3
|
+
### v0.7.0 (2023-06-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230605
|
6
|
+
|
7
|
+
### v0.6.0 (2023-05-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230503
|
10
|
+
|
3
11
|
### v0.5.0 (2023-04-16)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230406
|
@@ -51,7 +51,7 @@ module Google
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
# Message describing Evaluation object
|
54
|
+
# LINT.IfChange Message describing Evaluation object
|
55
55
|
class Evaluation
|
56
56
|
include Google::Apis::Core::Hashable
|
57
57
|
|
@@ -60,6 +60,11 @@ module Google
|
|
60
60
|
# @return [String]
|
61
61
|
attr_accessor :create_time
|
62
62
|
|
63
|
+
# The Cloud Storage bucket name for custom rules.
|
64
|
+
# Corresponds to the JSON property `customRulesBucket`
|
65
|
+
# @return [String]
|
66
|
+
attr_accessor :custom_rules_bucket
|
67
|
+
|
63
68
|
# Description of the Evaluation
|
64
69
|
# Corresponds to the JSON property `description`
|
65
70
|
# @return [String]
|
@@ -96,7 +101,9 @@ module Google
|
|
96
101
|
# @return [Array<String>]
|
97
102
|
attr_accessor :rule_versions
|
98
103
|
|
99
|
-
# crontab format schedule for scheduled evaluation,
|
104
|
+
# crontab format schedule for scheduled evaluation, currently only support the
|
105
|
+
# following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *"
|
106
|
+
# , "0 0 */7 * *",
|
100
107
|
# Corresponds to the JSON property `schedule`
|
101
108
|
# @return [String]
|
102
109
|
attr_accessor :schedule
|
@@ -113,6 +120,7 @@ module Google
|
|
113
120
|
# Update properties of this object
|
114
121
|
def update!(**args)
|
115
122
|
@create_time = args[:create_time] if args.key?(:create_time)
|
123
|
+
@custom_rules_bucket = args[:custom_rules_bucket] if args.key?(:custom_rules_bucket)
|
116
124
|
@description = args[:description] if args.key?(:description)
|
117
125
|
@labels = args[:labels] if args.key?(:labels)
|
118
126
|
@name = args[:name] if args.key?(:name)
|
@@ -260,7 +268,12 @@ module Google
|
|
260
268
|
class Insight
|
261
269
|
include Google::Apis::Core::Hashable
|
262
270
|
|
263
|
-
# The
|
271
|
+
# Required. The instance id where the insight is generated from
|
272
|
+
# Corresponds to the JSON property `instanceId`
|
273
|
+
# @return [String]
|
274
|
+
attr_accessor :instance_id
|
275
|
+
|
276
|
+
# LINT.IfChange The schema of SAP system discovery data.
|
264
277
|
# Corresponds to the JSON property `sapDiscovery`
|
265
278
|
# @return [Google::Apis::WorkloadmanagerV1::SapDiscovery]
|
266
279
|
attr_accessor :sap_discovery
|
@@ -276,15 +289,23 @@ module Google
|
|
276
289
|
# @return [String]
|
277
290
|
attr_accessor :sent_time
|
278
291
|
|
292
|
+
# A presentation of SQLServer workload insight. The schema of SqlServer
|
293
|
+
# workloads validation related data.
|
294
|
+
# Corresponds to the JSON property `sqlserverValidation`
|
295
|
+
# @return [Google::Apis::WorkloadmanagerV1::SqlserverValidation]
|
296
|
+
attr_accessor :sqlserver_validation
|
297
|
+
|
279
298
|
def initialize(**args)
|
280
299
|
update!(**args)
|
281
300
|
end
|
282
301
|
|
283
302
|
# Update properties of this object
|
284
303
|
def update!(**args)
|
304
|
+
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
285
305
|
@sap_discovery = args[:sap_discovery] if args.key?(:sap_discovery)
|
286
306
|
@sap_validation = args[:sap_validation] if args.key?(:sap_validation)
|
287
307
|
@sent_time = args[:sent_time] if args.key?(:sent_time)
|
308
|
+
@sqlserver_validation = args[:sqlserver_validation] if args.key?(:sqlserver_validation)
|
288
309
|
end
|
289
310
|
end
|
290
311
|
|
@@ -477,7 +498,7 @@ module Google
|
|
477
498
|
end
|
478
499
|
end
|
479
500
|
|
480
|
-
# A resource that represents Google Cloud
|
501
|
+
# A resource that represents a Google Cloud location.
|
481
502
|
class Location
|
482
503
|
include Google::Apis::Core::Hashable
|
483
504
|
|
@@ -717,7 +738,7 @@ module Google
|
|
717
738
|
class ResourceStatus
|
718
739
|
include Google::Apis::Core::Hashable
|
719
740
|
|
720
|
-
# the new version of rule id if exists
|
741
|
+
# Historical: Used before 2023-05-22 the new version of rule id if exists
|
721
742
|
# Corresponds to the JSON property `rulesNewerVersions`
|
722
743
|
# @return [Array<String>]
|
723
744
|
attr_accessor :rules_newer_versions
|
@@ -852,7 +873,7 @@ module Google
|
|
852
873
|
end
|
853
874
|
end
|
854
875
|
|
855
|
-
# The schema of SAP system discovery data.
|
876
|
+
# LINT.IfChange The schema of SAP system discovery data.
|
856
877
|
class SapDiscovery
|
857
878
|
include Google::Apis::Core::Hashable
|
858
879
|
|
@@ -991,11 +1012,6 @@ module Google
|
|
991
1012
|
# @return [String]
|
992
1013
|
attr_accessor :resource_kind
|
993
1014
|
|
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
|
-
|
999
1015
|
# The type of this resource.
|
1000
1016
|
# Corresponds to the JSON property `resourceType`
|
1001
1017
|
# @return [String]
|
@@ -1019,7 +1035,6 @@ module Google
|
|
1019
1035
|
def update!(**args)
|
1020
1036
|
@related_resources = args[:related_resources] if args.key?(:related_resources)
|
1021
1037
|
@resource_kind = args[:resource_kind] if args.key?(:resource_kind)
|
1022
|
-
@resource_state = args[:resource_state] if args.key?(:resource_state)
|
1023
1038
|
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
1024
1039
|
@resource_uri = args[:resource_uri] if args.key?(:resource_uri)
|
1025
1040
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -1090,6 +1105,57 @@ module Google
|
|
1090
1105
|
end
|
1091
1106
|
end
|
1092
1107
|
|
1108
|
+
# A presentation of SQLServer workload insight. The schema of SqlServer
|
1109
|
+
# workloads validation related data.
|
1110
|
+
class SqlserverValidation
|
1111
|
+
include Google::Apis::Core::Hashable
|
1112
|
+
|
1113
|
+
# The agent version collected this data point
|
1114
|
+
# Corresponds to the JSON property `agentVersion`
|
1115
|
+
# @return [String]
|
1116
|
+
attr_accessor :agent_version
|
1117
|
+
|
1118
|
+
# A list of SqlServer validation metrics data.
|
1119
|
+
# Corresponds to the JSON property `validationDetails`
|
1120
|
+
# @return [Array<Google::Apis::WorkloadmanagerV1::SqlserverValidationValidationDetail>]
|
1121
|
+
attr_accessor :validation_details
|
1122
|
+
|
1123
|
+
def initialize(**args)
|
1124
|
+
update!(**args)
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
# Update properties of this object
|
1128
|
+
def update!(**args)
|
1129
|
+
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
1130
|
+
@validation_details = args[:validation_details] if args.key?(:validation_details)
|
1131
|
+
end
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
# Message describing the Sqlserver validation metrics.
|
1135
|
+
class SqlserverValidationValidationDetail
|
1136
|
+
include Google::Apis::Core::Hashable
|
1137
|
+
|
1138
|
+
# pairs of metrics data: column name & column value.
|
1139
|
+
# Corresponds to the JSON property `fields`
|
1140
|
+
# @return [Hash<String,String>]
|
1141
|
+
attr_accessor :fields
|
1142
|
+
|
1143
|
+
# The Sqlserver system that the validation data is from.
|
1144
|
+
# Corresponds to the JSON property `type`
|
1145
|
+
# @return [String]
|
1146
|
+
attr_accessor :type
|
1147
|
+
|
1148
|
+
def initialize(**args)
|
1149
|
+
update!(**args)
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
# Update properties of this object
|
1153
|
+
def update!(**args)
|
1154
|
+
@fields = args[:fields] if args.key?(:fields)
|
1155
|
+
@type = args[:type] if args.key?(:type)
|
1156
|
+
end
|
1157
|
+
end
|
1158
|
+
|
1093
1159
|
# The `Status` type defines a logical error model that is suitable for different
|
1094
1160
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1095
1161
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -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.7.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 = "20230605"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -196,6 +196,18 @@ module Google
|
|
196
196
|
include Google::Apis::Core::JsonObjectSupport
|
197
197
|
end
|
198
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
|
+
|
199
211
|
class Status
|
200
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
213
|
|
@@ -236,6 +248,7 @@ module Google
|
|
236
248
|
# @private
|
237
249
|
class Representation < Google::Apis::Core::JsonRepresentation
|
238
250
|
property :create_time, as: 'createTime'
|
251
|
+
property :custom_rules_bucket, as: 'customRulesBucket'
|
239
252
|
property :description, as: 'description'
|
240
253
|
hash :labels, as: 'labels'
|
241
254
|
property :name, as: 'name'
|
@@ -288,11 +301,14 @@ module Google
|
|
288
301
|
class Insight
|
289
302
|
# @private
|
290
303
|
class Representation < Google::Apis::Core::JsonRepresentation
|
304
|
+
property :instance_id, as: 'instanceId'
|
291
305
|
property :sap_discovery, as: 'sapDiscovery', class: Google::Apis::WorkloadmanagerV1::SapDiscovery, decorator: Google::Apis::WorkloadmanagerV1::SapDiscovery::Representation
|
292
306
|
|
293
307
|
property :sap_validation, as: 'sapValidation', class: Google::Apis::WorkloadmanagerV1::SapValidation, decorator: Google::Apis::WorkloadmanagerV1::SapValidation::Representation
|
294
308
|
|
295
309
|
property :sent_time, as: 'sentTime'
|
310
|
+
property :sqlserver_validation, as: 'sqlserverValidation', class: Google::Apis::WorkloadmanagerV1::SqlserverValidation, decorator: Google::Apis::WorkloadmanagerV1::SqlserverValidation::Representation
|
311
|
+
|
296
312
|
end
|
297
313
|
end
|
298
314
|
|
@@ -492,7 +508,6 @@ module Google
|
|
492
508
|
class Representation < Google::Apis::Core::JsonRepresentation
|
493
509
|
collection :related_resources, as: 'relatedResources'
|
494
510
|
property :resource_kind, as: 'resourceKind'
|
495
|
-
property :resource_state, as: 'resourceState'
|
496
511
|
property :resource_type, as: 'resourceType'
|
497
512
|
property :resource_uri, as: 'resourceUri'
|
498
513
|
property :update_time, as: 'updateTime'
|
@@ -522,6 +537,23 @@ module Google
|
|
522
537
|
end
|
523
538
|
end
|
524
539
|
|
540
|
+
class SqlserverValidation
|
541
|
+
# @private
|
542
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
543
|
+
property :agent_version, as: 'agentVersion'
|
544
|
+
collection :validation_details, as: 'validationDetails', class: Google::Apis::WorkloadmanagerV1::SqlserverValidationValidationDetail, decorator: Google::Apis::WorkloadmanagerV1::SqlserverValidationValidationDetail::Representation
|
545
|
+
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
549
|
+
class SqlserverValidationValidationDetail
|
550
|
+
# @private
|
551
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
552
|
+
hash :fields, as: 'fields'
|
553
|
+
property :type, as: 'type'
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
525
557
|
class Status
|
526
558
|
# @private
|
527
559
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -622,6 +622,8 @@ module Google
|
|
622
622
|
# Required. The [project] on which to execute the request. The format is:
|
623
623
|
# projects/`project_id`/locations/`location` Currently, the pre-defined rules
|
624
624
|
# are global available to all projects and all regions
|
625
|
+
# @param [String] custom_rules_bucket
|
626
|
+
# The Cloud Storage bucket name for custom rules.
|
625
627
|
# @param [String] filter
|
626
628
|
# Filter based on primary_category, secondary_category
|
627
629
|
# @param [Fixnum] page_size
|
@@ -646,11 +648,12 @@ module Google
|
|
646
648
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
647
649
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
648
650
|
# @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)
|
651
|
+
def list_project_location_rules(parent, custom_rules_bucket: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
650
652
|
command = make_simple_command(:get, 'v1/{+parent}/rules', options)
|
651
653
|
command.response_representation = Google::Apis::WorkloadmanagerV1::ListRulesResponse::Representation
|
652
654
|
command.response_class = Google::Apis::WorkloadmanagerV1::ListRulesResponse
|
653
655
|
command.params['parent'] = parent unless parent.nil?
|
656
|
+
command.query['customRulesBucket'] = custom_rules_bucket unless custom_rules_bucket.nil?
|
654
657
|
command.query['filter'] = filter unless filter.nil?
|
655
658
|
command.query['pageSize'] = page_size unless page_size.nil?
|
656
659
|
command.query['pageToken'] = page_token unless page_token.nil?
|
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.7.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-06-18 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.7.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: []
|