Class ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.CreateRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.OSConfig.v1alpha
Assembly: Google.Apis.OSConfig.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.OsPolicyAssignmentsResource.CreateRequest : OSConfigBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, OSPolicyAssignment, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, OSPolicyAssignment body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
OSPolicyAssignment | body | |
string | parent |
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
OsPolicyAssignmentId
Required. The logical name of the OS policy assignment in the project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.
Declaration
[RequestParameter("osPolicyAssignmentId", RequestParameterType.Query)]
public virtual string OsPolicyAssignmentId { get; set; }
Property Value
Type | Description |
---|---|
string |
Parent
Required. The parent resource name in the form: projects/{project}/locations/{location}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()