Class OrganizationsResource.LocationsResource.WorkloadsResource.RestrictAllowedResourcesRequest
Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Assuredworkloads.v1
Assembly: Google.Apis.Assuredworkloads.v1.dll
Syntax
public class OrganizationsResource.LocationsResource.WorkloadsResource.RestrictAllowedResourcesRequest : AssuredworkloadsBaseServiceRequest<GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse>, IClientServiceRequest<GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse>, IClientServiceRequest
Constructors
RestrictAllowedResourcesRequest(IClientService, GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest, string)
Constructs a new RestrictAllowedResources request.
Declaration
public RestrictAllowedResourcesRequest(IClientService service, GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest | body | |
string | name |
Properties
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
Name
Required. The resource name of the Workload. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes RestrictAllowedResources parameter list.
Declaration
protected override void InitParameters()