Compute Engine v1 API - Class ServiceAttachments.ServiceAttachmentsClient (2.9.0)

public class ServiceAttachments.ServiceAttachmentsClient : ClientBase<ServiceAttachments.ServiceAttachmentsClient>

Reference documentation and code samples for the Compute Engine v1 API class ServiceAttachments.ServiceAttachmentsClient.

Client for ServiceAttachments

Inheritance

object > ClientBase > ClientBaseServiceAttachmentsServiceAttachmentsClient > ServiceAttachments.ServiceAttachmentsClient

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ServiceAttachmentsClient()

protected ServiceAttachmentsClient()

Protected parameterless constructor to allow creation of test doubles.

ServiceAttachmentsClient(CallInvoker)

public ServiceAttachmentsClient(CallInvoker callInvoker)

Creates a new client for ServiceAttachments that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ServiceAttachmentsClient(ChannelBase)

public ServiceAttachmentsClient(ChannelBase channel)

Creates a new client for ServiceAttachments

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ServiceAttachmentsClient(ClientBaseConfiguration)

protected ServiceAttachmentsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListServiceAttachmentsRequest, CallOptions)

public virtual ServiceAttachmentAggregatedList AggregatedList(AggregatedListServiceAttachmentsRequest request, CallOptions options)

Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListServiceAttachmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ServiceAttachmentAggregatedList

The response received from the server.

AggregatedList(AggregatedListServiceAttachmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual ServiceAttachmentAggregatedList AggregatedList(AggregatedListServiceAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListServiceAttachmentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ServiceAttachmentAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListServiceAttachmentsRequest, CallOptions)

public virtual AsyncUnaryCall<ServiceAttachmentAggregatedList> AggregatedListAsync(AggregatedListServiceAttachmentsRequest request, CallOptions options)

Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListServiceAttachmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallServiceAttachmentAggregatedList

The call object.

AggregatedListAsync(AggregatedListServiceAttachmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ServiceAttachmentAggregatedList> AggregatedListAsync(AggregatedListServiceAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListServiceAttachmentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallServiceAttachmentAggregatedList

The call object.

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
TypeDescription
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteServiceAttachmentRequest, CallOptions)

public virtual Operation Delete(DeleteServiceAttachmentRequest request, CallOptions options)

Deletes the specified ServiceAttachment in the given scope

Parameters
NameDescription
requestDeleteServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified ServiceAttachment in the given scope

Parameters
NameDescription
requestDeleteServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(DeleteServiceAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteServiceAttachmentRequest request, CallOptions options)

Deletes the specified ServiceAttachment in the given scope

Parameters
NameDescription
requestDeleteServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified ServiceAttachment in the given scope

Parameters
NameDescription
requestDeleteServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

Get(GetServiceAttachmentRequest, CallOptions)

public virtual ServiceAttachment Get(GetServiceAttachmentRequest request, CallOptions options)

Returns the specified ServiceAttachment resource in the given scope.

Parameters
NameDescription
requestGetServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ServiceAttachment

The response received from the server.

Get(GetServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual ServiceAttachment Get(GetServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified ServiceAttachment resource in the given scope.

Parameters
NameDescription
requestGetServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ServiceAttachment

The response received from the server.

GetAsync(GetServiceAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<ServiceAttachment> GetAsync(GetServiceAttachmentRequest request, CallOptions options)

Returns the specified ServiceAttachment resource in the given scope.

Parameters
NameDescription
requestGetServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallServiceAttachment

The call object.

GetAsync(GetServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ServiceAttachment> GetAsync(GetServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified ServiceAttachment resource in the given scope.

Parameters
NameDescription
requestGetServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallServiceAttachment

The call object.

GetIamPolicy(GetIamPolicyServiceAttachmentRequest, CallOptions)

public virtual Policy GetIamPolicy(GetIamPolicyServiceAttachmentRequest request, CallOptions options)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

GetIamPolicy(GetIamPolicyServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy GetIamPolicy(GetIamPolicyServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Policy

The response received from the server.

GetIamPolicyAsync(GetIamPolicyServiceAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyServiceAttachmentRequest request, CallOptions options)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

GetIamPolicyAsync(GetIamPolicyServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

Insert(InsertServiceAttachmentRequest, CallOptions)

public virtual Operation Insert(InsertServiceAttachmentRequest request, CallOptions options)

Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.

Parameters
NameDescription
requestInsertServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.

Parameters
NameDescription
requestInsertServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

InsertAsync(InsertServiceAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertServiceAttachmentRequest request, CallOptions options)

Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.

Parameters
NameDescription
requestInsertServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.

Parameters
NameDescription
requestInsertServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

List(ListServiceAttachmentsRequest, CallOptions)

public virtual ServiceAttachmentList List(ListServiceAttachmentsRequest request, CallOptions options)

Lists the ServiceAttachments for a project in the given scope.

Parameters
NameDescription
requestListServiceAttachmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ServiceAttachmentList

The response received from the server.

List(ListServiceAttachmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual ServiceAttachmentList List(ListServiceAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the ServiceAttachments for a project in the given scope.

Parameters
NameDescription
requestListServiceAttachmentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ServiceAttachmentList

The response received from the server.

ListAsync(ListServiceAttachmentsRequest, CallOptions)

public virtual AsyncUnaryCall<ServiceAttachmentList> ListAsync(ListServiceAttachmentsRequest request, CallOptions options)

Lists the ServiceAttachments for a project in the given scope.

Parameters
NameDescription
requestListServiceAttachmentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallServiceAttachmentList

The call object.

ListAsync(ListServiceAttachmentsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ServiceAttachmentList> ListAsync(ListServiceAttachmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the ServiceAttachments for a project in the given scope.

Parameters
NameDescription
requestListServiceAttachmentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallServiceAttachmentList

The call object.

NewInstance(ClientBaseConfiguration)

protected override ServiceAttachments.ServiceAttachmentsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
ServiceAttachmentsServiceAttachmentsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.ServiceAttachments.ServiceAttachmentsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchServiceAttachmentRequest, CallOptions)

public virtual Operation Patch(PatchServiceAttachmentRequest request, CallOptions options)

Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
NameDescription
requestPatchServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Patch(PatchServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
NameDescription
requestPatchServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchAsync(PatchServiceAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchServiceAttachmentRequest request, CallOptions options)

Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
NameDescription
requestPatchServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

Parameters
NameDescription
requestPatchServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SetIamPolicy(SetIamPolicyServiceAttachmentRequest, CallOptions)

public virtual Policy SetIamPolicy(SetIamPolicyServiceAttachmentRequest request, CallOptions options)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Policy

The response received from the server.

SetIamPolicy(SetIamPolicyServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual Policy SetIamPolicy(SetIamPolicyServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Policy

The response received from the server.

SetIamPolicyAsync(SetIamPolicyServiceAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyServiceAttachmentRequest request, CallOptions options)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

SetIamPolicyAsync(SetIamPolicyServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallPolicy

The call object.

TestIamPermissions(TestIamPermissionsServiceAttachmentRequest, CallOptions)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsServiceAttachmentRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissionsAsync(TestIamPermissionsServiceAttachmentRequest, CallOptions)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsServiceAttachmentRequest request, CallOptions options)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsServiceAttachmentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTestPermissionsResponse

The call object.

TestIamPermissionsAsync(TestIamPermissionsServiceAttachmentRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsServiceAttachmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsServiceAttachmentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTestPermissionsResponse

The call object.