/// <summary>Snippet for GetAsset</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetAssetResourceNames() { // Create client AssetServiceClient assetServiceClient = AssetServiceClient.Create(); // Initialize request argument(s) AssetName resourceName = AssetName.FromCustomerAsset("[CUSTOMER]", "[ASSET]"); // Make the request Asset response = assetServiceClient.GetAsset(resourceName); }
/// <summary>Snippet for GetAssetAsync</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 GetAssetResourceNamesAsync() { // Create client AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync(); // Initialize request argument(s) AssetName resourceName = AssetName.FromCustomerAsset("[CUSTOMER_ID]", "[ASSET_ID]"); // Make the request Asset response = await assetServiceClient.GetAssetAsync(resourceName); }
/// <summary>Snippet for GetAsset</summary> public void GetAssetResourceNames() { // Snippet: GetAsset(AssetName, CallSettings) // Create client AssetServiceClient assetServiceClient = AssetServiceClient.Create(); // Initialize request argument(s) AssetName resourceName = AssetName.FromCustomerAsset("[CUSTOMER_ID]", "[ASSET_ID]"); // Make the request Asset response = assetServiceClient.GetAsset(resourceName); // End snippet }
/// <summary>Snippet for GetAsset</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetAssetRequestObject() { // Create client AssetServiceClient assetServiceClient = AssetServiceClient.Create(); // Initialize request argument(s) GetAssetRequest request = new GetAssetRequest { ResourceNameAsAssetName = AssetName.FromCustomerAsset("[CUSTOMER_ID]", "[ASSET_ID]"), }; // Make the request Asset response = assetServiceClient.GetAsset(request); }
/// <summary>Snippet for GetAssetAsync</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 GetAssetRequestObjectAsync() { // Create client AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync(); // Initialize request argument(s) GetAssetRequest request = new GetAssetRequest { ResourceNameAsAssetName = AssetName.FromCustomerAsset("[CUSTOMER]", "[ASSET]"), }; // Make the request Asset response = await assetServiceClient.GetAssetAsync(request); }
/// <summary>Snippet for GetAssetAsync</summary> public async Task GetAssetResourceNamesAsync() { // Snippet: GetAssetAsync(AssetName, CallSettings) // Additional: GetAssetAsync(AssetName, CancellationToken) // Create client AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync(); // Initialize request argument(s) AssetName resourceName = AssetName.FromCustomerAsset("[CUSTOMER]", "[ASSET]"); // Make the request Asset response = await assetServiceClient.GetAssetAsync(resourceName); // End snippet }