Пример #1
0
 /// <summary>Snippet for GetGroupPlacementView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetGroupPlacementViewResourceNames()
 {
     // Create client
     GroupPlacementViewServiceClient groupPlacementViewServiceClient = GroupPlacementViewServiceClient.Create();
     // Initialize request argument(s)
     GroupPlacementViewName resourceName = GroupPlacementViewName.FromCustomerGroupPlacementView("[CUSTOMER]", "[GROUP_PLACEMENT_VIEW]");
     // Make the request
     GroupPlacementView response = groupPlacementViewServiceClient.GetGroupPlacementView(resourceName);
 }
Пример #2
0
        /// <summary>Snippet for GetGroupPlacementViewAsync</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 GetGroupPlacementViewRequestObjectAsync()
        {
            // Create client
            GroupPlacementViewServiceClient groupPlacementViewServiceClient = await GroupPlacementViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetGroupPlacementViewRequest request = new GetGroupPlacementViewRequest
            {
                ResourceNameAsGroupPlacementViewName = GroupPlacementViewName.FromCustomerGroupPlacementView("[CUSTOMER]", "[GROUP_PLACEMENT_VIEW]"),
            };
            // Make the request
            GroupPlacementView response = await groupPlacementViewServiceClient.GetGroupPlacementViewAsync(request);
        }
 /// <summary>Snippet for GetGroupPlacementView</summary>
 public void GetGroupPlacementViewRequestObject()
 {
     // Snippet: GetGroupPlacementView(GetGroupPlacementViewRequest, CallSettings)
     // Create client
     GroupPlacementViewServiceClient groupPlacementViewServiceClient = GroupPlacementViewServiceClient.Create();
     // Initialize request argument(s)
     GetGroupPlacementViewRequest request = new GetGroupPlacementViewRequest
     {
         ResourceNameAsGroupPlacementViewName = GroupPlacementViewName.FromCustomerGroupPlacementView("[CUSTOMER]", "[GROUP_PLACEMENT_VIEW]"),
     };
     // Make the request
     GroupPlacementView response = groupPlacementViewServiceClient.GetGroupPlacementView(request);
     // End snippet
 }
        /// <summary>Snippet for GetGroupPlacementViewAsync</summary>
        public async Task GetGroupPlacementViewResourceNamesAsync()
        {
            // Snippet: GetGroupPlacementViewAsync(GroupPlacementViewName, CallSettings)
            // Additional: GetGroupPlacementViewAsync(GroupPlacementViewName, CancellationToken)
            // Create client
            GroupPlacementViewServiceClient groupPlacementViewServiceClient = await GroupPlacementViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GroupPlacementViewName resourceName = GroupPlacementViewName.FromCustomerGroupPlacementView("[CUSTOMER]", "[GROUP_PLACEMENT_VIEW]");
            // Make the request
            GroupPlacementView response = await groupPlacementViewServiceClient.GetGroupPlacementViewAsync(resourceName);

            // End snippet
        }