Skip to content

Commit

Permalink
feat: added UpdateRuntime, UpgradeRuntime, DiagnoseRuntime, DiagnoseI…
Browse files Browse the repository at this point in the history
…nstance to v1 API

feat: add Instance.reservation_affinity, nic_type, can_ip_forward to v1beta1 API
feat: add IsInstanceUpgradeableResponse.upgrade_image to v1beta1 API
feat: added Location and IAM methods
fix: deprecate AcceleratorType.NVIDIA_TESLA_K80

PiperOrigin-RevId: 489032946

Source-Link: googleapis/googleapis@1d21a86

Source-Link: googleapis/googleapis-gen@6da6c08
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuTm90ZWJvb2tzLlYxQmV0YTEvLk93bEJvdC55YW1sIiwiaCI6IjZkYTZjMDg1MGIwMmIyZjBkNmFiOWM1ODYyZDAyMWM0ZDE2ZGFkYzkifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Nov 17, 2022
1 parent 61da370 commit 3b439c4
Show file tree
Hide file tree
Showing 16 changed files with 918 additions and 226 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public async Task IsInstanceUpgradeableRequestObjectAsync()
NotebookInstance = "",
};
// Make the request
#pragma warning disable CS0612
IsInstanceUpgradeableResponse response = await notebookServiceClient.IsInstanceUpgradeableAsync(request);
#pragma warning restore CS0612
}
}
// [END notebooks_v1beta1_generated_NotebookService_IsInstanceUpgradeable_async]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public void IsInstanceUpgradeableRequestObject()
NotebookInstance = "",
};
// Make the request
#pragma warning disable CS0612
IsInstanceUpgradeableResponse response = notebookServiceClient.IsInstanceUpgradeable(request);
#pragma warning restore CS0612
}
}
// [END notebooks_v1beta1_generated_NotebookService_IsInstanceUpgradeable_sync]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public async Task UpgradeInstanceInternalRequestObjectAsync()
// Initialize request argument(s)
UpgradeInstanceInternalRequest request = new UpgradeInstanceInternalRequest { Name = "", VmId = "", };
// Make the request
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> response = await notebookServiceClient.UpgradeInstanceInternalAsync(request);
#pragma warning restore CS0612

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
Expand All @@ -48,7 +50,9 @@ public async Task UpgradeInstanceInternalRequestObjectAsync()
// 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
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> retrievedResponse = await notebookServiceClient.PollOnceUpgradeInstanceInternalAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public void UpgradeInstanceInternalRequestObject()
// Initialize request argument(s)
UpgradeInstanceInternalRequest request = new UpgradeInstanceInternalRequest { Name = "", VmId = "", };
// Make the request
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> response = notebookServiceClient.UpgradeInstanceInternal(request);
#pragma warning restore CS0612

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = response.PollUntilCompleted();
Expand All @@ -47,7 +49,9 @@ public void UpgradeInstanceInternalRequestObject()
// 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
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> retrievedResponse = notebookServiceClient.PollOnceUpgradeInstanceInternal(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public async Task UpgradeInstanceRequestObjectAsync()
// Initialize request argument(s)
UpgradeInstanceRequest request = new UpgradeInstanceRequest { Name = "", };
// Make the request
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> response = await notebookServiceClient.UpgradeInstanceAsync(request);
#pragma warning restore CS0612

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
Expand All @@ -48,7 +50,9 @@ public async Task UpgradeInstanceRequestObjectAsync()
// 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
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> retrievedResponse = await notebookServiceClient.PollOnceUpgradeInstanceAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public void UpgradeInstanceRequestObject()
// Initialize request argument(s)
UpgradeInstanceRequest request = new UpgradeInstanceRequest { Name = "", };
// Make the request
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> response = notebookServiceClient.UpgradeInstance(request);
#pragma warning restore CS0612

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = response.PollUntilCompleted();
Expand All @@ -47,7 +49,9 @@ public void UpgradeInstanceRequestObject()
// 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
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> retrievedResponse = notebookServiceClient.PollOnceUpgradeInstance(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -962,12 +962,12 @@
"segments": [
{
"start": 20,
"end": 44,
"end": 46,
"type": "FULL"
},
{
"start": 34,
"end": 42,
"end": 44,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1001,12 +1001,12 @@
"segments": [
{
"start": 20,
"end": 45,
"end": 47,
"type": "FULL"
},
{
"start": 35,
"end": 43,
"end": 45,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1039,12 +1039,12 @@
"segments": [
{
"start": 20,
"end": 58,
"end": 62,
"type": "FULL"
},
{
"start": 35,
"end": 56,
"end": 60,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1078,12 +1078,12 @@
"segments": [
{
"start": 20,
"end": 59,
"end": 63,
"type": "FULL"
},
{
"start": 36,
"end": 57,
"end": 61,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1116,12 +1116,12 @@
"segments": [
{
"start": 20,
"end": 58,
"end": 62,
"type": "FULL"
},
{
"start": 35,
"end": 56,
"end": 60,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1155,12 +1155,12 @@
"segments": [
{
"start": 20,
"end": 59,
"end": 63,
"type": "FULL"
},
{
"start": 36,
"end": 57,
"end": 61,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,9 @@ public void IsInstanceUpgradeableRequestObject()
NotebookInstance = "",
};
// Make the request
#pragma warning disable CS0612
IsInstanceUpgradeableResponse response = notebookServiceClient.IsInstanceUpgradeable(request);
#pragma warning restore CS0612
// End snippet
}

Expand All @@ -819,7 +821,9 @@ public async Task IsInstanceUpgradeableRequestObjectAsync()
NotebookInstance = "",
};
// Make the request
#pragma warning disable CS0612
IsInstanceUpgradeableResponse response = await notebookServiceClient.IsInstanceUpgradeableAsync(request);
#pragma warning restore CS0612
// End snippet
}

Expand All @@ -832,7 +836,9 @@ public void UpgradeInstanceRequestObject()
// Initialize request argument(s)
UpgradeInstanceRequest request = new UpgradeInstanceRequest { Name = "", };
// Make the request
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> response = notebookServiceClient.UpgradeInstance(request);
#pragma warning restore CS0612

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = response.PollUntilCompleted();
Expand All @@ -842,7 +848,9 @@ public void UpgradeInstanceRequestObject()
// 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
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> retrievedResponse = notebookServiceClient.PollOnceUpgradeInstance(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
Expand All @@ -862,7 +870,9 @@ public async Task UpgradeInstanceRequestObjectAsync()
// Initialize request argument(s)
UpgradeInstanceRequest request = new UpgradeInstanceRequest { Name = "", };
// Make the request
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> response = await notebookServiceClient.UpgradeInstanceAsync(request);
#pragma warning restore CS0612

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
Expand All @@ -872,7 +882,9 @@ public async Task UpgradeInstanceRequestObjectAsync()
// 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
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> retrievedResponse = await notebookServiceClient.PollOnceUpgradeInstanceAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
Expand All @@ -891,7 +903,9 @@ public void UpgradeInstanceInternalRequestObject()
// Initialize request argument(s)
UpgradeInstanceInternalRequest request = new UpgradeInstanceInternalRequest { Name = "", VmId = "", };
// Make the request
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> response = notebookServiceClient.UpgradeInstanceInternal(request);
#pragma warning restore CS0612

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = response.PollUntilCompleted();
Expand All @@ -901,7 +915,9 @@ public void UpgradeInstanceInternalRequestObject()
// 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
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> retrievedResponse = notebookServiceClient.PollOnceUpgradeInstanceInternal(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
Expand All @@ -921,7 +937,9 @@ public async Task UpgradeInstanceInternalRequestObjectAsync()
// Initialize request argument(s)
UpgradeInstanceInternalRequest request = new UpgradeInstanceInternalRequest { Name = "", VmId = "", };
// Make the request
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> response = await notebookServiceClient.UpgradeInstanceInternalAsync(request);
#pragma warning restore CS0612

// Poll until the returned long-running operation is complete
Operation<Instance, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
Expand All @@ -931,7 +949,9 @@ public async Task UpgradeInstanceInternalRequestObjectAsync()
// 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
#pragma warning disable CS0612
Operation<Instance, OperationMetadata> retrievedResponse = await notebookServiceClient.PollOnceUpgradeInstanceInternalAsync(operationName);
#pragma warning restore CS0612
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="5.0.0" PrivateAssets="All" />
<PackageReference Include="Google.Api.Gax.Grpc" Version="[4.2.0, 5.0.0)" />
<PackageReference Include="Google.Cloud.Iam.V1" Version="[3.0.0, 4.0.0)" />
<PackageReference Include="Google.Cloud.Location" Version="[2.0.0, 3.0.0)" />
<PackageReference Include="Google.LongRunning" Version="[3.0.0, 4.0.0)" />
<PackageReference Include="Grpc.Core" Version="[2.46.3, 3.0.0)" PrivateAssets="None" Condition="'$(TargetFramework)'=='net462'" />
</ItemGroup>
Expand Down
Loading

0 comments on commit 3b439c4

Please sign in to comment.