Esempio n. 1
0
        /// <summary>Snippet for SinglePatternMethodAsync</summary>
        public async Task SinglePatternMethodRequestObjectAsync()
        {
            // Snippet: SinglePatternMethodAsync(SinglePattern, CallSettings)
            // Additional: SinglePatternMethodAsync(SinglePattern, CancellationToken)
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            SinglePattern request = new SinglePattern
            {
                RealNameAsSinglePatternName     = SinglePatternName.FromItem("[ITEM_ID]"),
                RefAsSinglePatternName          = SinglePatternName.FromItem("[ITEM_ID]"),
                RepeatedRefAsSinglePatternNames =
                {
                    SinglePatternName.FromItem("[ITEM_ID]"),
                },
                ValueRefAsSinglePatternName          = SinglePatternName.FromItem("[ITEM_ID]"),
                RepeatedValueRefAsSinglePatternNames =
                {
                    SinglePatternName.FromItem("[ITEM_ID]"),
                },
            };
            // Make the request
            Response response = await resourceNamesClient.SinglePatternMethodAsync(request);

            // End snippet
        }
Esempio n. 2
0
        /// <summary>Snippet for SinglePatternMethodAsync</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 SinglePatternMethodAsync()
        {
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            string realName = "items/[ITEM_ID]";
            string @ref     = "items/[ITEM_ID]";
            IEnumerable <string> repeatedRef = new string[] { "items/[ITEM_ID]", };
            string valueRef = "items/[ITEM_ID]";
            IEnumerable <string> repeatedValueRef = new string[] { "items/[ITEM_ID]", };
            // Make the request
            Response response = await resourceNamesClient.SinglePatternMethodAsync(realName, @ref, repeatedRef, valueRef, repeatedValueRef);
        }
Esempio n. 3
0
        /// <summary>Snippet for SinglePatternMethodAsync</summary>
        public async Task SinglePatternMethodAsync()
        {
            // Snippet: SinglePatternMethodAsync(string, string, IEnumerable<string>, string, IEnumerable<string>, CallSettings)
            // Additional: SinglePatternMethodAsync(string, string, IEnumerable<string>, string, IEnumerable<string>, CancellationToken)
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            string realName = "items/[ITEM_ID]";
            string @ref     = "items/[ITEM_ID]";
            IEnumerable <string> repeatedRef = new string[] { "items/[ITEM_ID]", };
            string valueRef = "items/[ITEM_ID]";
            IEnumerable <string> repeatedValueRef = new string[] { "items/[ITEM_ID]", };
            // Make the request
            Response response = await resourceNamesClient.SinglePatternMethodAsync(realName, @ref, repeatedRef, valueRef, repeatedValueRef);

            // End snippet
        }
        /// <summary>Snippet for SinglePatternMethodAsync</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 SinglePatternMethodResourceNamesAsync()
        {
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            SinglePatternName realName = SinglePatternName.FromItem("[ITEM_ID]");
            SinglePatternName @ref     = SinglePatternName.FromItem("[ITEM_ID]");
            IEnumerable <SinglePatternName> repeatedRef = new SinglePatternName[]
            {
                SinglePatternName.FromItem("[ITEM_ID]"),
            };
            SinglePatternName valueRef = SinglePatternName.FromItem("[ITEM_ID]");
            IEnumerable <SinglePatternName> repeatedValueRef = new SinglePatternName[]
            {
                SinglePatternName.FromItem("[ITEM_ID]"),
            };
            // Make the request
            Response response = await resourceNamesClient.SinglePatternMethodAsync(realName, @ref, repeatedRef, valueRef, repeatedValueRef);
        }
Esempio n. 5
0
        /// <summary>Snippet for SinglePatternMethodAsync</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 SinglePatternMethodRequestObjectAsync()
        {
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            SinglePattern request = new SinglePattern
            {
                RealNameAsSinglePatternName     = SinglePatternName.FromItem("[ITEM_ID]"),
                RefAsSinglePatternName          = SinglePatternName.FromItem("[ITEM_ID]"),
                RepeatedRefAsSinglePatternNames =
                {
                    SinglePatternName.FromItem("[ITEM_ID]"),
                },
                ValueRefAsSinglePatternName          = SinglePatternName.FromItem("[ITEM_ID]"),
                RepeatedValueRefAsSinglePatternNames =
                {
                    SinglePatternName.FromItem("[ITEM_ID]"),
                },
            };
            // Make the request
            Response response = await resourceNamesClient.SinglePatternMethodAsync(request);
        }
Esempio n. 6
0
        /// <summary>Snippet for SinglePatternMethodAsync</summary>
        public async Task SinglePatternMethodResourceNamesAsync()
        {
            // Snippet: SinglePatternMethodAsync(SinglePatternName, SinglePatternName, IEnumerable<SinglePatternName>, SinglePatternName, IEnumerable<SinglePatternName>, CallSettings)
            // Additional: SinglePatternMethodAsync(SinglePatternName, SinglePatternName, IEnumerable<SinglePatternName>, SinglePatternName, IEnumerable<SinglePatternName>, CancellationToken)
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            SinglePatternName realName = SinglePatternName.FromItem("[ITEM_ID]");
            SinglePatternName @ref     = SinglePatternName.FromItem("[ITEM_ID]");
            IEnumerable <SinglePatternName> repeatedRef = new SinglePatternName[]
            {
                SinglePatternName.FromItem("[ITEM_ID]"),
            };
            SinglePatternName valueRef = SinglePatternName.FromItem("[ITEM_ID]");
            IEnumerable <SinglePatternName> repeatedValueRef = new SinglePatternName[]
            {
                SinglePatternName.FromItem("[ITEM_ID]"),
            };
            // Make the request
            Response response = await resourceNamesClient.SinglePatternMethodAsync(realName, @ref, repeatedRef, valueRef, repeatedValueRef);

            // End snippet
        }