/// <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 }
/// <summary>Snippet for SinglePatternMethod</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void SinglePatternMethodResourceNames() { // Create client ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create(); // 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 = resourceNamesClient.SinglePatternMethod(realName, @ref, repeatedRef, valueRef, repeatedValueRef); }
/// <summary>Snippet for SinglePatternMethod</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void SinglePatternMethodRequestObject() { // Create client ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create(); // 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 = resourceNamesClient.SinglePatternMethod(request); }
/// <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 }