Show / Hide Table of Contents

Class OrganizationsResource.LocationsResource.PosturesResource

The "postures" collection of methods.

Inheritance
object
OrganizationsResource.LocationsResource.PosturesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.SecurityPosture.v1
Assembly: Google.Apis.SecurityPosture.v1.dll
Syntax
public class OrganizationsResource.LocationsResource.PosturesResource

Constructors

PosturesResource(IClientService)

Constructs a new resource.

Declaration
public PosturesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(Posture, string)

Creates a new Posture.

Declaration
public virtual OrganizationsResource.LocationsResource.PosturesResource.CreateRequest Create(Posture body, string parent)
Parameters
Type Name Description
Posture body

The body of the request.

string parent

Required. The parent resource name, in the format organizations/{organization}/locations/global.

Returns
Type Description
OrganizationsResource.LocationsResource.PosturesResource.CreateRequest

Delete(string)

Deletes all revisions of a Posture. You can only delete a posture if none of its revisions are deployed.

Declaration
public virtual OrganizationsResource.LocationsResource.PosturesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the Posture, in the format organizations/{organization}/locations/global/postures/{posture_id}.

Returns
Type Description
OrganizationsResource.LocationsResource.PosturesResource.DeleteRequest

Extract(ExtractPostureRequest, string)

Extracts existing policies from an organization, folder, or project, and applies them to another organization, folder, or project as a Posture. If the other organization, folder, or project already has a posture, then the result of the long-running operation is an ALREADY_EXISTS error.

Declaration
public virtual OrganizationsResource.LocationsResource.PosturesResource.ExtractRequest Extract(ExtractPostureRequest body, string parent)
Parameters
Type Name Description
ExtractPostureRequest body

The body of the request.

string parent

Required. The parent resource name, in the format organizations/{organization}/locations/global.

Returns
Type Description
OrganizationsResource.LocationsResource.PosturesResource.ExtractRequest

Get(string)

Gets a single revision of a Posture.

Declaration
public virtual OrganizationsResource.LocationsResource.PosturesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the Posture, in the format organizations/{organization}/locations/global/postures/{posture_id}.

Returns
Type Description
OrganizationsResource.LocationsResource.PosturesResource.GetRequest

List(string)

Lists the most recent revisions of all Posture resources in a specified organization and location.

Declaration
public virtual OrganizationsResource.LocationsResource.PosturesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent resource name, in the format organizations/{organization}/locations/global.

Returns
Type Description
OrganizationsResource.LocationsResource.PosturesResource.ListRequest

ListRevisions(string)

Lists all revisions of a single Posture.

Declaration
public virtual OrganizationsResource.LocationsResource.PosturesResource.ListRevisionsRequest ListRevisions(string name)
Parameters
Type Name Description
string name

Required. The name of the Posture, in the format organizations/{organization}/locations/global/postures/{posture_id}.

Returns
Type Description
OrganizationsResource.LocationsResource.PosturesResource.ListRevisionsRequest

Patch(Posture, string)

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.

Declaration
public virtual OrganizationsResource.LocationsResource.PosturesResource.PatchRequest Patch(Posture body, string name)
Parameters
Type Name Description
Posture body

The body of the request.

string name

Required. Identifier. The name of the posture, in the format organizations/{organization}/locations/global/postures/{posture_id}.

Returns
Type Description
OrganizationsResource.LocationsResource.PosturesResource.PatchRequest
In this article
Back to top Generated by DocFX