Class ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.PatchRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.OSConfig.v1alpha
Assembly: Google.Apis.OSConfig.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.PatchRequest : OSConfigBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, OSPolicyAssignment, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, OSPolicyAssignment body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
OSPolicyAssignment | body | |
string | name |
Properties
AllowMissing
Optional. If set to true, and the OS policy assignment is not found, a new OS policy assignment
will be created. In this situation, update_mask
is ignored.
Declaration
[RequestParameter("allowMissing", RequestParameterType.Query)]
public virtual bool? AllowMissing { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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
Resource name. Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}
This field is ignored when you create an OS policy assignment.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RequestId
Optional. A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID
is recommended. This request is only idempotent if a request_id
is provided.
Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
Optional. Field mask that controls which fields of the assignment should be updated.
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()