public class RegionSecurityPoliciesClient : ClientBase<RegionSecurityPolicies.RegionSecurityPoliciesClient>
Reference documentation and code samples for the Compute Engine v1 API class RegionSecurityPolicies.RegionSecurityPoliciesClient.
Client for RegionSecurityPolicies
Inheritance
Object > ClientBase > ClientBase<RegionSecurityPolicies.RegionSecurityPoliciesClient> > RegionSecurityPolicies.RegionSecurityPoliciesClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
RegionSecurityPoliciesClient()
protected RegionSecurityPoliciesClient()
Protected parameterless constructor to allow creation of test doubles.
RegionSecurityPoliciesClient(CallInvoker)
public RegionSecurityPoliciesClient(CallInvoker callInvoker)
Creates a new client for RegionSecurityPolicies that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
RegionSecurityPoliciesClient(ChannelBase)
public RegionSecurityPoliciesClient(ChannelBase channel)
Creates a new client for RegionSecurityPolicies
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
RegionSecurityPoliciesClient(ClientBase.ClientBaseConfiguration)
protected RegionSecurityPoliciesClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
CreateOperationsClientForRegionOperations()
public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to RegionOperations.
Returns | |
---|---|
Type | Description |
Operations.OperationsClient | A new Operations client for the same target as this client. |
Delete(DeleteRegionSecurityPolicyRequest, CallOptions)
public virtual Operation Delete(DeleteRegionSecurityPolicyRequest request, CallOptions options)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteRegionSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Delete(DeleteRegionSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Delete(DeleteRegionSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteRegionSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
DeleteAsync(DeleteRegionSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteRegionSecurityPolicyRequest request, CallOptions options)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteRegionSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
DeleteAsync(DeleteRegionSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteRegionSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request | DeleteRegionSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
Get(GetRegionSecurityPolicyRequest, CallOptions)
public virtual SecurityPolicy Get(GetRegionSecurityPolicyRequest request, CallOptions options)
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetRegionSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicy | The response received from the server. |
Get(GetRegionSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual SecurityPolicy Get(GetRegionSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetRegionSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicy | The response received from the server. |
GetAsync(GetRegionSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<SecurityPolicy> GetAsync(GetRegionSecurityPolicyRequest request, CallOptions options)
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetRegionSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicy> | The call object. |
GetAsync(GetRegionSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<SecurityPolicy> GetAsync(GetRegionSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
List all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request | GetRegionSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicy> | The call object. |
Insert(InsertRegionSecurityPolicyRequest, CallOptions)
public virtual Operation Insert(InsertRegionSecurityPolicyRequest request, CallOptions options)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertRegionSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Insert(InsertRegionSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Insert(InsertRegionSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertRegionSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
InsertAsync(InsertRegionSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertRegionSecurityPolicyRequest request, CallOptions options)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertRegionSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
InsertAsync(InsertRegionSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertRegionSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertRegionSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
List(ListRegionSecurityPoliciesRequest, CallOptions)
public virtual SecurityPolicyList List(ListRegionSecurityPoliciesRequest request, CallOptions options)
List all the policies that have been configured for the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListRegionSecurityPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicyList | The response received from the server. |
List(ListRegionSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual SecurityPolicyList List(ListRegionSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
List all the policies that have been configured for the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListRegionSecurityPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
SecurityPolicyList | The response received from the server. |
ListAsync(ListRegionSecurityPoliciesRequest, CallOptions)
public virtual AsyncUnaryCall<SecurityPolicyList> ListAsync(ListRegionSecurityPoliciesRequest request, CallOptions options)
List all the policies that have been configured for the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListRegionSecurityPoliciesRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicyList> | The call object. |
ListAsync(ListRegionSecurityPoliciesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<SecurityPolicyList> ListAsync(ListRegionSecurityPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
List all the policies that have been configured for the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListRegionSecurityPoliciesRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<SecurityPolicyList> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override RegionSecurityPolicies.RegionSecurityPoliciesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
RegionSecurityPolicies.RegionSecurityPoliciesClient |
Patch(PatchRegionSecurityPolicyRequest, CallOptions)
public virtual Operation Patch(PatchRegionSecurityPolicyRequest request, CallOptions options)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request | PatchRegionSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
Patch(PatchRegionSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation Patch(PatchRegionSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request | PatchRegionSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
PatchAsync(PatchRegionSecurityPolicyRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> PatchAsync(PatchRegionSecurityPolicyRequest request, CallOptions options)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request | PatchRegionSecurityPolicyRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
PatchAsync(PatchRegionSecurityPolicyRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> PatchAsync(PatchRegionSecurityPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request | PatchRegionSecurityPolicyRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |