Skip to content

Commit

Permalink
Update Google.Cloud.Container.V1
Browse files Browse the repository at this point in the history
fix: deprecate SetLocations; use UpdateCluster
refactor: provide name alias for GetOperation (as method signature annotation)
feat: support for GetJSONWebKeys
feat: support for Workload Identity
feat: support for Gvisor in nodes
feat: support for node reservation affinity
feat: support for Customer Managed Encryption in nodes
fix: deprecate basic auth fields (removed in 1.19 clusters)
feat: support for NodeLocalDNS
feat: support for ConfigConnector
feat: support for private cluster VPC peering
feat: support for CloudRun load balancers
feat: support using routes for pod IPs
feat: support for Shielded Nodes
feat: support for release channels
fix: deprecated Cluster/NodePool.status_message; use conditions
feat: support for disabling default sNAT
feat: operations now store more granular progress
feat: support for node Surge Upgrades
feat: support for updating node pool locations.
feat: support for Node Auto Provisioning
feat: support for specifying node disk size and type
docs: many minor documentation clarifications

PiperOrigin-RevId: 342116206

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Nov 9 21:17:00 2020 +0000
Source-Repo: googleapis/googleapis
Source-Sha: 75d1324fff65abad6435e6d501e050439b5a616b
Source-Link: googleapis/googleapis@75d1324
  • Loading branch information
jskeet committed Nov 13, 2020
1 parent 390ac58 commit 3a8598f
Show file tree
Hide file tree
Showing 7 changed files with 19,071 additions and 12,126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ public void UpdateNodePoolRequestObject()
NodeVersion = "",
ImageType = "",
Name = "",
Locations = { "", },
WorkloadMetadataConfig = new WorkloadMetadataConfig(),
UpgradeSettings = new NodePool.Types.UpgradeSettings(),
};
// Make the request
Operation response = clusterManagerClient.UpdateNodePool(request);
Expand All @@ -416,6 +419,9 @@ public async Task UpdateNodePoolRequestObjectAsync()
NodeVersion = "",
ImageType = "",
Name = "",
Locations = { "", },
WorkloadMetadataConfig = new WorkloadMetadataConfig(),
UpgradeSettings = new NodePool.Types.UpgradeSettings(),
};
// Make the request
Operation response = await clusterManagerClient.UpdateNodePoolAsync(request);
Expand Down Expand Up @@ -1148,7 +1154,7 @@ public async Task GetOperationRequestObjectAsync()
}

/// <summary>Snippet for GetOperation</summary>
public void GetOperation()
public void GetOperation1()
{
// Snippet: GetOperation(string, string, string, CallSettings)
// Create client
Expand All @@ -1163,7 +1169,7 @@ public void GetOperation()
}

/// <summary>Snippet for GetOperationAsync</summary>
public async Task GetOperationAsync()
public async Task GetOperation1Async()
{
// Snippet: GetOperationAsync(string, string, string, CallSettings)
// Additional: GetOperationAsync(string, string, string, CancellationToken)
Expand All @@ -1178,6 +1184,33 @@ public async Task GetOperationAsync()
// End snippet
}

/// <summary>Snippet for GetOperation</summary>
public void GetOperation2()
{
// Snippet: GetOperation(string, CallSettings)
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
Operation response = clusterManagerClient.GetOperation(name);
// End snippet
}

/// <summary>Snippet for GetOperationAsync</summary>
public async Task GetOperation2Async()
{
// Snippet: GetOperationAsync(string, CallSettings)
// Additional: GetOperationAsync(string, CancellationToken)
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Operation response = await clusterManagerClient.GetOperationAsync(name);
// End snippet
}

/// <summary>Snippet for CancelOperation</summary>
public void CancelOperationRequestObject()
{
Expand Down Expand Up @@ -1346,6 +1379,33 @@ public async Task GetServerConfig2Async()
// End snippet
}

/// <summary>Snippet for GetJSONWebKeys</summary>
public void GetJSONWebKeysRequestObject()
{
// Snippet: GetJSONWebKeys(GetJSONWebKeysRequest, CallSettings)
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
GetJSONWebKeysRequest request = new GetJSONWebKeysRequest { Parent = "", };
// Make the request
GetJSONWebKeysResponse response = clusterManagerClient.GetJSONWebKeys(request);
// End snippet
}

/// <summary>Snippet for GetJSONWebKeysAsync</summary>
public async Task GetJSONWebKeysRequestObjectAsync()
{
// Snippet: GetJSONWebKeysAsync(GetJSONWebKeysRequest, CallSettings)
// Additional: GetJSONWebKeysAsync(GetJSONWebKeysRequest, CancellationToken)
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
GetJSONWebKeysRequest request = new GetJSONWebKeysRequest { Parent = "", };
// Make the request
GetJSONWebKeysResponse response = await clusterManagerClient.GetJSONWebKeysAsync(request);
// End snippet
}

/// <summary>Snippet for ListNodePools</summary>
public void ListNodePoolsRequestObject()
{
Expand Down
Loading

0 comments on commit 3a8598f

Please sign in to comment.