/// <summary>Snippet for GetCustomerAsset</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomerAssetResourceNames() { // Create client CustomerAssetServiceClient customerAssetServiceClient = CustomerAssetServiceClient.Create(); // Initialize request argument(s) CustomerAssetName resourceName = CustomerAssetName.FromCustomerAssetFieldType("[CUSTOMER_ID]", "[ASSET_ID]", "[FIELD_TYPE]"); // Make the request CustomerAsset response = customerAssetServiceClient.GetCustomerAsset(resourceName); }
/// <summary>Snippet for GetCustomerAssetAsync</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 GetCustomerAssetRequestObjectAsync() { // Create client CustomerAssetServiceClient customerAssetServiceClient = await CustomerAssetServiceClient.CreateAsync(); // Initialize request argument(s) GetCustomerAssetRequest request = new GetCustomerAssetRequest { ResourceNameAsCustomerAssetName = CustomerAssetName.FromCustomerAssetFieldType("[CUSTOMER_ID]", "[ASSET_ID]", "[FIELD_TYPE]"), }; // Make the request CustomerAsset response = await customerAssetServiceClient.GetCustomerAssetAsync(request); }
/// <summary>Snippet for GetCustomerAsset</summary> public void GetCustomerAssetRequestObject() { // Snippet: GetCustomerAsset(GetCustomerAssetRequest, CallSettings) // Create client CustomerAssetServiceClient customerAssetServiceClient = CustomerAssetServiceClient.Create(); // Initialize request argument(s) GetCustomerAssetRequest request = new GetCustomerAssetRequest { ResourceNameAsCustomerAssetName = CustomerAssetName.FromCustomerAssetFieldType("[CUSTOMER_ID]", "[ASSET_ID]", "[FIELD_TYPE]"), }; // Make the request CustomerAsset response = customerAssetServiceClient.GetCustomerAsset(request); // End snippet }
/// <summary>Snippet for GetCustomerAssetAsync</summary> public async Task GetCustomerAssetResourceNamesAsync() { // Snippet: GetCustomerAssetAsync(CustomerAssetName, CallSettings) // Additional: GetCustomerAssetAsync(CustomerAssetName, CancellationToken) // Create client CustomerAssetServiceClient customerAssetServiceClient = await CustomerAssetServiceClient.CreateAsync(); // Initialize request argument(s) CustomerAssetName resourceName = CustomerAssetName.FromCustomerAssetFieldType("[CUSTOMER_ID]", "[ASSET_ID]", "[FIELD_TYPE]"); // Make the request CustomerAsset response = await customerAssetServiceClient.GetCustomerAssetAsync(resourceName); // End snippet }