/// <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 }
/// <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); }
/// <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); }
/// <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); }
/// <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 }
/// <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 }