Skip to content

Commit

Permalink
feat(workloadmanager): update the API
Browse files Browse the repository at this point in the history
#### workloadmanager:v1

The following keys were added:
- schemas.SapDiscovery.properties.projectNumber.description
- schemas.SapDiscovery.properties.projectNumber.type
- schemas.SapDiscoveryComponent.properties.haHosts.description
- schemas.SapDiscoveryComponent.properties.haHosts.items.type
- schemas.SapDiscoveryComponent.properties.haHosts.type
- schemas.SapDiscoveryComponent.properties.topologyType.description
- schemas.SapDiscoveryComponent.properties.topologyType.enum
- schemas.SapDiscoveryComponent.properties.topologyType.enumDescriptions
- schemas.SapDiscoveryComponent.properties.topologyType.type
- schemas.SapDiscoveryComponentApplicationProperties.properties.abap.description
- schemas.SapDiscoveryComponentApplicationProperties.properties.abap.type
- schemas.SapDiscoveryComponentApplicationProperties.properties.kernelVersion.description
- schemas.SapDiscoveryComponentApplicationProperties.properties.kernelVersion.type
- schemas.SapDiscoveryComponentDatabaseProperties.properties.databaseVersion.description
- schemas.SapDiscoveryComponentDatabaseProperties.properties.databaseVersion.type
- schemas.SapDiscoveryResource.properties.instanceProperties.$ref
- schemas.SapDiscoveryResource.properties.instanceProperties.description
- schemas.SapDiscoveryResourceInstanceProperties.description
- schemas.SapDiscoveryResourceInstanceProperties.id
- schemas.SapDiscoveryResourceInstanceProperties.properties.clusterInstances.description
- schemas.SapDiscoveryResourceInstanceProperties.properties.clusterInstances.items.type
- schemas.SapDiscoveryResourceInstanceProperties.properties.clusterInstances.type
- schemas.SapDiscoveryResourceInstanceProperties.properties.virtualHostname.description
- schemas.SapDiscoveryResourceInstanceProperties.properties.virtualHostname.type
- schemas.SapDiscoveryResourceInstanceProperties.type
- schemas.SapValidation.properties.projectId.description
- schemas.SapValidation.properties.projectId.type
- schemas.SapValidation.properties.zone.description
- schemas.SapValidation.properties.zone.type
- schemas.SapValidationValidationDetail.properties.isPresent.description
- schemas.SapValidationValidationDetail.properties.isPresent.type
  • Loading branch information
yoshi-automation authored and sofisl committed Jan 3, 2024
1 parent 6553987 commit 4c49597
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 1 deletion.
73 changes: 72 additions & 1 deletion discovery/workloadmanager-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@
}
}
},
"revision": "20230907",
"revision": "20231211",
"rootUrl": "https://workloadmanager.googleapis.com/",
"schemas": {
"CancelOperationRequest": {
Expand Down Expand Up @@ -1352,6 +1352,10 @@
"$ref": "SapDiscoveryMetadata",
"description": "Optional. The metadata for SAP system discovery data."
},
"projectNumber": {
"description": "Optional. The GCP project number that this SapSystem belongs to.",
"type": "string"
},
"systemId": {
"description": "Output only. A combination of database SID, database instance URI and tenant DB name to make a unique identifier per-system.",
"readOnly": true,
Expand All @@ -1377,6 +1381,13 @@
"$ref": "SapDiscoveryComponentDatabaseProperties",
"description": "Optional. The component is a SAP database."
},
"haHosts": {
"description": "Optional. A list of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA.",
"items": {
"type": "string"
},
"type": "array"
},
"hostProject": {
"description": "Required. Pantheon Project in which the resources reside.",
"type": "string"
Expand All @@ -1391,6 +1402,20 @@
"sid": {
"description": "Optional. The SAP identifier, used by the SAP software and helps differentiate systems for customers.",
"type": "string"
},
"topologyType": {
"description": "Optional. The detected topology of the component.",
"enum": [
"TOPOLOGY_TYPE_UNSPECIFIED",
"TOPOLOGY_SCALE_UP",
"TOPOLOGY_SCALE_OUT"
],
"enumDescriptions": [
"Unspecified topology.",
"A scale-up single node system.",
"A scale-out multi-node system."
],
"type": "string"
}
},
"type": "object"
Expand All @@ -1399,6 +1424,10 @@
"description": "A set of properties describing an SAP Application layer.",
"id": "SapDiscoveryComponentApplicationProperties",
"properties": {
"abap": {
"description": "Optional. Indicates whether this is a Java or ABAP Netweaver instance. true means it is ABAP, false means it is Java.",
"type": "boolean"
},
"applicationType": {
"description": "Required. Type of the application. Netweaver, etc.",
"enum": [
Expand All @@ -1415,6 +1444,10 @@
"description": "Optional. Resource URI of the recognized ASCS host of the application.",
"type": "string"
},
"kernelVersion": {
"description": "Optional. Kernel version for Netweaver running in the system.",
"type": "string"
},
"nfsUri": {
"description": "Optional. Resource URI of the recognized shared NFS of the application. May be empty if the application server has only a single node.",
"type": "string"
Expand Down Expand Up @@ -1442,6 +1475,10 @@
],
"type": "string"
},
"databaseVersion": {
"description": "Optional. The version of the database software running in the system.",
"type": "string"
},
"primaryInstanceUri": {
"description": "Required. URI of the recognized primary instance of the database.",
"type": "string"
Expand Down Expand Up @@ -1480,6 +1517,10 @@
"description": "Message describing a resource.",
"id": "SapDiscoveryResource",
"properties": {
"instanceProperties": {
"$ref": "SapDiscoveryResourceInstanceProperties",
"description": "Optional. A set of properties only applying to instance type resources."
},
"relatedResources": {
"description": "Optional. A list of resource URIs related to this resource.",
"items": {
Expand Down Expand Up @@ -1547,16 +1588,42 @@
},
"type": "object"
},
"SapDiscoveryResourceInstanceProperties": {
"description": "A set of properties only present for an instance type resource",
"id": "SapDiscoveryResourceInstanceProperties",
"properties": {
"clusterInstances": {
"description": "Optional. A list of instance URIs that are part of a cluster with this one.",
"items": {
"type": "string"
},
"type": "array"
},
"virtualHostname": {
"description": "Optional. A virtual hostname of the instance if it has one.",
"type": "string"
}
},
"type": "object"
},
"SapValidation": {
"description": "A presentation of SAP workload insight. The schema of SAP workloads validation related data.",
"id": "SapValidation",
"properties": {
"projectId": {
"description": "Required. The project_id of the cloud project that the Insight data comes from.",
"type": "string"
},
"validationDetails": {
"description": "Optional. A list of SAP validation metrics data.",
"items": {
"$ref": "SapValidationValidationDetail"
},
"type": "array"
},
"zone": {
"description": "Optional. The zone of the instance that the Insight data comes from.",
"type": "string"
}
},
"type": "object"
Expand All @@ -1572,6 +1639,10 @@
"description": "Optional. The pairs of metrics data: field name & field value.",
"type": "object"
},
"isPresent": {
"description": "Optional. Was there a SAP system detected for this validation type.",
"type": "boolean"
},
"sapValidationType": {
"description": "Optional. The SAP system that the validation data is from.",
"enum": [
Expand Down
53 changes: 53 additions & 0 deletions src/apis/workloadmanager/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ export namespace workloadmanager_v1 {
* Optional. The metadata for SAP system discovery data.
*/
metadata?: Schema$SapDiscoveryMetadata;
/**
* Optional. The GCP project number that this SapSystem belongs to.
*/
projectNumber?: string | null;
/**
* Output only. A combination of database SID, database instance URI and tenant DB name to make a unique identifier per-system.
*/
Expand All @@ -613,6 +617,10 @@ export namespace workloadmanager_v1 {
* Optional. The component is a SAP database.
*/
databaseProperties?: Schema$SapDiscoveryComponentDatabaseProperties;
/**
* Optional. A list of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA.
*/
haHosts?: string[] | null;
/**
* Required. Pantheon Project in which the resources reside.
*/
Expand All @@ -625,11 +633,19 @@ export namespace workloadmanager_v1 {
* Optional. The SAP identifier, used by the SAP software and helps differentiate systems for customers.
*/
sid?: string | null;
/**
* Optional. The detected topology of the component.
*/
topologyType?: string | null;
}
/**
* A set of properties describing an SAP Application layer.
*/
export interface Schema$SapDiscoveryComponentApplicationProperties {
/**
* Optional. Indicates whether this is a Java or ABAP Netweaver instance. true means it is ABAP, false means it is Java.
*/
abap?: boolean | null;
/**
* Required. Type of the application. Netweaver, etc.
*/
Expand All @@ -638,6 +654,10 @@ export namespace workloadmanager_v1 {
* Optional. Resource URI of the recognized ASCS host of the application.
*/
ascsUri?: string | null;
/**
* Optional. Kernel version for Netweaver running in the system.
*/
kernelVersion?: string | null;
/**
* Optional. Resource URI of the recognized shared NFS of the application. May be empty if the application server has only a single node.
*/
Expand All @@ -651,6 +671,10 @@ export namespace workloadmanager_v1 {
* Required. Type of the database. HANA, DB2, etc.
*/
databaseType?: string | null;
/**
* Optional. The version of the database software running in the system.
*/
databaseVersion?: string | null;
/**
* Required. URI of the recognized primary instance of the database.
*/
Expand Down Expand Up @@ -685,6 +709,10 @@ export namespace workloadmanager_v1 {
* Message describing a resource.
*/
export interface Schema$SapDiscoveryResource {
/**
* Optional. A set of properties only applying to instance type resources.
*/
instanceProperties?: Schema$SapDiscoveryResourceInstanceProperties;
/**
* Optional. A list of resource URIs related to this resource.
*/
Expand All @@ -706,14 +734,35 @@ export namespace workloadmanager_v1 {
*/
updateTime?: string | null;
}
/**
* A set of properties only present for an instance type resource
*/
export interface Schema$SapDiscoveryResourceInstanceProperties {
/**
* Optional. A list of instance URIs that are part of a cluster with this one.
*/
clusterInstances?: string[] | null;
/**
* Optional. A virtual hostname of the instance if it has one.
*/
virtualHostname?: string | null;
}
/**
* A presentation of SAP workload insight. The schema of SAP workloads validation related data.
*/
export interface Schema$SapValidation {
/**
* Required. The project_id of the cloud project that the Insight data comes from.
*/
projectId?: string | null;
/**
* Optional. A list of SAP validation metrics data.
*/
validationDetails?: Schema$SapValidationValidationDetail[];
/**
* Optional. The zone of the instance that the Insight data comes from.
*/
zone?: string | null;
}
/**
* Message describing the SAP validation metrics.
Expand All @@ -723,6 +772,10 @@ export namespace workloadmanager_v1 {
* Optional. The pairs of metrics data: field name & field value.
*/
details?: {[key: string]: string} | null;
/**
* Optional. Was there a SAP system detected for this validation type.
*/
isPresent?: boolean | null;
/**
* Optional. The SAP system that the validation data is from.
*/
Expand Down

0 comments on commit 4c49597

Please sign in to comment.