Example #1
0
 /// <summary>Snippet for GetAssetFieldTypeView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetAssetFieldTypeViewResourceNames()
 {
     // Create client
     AssetFieldTypeViewServiceClient assetFieldTypeViewServiceClient = AssetFieldTypeViewServiceClient.Create();
     // Initialize request argument(s)
     AssetFieldTypeViewName resourceName = AssetFieldTypeViewName.FromCustomerFieldType("[CUSTOMER_ID]", "[FIELD_TYPE]");
     // Make the request
     AssetFieldTypeView response = assetFieldTypeViewServiceClient.GetAssetFieldTypeView(resourceName);
 }
Example #2
0
        /// <summary>Snippet for GetAssetFieldTypeViewAsync</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 GetAssetFieldTypeViewRequestObjectAsync()
        {
            // Create client
            AssetFieldTypeViewServiceClient assetFieldTypeViewServiceClient = await AssetFieldTypeViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetAssetFieldTypeViewRequest request = new GetAssetFieldTypeViewRequest
            {
                ResourceNameAsAssetFieldTypeViewName = AssetFieldTypeViewName.FromCustomerFieldType("[CUSTOMER_ID]", "[FIELD_TYPE]"),
            };
            // Make the request
            AssetFieldTypeView response = await assetFieldTypeViewServiceClient.GetAssetFieldTypeViewAsync(request);
        }
 /// <summary>Snippet for GetAssetFieldTypeView</summary>
 public void GetAssetFieldTypeViewRequestObject()
 {
     // Snippet: GetAssetFieldTypeView(GetAssetFieldTypeViewRequest, CallSettings)
     // Create client
     AssetFieldTypeViewServiceClient assetFieldTypeViewServiceClient = AssetFieldTypeViewServiceClient.Create();
     // Initialize request argument(s)
     GetAssetFieldTypeViewRequest request = new GetAssetFieldTypeViewRequest
     {
         ResourceNameAsAssetFieldTypeViewName = AssetFieldTypeViewName.FromCustomerFieldType("[CUSTOMER_ID]", "[FIELD_TYPE]"),
     };
     // Make the request
     AssetFieldTypeView response = assetFieldTypeViewServiceClient.GetAssetFieldTypeView(request);
     // End snippet
 }
        /// <summary>Snippet for GetAssetFieldTypeViewAsync</summary>
        public async Task GetAssetFieldTypeViewResourceNamesAsync()
        {
            // Snippet: GetAssetFieldTypeViewAsync(AssetFieldTypeViewName, CallSettings)
            // Additional: GetAssetFieldTypeViewAsync(AssetFieldTypeViewName, CancellationToken)
            // Create client
            AssetFieldTypeViewServiceClient assetFieldTypeViewServiceClient = await AssetFieldTypeViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            AssetFieldTypeViewName resourceName = AssetFieldTypeViewName.FromCustomerFieldType("[CUSTOMER_ID]", "[FIELD_TYPE]");
            // Make the request
            AssetFieldTypeView response = await assetFieldTypeViewServiceClient.GetAssetFieldTypeViewAsync(resourceName);

            // End snippet
        }