Skip to content

Commit 47badf1

Browse files
feat(workloadmanager): update the api
#### workloadmanager:v1 The following keys were deleted: - schemas.SqlserverValidationValidationDetail.properties.details (Total Keys: 2) - schemas.SqlserverValidationValidationDetail.properties.instanceId.type (Total Keys: 1) The following keys were added: - resources.projects.resources.locations.resources.rules.methods.list.parameters.customRulesBucket (Total Keys: 2) - schemas.Evaluation.properties.customRulesBucket.type (Total Keys: 1) - schemas.Insight.properties.instanceId.type (Total Keys: 1) - schemas.SqlserverValidationValidationDetail.properties.fields (Total Keys: 2)
1 parent 580d5fb commit 47badf1

File tree

4 files changed

+52
-27
lines changed

4 files changed

+52
-27
lines changed

docs/dyn/workloadmanager_v1.projects.locations.evaluations.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@

Method Details

109109
body: object, The request body.
110110
The object takes the form of:
111111

112-
{ # Message describing Evaluation object
112+
{ # LINT.IfChange Message describing Evaluation object
113113
"createTime": "A String", # Output only. [Output only] Create time stamp
114+
"customRulesBucket": "A String", # The Cloud Storage bucket name for custom rules.
114115
"description": "A String", # Description of the Evaluation
115116
"labels": { # Labels as key value pairs
116117
"a_key": "A String",
@@ -133,7 +134,7 @@

Method Details

133134
],
134135
},
135136
"resourceStatus": { # Message describing resource status # Output only. [Output only] The updated rule ids if exist.
136-
"rulesNewerVersions": [ # the new version of rule id if exists
137+
"rulesNewerVersions": [ # Historical: Used before 2023-05-22 the new version of rule id if exists
137138
"A String",
138139
],
139140
"state": "A String", # State of the resource
@@ -144,7 +145,7 @@

Method Details

144145
"ruleVersions": [ # Output only. [Output only] The updated rule ids if exist.
145146
"A String",
146147
],
147-
"schedule": "A String", # crontab format schedule for scheduled evaluation, example: 0 */3 * * *
148+
"schedule": "A String", # crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *", "0 0 */7 * *",
148149
"updateTime": "A String", # Output only. [Output only] Update time stamp
149150
}
150151

@@ -193,8 +194,9 @@

Method Details

193194
Returns:
194195
An object of the form:
195196

196-
{ # Message describing Evaluation object
197+
{ # LINT.IfChange Message describing Evaluation object
197198
"createTime": "A String", # Output only. [Output only] Create time stamp
199+
"customRulesBucket": "A String", # The Cloud Storage bucket name for custom rules.
198200
"description": "A String", # Description of the Evaluation
199201
"labels": { # Labels as key value pairs
200202
"a_key": "A String",
@@ -217,7 +219,7 @@

Method Details

217219
],
218220
},
219221
"resourceStatus": { # Message describing resource status # Output only. [Output only] The updated rule ids if exist.
220-
"rulesNewerVersions": [ # the new version of rule id if exists
222+
"rulesNewerVersions": [ # Historical: Used before 2023-05-22 the new version of rule id if exists
221223
"A String",
222224
],
223225
"state": "A String", # State of the resource
@@ -228,7 +230,7 @@

Method Details

228230
"ruleVersions": [ # Output only. [Output only] The updated rule ids if exist.
229231
"A String",
230232
],
231-
"schedule": "A String", # crontab format schedule for scheduled evaluation, example: 0 */3 * * *
233+
"schedule": "A String", # crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *", "0 0 */7 * *",
232234
"updateTime": "A String", # Output only. [Output only] Update time stamp
233235
}pre>
234236
div>
@@ -253,8 +255,9 @@

Method Details

253255

254256
{ # Message for response to listing Evaluations
255257
"evaluations": [ # The list of Evaluation
256-
{ # Message describing Evaluation object
258+
{ # LINT.IfChange Message describing Evaluation object
257259
"createTime": "A String", # Output only. [Output only] Create time stamp
260+
"customRulesBucket": "A String", # The Cloud Storage bucket name for custom rules.
258261
"description": "A String", # Description of the Evaluation
259262
"labels": { # Labels as key value pairs
260263
"a_key": "A String",
@@ -277,7 +280,7 @@

Method Details

277280
],
278281
},
279282
"resourceStatus": { # Message describing resource status # Output only. [Output only] The updated rule ids if exist.
280-
"rulesNewerVersions": [ # the new version of rule id if exists
283+
"rulesNewerVersions": [ # Historical: Used before 2023-05-22 the new version of rule id if exists
281284
"A String",
282285
],
283286
"state": "A String", # State of the resource
@@ -288,7 +291,7 @@

Method Details

288291
"ruleVersions": [ # Output only. [Output only] The updated rule ids if exist.
289292
"A String",
290293
],
291-
"schedule": "A String", # crontab format schedule for scheduled evaluation, example: 0 */3 * * *
294+
"schedule": "A String", # crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * * *", "0 0 */1 * *", "0 0 */7 * *",
292295
"updateTime": "A String", # Output only. [Output only] Update time stamp
293296
},
294297
],

docs/dyn/workloadmanager_v1.projects.locations.insights.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@

Method Details

9797

9898
{ # Request for sending the data insights.
9999
"insight": { # A presentation of host resource usage where the workload runs. # Required. The metrics data details.
100-
"sapDiscovery": { # The schema of SAP system discovery data. # The insights data for sap system discovery. This is a copy of SAP System proto and should get updated whenever that one changes.
100+
"instanceId": "A String", # Required. The instance id where the insight is generated from
101+
"sapDiscovery": { # LINT.IfChange The schema of SAP system discovery data. # The insights data for sap system discovery. This is a copy of SAP System proto and should get updated whenever that one changes.
101102
"applicationLayer": { # Message describing the system component. # An SAP system may run without an application layer.
102103
"applicationType": "A String", # The component is a SAP application.
103104
"databaseType": "A String", # The component is a SAP database.
@@ -156,10 +157,9 @@

Method Details

156157
"agentVersion": "A String", # The agent version collected this data point
157158
"validationDetails": [ # A list of SqlServer validation metrics data.
158159
{ # Message describing the Sqlserver validation metrics.
159-
"details": { # The pairs of metrics data: field name & field value.
160+
"fields": { # pairs of metrics data: column name & column value.
160161
"a_key": "A String",
161162
},
162-
"instanceId": "A String", # The instance id where the ValidationDetail is generated from
163163
"type": "A String", # The Sqlserver system that the validation data is from.
164164
},
165165
],

docs/dyn/workloadmanager_v1.projects.locations.rules.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@

Instance Methods

7878
<code><a href="#close">close()a>code>p>
7979
<p class="firstline">Close httplib2 connections.p>
8080
<p class="toc_element">
81-
<code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)a>code>p>
81+
<code><a href="#list">list(parent, customRulesBucket=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)a>code>p>
8282
<p class="firstline">Lists rules in a given project.p>
8383
<p class="toc_element">
8484
<code><a href="#list_next">list_next()a>code>p>
@@ -90,11 +90,12 @@

Method Details

9090
div>
9191

9292
<div class="method">
93-
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)code>
93+
<code class="details" id="list">list(parent, customRulesBucket=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)code>
9494
<pre>Lists rules in a given project.
9595

9696
Args:
9797
parent: string, Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions (required)
98+
customRulesBucket: string, The Cloud Storage bucket name for custom rules.
9899
filter: string, Filter based on primary_category, secondary_category
99100
pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
100101
pageToken: string, A token identifying a page of results the server should return.

googleapiclient/discovery_cache/documents/workloadmanager.v1.json

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@
663663
"parent"
664664
],
665665
"parameters": {
666+
"customRulesBucket": {
667+
"description": "The Cloud Storage bucket name for custom rules.",
668+
"location": "query",
669+
"type": "string"
670+
},
666671
"filter": {
667672
"description": "Filter based on primary_category, secondary_category",
668673
"location": "query",
@@ -702,7 +707,7 @@
702707
}
703708
}
704709
},
705-
"revision": "20230503",
710+
"revision": "20230605",
706711
"rootUrl": "https://workloadmanager.googleapis.com/",
707712
"schemas": {
708713
"CancelOperationRequest": {
@@ -718,7 +723,7 @@
718723
"type": "object"
719724
},
720725
"Evaluation": {
721-
"description": "Message describing Evaluation object",
726+
"description": "LINT.IfChange Message describing Evaluation object",
722727
"id": "Evaluation",
723728
"properties": {
724729
"createTime": {
@@ -727,6 +732,10 @@
727732
"readOnly": true,
728733
"type": "string"
729734
},
735+
"customRulesBucket": {
736+
"description": "The Cloud Storage bucket name for custom rules.",
737+
"type": "string"
738+
},
730739
"description": {
731740
"description": "Description of the Evaluation",
732741
"type": "string"
@@ -767,7 +776,7 @@
767776
"type": "array"
768777
},
769778
"schedule": {
770-
"description": "crontab format schedule for scheduled evaluation, example: 0 */3 * * *",
779+
"description": "crontab format schedule for scheduled evaluation, currently only support the following schedule: \"0 */1 * * *\", \"0 */6 * * *\", \"0 */12 * * *\", \"0 0 */1 * *\", \"0 0 */7 * *\",",
771780
"type": "string"
772781
},
773782
"updateTime": {
@@ -900,6 +909,10 @@
900909
"description": "A presentation of host resource usage where the workload runs.",
901910
"id": "Insight",
902911
"properties": {
912+
"instanceId": {
913+
"description": "Required. The instance id where the insight is generated from",
914+
"type": "string"
915+
},
903916
"sapDiscovery": {
904917
"$ref": "SapDiscovery",
905918
"description": "The insights data for sap system discovery. This is a copy of SAP System proto and should get updated whenever that one changes."
@@ -1230,7 +1243,7 @@
12301243
"id": "ResourceStatus",
12311244
"properties": {
12321245
"rulesNewerVersions": {
1233-
"description": "the new version of rule id if exists",
1246+
"description": "Historical: Used before 2023-05-22 the new version of rule id if exists",
12341247
"items": {
12351248
"type": "string"
12361249
},
@@ -1323,7 +1336,7 @@
13231336
"type": "object"
13241337
},
13251338
"SapDiscovery": {
1326-
"description": "The schema of SAP system discovery data.",
1339+
"description": "LINT.IfChange The schema of SAP system discovery data.",
13271340
"id": "SapDiscovery",
13281341
"properties": {
13291342
"applicationLayer": {
@@ -1527,28 +1540,36 @@
15271540
"description": "Message describing the Sqlserver validation metrics.",
15281541
"id": "SqlserverValidationValidationDetail",
15291542
"properties": {
1530-
"details": {
1543+
"fields": {
15311544
"additionalProperties": {
15321545
"type": "string"
15331546
},
1534-
"description": "The pairs of metrics data: field name & field value.",
1547+
"description": " pairs of metrics data: column name & column value.",
15351548
"type": "object"
15361549
},
1537-
"instanceId": {
1538-
"description": "The instance id where the ValidationDetail is generated from",
1539-
"type": "string"
1540-
},
15411550
"type": {
15421551
"description": "The Sqlserver system that the validation data is from.",
15431552
"enum": [
15441553
"SQLSERVER_VALIDATION_TYPE_UNSPECIFIED",
15451554
"OS",
1546-
"DB"
1555+
"DB_LOG_DISK_SEPARATION",
1556+
"DB_MAX_PARALLELISM",
1557+
"DB_CXPACKET_WAITS",
1558+
"DB_TRANSACTION_LOG_HANDLING",
1559+
"DB_VIRTUAL_LOG_FILE_COUNT",
1560+
"DB_BUFFER_POOL_EXTENSION",
1561+
"DB_MAX_SERVER_MEMORY"
15471562
],
15481563
"enumDescriptions": [
15491564
"Unspecified type.",
15501565
"The Sqlserver system named OS",
1551-
"The Sqlserver system named DB"
1566+
"The LOG_DISK_SEPARATION table",
1567+
"The MAX_PARALLELISM table",
1568+
"The CXPACKET_WAITS table",
1569+
"The TRANSACTION_LOG_HANDLING table",
1570+
"The VIRTUAL_LOG_FILE_COUNT table",
1571+
"The BUFFER_POOL_EXTENSION table",
1572+
"The MAX_SERVER_MEMORY table"
15521573
],
15531574
"type": "string"
15541575
}

0 commit comments

Comments
 (0)