google.cloud.forseti.services.server_config.service module

Server Config gRPC service.

class GrpcServerConfigFactory(config)[source]

Bases: object

Factory class for Server config service gRPC interface

create_and_register_service(server)[source]

Create and register the Service Config service.

Parameters:server (object) – The server object.
Returns:The service object.
Return type:object
class GrpcServiceConfig(service_config)[source]

Bases: google.cloud.forseti.services.server_config.server_pb2_grpc.ServerServicer

Service Config gRPC implementation.

GetLogLevel(request, _)[source]

Get Log level.

Parameters:
  • request (PingRequest) – The ping request.
  • _ (object) – Context of the request.
Returns:

The GetLogLevelReply grpc object.

Return type:

GetLogLevelReply

GetServerConfiguration(request, _)[source]

Get Server Configuration.

Parameters:
  • request (GetServerConfigurationRequest) – The grpc request object.
  • _ (object) – Context of the request.
Returns:

The ReloadConfigurationReply

grpc object.

Return type:

GetServerConfigurationReply

Ping(request, _)[source]

Provides the capability to check for service availability.

Parameters:
  • request (PingRequest) – The ping request.
  • _ (object) – Context of the request.
Returns:

The response to the ping request.

Return type:

PingReply

ReloadServerConfiguration(request, _)[source]

Reload Server Configuration.

Parameters:
  • request (ReloadServerConfigurationRequest) – The grpc request object.
  • _ (object) – Context of the request.
Returns:

The ReloadConfigurationReply

grpc object.

Return type:

ReloadServerConfigurationReply

SetLogLevel(request, _)[source]

Set log level.

Parameters:
  • request (SetLogLevelRequest) – The grpc request object.
  • _ (object) – Context of the request.
Returns:

The SetLogLevelReply grpc object.

Return type:

SetLogLevelReply