Compute Engine v1 API - Class ServiceAttachmentsClientImpl (2.15.0)

public sealed class ServiceAttachmentsClientImpl : ServiceAttachmentsClient

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

ServiceAttachments client wrapper implementation, for convenient use.

Inheritance

object > ServiceAttachmentsClient > ServiceAttachmentsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The ServiceAttachments API.

Constructors

ServiceAttachmentsClientImpl(ServiceAttachmentsClient, ServiceAttachmentsSettings, ILogger)

public ServiceAttachmentsClientImpl(ServiceAttachments.ServiceAttachmentsClient grpcClient, ServiceAttachmentsSettings settings, ILogger logger)

Constructs a client wrapper for the ServiceAttachments service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient ServiceAttachmentsServiceAttachmentsClient

The underlying gRPC client.

settings ServiceAttachmentsSettings

The base ServiceAttachmentsSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override ServiceAttachments.ServiceAttachmentsClient GrpcClient { get; }

The underlying gRPC ServiceAttachments client

Property Value
Type Description
ServiceAttachmentsServiceAttachmentsClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
Type Description
OperationsClient
Overrides

Methods

AggregatedList(AggregatedListServiceAttachmentsRequest, CallSettings)

public override PagedEnumerable<ServiceAttachmentAggregatedList, KeyValuePair<string, ServiceAttachmentsScopedList>> AggregatedList(AggregatedListServiceAttachmentsRequest request, CallSettings callSettings = null)

Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListServiceAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableServiceAttachmentAggregatedListKeyValuePairstringServiceAttachmentsScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Overrides

AggregatedListAsync(AggregatedListServiceAttachmentsRequest, CallSettings)

public override PagedAsyncEnumerable<ServiceAttachmentAggregatedList, KeyValuePair<string, ServiceAttachmentsScopedList>> AggregatedListAsync(AggregatedListServiceAttachmentsRequest request, CallSettings callSettings = null)

Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListServiceAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableServiceAttachmentAggregatedListKeyValuePairstringServiceAttachmentsScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Overrides

Delete(DeleteServiceAttachmentRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteServiceAttachmentRequest request, CallSettings callSettings = null)

Deletes the specified ServiceAttachment in the given scope

Parameters
Name Description
request DeleteServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteServiceAttachmentRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteServiceAttachmentRequest request, CallSettings callSettings = null)

Deletes the specified ServiceAttachment in the given scope

Parameters
Name Description
request DeleteServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetServiceAttachmentRequest, CallSettings)

public override ServiceAttachment Get(GetServiceAttachmentRequest request, CallSettings callSettings = null)

Returns the specified ServiceAttachment resource in the given scope.

Parameters
Name Description
request GetServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ServiceAttachment

The RPC response.

Overrides

GetAsync(GetServiceAttachmentRequest, CallSettings)

public override Task<ServiceAttachment> GetAsync(GetServiceAttachmentRequest request, CallSettings callSettings = null)

Returns the specified ServiceAttachment resource in the given scope.

Parameters
Name Description
request GetServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskServiceAttachment

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyServiceAttachmentRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyServiceAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetIamPolicyServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyServiceAttachmentRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyServiceAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetIamPolicyServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

Insert(InsertServiceAttachmentRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertServiceAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertServiceAttachmentRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertServiceAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request InsertServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListServiceAttachmentsRequest, CallSettings)

public override PagedEnumerable<ServiceAttachmentList, ServiceAttachment> List(ListServiceAttachmentsRequest request, CallSettings callSettings = null)

Lists the ServiceAttachments for a project in the given scope.

Parameters
Name Description
request ListServiceAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableServiceAttachmentListServiceAttachment

A pageable sequence of ServiceAttachment resources.

Overrides

ListAsync(ListServiceAttachmentsRequest, CallSettings)

public override PagedAsyncEnumerable<ServiceAttachmentList, ServiceAttachment> ListAsync(ListServiceAttachmentsRequest request, CallSettings callSettings = null)

Lists the ServiceAttachments for a project in the given scope.

Parameters
Name Description
request ListServiceAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableServiceAttachmentListServiceAttachment

A pageable asynchronous sequence of ServiceAttachment resources.

Overrides

Patch(PatchServiceAttachmentRequest, CallSettings)

public override Operation<Operation, Operation> Patch(PatchServiceAttachmentRequest request, CallSettings callSettings = null)

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
Name Description
request PatchServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

PatchAsync(PatchServiceAttachmentRequest, CallSettings)

public override Task<Operation<Operation, Operation>> PatchAsync(PatchServiceAttachmentRequest request, CallSettings callSettings = null)

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
Name Description
request PatchServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

SetIamPolicy(SetIamPolicyServiceAttachmentRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyServiceAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyServiceAttachmentRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyServiceAttachmentRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsServiceAttachmentRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsServiceAttachmentRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsServiceAttachmentRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsServiceAttachmentRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsServiceAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides