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
NameDescription
grpcClientServiceAttachmentsServiceAttachmentsClient

The underlying gRPC client.

settingsServiceAttachmentsSettings

The base ServiceAttachmentsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override ServiceAttachments.ServiceAttachmentsClient GrpcClient { get; }

The underlying gRPC ServiceAttachments client

Property Value
TypeDescription
ServiceAttachmentsServiceAttachmentsClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
TypeDescription
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
NameDescription
requestAggregatedListServiceAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestAggregatedListServiceAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListServiceAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListServiceAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestPatchServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestPatchServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsServiceAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides