Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ git_repository(
git_repository(
name = "improbable_platform",
remote = "git@github.com:improbable/platform.git",
commit = "777672f36dbc103621ee04dec1786da2cdd48599",
shallow_since = "2019-02-01",
commit = "e0315520c25f65716ca119d85fc76a967916101c",
shallow_since = "2019-04-01",
)

new_git_repository(
Expand All @@ -86,6 +86,22 @@ new_git_repository(
strip_prefix = "src",
)

new_git_repository(
name = "improbable_protoc_gen_gocli",
commit = "7d7a36b1ec7123d2af3105fe3a3692f8e56880f2",
remote = "git@github.com:improbable/protoc-gen-gocli.git",
build_file = "@//third_party/protoc_gen_gocli:BUILD",
strip_prefix = "bazel_proto",
)

new_git_repository(
name = "com_github_improbable_io_go_proto_logfields_proto",
commit = "6e66e74a1763de7e1372586f671d4a88023297eb",
remote = "https://github.com/improbable-io/go-proto-logfields",
build_file = "@//third_party/proto_logfields:BUILD",
strip_prefix = "src",
)

maven_jar(
name = "com_atlassian_commonmark_commonmark",
artifact = "com.atlassian.commonmark:commonmark:0.9.0",
Expand Down
2 changes: 2 additions & 0 deletions apis/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ proto_library(
":platform_api_protos",
],
deps = [
"@improbable_protoc_gen_gocli//:gocli_proto",
"@com_github_improbable_io_go_proto_logfields_proto//:logfields_proto",
"@com_github_googleapis_googleapis//:important_protos_lib",
"@com_github_mwitkow_go_proto_validators_proto//:validator_proto",
"@com_google_protobuf//:field_mask_proto",
Expand Down
4 changes: 4 additions & 0 deletions apis/deployment_v1alpha1/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ csharp_proto_compile(
name = "grpc",
imports = [
"external/com_github_googleapis_googleapis/",
"external/com_github_improbable_io_go_proto_logfields_proto/",
"external/com_github_mwitkow_go_proto_validators_proto/",
"external/com_google_protobuf/src/",
"external/improbable_protoc_gen_gocli/",
],
inputs = [
"@com_google_protobuf//:well_known_protos",
"@com_github_googleapis_googleapis//:important_protos",
"@com_github_mwitkow_go_proto_validators_proto//:proto",
"@com_github_improbable_io_go_proto_logfields_proto//:proto",
"@improbable_protoc_gen_gocli//:proto",
],
protos = [
"@improbable_platform//proto/improbable/spatialos/deployment:protos",
Expand Down
444 changes: 349 additions & 95 deletions apis/deployment_v1alpha1/Deployment.cs

Large diffs are not rendered by default.

89 changes: 84 additions & 5 deletions apis/deployment_v1alpha1/DeploymentGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static partial class DeploymentService
static readonly grpc::Marshaller<global::Improbable.SpatialOS.Deployment.V1Alpha1.GetDeploymentResponse> __Marshaller_GetDeploymentResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Improbable.SpatialOS.Deployment.V1Alpha1.GetDeploymentResponse.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Improbable.SpatialOS.Deployment.V1Alpha1.CreateDeploymentRequest> __Marshaller_CreateDeploymentRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Improbable.SpatialOS.Deployment.V1Alpha1.CreateDeploymentRequest.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Google.LongRunning.Operation> __Marshaller_Operation = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.LongRunning.Operation.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Improbable.SpatialOS.Deployment.V1Alpha1.DeleteDeploymentRequest> __Marshaller_DeleteDeploymentRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Improbable.SpatialOS.Deployment.V1Alpha1.DeleteDeploymentRequest.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Improbable.SpatialOS.Deployment.V1Alpha1.UpdateDeploymentRequest> __Marshaller_UpdateDeploymentRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Improbable.SpatialOS.Deployment.V1Alpha1.UpdateDeploymentRequest.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Improbable.SpatialOS.Deployment.V1Alpha1.UpdateDeploymentResponse> __Marshaller_UpdateDeploymentResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Improbable.SpatialOS.Deployment.V1Alpha1.UpdateDeploymentResponse.Parser.ParseFrom);
static readonly grpc::Marshaller<global::Improbable.SpatialOS.Deployment.V1Alpha1.StopDeploymentRequest> __Marshaller_StopDeploymentRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Improbable.SpatialOS.Deployment.V1Alpha1.StopDeploymentRequest.Parser.ParseFrom);
Expand All @@ -51,6 +52,13 @@ public static partial class DeploymentService
__Marshaller_CreateDeploymentRequest,
__Marshaller_Operation);

static readonly grpc::Method<global::Improbable.SpatialOS.Deployment.V1Alpha1.DeleteDeploymentRequest, global::Google.LongRunning.Operation> __Method_DeleteDeployment = new grpc::Method<global::Improbable.SpatialOS.Deployment.V1Alpha1.DeleteDeploymentRequest, global::Google.LongRunning.Operation>(
grpc::MethodType.Unary,
__ServiceName,
"DeleteDeployment",
__Marshaller_DeleteDeploymentRequest,
__Marshaller_Operation);

static readonly grpc::Method<global::Improbable.SpatialOS.Deployment.V1Alpha1.UpdateDeploymentRequest, global::Improbable.SpatialOS.Deployment.V1Alpha1.UpdateDeploymentResponse> __Method_UpdateDeployment = new grpc::Method<global::Improbable.SpatialOS.Deployment.V1Alpha1.UpdateDeploymentRequest, global::Improbable.SpatialOS.Deployment.V1Alpha1.UpdateDeploymentResponse>(
grpc::MethodType.Unary,
__ServiceName,
Expand Down Expand Up @@ -109,6 +117,19 @@ public abstract partial class DeploymentServiceBase
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}

/// <summary>
/// Deletes a deployment.
///
/// The returned operation result is of type `DeleteDeploymentResponse` upon successful deletion.
/// </summary>
/// <param name="request">The request received from the client.</param>
/// <param name="context">The context of the server-side call handler being invoked.</param>
/// <returns>The response to send back to the client (wrapped by a task).</returns>
public virtual global::System.Threading.Tasks.Task<global::Google.LongRunning.Operation> DeleteDeployment(global::Improbable.SpatialOS.Deployment.V1Alpha1.DeleteDeploymentRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}

/// <summary>
/// Updates a deployment as identified by the deployment's `id`.
/// </summary>
Expand All @@ -121,7 +142,8 @@ public abstract partial class DeploymentServiceBase
}

/// <summary>
/// Stops a running deployment.
/// Stops a running deployment. You can call this at any point after you've called `CreateDeployment`.
/// To restart a stopped deployment, call `CreateDeployment` with the same parameters as you did to start the deployment originally.
/// </summary>
/// <param name="request">The request received from the client.</param>
/// <param name="context">The context of the server-side call handler being invoked.</param>
Expand Down Expand Up @@ -297,6 +319,58 @@ protected DeploymentServiceClient(ClientBaseConfiguration configuration) : base(
return CallInvoker.AsyncUnaryCall(__Method_CreateDeployment, null, options, request);
}
/// <summary>
/// Deletes a deployment.
///
/// The returned operation result is of type `DeleteDeploymentResponse` upon successful deletion.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
/// <param name="cancellationToken">An optional token for canceling the call.</param>
/// <returns>The response received from the server.</returns>
public virtual global::Google.LongRunning.Operation DeleteDeployment(global::Improbable.SpatialOS.Deployment.V1Alpha1.DeleteDeploymentRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return DeleteDeployment(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
/// <summary>
/// Deletes a deployment.
///
/// The returned operation result is of type `DeleteDeploymentResponse` upon successful deletion.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="options">The options for the call.</param>
/// <returns>The response received from the server.</returns>
public virtual global::Google.LongRunning.Operation DeleteDeployment(global::Improbable.SpatialOS.Deployment.V1Alpha1.DeleteDeploymentRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_DeleteDeployment, null, options, request);
}
/// <summary>
/// Deletes a deployment.
///
/// The returned operation result is of type `DeleteDeploymentResponse` upon successful deletion.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
/// <param name="cancellationToken">An optional token for canceling the call.</param>
/// <returns>The call object.</returns>
public virtual grpc::AsyncUnaryCall<global::Google.LongRunning.Operation> DeleteDeploymentAsync(global::Improbable.SpatialOS.Deployment.V1Alpha1.DeleteDeploymentRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return DeleteDeploymentAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
/// <summary>
/// Deletes a deployment.
///
/// The returned operation result is of type `DeleteDeploymentResponse` upon successful deletion.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="options">The options for the call.</param>
/// <returns>The call object.</returns>
public virtual grpc::AsyncUnaryCall<global::Google.LongRunning.Operation> DeleteDeploymentAsync(global::Improbable.SpatialOS.Deployment.V1Alpha1.DeleteDeploymentRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_DeleteDeployment, null, options, request);
}
/// <summary>
/// Updates a deployment as identified by the deployment's `id`.
/// </summary>
/// <param name="request">The request to send to the server.</param>
Expand Down Expand Up @@ -341,7 +415,8 @@ protected DeploymentServiceClient(ClientBaseConfiguration configuration) : base(
return CallInvoker.AsyncUnaryCall(__Method_UpdateDeployment, null, options, request);
}
/// <summary>
/// Stops a running deployment.
/// Stops a running deployment. You can call this at any point after you've called `CreateDeployment`.
/// To restart a stopped deployment, call `CreateDeployment` with the same parameters as you did to start the deployment originally.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
Expand All @@ -353,7 +428,8 @@ protected DeploymentServiceClient(ClientBaseConfiguration configuration) : base(
return StopDeployment(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
/// <summary>
/// Stops a running deployment.
/// Stops a running deployment. You can call this at any point after you've called `CreateDeployment`.
/// To restart a stopped deployment, call `CreateDeployment` with the same parameters as you did to start the deployment originally.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="options">The options for the call.</param>
Expand All @@ -363,7 +439,8 @@ protected DeploymentServiceClient(ClientBaseConfiguration configuration) : base(
return CallInvoker.BlockingUnaryCall(__Method_StopDeployment, null, options, request);
}
/// <summary>
/// Stops a running deployment.
/// Stops a running deployment. You can call this at any point after you've called `CreateDeployment`.
/// To restart a stopped deployment, call `CreateDeployment` with the same parameters as you did to start the deployment originally.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
Expand All @@ -375,7 +452,8 @@ protected DeploymentServiceClient(ClientBaseConfiguration configuration) : base(
return StopDeploymentAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
/// <summary>
/// Stops a running deployment.
/// Stops a running deployment. You can call this at any point after you've called `CreateDeployment`.
/// To restart a stopped deployment, call `CreateDeployment` with the same parameters as you did to start the deployment originally.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="options">The options for the call.</param>
Expand All @@ -399,6 +477,7 @@ protected override DeploymentServiceClient NewInstance(ClientBaseConfiguration c
.AddMethod(__Method_ListDeployments, serviceImpl.ListDeployments)
.AddMethod(__Method_GetDeployment, serviceImpl.GetDeployment)
.AddMethod(__Method_CreateDeployment, serviceImpl.CreateDeployment)
.AddMethod(__Method_DeleteDeployment, serviceImpl.DeleteDeployment)
.AddMethod(__Method_UpdateDeployment, serviceImpl.UpdateDeployment)
.AddMethod(__Method_StopDeployment, serviceImpl.StopDeployment).Build();
}
Expand Down
Loading