public abstract class ManagedNotebookServiceClient
Reference documentation and code samples for the AI Platform Notebooks v1 API class ManagedNotebookServiceClient.
ManagedNotebookService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Notebooks.V1Assembly
Google.Cloud.Notebooks.V1.dll
Remarks
API v1 service for Managed Notebooks.
Properties
CreateRuntimeOperationsClient
public virtual OperationsClient CreateRuntimeOperationsClient { get; }
The long-running operations client for CreateRuntime
.
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the ManagedNotebookService service, which is a host of "notebooks.googleapis.com" and a port of 443.
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default ManagedNotebookService scopes.
Type | Description |
IReadOnlyList<String> |
The default ManagedNotebookService scopes are:
DeleteRuntimeOperationsClient
public virtual OperationsClient DeleteRuntimeOperationsClient { get; }
The long-running operations client for DeleteRuntime
.
Type | Description |
OperationsClient |
DiagnoseRuntimeOperationsClient
public virtual OperationsClient DiagnoseRuntimeOperationsClient { get; }
The long-running operations client for DiagnoseRuntime
.
Type | Description |
OperationsClient |
GrpcClient
public virtual ManagedNotebookService.ManagedNotebookServiceClient GrpcClient { get; }
The underlying gRPC ManagedNotebookService client
Type | Description |
ManagedNotebookService.ManagedNotebookServiceClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Type | Description |
IAMPolicyClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Type | Description |
LocationsClient |
ReportRuntimeEventOperationsClient
public virtual OperationsClient ReportRuntimeEventOperationsClient { get; }
The long-running operations client for ReportRuntimeEvent
.
Type | Description |
OperationsClient |
ResetRuntimeOperationsClient
public virtual OperationsClient ResetRuntimeOperationsClient { get; }
The long-running operations client for ResetRuntime
.
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Type | Description |
ServiceMetadata |
StartRuntimeOperationsClient
public virtual OperationsClient StartRuntimeOperationsClient { get; }
The long-running operations client for StartRuntime
.
Type | Description |
OperationsClient |
StopRuntimeOperationsClient
public virtual OperationsClient StopRuntimeOperationsClient { get; }
The long-running operations client for StopRuntime
.
Type | Description |
OperationsClient |
SwitchRuntimeOperationsClient
public virtual OperationsClient SwitchRuntimeOperationsClient { get; }
The long-running operations client for SwitchRuntime
.
Type | Description |
OperationsClient |
UpdateRuntimeOperationsClient
public virtual OperationsClient UpdateRuntimeOperationsClient { get; }
The long-running operations client for UpdateRuntime
.
Type | Description |
OperationsClient |
UpgradeRuntimeOperationsClient
public virtual OperationsClient UpgradeRuntimeOperationsClient { get; }
The long-running operations client for UpgradeRuntime
.
Type | Description |
OperationsClient |
Methods
Create()
public static ManagedNotebookServiceClient Create()
Synchronously creates a ManagedNotebookServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ManagedNotebookServiceClientBuilder.
Type | Description |
ManagedNotebookServiceClient | The created ManagedNotebookServiceClient. |
CreateAsync(CancellationToken)
public static Task<ManagedNotebookServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a ManagedNotebookServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ManagedNotebookServiceClientBuilder.
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Type | Description |
Task<ManagedNotebookServiceClient> | The task representing the created ManagedNotebookServiceClient. |
CreateRuntime(CreateRuntimeRequest, CallSettings)
public virtual Operation<Runtime, OperationMetadata> CreateRuntime(CreateRuntimeRequest request, CallSettings callSettings = null)
Creates a new Runtime in a given project and location.
Name | Description |
request | CreateRuntimeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Runtime, OperationMetadata> | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
CreateRuntimeRequest request = new CreateRuntimeRequest
{
ParentAsRuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
RuntimeId = "",
Runtime = new Runtime(),
RequestId = "",
};
// Make the request
Operation<Runtime, OperationMetadata> response = managedNotebookServiceClient.CreateRuntime(request);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = managedNotebookServiceClient.PollOnceCreateRuntime(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
CreateRuntime(RuntimeName, String, Runtime, CallSettings)
public virtual Operation<Runtime, OperationMetadata> CreateRuntime(RuntimeName parent, string runtimeId, Runtime runtime, CallSettings callSettings = null)
Creates a new Runtime in a given project and location.
Name | Description |
parent | RuntimeName Required. Format:
|
runtimeId | String Required. User-defined unique ID of this Runtime. |
runtime | Runtime Required. The Runtime to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Runtime, OperationMetadata> | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
RuntimeName parent = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
string runtimeId = "";
Runtime runtime = new Runtime();
// Make the request
Operation<Runtime, OperationMetadata> response = managedNotebookServiceClient.CreateRuntime(parent, runtimeId, runtime);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = managedNotebookServiceClient.PollOnceCreateRuntime(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
CreateRuntime(String, String, Runtime, CallSettings)
public virtual Operation<Runtime, OperationMetadata> CreateRuntime(string parent, string runtimeId, Runtime runtime, CallSettings callSettings = null)
Creates a new Runtime in a given project and location.
Name | Description |
parent | String Required. Format:
|
runtimeId | String Required. User-defined unique ID of this Runtime. |
runtime | Runtime Required. The Runtime to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Runtime, OperationMetadata> | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
string runtimeId = "";
Runtime runtime = new Runtime();
// Make the request
Operation<Runtime, OperationMetadata> response = managedNotebookServiceClient.CreateRuntime(parent, runtimeId, runtime);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = managedNotebookServiceClient.PollOnceCreateRuntime(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
CreateRuntimeAsync(CreateRuntimeRequest, CallSettings)
public virtual Task<Operation<Runtime, OperationMetadata>> CreateRuntimeAsync(CreateRuntimeRequest request, CallSettings callSettings = null)
Creates a new Runtime in a given project and location.
Name | Description |
request | CreateRuntimeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRuntimeRequest request = new CreateRuntimeRequest
{
ParentAsRuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
RuntimeId = "",
Runtime = new Runtime(),
RequestId = "",
};
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.CreateRuntimeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceCreateRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
CreateRuntimeAsync(CreateRuntimeRequest, CancellationToken)
public virtual Task<Operation<Runtime, OperationMetadata>> CreateRuntimeAsync(CreateRuntimeRequest request, CancellationToken cancellationToken)
Creates a new Runtime in a given project and location.
Name | Description |
request | CreateRuntimeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRuntimeRequest request = new CreateRuntimeRequest
{
ParentAsRuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
RuntimeId = "",
Runtime = new Runtime(),
RequestId = "",
};
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.CreateRuntimeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceCreateRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
CreateRuntimeAsync(RuntimeName, String, Runtime, CallSettings)
public virtual Task<Operation<Runtime, OperationMetadata>> CreateRuntimeAsync(RuntimeName parent, string runtimeId, Runtime runtime, CallSettings callSettings = null)
Creates a new Runtime in a given project and location.
Name | Description |
parent | RuntimeName Required. Format:
|
runtimeId | String Required. User-defined unique ID of this Runtime. |
runtime | Runtime Required. The Runtime to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeName parent = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
string runtimeId = "";
Runtime runtime = new Runtime();
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.CreateRuntimeAsync(parent, runtimeId, runtime);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceCreateRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
CreateRuntimeAsync(RuntimeName, String, Runtime, CancellationToken)
public virtual Task<Operation<Runtime, OperationMetadata>> CreateRuntimeAsync(RuntimeName parent, string runtimeId, Runtime runtime, CancellationToken cancellationToken)
Creates a new Runtime in a given project and location.
Name | Description |
parent | RuntimeName Required. Format:
|
runtimeId | String Required. User-defined unique ID of this Runtime. |
runtime | Runtime Required. The Runtime to be created. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeName parent = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
string runtimeId = "";
Runtime runtime = new Runtime();
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.CreateRuntimeAsync(parent, runtimeId, runtime);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceCreateRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
CreateRuntimeAsync(String, String, Runtime, CallSettings)
public virtual Task<Operation<Runtime, OperationMetadata>> CreateRuntimeAsync(string parent, string runtimeId, Runtime runtime, CallSettings callSettings = null)
Creates a new Runtime in a given project and location.
Name | Description |
parent | String Required. Format:
|
runtimeId | String Required. User-defined unique ID of this Runtime. |
runtime | Runtime Required. The Runtime to be created. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
string runtimeId = "";
Runtime runtime = new Runtime();
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.CreateRuntimeAsync(parent, runtimeId, runtime);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceCreateRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
CreateRuntimeAsync(String, String, Runtime, CancellationToken)
public virtual Task<Operation<Runtime, OperationMetadata>> CreateRuntimeAsync(string parent, string runtimeId, Runtime runtime, CancellationToken cancellationToken)
Creates a new Runtime in a given project and location.
Name | Description |
parent | String Required. Format:
|
runtimeId | String Required. User-defined unique ID of this Runtime. |
runtime | Runtime Required. The Runtime to be created. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
string runtimeId = "";
Runtime runtime = new Runtime();
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.CreateRuntimeAsync(parent, runtimeId, runtime);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceCreateRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
DeleteRuntime(DeleteRuntimeRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRuntime(DeleteRuntimeRequest request, CallSettings callSettings = null)
Deletes a single Runtime.
Name | Description |
request | DeleteRuntimeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
DeleteRuntimeRequest request = new DeleteRuntimeRequest
{
RuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = managedNotebookServiceClient.DeleteRuntime(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = managedNotebookServiceClient.PollOnceDeleteRuntime(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRuntime(RuntimeName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRuntime(RuntimeName name, CallSettings callSettings = null)
Deletes a single Runtime.
Name | Description |
name | RuntimeName Required. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
RuntimeName name = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
// Make the request
Operation<Empty, OperationMetadata> response = managedNotebookServiceClient.DeleteRuntime(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = managedNotebookServiceClient.PollOnceDeleteRuntime(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRuntime(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRuntime(string name, CallSettings callSettings = null)
Deletes a single Runtime.
Name | Description |
name | String Required. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
// Make the request
Operation<Empty, OperationMetadata> response = managedNotebookServiceClient.DeleteRuntime(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = managedNotebookServiceClient.PollOnceDeleteRuntime(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRuntimeAsync(DeleteRuntimeRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRuntimeAsync(DeleteRuntimeRequest request, CallSettings callSettings = null)
Deletes a single Runtime.
Name | Description |
request | DeleteRuntimeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRuntimeRequest request = new DeleteRuntimeRequest
{
RuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await managedNotebookServiceClient.DeleteRuntimeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDeleteRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRuntimeAsync(DeleteRuntimeRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRuntimeAsync(DeleteRuntimeRequest request, CancellationToken cancellationToken)
Deletes a single Runtime.
Name | Description |
request | DeleteRuntimeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRuntimeRequest request = new DeleteRuntimeRequest
{
RuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await managedNotebookServiceClient.DeleteRuntimeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDeleteRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRuntimeAsync(RuntimeName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRuntimeAsync(RuntimeName name, CallSettings callSettings = null)
Deletes a single Runtime.
Name | Description |
name | RuntimeName Required. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeName name = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
// Make the request
Operation<Empty, OperationMetadata> response = await managedNotebookServiceClient.DeleteRuntimeAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDeleteRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRuntimeAsync(RuntimeName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRuntimeAsync(RuntimeName name, CancellationToken cancellationToken)
Deletes a single Runtime.
Name | Description |
name | RuntimeName Required. Format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeName name = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
// Make the request
Operation<Empty, OperationMetadata> response = await managedNotebookServiceClient.DeleteRuntimeAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDeleteRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRuntimeAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRuntimeAsync(string name, CallSettings callSettings = null)
Deletes a single Runtime.
Name | Description |
name | String Required. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
// Make the request
Operation<Empty, OperationMetadata> response = await managedNotebookServiceClient.DeleteRuntimeAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDeleteRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRuntimeAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRuntimeAsync(string name, CancellationToken cancellationToken)
Deletes a single Runtime.
Name | Description |
name | String Required. Format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
// Make the request
Operation<Empty, OperationMetadata> response = await managedNotebookServiceClient.DeleteRuntimeAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDeleteRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DiagnoseRuntime(DiagnoseRuntimeRequest, CallSettings)
public virtual Operation<Runtime, OperationMetadata> DiagnoseRuntime(DiagnoseRuntimeRequest request, CallSettings callSettings = null)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Name | Description |
request | DiagnoseRuntimeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Runtime, OperationMetadata> | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
DiagnoseRuntimeRequest request = new DiagnoseRuntimeRequest
{
RuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
DiagnosticConfig = new DiagnosticConfig(),
};
// Make the request
Operation<Runtime, OperationMetadata> response = managedNotebookServiceClient.DiagnoseRuntime(request);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = managedNotebookServiceClient.PollOnceDiagnoseRuntime(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
DiagnoseRuntime(RuntimeName, DiagnosticConfig, CallSettings)
public virtual Operation<Runtime, OperationMetadata> DiagnoseRuntime(RuntimeName name, DiagnosticConfig diagnosticConfig, CallSettings callSettings = null)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Name | Description |
name | RuntimeName Required. Format:
|
diagnosticConfig | DiagnosticConfig Required. Defines flags that are used to run the diagnostic tool |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Runtime, OperationMetadata> | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
RuntimeName name = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
DiagnosticConfig diagnosticConfig = new DiagnosticConfig();
// Make the request
Operation<Runtime, OperationMetadata> response = managedNotebookServiceClient.DiagnoseRuntime(name, diagnosticConfig);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = managedNotebookServiceClient.PollOnceDiagnoseRuntime(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
DiagnoseRuntime(String, DiagnosticConfig, CallSettings)
public virtual Operation<Runtime, OperationMetadata> DiagnoseRuntime(string name, DiagnosticConfig diagnosticConfig, CallSettings callSettings = null)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Name | Description |
name | String Required. Format:
|
diagnosticConfig | DiagnosticConfig Required. Defines flags that are used to run the diagnostic tool |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Operation<Runtime, OperationMetadata> | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
DiagnosticConfig diagnosticConfig = new DiagnosticConfig();
// Make the request
Operation<Runtime, OperationMetadata> response = managedNotebookServiceClient.DiagnoseRuntime(name, diagnosticConfig);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = managedNotebookServiceClient.PollOnceDiagnoseRuntime(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
DiagnoseRuntimeAsync(DiagnoseRuntimeRequest, CallSettings)
public virtual Task<Operation<Runtime, OperationMetadata>> DiagnoseRuntimeAsync(DiagnoseRuntimeRequest request, CallSettings callSettings = null)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Name | Description |
request | DiagnoseRuntimeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
DiagnoseRuntimeRequest request = new DiagnoseRuntimeRequest
{
RuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
DiagnosticConfig = new DiagnosticConfig(),
};
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.DiagnoseRuntimeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDiagnoseRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
DiagnoseRuntimeAsync(DiagnoseRuntimeRequest, CancellationToken)
public virtual Task<Operation<Runtime, OperationMetadata>> DiagnoseRuntimeAsync(DiagnoseRuntimeRequest request, CancellationToken cancellationToken)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Name | Description |
request | DiagnoseRuntimeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
DiagnoseRuntimeRequest request = new DiagnoseRuntimeRequest
{
RuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
DiagnosticConfig = new DiagnosticConfig(),
};
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.DiagnoseRuntimeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDiagnoseRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
DiagnoseRuntimeAsync(RuntimeName, DiagnosticConfig, CallSettings)
public virtual Task<Operation<Runtime, OperationMetadata>> DiagnoseRuntimeAsync(RuntimeName name, DiagnosticConfig diagnosticConfig, CallSettings callSettings = null)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Name | Description |
name | RuntimeName Required. Format:
|
diagnosticConfig | DiagnosticConfig Required. Defines flags that are used to run the diagnostic tool |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeName name = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
DiagnosticConfig diagnosticConfig = new DiagnosticConfig();
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.DiagnoseRuntimeAsync(name, diagnosticConfig);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDiagnoseRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
DiagnoseRuntimeAsync(RuntimeName, DiagnosticConfig, CancellationToken)
public virtual Task<Operation<Runtime, OperationMetadata>> DiagnoseRuntimeAsync(RuntimeName name, DiagnosticConfig diagnosticConfig, CancellationToken cancellationToken)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Name | Description |
name | RuntimeName Required. Format:
|
diagnosticConfig | DiagnosticConfig Required. Defines flags that are used to run the diagnostic tool |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeName name = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
DiagnosticConfig diagnosticConfig = new DiagnosticConfig();
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.DiagnoseRuntimeAsync(name, diagnosticConfig);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDiagnoseRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
DiagnoseRuntimeAsync(String, DiagnosticConfig, CallSettings)
public virtual Task<Operation<Runtime, OperationMetadata>> DiagnoseRuntimeAsync(string name, DiagnosticConfig diagnosticConfig, CallSettings callSettings = null)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Name | Description |
name | String Required. Format:
|
diagnosticConfig | DiagnosticConfig Required. Defines flags that are used to run the diagnostic tool |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
DiagnosticConfig diagnosticConfig = new DiagnosticConfig();
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.DiagnoseRuntimeAsync(name, diagnosticConfig);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDiagnoseRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
DiagnoseRuntimeAsync(String, DiagnosticConfig, CancellationToken)
public virtual Task<Operation<Runtime, OperationMetadata>> DiagnoseRuntimeAsync(string name, DiagnosticConfig diagnosticConfig, CancellationToken cancellationToken)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Name | Description |
name | String Required. Format:
|
diagnosticConfig | DiagnosticConfig Required. Defines flags that are used to run the diagnostic tool |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Operation<Runtime, OperationMetadata>> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
DiagnosticConfig diagnosticConfig = new DiagnosticConfig();
// Make the request
Operation<Runtime, OperationMetadata> response = await managedNotebookServiceClient.DiagnoseRuntimeAsync(name, diagnosticConfig);
// Poll until the returned long-running operation is complete
Operation<Runtime, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Runtime result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Runtime, OperationMetadata> retrievedResponse = await managedNotebookServiceClient.PollOnceDiagnoseRuntimeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Runtime retrievedResult = retrievedResponse.Result;
}
GetRuntime(GetRuntimeRequest, CallSettings)
public virtual Runtime GetRuntime(GetRuntimeRequest request, CallSettings callSettings = null)
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
Name | Description |
request | GetRuntimeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Runtime | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
GetRuntimeRequest request = new GetRuntimeRequest
{
RuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
};
// Make the request
Runtime response = managedNotebookServiceClient.GetRuntime(request);
GetRuntime(RuntimeName, CallSettings)
public virtual Runtime GetRuntime(RuntimeName name, CallSettings callSettings = null)
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
Name | Description |
name | RuntimeName Required. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Runtime | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
RuntimeName name = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]");
// Make the request
Runtime response = managedNotebookServiceClient.GetRuntime(name);
GetRuntime(String, CallSettings)
public virtual Runtime GetRuntime(string name, CallSettings callSettings = null)
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
Name | Description |
name | String Required. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Runtime | The RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = ManagedNotebookServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimes/[RUNTIME]";
// Make the request
Runtime response = managedNotebookServiceClient.GetRuntime(name);
GetRuntimeAsync(GetRuntimeRequest, CallSettings)
public virtual Task<Runtime> GetRuntimeAsync(GetRuntimeRequest request, CallSettings callSettings = null)
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
Name | Description |
request | GetRuntimeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Runtime> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
GetRuntimeRequest request = new GetRuntimeRequest
{
RuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
};
// Make the request
Runtime response = await managedNotebookServiceClient.GetRuntimeAsync(request);
GetRuntimeAsync(GetRuntimeRequest, CancellationToken)
public virtual Task<Runtime> GetRuntimeAsync(GetRuntimeRequest request, CancellationToken cancellationToken)
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
Name | Description |
request | GetRuntimeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Type | Description |
Task<Runtime> | A Task containing the RPC response. |
// Create client
ManagedNotebookServiceClient managedNotebookServiceClient = await ManagedNotebookServiceClient.CreateAsync();
// Initialize request argument(s)
GetRuntimeRequest request = new GetRuntimeRequest
{
RuntimeName = RuntimeName.FromProjectLocationRuntime("[PROJECT]", "[LOCATION]", "[RUNTIME]"),
};
// Make the request
Runtime response = await managedNotebookServiceClient.GetRuntimeAsync(request);
GetRuntimeAsync(RuntimeName, CallSettings)
public virtual Task<Runtime> GetRuntimeAsync(RuntimeName name, CallSettings callSettings = null)
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
Name | Description |
name | RuntimeName Required. Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Type | Description |
Task<Runtime> | A Task containin |