Skip to content

Commit 26a7e73

Browse files
yoshi-automationsofisl
authored andcommitted
feat(workloadmanager): update the API
#### workloadmanager:v1 The following keys were added: - schemas.AgentCommand.description - schemas.AgentCommand.id - schemas.AgentCommand.properties.command.description - schemas.AgentCommand.properties.command.type - schemas.AgentCommand.properties.parameters.additionalProperties.type - schemas.AgentCommand.properties.parameters.description - schemas.AgentCommand.properties.parameters.type - schemas.AgentCommand.type - schemas.Command.description - schemas.Command.id - schemas.Command.properties.agentCommand.$ref - schemas.Command.properties.agentCommand.description - schemas.Command.properties.shellCommand.$ref - schemas.Command.properties.shellCommand.description - schemas.Command.type - schemas.ExecutionResult.properties.commands.description - schemas.ExecutionResult.properties.commands.items.$ref - schemas.ExecutionResult.properties.commands.type - schemas.ExternalDataSources.properties.assetType.description - schemas.ExternalDataSources.properties.assetType.type - schemas.LocationData.properties.placerLocation.$ref - schemas.PlacerLocation.description - schemas.PlacerLocation.id - schemas.PlacerLocation.properties.placerConfig.description - schemas.PlacerLocation.properties.placerConfig.type - schemas.PlacerLocation.type - schemas.SapDiscoveryComponent.properties.replicationSites.description - schemas.SapDiscoveryComponent.properties.replicationSites.items.$ref - schemas.SapDiscoveryComponent.properties.replicationSites.type - schemas.SapDiscoveryComponentApplicationProperties.properties.abap.deprecated - schemas.ShellCommand.description - schemas.ShellCommand.id - schemas.ShellCommand.properties.args.description - schemas.ShellCommand.properties.args.type - schemas.ShellCommand.properties.command.description - schemas.ShellCommand.properties.command.type - schemas.ShellCommand.properties.timeoutSeconds.description - schemas.ShellCommand.properties.timeoutSeconds.format - schemas.ShellCommand.properties.timeoutSeconds.type - schemas.ShellCommand.type The following keys were changed: - resources.projects.resources.locations.resources.evaluations.methods.list.parameters.filter.description - resources.projects.resources.locations.resources.evaluations.resources.executions.resources.results.methods.list.description - schemas.ExecutionResult.properties.documentationUrl.description - schemas.ExecutionResult.properties.resource.description - schemas.ExecutionResult.properties.rule.description - schemas.ExecutionResult.properties.severity.description - schemas.ExecutionResult.properties.violationDetails.description - schemas.ExecutionResult.properties.violationMessage.description - schemas.ExternalDataSources.properties.name.description - schemas.Resource.properties.name.description - schemas.Resource.properties.serviceAccount.description - schemas.Resource.properties.type.description - schemas.SapDiscoveryComponentApplicationProperties.properties.abap.description - schemas.SapDiscoveryComponentApplicationProperties.properties.applicationType.enum - schemas.SapDiscoveryComponentApplicationProperties.properties.applicationType.enumDescriptions - schemas.ViolationDetails.description - schemas.ViolationDetails.properties.asset.description - schemas.ViolationDetails.properties.observed.description - schemas.ViolationDetails.properties.serviceAccount.description
1 parent a8bfc68 commit 26a7e73

File tree

2 files changed

+192
-37
lines changed

2 files changed

+192
-37
lines changed

discovery/workloadmanager-v1.json

