Skip to content

Commit

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

The following keys were added:
- schemas.GoogleCloudAssuredworkloadsV1Workload.properties.resourceSettings.description
- schemas.GoogleCloudAssuredworkloadsV1Workload.properties.resourceSettings.items.$ref
- schemas.GoogleCloudAssuredworkloadsV1Workload.properties.resourceSettings.type
- schemas.GoogleCloudAssuredworkloadsV1WorkloadResourceSettings.description
- schemas.GoogleCloudAssuredworkloadsV1WorkloadResourceSettings.id
- schemas.GoogleCloudAssuredworkloadsV1WorkloadResourceSettings.properties.resourceId.description
- schemas.GoogleCloudAssuredworkloadsV1WorkloadResourceSettings.properties.resourceId.type
- schemas.GoogleCloudAssuredworkloadsV1WorkloadResourceSettings.properties.resourceType.description
- schemas.GoogleCloudAssuredworkloadsV1WorkloadResourceSettings.properties.resourceType.enum
- schemas.GoogleCloudAssuredworkloadsV1WorkloadResourceSettings.properties.resourceType.enumDescriptions
- schemas.GoogleCloudAssuredworkloadsV1WorkloadResourceSettings.properties.resourceType.type
- schemas.GoogleCloudAssuredworkloadsV1WorkloadResourceSettings.type

The following keys were changed:
- schemas.GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata.properties.complianceRegime.enum
- schemas.GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata.properties.complianceRegime.enumDescriptions
- schemas.GoogleCloudAssuredworkloadsV1Workload.properties.complianceRegime.enum
- schemas.GoogleCloudAssuredworkloadsV1Workload.properties.complianceRegime.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 20, 2021
1 parent 075e1fc commit 6804095
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 5 deletions.
50 changes: 45 additions & 5 deletions discovery/assuredworkloads-v1.json
Expand Up @@ -351,7 +351,7 @@
}
}
},
"revision": "20210325",
"revision": "20210408",
"rootUrl": "https://assuredworkloads.googleapis.com/",
"schemas": {
"GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": {
Expand All @@ -366,15 +366,19 @@
"CJIS",
"FEDRAMP_HIGH",
"FEDRAMP_MODERATE",
"US_REGIONAL_ACCESS"
"US_REGIONAL_ACCESS",
"HIPAA",
"HITRUST"
],
"enumDescriptions": [
"Unknown compliance regime.",
"Information protection as per DoD IL4 requirements.",
"Criminal Justice Information Services (CJIS) Security policies.",
"FedRAMP High data protection controls",
"FedRAMP Moderate data protection controls",
"Assured Workloads For US Regions data protection controls"
"Assured Workloads For US Regions data protection controls",
"Health Insurance Portability and Accountability Act controls",
"Health Information Trust Alliance controls"
],
"type": "string"
},
Expand Down Expand Up @@ -428,15 +432,19 @@
"CJIS",
"FEDRAMP_HIGH",
"FEDRAMP_MODERATE",
"US_REGIONAL_ACCESS"
"US_REGIONAL_ACCESS",
"HIPAA",
"HITRUST"
],
"enumDescriptions": [
"Unknown compliance regime.",
"Information protection as per DoD IL4 requirements.",
"Criminal Justice Information Services (CJIS) Security policies.",
"FedRAMP High data protection controls",
"FedRAMP Moderate data protection controls",
"Assured Workloads For US Regions data protection controls"
"Assured Workloads For US Regions data protection controls",
"Health Insurance Portability and Accountability Act controls",
"Health Information Trust Alliance controls"
],
"type": "string"
},
Expand Down Expand Up @@ -473,6 +481,13 @@
"description": "Input only. The parent resource for the resources managed by this Assured Workload. May be either an organization or a folder. Must be the same or a child of the Workload parent. If not specified all resources are created under the Workload parent. Formats: folders/{folder_id} organizations/{organization_id}",
"type": "string"
},
"resourceSettings": {
"description": "Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.",
"items": {
"$ref": "GoogleCloudAssuredworkloadsV1WorkloadResourceSettings"
},
"type": "array"
},
"resources": {
"description": "Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.",
"items": {
Expand Down Expand Up @@ -527,6 +542,31 @@
},
"type": "object"
},
"GoogleCloudAssuredworkloadsV1WorkloadResourceSettings": {
"description": "Represent the custom settings for the resources to be created.",
"id": "GoogleCloudAssuredworkloadsV1WorkloadResourceSettings",
"properties": {
"resourceId": {
"description": "Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail.",
"type": "string"
},
"resourceType": {
"description": "Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)",
"enum": [
"RESOURCE_TYPE_UNSPECIFIED",
"CONSUMER_PROJECT",
"ENCRYPTION_KEYS_PROJECT"
],
"enumDescriptions": [
"Unknown resource type.",
"Consumer project.",
"Consumer project containing encryption keys."
],
"type": "string"
}
},
"type": "object"
},
"GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata": {
"description": "Operation metadata to give request details of CreateWorkload.",
"id": "GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata",
Expand Down
21 changes: 21 additions & 0 deletions src/apis/assuredworkloads/v1.ts
Expand Up @@ -364,6 +364,10 @@ export namespace assuredworkloads_v1 {
* Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
*/
resources?: Schema$GoogleCloudAssuredworkloadsV1WorkloadResourceInfo[];
/**
* Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
*/
resourceSettings?: Schema$GoogleCloudAssuredworkloadsV1WorkloadResourceSettings[];
}
/**
* Settings specific to the Key Management Service.
Expand Down Expand Up @@ -391,6 +395,19 @@ export namespace assuredworkloads_v1 {
*/
resourceType?: string | null;
}
/**
* Represent the custom settings for the resources to be created.
*/
export interface Schema$GoogleCloudAssuredworkloadsV1WorkloadResourceSettings {
/**
* Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail.
*/
resourceId?: string | null;
/**
* Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
*/
resourceType?: string | null;
}
/**
* The response message for Operations.ListOperations.
*/
Expand Down Expand Up @@ -845,6 +862,7 @@ export namespace assuredworkloads_v1 {
* // "labels": {},
* // "name": "my_name",
* // "provisionedResourcesParent": "my_provisionedResourcesParent",
* // "resourceSettings": [],
* // "resources": []
* // }
* },
Expand Down Expand Up @@ -1135,6 +1153,7 @@ export namespace assuredworkloads_v1 {
* // "labels": {},
* // "name": "my_name",
* // "provisionedResourcesParent": "my_provisionedResourcesParent",
* // "resourceSettings": [],
* // "resources": []
* // }
* }
Expand Down Expand Up @@ -1429,6 +1448,7 @@ export namespace assuredworkloads_v1 {
* // "labels": {},
* // "name": "my_name",
* // "provisionedResourcesParent": "my_provisionedResourcesParent",
* // "resourceSettings": [],
* // "resources": []
* // }
* },
Expand All @@ -1446,6 +1466,7 @@ export namespace assuredworkloads_v1 {
* // "labels": {},
* // "name": "my_name",
* // "provisionedResourcesParent": "my_provisionedResourcesParent",
* // "resourceSettings": [],
* // "resources": []
* // }
* }
Expand Down

0 comments on commit 6804095

Please sign in to comment.