Beispiel #1
0
        /// <summary>Snippet for GetSharedSetAsync</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 GetSharedSetAsync()
        {
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/sharedSets/[SHARED_SET_ID]";
            // Make the request
            SharedSet response = await sharedSetServiceClient.GetSharedSetAsync(resourceName);
        }
Beispiel #2
0
        /// <summary>Snippet for GetSharedSetAsync</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 GetSharedSetResourceNamesAsync()
        {
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            SharedSetName resourceName = SharedSetName.FromCustomerSharedSet("[CUSTOMER_ID]", "[SHARED_SET_ID]");
            // Make the request
            SharedSet response = await sharedSetServiceClient.GetSharedSetAsync(resourceName);
        }
Beispiel #3
0
        /// <summary>Snippet for GetSharedSetAsync</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 GetSharedSetRequestObjectAsync()
        {
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetSharedSetRequest request = new GetSharedSetRequest
            {
                ResourceNameAsSharedSetName = SharedSetName.FromCustomerSharedSet("[CUSTOMER]", "[SHARED_SET]"),
            };
            // Make the request
            SharedSet response = await sharedSetServiceClient.GetSharedSetAsync(request);
        }
        /// <summary>Snippet for GetSharedSetAsync</summary>
        public async Task GetSharedSetAsync()
        {
            // Snippet: GetSharedSetAsync(string, CallSettings)
            // Additional: GetSharedSetAsync(string, CancellationToken)
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/sharedSets/[SHARED_SET_ID]";
            // Make the request
            SharedSet response = await sharedSetServiceClient.GetSharedSetAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetSharedSetAsync</summary>
        public async Task GetSharedSetResourceNamesAsync()
        {
            // Snippet: GetSharedSetAsync(SharedSetName, CallSettings)
            // Additional: GetSharedSetAsync(SharedSetName, CancellationToken)
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            SharedSetName resourceName = SharedSetName.FromCustomerSharedSet("[CUSTOMER_ID]", "[SHARED_SET_ID]");
            // Make the request
            SharedSet response = await sharedSetServiceClient.GetSharedSetAsync(resourceName);

            // End snippet
        }