Exemplo n.º 1
0
 /// <summary>Snippet for WildcardMultiPatternMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void WildcardMultiPatternMethodResourceNames1()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     WildcardMultiPatternName name = WildcardMultiPatternName.FromSingularItem();
     WildcardMultiPatternName @ref = WildcardMultiPatternName.FromSingularItem();
     IEnumerable <WildcardMultiPatternName> repeatedRef = new WildcardMultiPatternName[]
     {
         WildcardMultiPatternName.FromSingularItem(),
     };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMethod(name, @ref, repeatedRef);
 }
Exemplo n.º 2
0
        /// <summary>Snippet for WildcardMultiPatternMethodAsync</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 WildcardMultiPatternMethodResourceNames4Async()
        {
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            WildcardMultiPatternName    name        = WildcardMultiPatternName.FromSingularItem();
            IResourceName               @ref        = new UnparsedResourceName("a/wildcard/resource");
            IEnumerable <IResourceName> repeatedRef = new IResourceName[]
            {
                new UnparsedResourceName("a/wildcard/resource"),
            };
            // Make the request
            Response response = await resourceNamesClient.WildcardMultiPatternMethodAsync(name, @ref, repeatedRef);
        }
Exemplo n.º 3
0
 /// <summary>Snippet for WildcardMultiPatternMethod</summary>
 public void WildcardMultiPatternMethodResourceNames7()
 {
     // Snippet: WildcardMultiPatternMethod(IResourceName, IResourceName, IEnumerable<WildcardMultiPatternName>, CallSettings)
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     IResourceName name = new UnparsedResourceName("a/wildcard/resource");
     IResourceName @ref = new UnparsedResourceName("a/wildcard/resource");
     IEnumerable <WildcardMultiPatternName> repeatedRef = new WildcardMultiPatternName[]
     {
         WildcardMultiPatternName.FromSingularItem(),
     };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMethod(name, @ref, repeatedRef);
     // End snippet
 }
Exemplo n.º 4
0
 /// <summary>Snippet for WildcardMultiPatternMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void WildcardMultiPatternMethodRequestObject()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     WildcardMultiPattern request = new WildcardMultiPattern
     {
         WildcardMultiPatternName               = WildcardMultiPatternName.FromSingularItem(),
         RefAsWildcardMultiPatternName          = WildcardMultiPatternName.FromSingularItem(),
         RepeatedRefAsWildcardMultiPatternNames =
         {
             WildcardMultiPatternName.FromSingularItem(),
         },
     };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMethod(request);
 }
Exemplo n.º 5
0
        /// <summary>Snippet for WildcardMultiPatternMethodAsync</summary>
        public async Task WildcardMultiPatternMethodResourceNames7Async()
        {
            // Snippet: WildcardMultiPatternMethodAsync(IResourceName, IResourceName, IEnumerable<WildcardMultiPatternName>, CallSettings)
            // Additional: WildcardMultiPatternMethodAsync(IResourceName, IResourceName, IEnumerable<WildcardMultiPatternName>, 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 <WildcardMultiPatternName> repeatedRef = new WildcardMultiPatternName[]
            {
                WildcardMultiPatternName.FromSingularItem(),
            };
            // Make the request
            Response response = await resourceNamesClient.WildcardMultiPatternMethodAsync(name, @ref, repeatedRef);

            // End snippet
        }
Exemplo n.º 6
0
        /// <summary>Snippet for WildcardMultiPatternMethodAsync</summary>
        public async Task WildcardMultiPatternMethodRequestObjectAsync()
        {
            // Snippet: WildcardMultiPatternMethodAsync(WildcardMultiPattern, CallSettings)
            // Additional: WildcardMultiPatternMethodAsync(WildcardMultiPattern, CancellationToken)
            // Create client
            ResourceNamesClient resourceNamesClient = await ResourceNamesClient.CreateAsync();

            // Initialize request argument(s)
            WildcardMultiPattern request = new WildcardMultiPattern
            {
                WildcardMultiPatternName               = WildcardMultiPatternName.FromSingularItem(),
                RefAsWildcardMultiPatternName          = WildcardMultiPatternName.FromSingularItem(),
                RepeatedRefAsWildcardMultiPatternNames =
                {
                    WildcardMultiPatternName.FromSingularItem(),
                },
            };
            // Make the request
            Response response = await resourceNamesClient.WildcardMultiPatternMethodAsync(request);

            // End snippet
        }