Skip to content

Commit

Permalink
feat: add available_cpu field
Browse files Browse the repository at this point in the history
feat: add `kms_key_name` field to ServiceConfig (the CMEK use case)
feat: add `max_instance_request_concurrency` field
feat: add `security_level` field

PiperOrigin-RevId: 516979219

Source-Link: googleapis/googleapis@650f7cd

Source-Link: googleapis/googleapis-gen@3c4d23f
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRnVuY3Rpb25zLlYyLy5Pd2xCb3QueWFtbCIsImgiOiIzYzRkMjNmZDc2NmVkZGIyYzcyNmI0MGQyM2VmMDEyOTc0YTMyNTFmIn0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Mar 16, 2023
1 parent 0497f75 commit 1fe48c2
Show file tree
Hide file tree
Showing 7 changed files with 706 additions and 294 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public async Task GenerateUploadUrlRequestObjectAsync()
GenerateUploadUrlRequest request = new GenerateUploadUrlRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
KmsKeyNameAsCryptoKeyName = CryptoKeyName.FromProjectLocationKeyRingCryptoKey("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"),
};
// Make the request
GenerateUploadUrlResponse response = await functionServiceClient.GenerateUploadUrlAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void GenerateUploadUrlRequestObject()
GenerateUploadUrlRequest request = new GenerateUploadUrlRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
KmsKeyNameAsCryptoKeyName = CryptoKeyName.FromProjectLocationKeyRingCryptoKey("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"),
};
// Make the request
GenerateUploadUrlResponse response = functionServiceClient.GenerateUploadUrl(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1460,12 +1460,12 @@
"segments": [
{
"start": 20,
"end": 45,
"end": 46,
"type": "FULL"
},
{
"start": 35,
"end": 43,
"end": 44,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1509,12 +1509,12 @@
"segments": [
{
"start": 20,
"end": 46,
"end": 47,
"type": "FULL"
},
{
"start": 36,
"end": 44,
"end": 45,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,7 @@ public void GenerateUploadUrlRequestObject()
GenerateUploadUrlRequest request = new GenerateUploadUrlRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
KmsKeyNameAsCryptoKeyName = CryptoKeyName.FromProjectLocationKeyRingCryptoKey("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"),
};
// Make the request
GenerateUploadUrlResponse response = functionServiceClient.GenerateUploadUrl(request);
Expand All @@ -927,6 +928,7 @@ public async Task GenerateUploadUrlRequestObjectAsync()
GenerateUploadUrlRequest request = new GenerateUploadUrlRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
KmsKeyNameAsCryptoKeyName = CryptoKeyName.FromProjectLocationKeyRingCryptoKey("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"),
};
// Make the request
GenerateUploadUrlResponse response = await functionServiceClient.GenerateUploadUrlAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,12 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of functions that belong to the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the function should be listed,
/// specified in the format `projects/*/locations/*`
/// If you want to list functions in all locations, use "-" in place of a
/// location. When listing functions in all locations, if one or more
/// location(s) are unreachable, the response will contain functions from all
/// reachable locations along with the names of any unreachable locations.
/// Required. The project and location from which the function should be
/// listed, specified in the format `projects/*/locations/*` If you want to
/// list functions in all locations, use "-" in place of a location. When
/// listing functions in all locations, if one or more location(s) are
/// unreachable, the response will contain functions from all reachable
/// locations along with the names of any unreachable locations.
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand All @@ -536,12 +536,12 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of functions that belong to the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the function should be listed,
/// specified in the format `projects/*/locations/*`
/// If you want to list functions in all locations, use "-" in place of a
/// location. When listing functions in all locations, if one or more
/// location(s) are unreachable, the response will contain functions from all
/// reachable locations along with the names of any unreachable locations.
/// Required. The project and location from which the function should be
/// listed, specified in the format `projects/*/locations/*` If you want to
/// list functions in all locations, use "-" in place of a location. When
/// listing functions in all locations, if one or more location(s) are
/// unreachable, the response will contain functions from all reachable
/// locations along with the names of any unreachable locations.
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand All @@ -565,12 +565,12 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of functions that belong to the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the function should be listed,
/// specified in the format `projects/*/locations/*`
/// If you want to list functions in all locations, use "-" in place of a
/// location. When listing functions in all locations, if one or more
/// location(s) are unreachable, the response will contain functions from all
/// reachable locations along with the names of any unreachable locations.
/// Required. The project and location from which the function should be
/// listed, specified in the format `projects/*/locations/*` If you want to
/// list functions in all locations, use "-" in place of a location. When
/// listing functions in all locations, if one or more location(s) are
/// unreachable, the response will contain functions from all reachable
/// locations along with the names of any unreachable locations.
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand All @@ -594,12 +594,12 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of functions that belong to the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the function should be listed,
/// specified in the format `projects/*/locations/*`
/// If you want to list functions in all locations, use "-" in place of a
/// location. When listing functions in all locations, if one or more
/// location(s) are unreachable, the response will contain functions from all
/// reachable locations along with the names of any unreachable locations.
/// Required. The project and location from which the function should be
/// listed, specified in the format `projects/*/locations/*` If you want to
/// list functions in all locations, use "-" in place of a location. When
/// listing functions in all locations, if one or more location(s) are
/// unreachable, the response will contain functions from all reachable
/// locations along with the names of any unreachable locations.
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand Down Expand Up @@ -684,8 +684,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// `ALREADY_EXISTS` error.
/// </summary>
/// <param name="parent">
/// Required. The project and location in which the function should be created, specified
/// in the format `projects/*/locations/*`
/// Required. The project and location in which the function should be created,
/// specified in the format `projects/*/locations/*`
/// </param>
/// <param name="function">
/// Required. Function to be created.
Expand Down Expand Up @@ -713,8 +713,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// `ALREADY_EXISTS` error.
/// </summary>
/// <param name="parent">
/// Required. The project and location in which the function should be created, specified
/// in the format `projects/*/locations/*`
/// Required. The project and location in which the function should be created,
/// specified in the format `projects/*/locations/*`
/// </param>
/// <param name="function">
/// Required. Function to be created.
Expand Down Expand Up @@ -742,8 +742,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// `ALREADY_EXISTS` error.
/// </summary>
/// <param name="parent">
/// Required. The project and location in which the function should be created, specified
/// in the format `projects/*/locations/*`
/// Required. The project and location in which the function should be created,
/// specified in the format `projects/*/locations/*`
/// </param>
/// <param name="function">
/// Required. Function to be created.
Expand All @@ -766,8 +766,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// `ALREADY_EXISTS` error.
/// </summary>
/// <param name="parent">
/// Required. The project and location in which the function should be created, specified
/// in the format `projects/*/locations/*`
/// Required. The project and location in which the function should be created,
/// specified in the format `projects/*/locations/*`
/// </param>
/// <param name="function">
/// Required. Function to be created.
Expand Down Expand Up @@ -795,8 +795,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// `ALREADY_EXISTS` error.
/// </summary>
/// <param name="parent">
/// Required. The project and location in which the function should be created, specified
/// in the format `projects/*/locations/*`
/// Required. The project and location in which the function should be created,
/// specified in the format `projects/*/locations/*`
/// </param>
/// <param name="function">
/// Required. Function to be created.
Expand Down Expand Up @@ -824,8 +824,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// `ALREADY_EXISTS` error.
/// </summary>
/// <param name="parent">
/// Required. The project and location in which the function should be created, specified
/// in the format `projects/*/locations/*`
/// Required. The project and location in which the function should be created,
/// specified in the format `projects/*/locations/*`
/// </param>
/// <param name="function">
/// Required. Function to be created.
Expand Down Expand Up @@ -1263,8 +1263,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of runtimes that are supported for the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the runtimes should be listed,
/// specified in the format `projects/*/locations/*`
/// Required. The project and location from which the runtimes should be
/// listed, specified in the format `projects/*/locations/*`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -1278,8 +1278,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of runtimes that are supported for the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the runtimes should be listed,
/// specified in the format `projects/*/locations/*`
/// Required. The project and location from which the runtimes should be
/// listed, specified in the format `projects/*/locations/*`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -1293,8 +1293,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of runtimes that are supported for the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the runtimes should be listed,
/// specified in the format `projects/*/locations/*`
/// Required. The project and location from which the runtimes should be
/// listed, specified in the format `projects/*/locations/*`
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -1305,8 +1305,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of runtimes that are supported for the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the runtimes should be listed,
/// specified in the format `projects/*/locations/*`
/// Required. The project and location from which the runtimes should be
/// listed, specified in the format `projects/*/locations/*`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -1320,8 +1320,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of runtimes that are supported for the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the runtimes should be listed,
/// specified in the format `projects/*/locations/*`
/// Required. The project and location from which the runtimes should be
/// listed, specified in the format `projects/*/locations/*`
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -1335,8 +1335,8 @@ internal static FunctionServiceClient Create(grpccore::CallInvoker callInvoker,
/// Returns a list of runtimes that are supported for the requested project.
/// </summary>
/// <param name="parent">
/// Required. The project and location from which the runtimes should be listed,
/// specified in the format `projects/*/locations/*`
/// Required. The project and location from which the runtimes should be
/// listed, specified in the format `projects/*/locations/*`
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down

0 comments on commit 1fe48c2

Please sign in to comment.