예제 #1
0
        /// <summary>Snippet for WildcardOnlyPatternMethodAsync</summary>
        public async Task WildcardOnlyPatternMethodRequestObjectAsync()
        {
            // Snippet: WildcardOnlyPatternMethodAsync(WildcardOnlyPattern, CallSettings)
            // Additional: WildcardOnlyPatternMethodAsync(WildcardOnlyPattern, CancellationToken)
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            WildcardOnlyPattern request = new WildcardOnlyPattern
            {
                ResourceName               = new UnparsedResourceName("a/wildcard/resource"),
                RefAsResourceName          = new UnparsedResourceName("a/wildcard/resource"),
                RepeatedRefAsResourceNames =
                {
                    new UnparsedResourceName("a/wildcard/resource"),
                },
                RefSugarAsResourceName          = new UnparsedResourceName("a/wildcard/resource"),
                RepeatedRefSugarAsResourceNames =
                {
                    new UnparsedResourceName("a/wildcard/resource"),
                },
            };
            // Make the request
            Response response = await resourceNamesClient.WildcardOnlyPatternMethodAsync(request);

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

            // Initialize request argument(s)
            string name = "a/wildcard/resource";
            string @ref = "a/wildcard/resource";
            IEnumerable <string> repeatedRef = new string[]
            {
                "a/wildcard/resource",
            };
            string refSugar = "a/wildcard/resource";
            IEnumerable <string> repeatedRefSugar = new string[]
            {
                "a/wildcard/resource",
            };
            // Make the request
            Response response = await resourceNamesClient.WildcardOnlyPatternMethodAsync(name, @ref, repeatedRef, refSugar, repeatedRefSugar);
        }
예제 #3
0
        /// <summary>Snippet for WildcardOnlyPatternMethodAsync</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 WildcardOnlyPatternMethodResourceNamesAsync()
        {
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            IResourceName name = new UnparsedResourceName("a/wildcard/resource");
            IResourceName @ref = new UnparsedResourceName("a/wildcard/resource");
            IEnumerable <IResourceName> repeatedRef = new IResourceName[]
            {
                new UnparsedResourceName("a/wildcard/resource"),
            };
            IResourceName refSugar = new UnparsedResourceName("a/wildcard/resource");
            IEnumerable <IResourceName> repeatedRefSugar = new IResourceName[]
            {
                new UnparsedResourceName("a/wildcard/resource"),
            };
            // Make the request
            Response response = await resourceNamesClient.WildcardOnlyPatternMethodAsync(name, @ref, repeatedRef, refSugar, repeatedRefSugar);
        }
예제 #4
0
        /// <summary>Snippet for WildcardOnlyPatternMethodAsync</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 WildcardOnlyPatternMethodRequestObjectAsync()
        {
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            WildcardOnlyPattern request = new WildcardOnlyPattern
            {
                ResourceName               = new UnparsedResourceName("a/wildcard/resource"),
                RefAsResourceName          = new UnparsedResourceName("a/wildcard/resource"),
                RepeatedRefAsResourceNames =
                {
                    new UnparsedResourceName("a/wildcard/resource"),
                },
                RefSugarAsResourceName          = new UnparsedResourceName("a/wildcard/resource"),
                RepeatedRefSugarAsResourceNames =
                {
                    new UnparsedResourceName("a/wildcard/resource"),
                },
            };
            // Make the request
            Response response = await resourceNamesClient.WildcardOnlyPatternMethodAsync(request);
        }
예제 #5
0
        /// <summary>Snippet for WildcardOnlyPatternMethodAsync</summary>
        public async Task WildcardOnlyPatternMethodResourceNamesAsync()
        {
            // Snippet: WildcardOnlyPatternMethodAsync(IResourceName, IResourceName, IEnumerable<IResourceName>, IResourceName, IEnumerable<IResourceName>, CallSettings)
            // Additional: WildcardOnlyPatternMethodAsync(IResourceName, IResourceName, IEnumerable<IResourceName>, IResourceName, IEnumerable<IResourceName>, CancellationToken)
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            IResourceName name = new UnparsedResourceName("a/wildcard/resource");
            IResourceName @ref = new UnparsedResourceName("a/wildcard/resource");
            IEnumerable <IResourceName> repeatedRef = new IResourceName[]
            {
                new UnparsedResourceName("a/wildcard/resource"),
            };
            IResourceName refSugar = new UnparsedResourceName("a/wildcard/resource");
            IEnumerable <IResourceName> repeatedRefSugar = new IResourceName[]
            {
                new UnparsedResourceName("a/wildcard/resource"),
            };
            // Make the request
            Response response = await resourceNamesClient.WildcardOnlyPatternMethodAsync(name, @ref, repeatedRef, refSugar, repeatedRefSugar);

            // End snippet
        }
예제 #6
0
        /// <summary>Snippet for WildcardOnlyPatternMethodAsync</summary>
        public async Task WildcardOnlyPatternMethodAsync()
        {
            // Snippet: WildcardOnlyPatternMethodAsync(string, string, IEnumerable<string>, string, IEnumerable<string>, CallSettings)
            // Additional: WildcardOnlyPatternMethodAsync(string, string, IEnumerable<string>, string, IEnumerable<string>, CancellationToken)
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            string name = "a/wildcard/resource";
            string @ref = "a/wildcard/resource";
            IEnumerable <string> repeatedRef = new string[]
            {
                "a/wildcard/resource",
            };
            string refSugar = "a/wildcard/resource";
            IEnumerable <string> repeatedRefSugar = new string[]
            {
                "a/wildcard/resource",
            };
            // Make the request
            Response response = await resourceNamesClient.WildcardOnlyPatternMethodAsync(name, @ref, repeatedRef, refSugar, repeatedRefSugar);

            // End snippet
        }