Beispiel #1
0
        /// <summary>Snippet for GetFeedItemTargetAsync</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 GetFeedItemTargetResourceNamesAsync()
        {
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            FeedItemTargetName resourceName = FeedItemTargetName.FromCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]", "[FEED_ITEM_TARGET_TYPE]", "[FEED_ITEM_TARGET_ID]");
            // Make the request
            FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(resourceName);
        }
Beispiel #2
0
        /// <summary>Snippet for GetFeedItemTargetAsync</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 GetFeedItemTargetAsync()
        {
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/feedItemTargets/[FEED_ID]~[FEED_ITEM_ID]~[FEED_ITEM_TARGET_TYPE]~[FEED_ITEM_TARGET_ID]";
            // Make the request
            FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(resourceName);
        }
        /// <summary>Snippet for GetFeedItemTargetAsync</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 GetFeedItemTargetRequestObjectAsync()
        {
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetFeedItemTargetRequest request = new GetFeedItemTargetRequest
            {
                ResourceNameAsFeedItemTargetName = FeedItemTargetName.FromCustomerFeedItemTarget("[CUSTOMER]", "[FEED_ITEM_TARGET]"),
            };
            // Make the request
            FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(request);
        }
        /// <summary>Snippet for MutateFeedItemTargetsAsync</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 MutateFeedItemTargetsAsync()
        {
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <FeedItemTargetOperation> operations = new FeedItemTargetOperation[]
            {
                new FeedItemTargetOperation(),
            };
            // Make the request
            MutateFeedItemTargetsResponse response = await feedItemTargetServiceClient.MutateFeedItemTargetsAsync(customerId, operations);
        }
Beispiel #5
0
        /// <summary>Snippet for GetFeedItemTargetAsync</summary>
        public async Task GetFeedItemTargetAsync()
        {
            // Snippet: GetFeedItemTargetAsync(string, CallSettings)
            // Additional: GetFeedItemTargetAsync(string, CancellationToken)
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/feedItemTargets/[FEED_ITEM_TARGET]";
            // Make the request
            FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(resourceName);

            // End snippet
        }
Beispiel #6
0
        /// <summary>Snippet for GetFeedItemTargetAsync</summary>
        public async Task GetFeedItemTargetResourceNamesAsync()
        {
            // Snippet: GetFeedItemTargetAsync(FeedItemTargetName, CallSettings)
            // Additional: GetFeedItemTargetAsync(FeedItemTargetName, CancellationToken)
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            FeedItemTargetName resourceName = FeedItemTargetName.FromCustomerFeedItemTarget("[CUSTOMER]", "[FEED_ITEM_TARGET]");
            // Make the request
            FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for MutateFeedItemTargetsAsync</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 MutateFeedItemTargetsRequestObjectAsync()
        {
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateFeedItemTargetsRequest request = new MutateFeedItemTargetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new FeedItemTargetOperation(),
                },
            };
            // Make the request
            MutateFeedItemTargetsResponse response = await feedItemTargetServiceClient.MutateFeedItemTargetsAsync(request);
        }
Beispiel #8
0
        /// <summary>Snippet for GetFeedItemTargetAsync</summary>
        public async Task GetFeedItemTargetRequestObjectAsync()
        {
            // Snippet: GetFeedItemTargetAsync(GetFeedItemTargetRequest, CallSettings)
            // Additional: GetFeedItemTargetAsync(GetFeedItemTargetRequest, CancellationToken)
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetFeedItemTargetRequest request = new GetFeedItemTargetRequest
            {
                ResourceNameAsFeedItemTargetName = FeedItemTargetName.FromCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]", "[FEED_ITEM_TARGET_TYPE]", "[FEED_ITEM_TARGET_ID]"),
            };
            // Make the request
            FeedItemTarget response = await feedItemTargetServiceClient.GetFeedItemTargetAsync(request);

            // End snippet
        }
Beispiel #9
0
        /// <summary>Snippet for MutateFeedItemTargetsAsync</summary>
        public async Task MutateFeedItemTargetsAsync()
        {
            // Snippet: MutateFeedItemTargetsAsync(string, IEnumerable<FeedItemTargetOperation>, CallSettings)
            // Additional: MutateFeedItemTargetsAsync(string, IEnumerable<FeedItemTargetOperation>, CancellationToken)
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <FeedItemTargetOperation> operations = new FeedItemTargetOperation[]
            {
                new FeedItemTargetOperation(),
            };
            // Make the request
            MutateFeedItemTargetsResponse response = await feedItemTargetServiceClient.MutateFeedItemTargetsAsync(customerId, operations);

            // End snippet
        }
Beispiel #10
0
        /// <summary>Snippet for MutateFeedItemTargetsAsync</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 MutateFeedItemTargetsRequestObjectAsync()
        {
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateFeedItemTargetsRequest request = new MutateFeedItemTargetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new FeedItemTargetOperation(),
                },
                ValidateOnly        = false,
                PartialFailure      = false,
                ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
            };
            // Make the request
            MutateFeedItemTargetsResponse response = await feedItemTargetServiceClient.MutateFeedItemTargetsAsync(request);
        }
Beispiel #11
0
        /// <summary>Snippet for MutateFeedItemTargetsAsync</summary>
        public async Task MutateFeedItemTargetsRequestObjectAsync()
        {
            // Snippet: MutateFeedItemTargetsAsync(MutateFeedItemTargetsRequest, CallSettings)
            // Additional: MutateFeedItemTargetsAsync(MutateFeedItemTargetsRequest, CancellationToken)
            // Create client
            FeedItemTargetServiceClient feedItemTargetServiceClient = await FeedItemTargetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateFeedItemTargetsRequest request = new MutateFeedItemTargetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new FeedItemTargetOperation(),
                },
            };
            // Make the request
            MutateFeedItemTargetsResponse response = await feedItemTargetServiceClient.MutateFeedItemTargetsAsync(request);

            // End snippet
        }