Class OrganizationsResource.LocationsResource.PosturesResource.PatchRequest
Updates a revision of an existing Posture. If the posture revision that you update is currently
deployed, then a new revision of the posture is created. To prevent concurrent updates from
overwriting each other, always follow the read-modify-write pattern when you update a posture: 1.
Call GetPosture to get the current version of the posture. 2. Update the fields in the posture as
needed. 3. Call UpdatePosture to update the posture. Ensure that your request includes the etag
value from the GetPosture response. Important: If you omit the etag when you call
UpdatePosture, then the updated posture unconditionally overwrites the existing posture.
Inheritance
Inherited Members
Namespace: Google.Apis.SecurityPosture.v1
Assembly: Google.Apis.SecurityPosture.v1.dll
Syntax
public class OrganizationsResource.LocationsResource.PosturesResource.PatchRequest : SecurityPostureBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Posture, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Posture body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Posture | 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, in the format
organizations/{organization}/locations/global/postures/{posture_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
RevisionId
Required. The revision ID of the posture to update. If the posture revision that you update is currently deployed, then a new revision of the posture is created.
Declaration
[RequestParameter("revisionId", RequestParameterType.Query)]
public virtual string RevisionId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpdateMask
Required. The fields in the Posture to update. You can update only the following fields: * Posture.description * Posture.policy_sets * Posture.state
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()