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.
Namespace
Google.Cloud.Compute.V1Assembly
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 |
GrpcClient
public override ServiceAttachments.ServiceAttachmentsClient GrpcClient { get; }
The underlying gRPC ServiceAttachments client
Property Value | |
---|---|
Type | Description |
ServiceAttachmentsServiceAttachmentsClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public override OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |