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

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <SharedSetOperation> operations = new SharedSetOperation[]
            {
                new SharedSetOperation(),
            };
            // Make the request
            MutateSharedSetsResponse response = await sharedSetServiceClient.MutateSharedSetsAsync(customerId, operations);
        }
        /// <summary>Snippet for MutateSharedSetsAsync</summary>
        public async Task MutateSharedSetsAsync()
        {
            // Snippet: MutateSharedSetsAsync(string, IEnumerable<SharedSetOperation>, CallSettings)
            // Additional: MutateSharedSetsAsync(string, IEnumerable<SharedSetOperation>, CancellationToken)
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <SharedSetOperation> operations = new SharedSetOperation[]
            {
                new SharedSetOperation(),
            };
            // Make the request
            MutateSharedSetsResponse response = await sharedSetServiceClient.MutateSharedSetsAsync(customerId, operations);

            // End snippet
        }
        /// <summary>Snippet for MutateSharedSetsAsync</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 MutateSharedSetsRequestObjectAsync()
        {
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateSharedSetsRequest request = new MutateSharedSetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new SharedSetOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateSharedSetsResponse response = await sharedSetServiceClient.MutateSharedSetsAsync(request);
        }
        /// <summary>Snippet for MutateSharedSetsAsync</summary>
        public async Task MutateSharedSetsRequestObjectAsync()
        {
            // Snippet: MutateSharedSetsAsync(MutateSharedSetsRequest, CallSettings)
            // Additional: MutateSharedSetsAsync(MutateSharedSetsRequest, CancellationToken)
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateSharedSetsRequest request = new MutateSharedSetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new SharedSetOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateSharedSetsResponse response = await sharedSetServiceClient.MutateSharedSetsAsync(request);

            // End snippet
        }