public sealed class ServicesClientImpl : ServicesClientServices client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Remarks
Cloud Run Service Control Plane API
Constructors
ServicesClientImpl(Services.ServicesClient, ServicesSettings)
public ServicesClientImpl(Services.ServicesClient grpcClient, ServicesSettings settings)Constructs a client wrapper for the Services service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
Services.ServicesClientThe underlying gRPC client. |
settings |
ServicesSettingsThe base ServicesSettings used within this client. |
Properties
CreateServiceOperationsClient
public override OperationsClient CreateServiceOperationsClient { get; }The long-running operations client for CreateService.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteServiceOperationsClient
public override OperationsClient DeleteServiceOperationsClient { get; }The long-running operations client for DeleteService.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override Services.ServicesClient GrpcClient { get; }The underlying gRPC Services client
| Property Value | |
|---|---|
| Type | Description |
Services.ServicesClient |
|
UpdateServiceOperationsClient
public override OperationsClient UpdateServiceOperationsClient { get; }The long-running operations client for UpdateService.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
CreateService(CreateServiceRequest, CallSettings)
public override Operation<Service, Service> CreateService(CreateServiceRequest request, CallSettings callSettings = null)Creates a new Service in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Service, Service> |
The RPC response. |
CreateServiceAsync(CreateServiceRequest, CallSettings)
public override async Task<Operation<Service, Service>> CreateServiceAsync(CreateServiceRequest request, CallSettings callSettings = null)Creates a new Service in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Service, Service>> |
A Task containing the RPC response. |
DeleteService(DeleteServiceRequest, CallSettings)
public override Operation<Service, Service> DeleteService(DeleteServiceRequest request, CallSettings callSettings = null)Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Service, Service> |
The RPC response. |
DeleteServiceAsync(DeleteServiceRequest, CallSettings)
public override async Task<Operation<Service, Service>> DeleteServiceAsync(DeleteServiceRequest request, CallSettings callSettings = null)Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Service, Service>> |
A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)Get the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)Get the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Policy> |
A Task containing the RPC response. |
GetService(GetServiceRequest, CallSettings)
public override Service GetService(GetServiceRequest request, CallSettings callSettings = null)Gets information about a Service.
| Parameters | |
|---|---|
| Name | Description |
request |
GetServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Service |
The RPC response. |
GetServiceAsync(GetServiceRequest, CallSettings)
public override Task<Service> GetServiceAsync(GetServiceRequest request, CallSettings callSettings = null)Gets information about a Service.
| Parameters | |
|---|---|
| Name | Description |
request |
GetServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Service> |
A Task containing the RPC response. |
ListServices(ListServicesRequest, CallSettings)
public override PagedEnumerable<ListServicesResponse, Service> ListServices(ListServicesRequest request, CallSettings callSettings = null)List Services.
| Parameters | |
|---|---|
| Name | Description |
request |
ListServicesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<ListServicesResponse, Service> |
A pageable sequence of Service resources. |
ListServicesAsync(ListServicesRequest, CallSettings)
public override PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ListServicesRequest request, CallSettings callSettings = null)List Services.
| Parameters | |
|---|---|
| Name | Description |
request |
ListServicesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<ListServicesResponse, Service> |
A pageable asynchronous sequence of Service resources. |
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the IAM Access control policy for the specified Service. Overwrites any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)Sets the IAM Access control policy for the specified Service. Overwrites any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Policy> |
A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified Project.
There are no permissions required for making this API call.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestIamPermissionsResponse |
The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified Project.
There are no permissions required for making this API call.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<TestIamPermissionsResponse> |
A Task containing the RPC response. |
UpdateService(UpdateServiceRequest, CallSettings)
public override Operation<Service, Service> UpdateService(UpdateServiceRequest request, CallSettings callSettings = null)Updates a Service.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Service, Service> |
The RPC response. |
UpdateServiceAsync(UpdateServiceRequest, CallSettings)
public override async Task<Operation<Service, Service>> UpdateServiceAsync(UpdateServiceRequest request, CallSettings callSettings = null)Updates a Service.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateServiceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Service, Service>> |
A Task containing the RPC response. |