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.AssetLocation.properties.ccfeRmsPath.description
- schemas.AssetLocation.properties.ccfeRmsPath.type
- schemas.IsolationExpectations.properties.requirementOverride.$ref
- schemas.IsolationExpectations.properties.requirementOverride.description
- schemas.RequirementOverride.id
- schemas.RequirementOverride.properties.ziOverride.enum
- schemas.RequirementOverride.properties.ziOverride.enumDescriptions
- schemas.RequirementOverride.properties.ziOverride.type
- schemas.RequirementOverride.properties.zsOverride.enum
- schemas.RequirementOverride.properties.zsOverride.enumDescriptions
- schemas.RequirementOverride.properties.zsOverride.type
- schemas.RequirementOverride.type
- schemas.SpannerLocation.properties.backupName.description
- schemas.SpannerLocation.properties.backupName.items.type
- schemas.SpannerLocation.properties.backupName.type
- schemas.SpannerLocation.properties.dbName.description

The following keys were changed:
- schemas.ExternalDataSources.properties.assetType.description
- schemas.SapDiscoveryResourceInstanceProperties.properties.instanceRole.enum
- schemas.SapDiscoveryResourceInstanceProperties.properties.instanceRole.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Aug 16, 2024
1 parent 447c5f3 commit 09ceeaf
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 5 deletions.
84 changes: 80 additions & 4 deletions discovery/workloadmanager-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@
}
}
},
"revision": "20240619",
"revision": "20240717",
"rootUrl": "https://workloadmanager.googleapis.com/",
"schemas": {
"AgentCommand": {
Expand All @@ -797,6 +797,10 @@
"description": "Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.",
"id": "AssetLocation",
"properties": {
"ccfeRmsPath": {
"description": "Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata.",
"type": "string"
},
"expected": {
"$ref": "IsolationExpectations",
"description": "Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation."
Expand Down Expand Up @@ -1108,7 +1112,7 @@
"id": "ExternalDataSources",
"properties": {
"assetType": {
"description": "Required. The asset type of the external data source must be one of go/cai-asset-types",
"description": "Required. The asset type of the external data source this can be one of go/cai-asset-types to override the default asset type or it can be a custom type defined by the user custom type must match the asset type in the rule",
"type": "string"
},
"name": {
Expand Down Expand Up @@ -1191,6 +1195,10 @@
"IsolationExpectations": {
"id": "IsolationExpectations",
"properties": {
"requirementOverride": {
"$ref": "RequirementOverride",
"description": "Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic."
},
"ziOrgPolicy": {
"enum": [
"ZI_UNSPECIFIED",
Expand Down Expand Up @@ -1650,6 +1658,44 @@
},
"type": "object"
},
"RequirementOverride": {
"id": "RequirementOverride",
"properties": {
"ziOverride": {
"enum": [
"ZI_UNSPECIFIED",
"ZI_UNKNOWN",
"ZI_NOT_REQUIRED",
"ZI_PREFERRED",
"ZI_REQUIRED"
],
"enumDescriptions": [
"",
"To be used if tracking is not available",
"",
"",
""
],
"type": "string"
},
"zsOverride": {
"enum": [
"ZS_UNSPECIFIED",
"ZS_UNKNOWN",
"ZS_NOT_REQUIRED",
"ZS_REQUIRED"
],
"enumDescriptions": [
"",
"To be used if tracking is not available",
"",
""
],
"type": "string"
}
},
"type": "object"
},
"Resource": {
"description": "Message represent resource in execution result",
"id": "Resource",
Expand Down Expand Up @@ -2124,14 +2170,36 @@
"INSTANCE_ROLE_ASCS",
"INSTANCE_ROLE_ERS",
"INSTANCE_ROLE_APP_SERVER",
"INSTANCE_ROLE_DATABASE"
"INSTANCE_ROLE_DATABASE",
"INSTANCE_ROLE_ASCS_ERS",
"INSTANCE_ROLE_ASCS_APP_SERVER",
"INSTANCE_ROLE_ASCS_DATABASE",
"INSTANCE_ROLE_ERS_APP_SERVER",
"INSTANCE_ROLE_ERS_DATABASE",
"INSTANCE_ROLE_APP_SERVER_DATABASE",
"INSTANCE_ROLE_ASCS_ERS_APP_SERVER",
"INSTANCE_ROLE_ASCS_ERS_DATABASE",
"INSTANCE_ROLE_ASCS_APP_SERVER_DATABASE",
"INSTANCE_ROLE_ERS_APP_SERVER_DATABASE",
"INSTANCE_ROLE_ASCS_ERS_APP_SERVER_DATABASE"
],
"enumDescriptions": [
"Unspecified instance role.",
"Application central services.",
"Enqueue replication server.",
"Application server.",
"Database node."
"Database node.",
"Combinations of roles. Application central services and enqueue replication server.",
"Application central services and application server.",
"Application central services and database.",
"Enqueue replication server and application server.",
"Enqueue replication server and database.",
"Application server and database.",
"Application central services, enqueue replication server and application server.",
"Application central services, enqueue replication server and database.",
"Application central services, application server and database.",
"Enqueue replication server, application server and database.",
"Application central services, enqueue replication server, application server and database."
],
"type": "string"
},
Expand Down Expand Up @@ -2318,7 +2386,15 @@
"SpannerLocation": {
"id": "SpannerLocation",
"properties": {
"backupName": {
"description": "Set of backups used by the resource with name in the same format as what is available at http://table/spanner_automon.backup_metadata",
"items": {
"type": "string"
},
"type": "array"
},
"dbName": {
"description": "Set of databases used by the resource in format /span//",
"items": {
"type": "string"
},
Expand Down
21 changes: 20 additions & 1 deletion src/apis/workloadmanager/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ export namespace workloadmanager_v1 {
* Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.
*/
export interface Schema$AssetLocation {
/**
* Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata.
*/
ccfeRmsPath?: string | null;
/**
* Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation.
*/
Expand Down Expand Up @@ -340,7 +344,7 @@ export namespace workloadmanager_v1 {
*/
export interface Schema$ExternalDataSources {
/**
* Required. The asset type of the external data source must be one of go/cai-asset-types
* Required. The asset type of the external data source this can be one of go/cai-asset-types to override the default asset type or it can be a custom type defined by the user custom type must match the asset type in the rule
*/
assetType?: string | null;
/**
Expand Down Expand Up @@ -400,6 +404,10 @@ export namespace workloadmanager_v1 {
sqlserverValidation?: Schema$SqlserverValidation;
}
export interface Schema$IsolationExpectations {
/**
* Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic.
*/
requirementOverride?: Schema$RequirementOverride;
ziOrgPolicy?: string | null;
ziRegionPolicy?: string | null;
ziRegionState?: string | null;
Expand Down Expand Up @@ -630,6 +638,10 @@ export namespace workloadmanager_v1 {
*/
zones?: Schema$ZoneConfiguration[];
}
export interface Schema$RequirementOverride {
ziOverride?: string | null;
zsOverride?: string | null;
}
/**
* Message represent resource in execution result
*/
Expand Down Expand Up @@ -1083,6 +1095,13 @@ export namespace workloadmanager_v1 {
timeoutSeconds?: number | null;
}
export interface Schema$SpannerLocation {
/**
* Set of backups used by the resource with name in the same format as what is available at http://table/spanner_automon.backup_metadata
*/
backupName?: string[] | null;
/**
* Set of databases used by the resource in format /span//
*/
dbName?: string[] | null;
}
/**
Expand Down

0 comments on commit 09ceeaf

Please sign in to comment.