Lines changed: 110 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
],
288288
"parameters": {
289289
"filter": {
290-
"description": "Filtering results",
290+
"description": "Filter to be applied when listing the evaluation results.",
291291
"location": "query",
292292
"type": "string"
293293
},
@@ -461,7 +461,7 @@
461461
"results": {
462462
"methods": {
463463
"list": {
464-
"description": "List the running result of a single Execution.",
464+
"description": "Lists the result of a single evaluation.",
465465
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions/{executionsId}/results",
466466
"httpMethod": "GET",
467467
"id": "workloadmanager.projects.locations.evaluations.executions.results.list",
@@ -772,9 +772,27 @@
772772
}
773773
}
774774
},
775-
"revision": "20240501",
775+
"revision": "20240619",
776776
"rootUrl": "https://workloadmanager.googleapis.com/",
777777
"schemas": {
778+
"AgentCommand": {
779+
"description": "* An AgentCommand specifies a one-time executable program for the agent to run.",
780+
"id": "AgentCommand",
781+
"properties": {
782+
"command": {
783+
"description": "command is the name of the agent one-time executable that will be invoked.",
784+
"type": "string"
785+
},
786+
"parameters": {
787+
"additionalProperties": {
788+
"type": "string"
789+
},
790+
"description": "parameters is a map of key/value pairs that can be used to specify additional one-time executable settings.",
791+
"type": "object"
792+
}
793+
},
794+
"type": "object"
795+
},
778796
"AssetLocation": {
779797
"description": "Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.",
780798
"id": "AssetLocation",
@@ -865,6 +883,21 @@
865883
},
866884
"type": "object"
867885
},
886+
"Command": {
887+
"description": "* Command specifies the type of command to execute.",
888+
"id": "Command",
889+
"properties": {
890+
"agentCommand": {
891+
"$ref": "AgentCommand",
892+
"description": "AgentCommand specifies a one-time executable program for the agent to run."
893+
},
894+
"shellCommand": {
895+
"$ref": "ShellCommand",
896+
"description": "ShellCommand is invoked via the agent's command line executor."
897+
}
898+
},
899+
"type": "object"
900+
},
868901
"DirectLocationAssignment": {
869902
"id": "DirectLocationAssignment",
870903
"properties": {
@@ -1036,28 +1069,35 @@
10361069
"description": "Message describing the result of an execution",
10371070
"id": "ExecutionResult",
10381071
"properties": {
1072+
"commands": {
1073+
"description": "The commands to remediate the violation.",
1074+
"items": {
1075+
"$ref": "Command"
1076+
},
1077+
"type": "array"
1078+
},
10391079
"documentationUrl": {
1040-
"description": "the document url of the rule",
1080+
"description": "The URL for the documentation of the rule.",
10411081
"type": "string"
10421082
},
10431083
"resource": {
10441084
"$ref": "Resource",
1045-
"description": "the violate resource"
1085+
"description": "The resource that violates the rule."
10461086
},
10471087
"rule": {
1048-
"description": "the rule which violate in execution",
1088+
"description": "The rule that is violated in an evaluation.",
10491089
"type": "string"
10501090
},
10511091
"severity": {
1052-
"description": "severity of violation",
1092+
"description": "The severity of violation.",
10531093
"type": "string"
10541094
},
10551095
"violationDetails": {
10561096
"$ref": "ViolationDetails",
1057-
"description": "the details of violation in result"
1097+
"description": "The details of violation in an evaluation result."
10581098
},
10591099
"violationMessage": {
1060-
"description": "the violation message of an execution",
1100+
"description": "The violation message of an execution.",
10611101
"type": "string"
10621102
}
10631103
},
@@ -1067,8 +1107,12 @@
10671107
"description": "Message for external data sources",
10681108
"id": "ExternalDataSources",
10691109
"properties": {
1110+
"assetType": {
1111+
"description": "Required. The asset type of the external data source must be one of go/cai-asset-types",
1112+
"type": "string"
1113+
},
10701114
"name": {
1071-
"description": "Required. Name of external data source. The name will be used inside the rego/sql to refer the external data",
1115+
"description": "Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data",
10721116
"type": "string"
10731117
},
10741118
"type": {
@@ -1488,6 +1532,9 @@
14881532
"gcpProjectProxy": {
14891533
"$ref": "TenantProjectProxy"
14901534
},
1535+
"placerLocation": {
1536+
"$ref": "PlacerLocation"
1537+
},
14911538
"spannerLocation": {
14921539
"$ref": "SpannerLocation"
14931540
}
@@ -1573,6 +1620,17 @@
15731620
},
15741621
"type": "object"
15751622
},
1623+
"PlacerLocation": {
1624+
"description": "Message describing that the location of the customer resource is tied to placer allocations",
1625+
"id": "PlacerLocation",
1626+
"properties": {
1627+
"placerConfig": {
1628+
"description": "Directory with a config related to it in placer (e.g. \"/placer/prod/home/my-root/my-dir\")",
1629+
"type": "string"
1630+
}
1631+
},
1632+
"type": "object"
1633+
},
15761634
"RegionalMigDistributionPolicy": {
15771635
"description": "To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances",
15781636
"id": "RegionalMigDistributionPolicy",
@@ -1597,15 +1655,15 @@
15971655
"id": "Resource",
15981656
"properties": {
15991657
"name": {
1600-
"description": "the name of the resource",
1658+
"description": "The name of the resource.",
16011659
"type": "string"
16021660
},
16031661
"serviceAccount": {
1604-
"description": "the service account accosiate with resource",
1662+
"description": "The service account associated with the resource.",
16051663
"type": "string"
16061664
},
16071665
"type": {
1608-
"description": "the type of reresource",
1666+
"description": "The type of resource.",
16091667
"type": "string"
16101668
}
16111669
},
@@ -1808,6 +1866,13 @@
18081866
"description": "Required. Pantheon Project in which the resources reside.",
18091867
"type": "string"
18101868
},
1869+
"replicationSites": {
1870+
"description": "Optional. A list of replication sites used in Disaster Recovery (DR) configurations.",
1871+
"items": {
1872+
"$ref": "SapDiscoveryComponent"
1873+
},
1874+
"type": "array"
1875+
},
18111876
"resources": {
18121877
"description": "Optional. The resources in a component.",
18131878
"items": {
@@ -1841,7 +1906,8 @@
18411906
"id": "SapDiscoveryComponentApplicationProperties",
18421907
"properties": {
18431908
"abap": {
1844-
"description": "Optional. Indicates whether this is a Java or ABAP Netweaver instance. true means it is ABAP, false means it is Java.",
1909+
"deprecated": true,
1910+
"description": "Optional. Deprecated: ApplicationType now tells you whether this is ABAP or Java.",
18451911
"type": "boolean"
18461912
},
18471913
"appInstanceNumber": {
@@ -1852,11 +1918,15 @@
18521918
"description": "Required. Type of the application. Netweaver, etc.",
18531919
"enum": [
18541920
"APPLICATION_TYPE_UNSPECIFIED",
1855-
"NETWEAVER"
1921+
"NETWEAVER",
1922+
"NETWEAVER_ABAP",
1923+
"NETWEAVER_JAVA"
18561924
],
18571925
"enumDescriptions": [
18581926
"Unspecified application type",
1859-
"SAP Netweaver"
1927+
"SAP Netweaver",
1928+
"SAP Netweaver ABAP",
1929+
"SAP Netweaver Java"
18601930
],
18611931
"type": "string"
18621932
},
@@ -2225,6 +2295,26 @@
22252295
},
22262296
"type": "object"
22272297
},
2298+
"ShellCommand": {
2299+
"description": "* A ShellCommand is invoked via the agent's command line executor",
2300+
"id": "ShellCommand",
2301+
"properties": {
2302+
"args": {
2303+
"description": "args is a string of arguments to be passed to the command.",
2304+
"type": "string"
2305+
},
2306+
"command": {
2307+
"description": "command is the name of the command to be executed.",
2308+
"type": "string"
2309+
},
2310+
"timeoutSeconds": {
2311+
"description": "Optional. If not specified, the default timeout is 60 seconds.",
2312+
"format": "int32",
2313+
"type": "integer"
2314+
}
2315+
},
2316+
"type": "object"
2317+
},
22282318
"SpannerLocation": {
22292319
"id": "SpannerLocation",
22302320
"properties": {
@@ -2365,22 +2455,22 @@
23652455
"type": "object"
23662456
},
23672457
"ViolationDetails": {
2368-
"description": "Message describing the violdation in execution result",
2458+
"description": "Message describing the violation in an evaluation result.",
23692459
"id": "ViolationDetails",
23702460
"properties": {
23712461
"asset": {
2372-
"description": "the name of asset",
2462+
"description": "The name of the asset.",
23732463
"type": "string"
23742464
},
23752465
"observed": {
23762466
"additionalProperties": {
23772467
"type": "string"
23782468
},
2379-
"description": "observed",
2469+
"description": "Details of the violation.",
23802470
"type": "object"
23812471
},
23822472
"serviceAccount": {
2383-
"description": "the service account associate with resource",
2473+
"description": "The service account associated with the resource.",
23842474
"type": "string"
23852475
}
23862476
},

0 commit comments

Comments
 (0)