Class ProjectsResource.LocationsResource.OsPolicyAssignmentsResource
The "osPolicyAssignments" collection of methods.
Inherited Members
Namespace: Google.Apis.OSConfig.v1alpha
Assembly: Google.Apis.OSConfig.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.OsPolicyAssignmentsResource
Constructors
OsPolicyAssignmentsResource(IClientService)
Constructs a new resource.
Declaration
public OsPolicyAssignmentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Operations
Gets the Operations resource.
Declaration
public virtual ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.OperationsResource Operations { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.OperationsResource |
Methods
Create(OSPolicyAssignment, string)
Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
Declaration
public virtual ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.CreateRequest Create(OSPolicyAssignment body, string parent)
Parameters
Type | Name | Description |
---|---|---|
OSPolicyAssignment | body | The body of the request. |
string | parent | Required. The parent resource name in the form: projects/{project}/locations/{location} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.CreateRequest |
Delete(string)
Delete the OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted. For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
Declaration
public virtual ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the OS policy assignment to be deleted |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.DeleteRequest |
Get(string)
Retrieve an existing OS policy assignment. This method always returns the latest revision. In order
to retrieve a previous revision of the assignment, also provide the revision ID in the name
parameter.
Declaration
public virtual ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of OS policy assignment. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.GetRequest |
List(string)
List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.
Declaration
public virtual ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent resource name. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.ListRequest |
ListRevisions(string)
List the OS policy assignment revisions for a given OS policy assignment.
Declaration
public virtual ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.ListRevisionsRequest ListRevisions(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the OS policy assignment to list revisions for. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.ListRevisionsRequest |
Patch(OSPolicyAssignment, string)
Update an existing OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
Declaration
public virtual ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.PatchRequest Patch(OSPolicyAssignment body, string name)
Parameters
Type | Name | Description |
---|---|---|
OSPolicyAssignment | body | The body of the request. |
string | name | Resource name. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.PatchRequest |