/// <summary>Snippet for GetExtensionFeedItemAsync</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 GetExtensionFeedItemAsync()
        {
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/extensionFeedItems/[FEED_ITEM_ID]";
            // Make the request
            ExtensionFeedItem response = await extensionFeedItemServiceClient.GetExtensionFeedItemAsync(resourceName);
        }
Beispiel #2
0
        /// <summary>Snippet for GetExtensionFeedItemAsync</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 GetExtensionFeedItemResourceNamesAsync()
        {
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            ExtensionFeedItemName resourceName = ExtensionFeedItemName.FromCustomerFeedItem("[CUSTOMER_ID]", "[FEED_ITEM_ID]");
            // Make the request
            ExtensionFeedItem response = await extensionFeedItemServiceClient.GetExtensionFeedItemAsync(resourceName);
        }
Beispiel #3
0
        /// <summary>Snippet for GetExtensionFeedItemAsync</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 GetExtensionFeedItemRequestObjectAsync()
        {
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetExtensionFeedItemRequest request = new GetExtensionFeedItemRequest
            {
                ResourceNameAsExtensionFeedItemName = ExtensionFeedItemName.FromCustomerExtensionFeedItem("[CUSTOMER]", "[EXTENSION_FEED_ITEM]"),
            };
            // Make the request
            ExtensionFeedItem response = await extensionFeedItemServiceClient.GetExtensionFeedItemAsync(request);
        }
Beispiel #4
0
        /// <summary>Snippet for MutateExtensionFeedItemsAsync</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 MutateExtensionFeedItemsAsync()
        {
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <ExtensionFeedItemOperation> operations = new ExtensionFeedItemOperation[]
            {
                new ExtensionFeedItemOperation(),
            };
            // Make the request
            MutateExtensionFeedItemsResponse response = await extensionFeedItemServiceClient.MutateExtensionFeedItemsAsync(customerId, operations);
        }
        /// <summary>Snippet for GetExtensionFeedItemAsync</summary>
        public async Task GetExtensionFeedItemAsync()
        {
            // Snippet: GetExtensionFeedItemAsync(string, CallSettings)
            // Additional: GetExtensionFeedItemAsync(string, CancellationToken)
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/extensionFeedItems/[FEED_ITEM_ID]";
            // Make the request
            ExtensionFeedItem response = await extensionFeedItemServiceClient.GetExtensionFeedItemAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetExtensionFeedItemAsync</summary>
        public async Task GetExtensionFeedItemResourceNamesAsync()
        {
            // Snippet: GetExtensionFeedItemAsync(ExtensionFeedItemName, CallSettings)
            // Additional: GetExtensionFeedItemAsync(ExtensionFeedItemName, CancellationToken)
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            ExtensionFeedItemName resourceName = ExtensionFeedItemName.FromCustomerFeedItem("[CUSTOMER_ID]", "[FEED_ITEM_ID]");
            // Make the request
            ExtensionFeedItem response = await extensionFeedItemServiceClient.GetExtensionFeedItemAsync(resourceName);

            // End snippet
        }
Beispiel #7
0
        /// <summary>Snippet for GetExtensionFeedItemAsync</summary>
        public async Task GetExtensionFeedItemRequestObjectAsync()
        {
            // Snippet: GetExtensionFeedItemAsync(GetExtensionFeedItemRequest, CallSettings)
            // Additional: GetExtensionFeedItemAsync(GetExtensionFeedItemRequest, CancellationToken)
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetExtensionFeedItemRequest request = new GetExtensionFeedItemRequest
            {
                ResourceNameAsExtensionFeedItemName = ExtensionFeedItemName.FromCustomerExtensionFeedItem("[CUSTOMER]", "[EXTENSION_FEED_ITEM]"),
            };
            // Make the request
            ExtensionFeedItem response = await extensionFeedItemServiceClient.GetExtensionFeedItemAsync(request);

            // End snippet
        }
        /// <summary>Snippet for MutateExtensionFeedItemsAsync</summary>
        public async Task MutateExtensionFeedItemsAsync()
        {
            // Snippet: MutateExtensionFeedItemsAsync(string, IEnumerable<ExtensionFeedItemOperation>, CallSettings)
            // Additional: MutateExtensionFeedItemsAsync(string, IEnumerable<ExtensionFeedItemOperation>, CancellationToken)
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <ExtensionFeedItemOperation> operations = new ExtensionFeedItemOperation[]
            {
                new ExtensionFeedItemOperation(),
            };
            // Make the request
            MutateExtensionFeedItemsResponse response = await extensionFeedItemServiceClient.MutateExtensionFeedItemsAsync(customerId, operations);

            // End snippet
        }
Beispiel #9
0
        /// <summary>Snippet for MutateExtensionFeedItemsAsync</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 MutateExtensionFeedItemsRequestObjectAsync()
        {
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateExtensionFeedItemsRequest request = new MutateExtensionFeedItemsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new ExtensionFeedItemOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateExtensionFeedItemsResponse response = await extensionFeedItemServiceClient.MutateExtensionFeedItemsAsync(request);
        }
Beispiel #10
0
        /// <summary>Snippet for MutateExtensionFeedItemsAsync</summary>
        public async Task MutateExtensionFeedItemsRequestObjectAsync()
        {
            // Snippet: MutateExtensionFeedItemsAsync(MutateExtensionFeedItemsRequest, CallSettings)
            // Additional: MutateExtensionFeedItemsAsync(MutateExtensionFeedItemsRequest, CancellationToken)
            // Create client
            ExtensionFeedItemServiceClient extensionFeedItemServiceClient = await ExtensionFeedItemServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateExtensionFeedItemsRequest request = new MutateExtensionFeedItemsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new ExtensionFeedItemOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateExtensionFeedItemsResponse response = await extensionFeedItemServiceClient.MutateExtensionFeedItemsAsync(request);

            // End snippet
        }