Class OrganizationsResource.LocationsResource.PostureDeploymentsResource.PatchRequest
Updates an existing PostureDeployment. To prevent concurrent updates from overwriting each other,
always follow the read-modify-write pattern when you update a posture deployment: 1. Call
GetPostureDeployment to get the current version of the deployment. 2. Update the fields in the
deployment as needed. 3. Call UpdatePostureDeployment to update the deployment. Ensure that your
request includes the etag value from the GetPostureDeployment response. Important: If you omit
the etag when you call UpdatePostureDeployment, then the updated deployment unconditionally
overwrites the existing deployment.
Inheritance
Inherited Members
Namespace: Google.Apis.SecurityPosture.v1
Assembly: Google.Apis.SecurityPosture.v1.dll
Syntax
public class OrganizationsResource.LocationsResource.PostureDeploymentsResource.PatchRequest : SecurityPostureBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, PostureDeployment, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, PostureDeployment body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| PostureDeployment | 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. Identifier. The name of the posture deployment, in the format
organizations/{organization}/locations/global/postureDeployments/{deployment_id}.
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
UpdateMask
Required. The fields in the PostureDeployment to update. You can update only the following fields: * PostureDeployment.posture_id * PostureDeployment.posture_revision_id
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()