|
181 | 181 | },
|
182 | 182 | "workloads": {
|
183 | 183 | "methods": {
|
| 184 | + "analyzeWorkloadMove": { |
| 185 | + "description": "Analyzes a hypothetical move of a source resource to a target workload to surface compliance risks. The analysis is best effort and is not guaranteed to be exhaustive.", |
| 186 | + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}:analyzeWorkloadMove", |
| 187 | + "httpMethod": "GET", |
| 188 | + "id": "assuredworkloads.organizations.locations.workloads.analyzeWorkloadMove", |
| 189 | + "parameterOrder": [ |
| 190 | + "target" |
| 191 | + ], |
| 192 | + "parameters": { |
| 193 | + "assetTypes": { |
| 194 | + "description": "Optional. List of asset types to be analyzed, including and under the source resource. If empty, all assets are analyzed. The complete list of asset types is available [here](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).", |
| 195 | + "location": "query", |
| 196 | + "repeated": true, |
| 197 | + "type": "string" |
| 198 | + }, |
| 199 | + "pageSize": { |
| 200 | + "description": "Optional. Page size. If a value is not specified, the default value of 10 is used.", |
| 201 | + "format": "int32", |
| 202 | + "location": "query", |
| 203 | + "type": "integer" |
| 204 | + }, |
| 205 | + "pageToken": { |
| 206 | + "description": "Optional. The page token from the previous response. It needs to be passed in the second and following requests.", |
| 207 | + "location": "query", |
| 208 | + "type": "string" |
| 209 | + }, |
| 210 | + "project": { |
| 211 | + "description": "The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: \"projects/{PROJECT_NUMBER}\" or \"projects/{PROJECT_ID}\" For example: \"projects/951040570662\" when specifying a project number, or \"projects/my-project-123\" when specifying a project ID.", |
| 212 | + "location": "query", |
| 213 | + "type": "string" |
| 214 | + }, |
| 215 | + "target": { |
| 216 | + "description": "Required. The resource ID of the folder-based destination workload. This workload is where the source resource will hypothetically be moved to. Specify the workload's relative resource name, formatted as: \"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}\" For example: \"organizations/123/locations/us-east1/workloads/assured-workload-2\"", |
| 217 | + "location": "path", |
| 218 | + "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", |
| 219 | + "required": true, |
| 220 | + "type": "string" |
| 221 | + } |
| 222 | + }, |
| 223 | + "path": "v1/{+target}:analyzeWorkloadMove", |
| 224 | + "response": { |
| 225 | + "$ref": "GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse" |
| 226 | + }, |
| 227 | + "scopes": [ |
| 228 | + "https://www.googleapis.com/auth/cloud-platform" |
| 229 | + ] |
| 230 | + }, |
184 | 231 | "create": {
|
185 | 232 | "description": "Creates Assured Workload.",
|
186 | 233 | "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads",
|
|
519 | 566 | }
|
520 | 567 | }
|
521 | 568 | },
|
522 |
| - "revision": "20230831", |
| 569 | + "revision": "20230907", |
523 | 570 | "rootUrl": "https://assuredworkloads.googleapis.com/",
|
524 | 571 | "schemas": {
|
525 | 572 | "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": {
|
|
544 | 591 | "properties": {},
|
545 | 592 | "type": "object"
|
546 | 593 | },
|
| 594 | + "GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse": { |
| 595 | + "description": "Response containing the analysis results for the hypothetical resource move.", |
| 596 | + "id": "GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse", |
| 597 | + "properties": { |
| 598 | + "assetMoveAnalyses": { |
| 599 | + "description": "List of analysis results for each asset in scope.", |
| 600 | + "items": { |
| 601 | + "$ref": "GoogleCloudAssuredworkloadsV1AssetMoveAnalysis" |
| 602 | + }, |
| 603 | + "type": "array" |
| 604 | + }, |
| 605 | + "nextPageToken": { |
| 606 | + "description": "The next page token. Is empty if the last page is reached.", |
| 607 | + "type": "string" |
| 608 | + } |
| 609 | + }, |
| 610 | + "type": "object" |
| 611 | + }, |
| 612 | + "GoogleCloudAssuredworkloadsV1AssetMoveAnalysis": { |
| 613 | + "description": "Represents move analysis results for an asset.", |
| 614 | + "id": "GoogleCloudAssuredworkloadsV1AssetMoveAnalysis", |
| 615 | + "properties": { |
| 616 | + "analysisGroups": { |
| 617 | + "description": "List of eligible analyses performed for the asset.", |
| 618 | + "items": { |
| 619 | + "$ref": "GoogleCloudAssuredworkloadsV1MoveAnalysisGroup" |
| 620 | + }, |
| 621 | + "type": "array" |
| 622 | + }, |
| 623 | + "asset": { |
| 624 | + "description": "The full resource name of the asset being analyzed. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1", |
| 625 | + "type": "string" |
| 626 | + }, |
| 627 | + "assetType": { |
| 628 | + "description": "Type of the asset being analyzed. Possible values will be among the ones listed [here](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).", |
| 629 | + "type": "string" |
| 630 | + } |
| 631 | + }, |
| 632 | + "type": "object" |
| 633 | + }, |
547 | 634 | "GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata": {
|
548 | 635 | "description": "Operation metadata to give request details of CreateWorkload.",
|
549 | 636 | "id": "GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata",
|
|
644 | 731 | },
|
645 | 732 | "type": "object"
|
646 | 733 | },
|
| 734 | + "GoogleCloudAssuredworkloadsV1MoveAnalysisGroup": { |
| 735 | + "description": "Represents a logical group of checks performed for an asset. If successful, the group contains the analysis result, otherwise it contains an error with the failure reason.", |
| 736 | + "id": "GoogleCloudAssuredworkloadsV1MoveAnalysisGroup", |
| 737 | + "properties": { |
| 738 | + "analysisResult": { |
| 739 | + "$ref": "GoogleCloudAssuredworkloadsV1MoveAnalysisResult", |
| 740 | + "description": "Result of a successful analysis." |
| 741 | + }, |
| 742 | + "displayName": { |
| 743 | + "description": "Name of the analysis group.", |
| 744 | + "type": "string" |
| 745 | + }, |
| 746 | + "error": { |
| 747 | + "$ref": "GoogleRpcStatus", |
| 748 | + "description": "Error details for a failed analysis." |
| 749 | + } |
| 750 | + }, |
| 751 | + "type": "object" |
| 752 | + }, |
| 753 | + "GoogleCloudAssuredworkloadsV1MoveAnalysisResult": { |
| 754 | + "description": "Represents the successful move analysis results for a group.", |
| 755 | + "id": "GoogleCloudAssuredworkloadsV1MoveAnalysisResult", |
| 756 | + "properties": { |
| 757 | + "blockers": { |
| 758 | + "description": "List of blockers. If not resolved, these will result in compliance violations in the target.", |
| 759 | + "items": { |
| 760 | + "$ref": "GoogleCloudAssuredworkloadsV1MoveImpact" |
| 761 | + }, |
| 762 | + "type": "array" |
| 763 | + }, |
| 764 | + "warnings": { |
| 765 | + "description": "List of warnings. These are risks that may or may not result in compliance violations.", |
| 766 | + "items": { |
| 767 | + "$ref": "GoogleCloudAssuredworkloadsV1MoveImpact" |
| 768 | + }, |
| 769 | + "type": "array" |
| 770 | + } |
| 771 | + }, |
| 772 | + "type": "object" |
| 773 | + }, |
| 774 | + "GoogleCloudAssuredworkloadsV1MoveImpact": { |
| 775 | + "description": "Represents the impact of moving the asset to the target.", |
| 776 | + "id": "GoogleCloudAssuredworkloadsV1MoveImpact", |
| 777 | + "properties": { |
| 778 | + "detail": { |
| 779 | + "description": "Explanation of the impact.", |
| 780 | + "type": "string" |
| 781 | + } |
| 782 | + }, |
| 783 | + "type": "object" |
| 784 | + }, |
647 | 785 | "GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest": {
|
648 | 786 | "description": "Request for updating permission settings for a partner workload.",
|
649 | 787 | "id": "GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest",
|
|
0 commit comments