Beispiel #1
0
 /// <summary>Snippet for WildcardOnlyPatternMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void WildcardOnlyPatternMethod()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // 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 = resourceNamesClient.WildcardOnlyPatternMethod(name, @ref, repeatedRef, refSugar, repeatedRefSugar);
 }
Beispiel #2
0
 /// <summary>Snippet for WildcardOnlyPatternMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void WildcardOnlyPatternMethodResourceNames()
 {
     // 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 <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 = resourceNamesClient.WildcardOnlyPatternMethod(name, @ref, repeatedRef, refSugar, repeatedRefSugar);
 }
 /// <summary>Snippet for WildcardOnlyPatternMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void WildcardOnlyPatternMethodRequestObject()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // 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 = resourceNamesClient.WildcardOnlyPatternMethod(request);
 }