-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Committer: lvv@ PiperOrigin-RevId: 466748663 Source-Link: googleapis/googleapis@80d630f Source-Link: googleapis/googleapis-gen@252f5ad Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQXNzZXQuVjEvLk93bEJvdC55YW1sIiwiaCI6IjI1MmY1YWRlMThhMzFhNzJmMTI4MTBiYmZkMWQ4M2Q1NmE4ZTcyZTEifQ==
- Loading branch information
1 parent
0fe494e
commit 9677dd3
Showing
10 changed files
with
3,312 additions
and
291 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
...d.Asset.V1.GeneratedSnippets/AssetServiceClient.QueryAssetsRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Asset.V1.Snippets | ||
{ | ||
// [START cloudasset_v1_generated_AssetService_QueryAssets_async] | ||
using Google.Api.Gax; | ||
using Google.Cloud.Asset.V1; | ||
using Google.Protobuf.WellKnownTypes; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedAssetServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for QueryAssetsAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public async Task QueryAssetsRequestObjectAsync() | ||
{ | ||
// Create client | ||
AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
QueryAssetsRequest request = new QueryAssetsRequest | ||
{ | ||
ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"), | ||
Statement = "", | ||
PageSize = 0, | ||
PageToken = "", | ||
Timeout = new Duration(), | ||
ReadTimeWindow = new TimeWindow(), | ||
OutputConfig = new QueryAssetsOutputConfig(), | ||
}; | ||
// Make the request | ||
QueryAssetsResponse response = await assetServiceClient.QueryAssetsAsync(request); | ||
} | ||
} | ||
// [END cloudasset_v1_generated_AssetService_QueryAssets_async] | ||
} |
51 changes: 51 additions & 0 deletions
51
....Cloud.Asset.V1.GeneratedSnippets/AssetServiceClient.QueryAssetsRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace Google.Cloud.Asset.V1.Snippets | ||
{ | ||
// [START cloudasset_v1_generated_AssetService_QueryAssets_sync] | ||
using Google.Api.Gax; | ||
using Google.Cloud.Asset.V1; | ||
using Google.Protobuf.WellKnownTypes; | ||
|
||
public sealed partial class GeneratedAssetServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for QueryAssets</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated for illustrative purposes only. | ||
/// It may require modifications to work in your environment. | ||
/// </remarks> | ||
public void QueryAssetsRequestObject() | ||
{ | ||
// Create client | ||
AssetServiceClient assetServiceClient = AssetServiceClient.Create(); | ||
// Initialize request argument(s) | ||
QueryAssetsRequest request = new QueryAssetsRequest | ||
{ | ||
ParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"), | ||
Statement = "", | ||
PageSize = 0, | ||
PageToken = "", | ||
Timeout = new Duration(), | ||
ReadTimeWindow = new TimeWindow(), | ||
OutputConfig = new QueryAssetsOutputConfig(), | ||
}; | ||
// Make the request | ||
QueryAssetsResponse response = assetServiceClient.QueryAssets(request); | ||
} | ||
} | ||
// [END cloudasset_v1_generated_AssetService_QueryAssets_sync] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.