Class OrganizationsResource.LocationsResource.WorkloadsResource.AnalyzeWorkloadMoveRequest
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.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Assuredworkloads.v1
Assembly: Google.Apis.Assuredworkloads.v1.dll
Syntax
public class OrganizationsResource.LocationsResource.WorkloadsResource.AnalyzeWorkloadMoveRequest : AssuredworkloadsBaseServiceRequest<GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse>, IClientServiceRequest<GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse>, IClientServiceRequest
Constructors
AnalyzeWorkloadMoveRequest(IClientService, string)
Constructs a new AnalyzeWorkloadMove request.
Declaration
public AnalyzeWorkloadMoveRequest(IClientService service, string target)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | target |
Properties
AssetTypes
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.
Declaration
[RequestParameter("assetTypes", RequestParameterType.Query)]
public virtual Repeatable<string> AssetTypes { get; set; }
Property Value
| Type | Description |
|---|---|
| Repeatable<string> |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
PageSize
Optional. Page size. If a value is not specified, the default value of 10 is used. The maximum value is 50.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
PageToken
Optional. The page token from the previous response. It needs to be passed in the second and following requests.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Project
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.
Declaration
[RequestParameter("project", RequestParameterType.Query)]
public virtual string Project { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Target
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"
Declaration
[RequestParameter("target", RequestParameterType.Path)]
public virtual string Target { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
InitParameters()
Initializes AnalyzeWorkloadMove parameter list.
Declaration
protected override void InitParameters()