public sealed class ServiceManagerClientImpl : ServiceManagerClient
ServiceManager client wrapper implementation, for convenient use.
Namespace
Google.Cloud.ServiceManagement.V1Assembly
Google.Cloud.ServiceManagement.V1.dll
Remarks
Constructors
ServiceManagerClientImpl(ServiceManager.ServiceManagerClient, ServiceManagerSettings)
public ServiceManagerClientImpl(ServiceManager.ServiceManagerClient grpcClient, ServiceManagerSettings settings)
Constructs a client wrapper for the ServiceManager service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | ServiceManager.ServiceManagerClient The underlying gRPC client. |
settings | ServiceManagerSettings The base ServiceManagerSettings used within this client. |
Properties
CreateServiceOperationsClient
public override OperationsClient CreateServiceOperationsClient { get; }
The long-running operations client for CreateService
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateServiceRolloutOperationsClient
public override OperationsClient CreateServiceRolloutOperationsClient { get; }
The long-running operations client for CreateServiceRollout
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteServiceOperationsClient
public override OperationsClient DeleteServiceOperationsClient { get; }
The long-running operations client for DeleteService
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DisableServiceOperationsClient
public override OperationsClient DisableServiceOperationsClient { get; }
The long-running operations client for DisableService
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
EnableServiceOperationsClient
public override OperationsClient EnableServiceOperationsClient { get; }
The long-running operations client for EnableService
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override ServiceManager.ServiceManagerClient GrpcClient { get; }
The underlying gRPC ServiceManager client
Property Value | |
---|---|
Type | Description |
ServiceManager.ServiceManagerClient |
SubmitConfigSourceOperationsClient
public override OperationsClient SubmitConfigSourceOperationsClient { get; }
The long-running operations client for SubmitConfigSource
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UndeleteServiceOperationsClient
public override OperationsClient UndeleteServiceOperationsClient { get; }
The long-running operations client for UndeleteService
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
CreateService(CreateServiceRequest, CallSettings)
public override Operation<ManagedService, OperationMetadata> CreateService(CreateServiceRequest request, CallSettings callSettings = null)
Creates a new managed service. Please note one producer project can own no more than 20 services.
Operation<response: ManagedService>
Parameters | |
---|---|
Name | Description |
request | CreateServiceRequest 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 |
Operation<ManagedService, OperationMetadata> | The RPC response. |
CreateServiceAsync(CreateServiceRequest, CallSettings)
public override Task<Operation<ManagedService, OperationMetadata>> CreateServiceAsync(CreateServiceRequest request, CallSettings callSettings = null)
Creates a new managed service. Please note one producer project can own no more than 20 services.
Operation<response: ManagedService>
Parameters | |
---|---|
Name | Description |
request | CreateServiceRequest 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 |
Task<Operation<ManagedService, OperationMetadata>> | A Task containing the RPC response. |
CreateServiceConfig(CreateServiceConfigRequest, CallSettings)
public override Service CreateServiceConfig(CreateServiceConfigRequest request, CallSettings callSettings = null)
Creates a new service configuration (version) for a managed service. This method only stores the service configuration. To roll out the service configuration to backend systems please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
Only the 100 most recent service configurations and ones referenced by existing rollouts are kept for each service. The rest will be deleted eventually.
Parameters | |
---|---|
Name | Description |
request | CreateServiceConfigRequest 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 |
Service | The RPC response. |
CreateServiceConfigAsync(CreateServiceConfigRequest, CallSettings)
public override Task<Service> CreateServiceConfigAsync(CreateServiceConfigRequest request, CallSettings callSettings = null)
Creates a new service configuration (version) for a managed service. This method only stores the service configuration. To roll out the service configuration to backend systems please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
Only the 100 most recent service configurations and ones referenced by existing rollouts are kept for each service. The rest will be deleted eventually.
Parameters | |
---|---|
Name | Description |
request | CreateServiceConfigRequest 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 |
Task<Service> | A Task containing the RPC response. |
CreateServiceRollout(CreateServiceRolloutRequest, CallSettings)
public override Operation<Rollout, OperationMetadata> CreateServiceRollout(CreateServiceRolloutRequest request, CallSettings callSettings = null)
Creates a new service configuration rollout. Based on rollout, the Google Service Management will roll out the service configurations to different backend services. For example, the logging configuration will be pushed to Google Cloud Logging.
Please note that any previous pending and running Rollouts and associated Operations will be automatically cancelled so that the latest Rollout will not be blocked by previous Rollouts.
Only the 100 most recent (in any state) and the last 10 successful (if not already part of the set of 100 most recent) rollouts are kept for each service. The rest will be deleted eventually.
Operation<response: Rollout>
Parameters | |
---|---|
Name | Description |
request | CreateServiceRolloutRequest 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 |
Operation<Rollout, OperationMetadata> | The RPC response. |
CreateServiceRolloutAsync(CreateServiceRolloutRequest, CallSettings)
public override Task<Operation<Rollout, OperationMetadata>> CreateServiceRolloutAsync(CreateServiceRolloutRequest request, CallSettings callSettings = null)
Creates a new service configuration rollout. Based on rollout, the Google Service Management will roll out the service configurations to different backend services. For example, the logging configuration will be pushed to Google Cloud Logging.
Please note that any previous pending and running Rollouts and associated Operations will be automatically cancelled so that the latest Rollout will not be blocked by previous Rollouts.
Only the 100 most recent (in any state) and the last 10 successful (if not already part of the set of 100 most recent) rollouts are kept for each service. The rest will be deleted eventually.
Operation<response: Rollout>
Parameters | |
---|---|
Name | Description |
request | CreateServiceRolloutRequest 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 |
Task<Operation<Rollout, OperationMetadata>> | A Task containing the RPC response. |
DeleteService(DeleteServiceRequest, CallSettings)
public override Operation<Empty, OperationMetadata> DeleteService(DeleteServiceRequest request, CallSettings callSettings = null)
Deletes a managed service. This method will change the service to the
Soft-Delete
state for 30 days. Within this period, service producers may
call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service.
After 30 days, the service will be permanently deleted.
Operation<response: google.protobuf.Empty>
Parameters | |
---|---|
Name | Description |
request | DeleteServiceRequest 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 |
Operation<Empty, OperationMetadata> | The RPC response. |
DeleteServiceAsync(DeleteServiceRequest, CallSettings)
public override Task<Operation<Empty, OperationMetadata>> DeleteServiceAsync(DeleteServiceRequest request, CallSettings callSettings = null)
Deletes a managed service. This method will change the service to the
Soft-Delete
state for 30 days. Within this period, service producers may
call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service.
After 30 days, the service will be permanently deleted.
Operation<response: google.protobuf.Empty>
Parameters | |
---|---|
Name | Description |
request | DeleteServiceRequest 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 |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
DisableService(DisableServiceRequest, CallSettings)
[Obsolete]
public override Operation<DisableServiceResponse, OperationMetadata> DisableService(DisableServiceRequest request, CallSettings callSettings = null)
Disables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can no longer be be used for the project. It prevents accidental usage that may cause unexpected billing charges or security leaks.
Operation<response: DisableServiceResponse>
Parameters | |
---|---|
Name | Description |
request | DisableServiceRequest 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 |
Operation<DisableServiceResponse, OperationMetadata> | The RPC response. |
DisableServiceAsync(DisableServiceRequest, CallSettings)
[Obsolete]
public override Task<Operation<DisableServiceResponse, OperationMetadata>> DisableServiceAsync(DisableServiceRequest request, CallSettings callSettings = null)
Disables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can no longer be be used for the project. It prevents accidental usage that may cause unexpected billing charges or security leaks.
Operation<response: DisableServiceResponse>
Parameters | |
---|---|
Name | Description |
request | DisableServiceRequest 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 |
Task<Operation<DisableServiceResponse, OperationMetadata>> | A Task containing the RPC response. |
EnableService(EnableServiceRequest, CallSettings)
[Obsolete]
public override Operation<EnableServiceResponse, OperationMetadata> EnableService(EnableServiceRequest request, CallSettings callSettings = null)
Enables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can be used for the project. See Cloud Auth Guide for more information.
Operation<response: EnableServiceResponse>
Parameters | |
---|---|
Name | Description |
request | EnableServiceRequest 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 |
Operation<EnableServiceResponse, OperationMetadata> | The RPC response. |
EnableServiceAsync(EnableServiceRequest, CallSettings)
[Obsolete]
public override Task<Operation<EnableServiceResponse, OperationMetadata>> EnableServiceAsync(EnableServiceRequest request, CallSettings callSettings = null)
Enables a [service][google.api.servicemanagement.v1.ManagedService] for a project, so it can be used for the project. See Cloud Auth Guide for more information.
Operation<response: EnableServiceResponse>
Parameters | |
---|---|
Name | Description |
request | EnableServiceRequest 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 |
Task<Operation<EnableServiceResponse, OperationMetadata>> | A Task containing the RPC response. |
GenerateConfigReport(GenerateConfigReportRequest, CallSettings)
public override GenerateConfigReportResponse GenerateConfigReport(GenerateConfigReportRequest request, CallSettings callSettings = null)
Generates and returns a report (errors, warnings and changes from existing configurations) associated with GenerateConfigReportRequest.new_value
If GenerateConfigReportRequest.old_value is specified, GenerateConfigReportRequest will contain a single ChangeReport based on the comparison between GenerateConfigReportRequest.new_value and GenerateConfigReportRequest.old_value. If GenerateConfigReportRequest.old_value is not specified, this method will compare GenerateConfigReportRequest.new_value with the last pushed service configuration.
Parameters | |
---|---|
Name | Description |
request | GenerateConfigReportRequest 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 |
GenerateConfigReportResponse | The RPC response. |
GenerateConfigReportAsync(GenerateConfigReportRequest, CallSettings)
public override Task<GenerateConfigReportResponse> GenerateConfigReportAsync(GenerateConfigReportRequest request, CallSettings callSettings = null)
Generates and returns a report (errors, warnings and changes from existing configurations) associated with GenerateConfigReportRequest.new_value
If GenerateConfigReportRequest.old_value is specified, GenerateConfigReportRequest will contain a single ChangeReport based on the comparison between GenerateConfigReportRequest.new_value and GenerateConfigReportRequest.old_value. If GenerateConfigReportRequest.old_value is not specified, this method will compare GenerateConfigReportRequest.new_value with the last pushed service configuration.
Parameters | |
---|---|
Name | Description |
request | GenerateConfigReportRequest 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 |
Task<GenerateConfigReportResponse> | A Task containing the RPC response. |
GetService(GetServiceRequest, CallSettings)
public override ManagedService GetService(GetServiceRequest request, CallSettings callSettings = null)
Gets a managed service. Authentication is required unless the service is public.
Parameters | |
---|---|
Name | Description |
request | GetServiceRequest 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 |
ManagedService | The RPC response. |
GetServiceAsync(GetServiceRequest, CallSettings)
public override Task<ManagedService> GetServiceAsync(GetServiceRequest request, CallSettings callSettings = null)
Gets a managed service. Authentication is required unless the service is public.
Parameters | |
---|---|
Name | Description |
request | GetServiceRequest 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 |
Task<ManagedService> | A Task containing the RPC response. |
GetServiceConfig(GetServiceConfigRequest, CallSettings)
public override Service GetServiceConfig(GetServiceConfigRequest request, CallSettings callSettings = null)
Gets a service configuration (version) for a managed service.
Parameters | |
---|---|
Name | Description |
request | GetServiceConfigRequest 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 |
Service | The RPC response. |
GetServiceConfigAsync(GetServiceConfigRequest, CallSettings)
public override Task<Service> GetServiceConfigAsync(GetServiceConfigRequest request, CallSettings callSettings = null)
Gets a service configuration (version) for a managed service.
Parameters | |
---|---|
Name | Description |
request | GetServiceConfigRequest 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 |
Task<Service> | A Task containing the RPC response. |
GetServiceRollout(GetServiceRolloutRequest, CallSettings)
public override Rollout GetServiceRollout(GetServiceRolloutRequest request, CallSettings callSettings = null)
Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout].
Parameters | |
---|---|
Name | Description |
request | GetServiceRolloutRequest 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 |
Rollout | The RPC response. |
GetServiceRolloutAsync(GetServiceRolloutRequest, CallSettings)
public override Task<Rollout> GetServiceRolloutAsync(GetServiceRolloutRequest request, CallSettings callSettings = null)
Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout].
Parameters | |
---|---|
Name | Description |
request | GetServiceRolloutRequest 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 |
Task<Rollout> | A Task containing the RPC response. |
ListServiceConfigs(ListServiceConfigsRequest, CallSettings)
public override PagedEnumerable<ListServiceConfigsResponse, Service> ListServiceConfigs(ListServiceConfigsRequest request, CallSettings callSettings = null)
Lists the history of the service configuration for a managed service, from the newest to the oldest.
Parameters | |
---|---|
Name | Description |
request | ListServiceConfigsRequest 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 |
PagedEnumerable<ListServiceConfigsResponse, Service> | A pageable sequence of Service resources. |
ListServiceConfigsAsync(ListServiceConfigsRequest, CallSettings)
public override PagedAsyncEnumerable<ListServiceConfigsResponse, Service> ListServiceConfigsAsync(ListServiceConfigsRequest request, CallSettings callSettings = null)
Lists the history of the service configuration for a managed service, from the newest to the oldest.
Parameters | |
---|---|
Name | Description |
request | ListServiceConfigsRequest 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 |
PagedAsyncEnumerable<ListServiceConfigsResponse, Service> | A pageable asynchronous sequence of Service resources. |
ListServiceRollouts(ListServiceRolloutsRequest, CallSettings)
public override PagedEnumerable<ListServiceRolloutsResponse, Rollout> ListServiceRollouts(ListServiceRolloutsRequest request, CallSettings callSettings = null)
Lists the history of the service configuration rollouts for a managed service, from the newest to the oldest.
Parameters | |
---|---|
Name | Description |
request | ListServiceRolloutsRequest 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 |
PagedEnumerable<ListServiceRolloutsResponse, Rollout> | A pageable sequence of Rollout resources. |
ListServiceRolloutsAsync(ListServiceRolloutsRequest, CallSettings)
public override PagedAsyncEnumerable<ListServiceRolloutsResponse, Rollout> ListServiceRolloutsAsync(ListServiceRolloutsRequest request, CallSettings callSettings = null)
Lists the history of the service configuration rollouts for a managed service, from the newest to the oldest.
Parameters | |
---|---|
Name | Description |
request | ListServiceRolloutsRequest 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 |
PagedAsyncEnumerable<ListServiceRolloutsResponse, Rollout> | A pageable asynchronous sequence of Rollout resources. |
ListServices(ListServicesRequest, CallSettings)
public override PagedEnumerable<ListServicesResponse, ManagedService> ListServices(ListServicesRequest request, CallSettings callSettings = null)
Lists managed services.
Returns all public services. For authenticated users, also returns all services the calling user has "servicemanagement.services.get" permission for.
BETA: If the caller specifies the consumer_id
, it returns only the
services enabled on the consumer. The consumer_id
must have the format
of "project:{PROJECT-ID}".
Parameters | |
---|---|
Name | Description |
request | ListServicesRequest 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 |
PagedEnumerable<ListServicesResponse, ManagedService> | A pageable sequence of ManagedService resources. |
ListServicesAsync(ListServicesRequest, CallSettings)
public override PagedAsyncEnumerable<ListServicesResponse, ManagedService> ListServicesAsync(ListServicesRequest request, CallSettings callSettings = null)
Lists managed services.
Returns all public services. For authenticated users, also returns all services the calling user has "servicemanagement.services.get" permission for.
BETA: If the caller specifies the consumer_id
, it returns only the
services enabled on the consumer. The consumer_id
must have the format
of "project:{PROJECT-ID}".
Parameters | |
---|---|
Name | Description |
request | ListServicesRequest 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 |
PagedAsyncEnumerable<ListServicesResponse, ManagedService> | A pageable asynchronous sequence of ManagedService resources. |
SubmitConfigSource(SubmitConfigSourceRequest, CallSettings)
public override Operation<SubmitConfigSourceResponse, OperationMetadata> SubmitConfigSource(SubmitConfigSourceRequest request, CallSettings callSettings = null)
Creates a new service configuration (version) for a managed service based on user-supplied configuration source files (for example: OpenAPI Specification). This method stores the source configurations as well as the generated service configuration. To rollout the service configuration to other services, please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
Only the 100 most recent configuration sources and ones referenced by existing service configurtions are kept for each service. The rest will be deleted eventually.
Operation<response: SubmitConfigSourceResponse>
Parameters | |
---|---|
Name | Description |
request | SubmitConfigSourceRequest 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 |
Operation<SubmitConfigSourceResponse, OperationMetadata> | The RPC response. |
SubmitConfigSourceAsync(SubmitConfigSourceRequest, CallSettings)
public override Task<Operation<SubmitConfigSourceResponse, OperationMetadata>> SubmitConfigSourceAsync(SubmitConfigSourceRequest request, CallSettings callSettings = null)
Creates a new service configuration (version) for a managed service based on user-supplied configuration source files (for example: OpenAPI Specification). This method stores the source configurations as well as the generated service configuration. To rollout the service configuration to other services, please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
Only the 100 most recent configuration sources and ones referenced by existing service configurtions are kept for each service. The rest will be deleted eventually.
Operation<response: SubmitConfigSourceResponse>
Parameters | |
---|---|
Name | Description |
request | SubmitConfigSourceRequest 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 |
Task<Operation<SubmitConfigSourceResponse, OperationMetadata>> | A Task containing the RPC response. |
UndeleteService(UndeleteServiceRequest, CallSettings)
public override Operation<UndeleteServiceResponse, OperationMetadata> UndeleteService(UndeleteServiceRequest request, CallSettings callSettings = null)
Revives a previously deleted managed service. The method restores the service using the configuration at the time the service was deleted. The target service must exist and must have been deleted within the last 30 days.
Operation<response: UndeleteServiceResponse>
Parameters | |
---|---|
Name | Description |
request | UndeleteServiceRequest 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 |
Operation<UndeleteServiceResponse, OperationMetadata> | The RPC response. |
UndeleteServiceAsync(UndeleteServiceRequest, CallSettings)
public override Task<Operation<UndeleteServiceResponse, OperationMetadata>> UndeleteServiceAsync(UndeleteServiceRequest request, CallSettings callSettings = null)
Revives a previously deleted managed service. The method restores the service using the configuration at the time the service was deleted. The target service must exist and must have been deleted within the last 30 days.
Operation<response: UndeleteServiceResponse>
Parameters | |
---|---|
Name | Description |
request | UndeleteServiceRequest 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 |
Task<Operation<UndeleteServiceResponse, OperationMetadata>> | A Task containing the RPC response. |