Exemple #1
0
 /// <summary>Snippet for LooseValidationPatternMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void LooseValidationPatternMethod()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     string name = "parents/[PARENT_ID]/invalid_name/items/[ITEM_ID]";
     // Make the request
     Response response = resourceNamesClient.LooseValidationPatternMethod(name);
 }
 /// <summary>Snippet for LooseValidationPatternMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void LooseValidationPatternMethodResourceNames()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     LooseValidationPatternName name = LooseValidationPatternName.FromParentItem("[PARENT_ID]", "[ITEM_ID]");
     // Make the request
     Response response = resourceNamesClient.LooseValidationPatternMethod(name);
 }
 /// <summary>Snippet for DeprecatedPatternMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void DeprecatedPatternMethodRequestObject()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     DeprecatedPattern request = new DeprecatedPattern {
     };
     // Make the request
     Response response = resourceNamesClient.DeprecatedPatternMethod(request);
 }
Exemple #4
0
 /// <summary>Snippet for WildcardMultiPatternMultipleMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void WildcardMultiPatternMultipleMethod()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     string @ref = "constPattern";
     IEnumerable <string> repeatedRef = new string[] { "constPattern", };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMultipleMethod(@ref, repeatedRef);
 }
 /// <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 WildcardMultiPatternMethod()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     string name = "singular_item";
     string @ref = "singular_item";
     IEnumerable <string> repeatedRef = new string[] { "singular_item", };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMethod(name, @ref, repeatedRef);
 }
Exemple #6
0
        /// <summary>Snippet for DeprecatedPatternMethod</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public void DeprecatedPatternMethod()
        {
            // Create client
            ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
            // Initialize request argument(s)
            string name = "items/[ITEM_ID]";

            // Make the request
#pragma warning disable CS0612
            Response response = resourceNamesClient.DeprecatedPatternMethod(name);
#pragma warning restore CS0612
        }
 /// <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 SinglePatternMethod()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     string realName = "items/[ITEM_ID]";
     string @ref     = "items/[ITEM_ID]";
     IEnumerable <string> repeatedRef = new string[] { "items/[ITEM_ID]", };
     string valueRef = "items/[ITEM_ID]";
     IEnumerable <string> repeatedValueRef = new string[] { "items/[ITEM_ID]", };
     // Make the request
     Response response = resourceNamesClient.SinglePatternMethod(realName, @ref, repeatedRef, valueRef, repeatedValueRef);
 }
Exemple #8
0
 /// <summary>Snippet for WildcardMultiPatternMultipleMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void WildcardMultiPatternMultipleMethodResourceNames3()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     IResourceName @ref = new UnparsedResourceName("a/wildcard/resource");
     IEnumerable <WildcardMultiPatternMultipleName> repeatedRef = new WildcardMultiPatternMultipleName[]
     {
         WildcardMultiPatternMultipleName.FromConstPattern(),
     };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMultipleMethod(@ref, repeatedRef);
 }
Exemple #9
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 WildcardMultiPatternMethodResourceNames8()
 {
     // 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"),
     };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMethod(name, @ref, repeatedRef);
 }
Exemple #10
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);
 }
Exemple #11
0
 /// <summary>Snippet for WildcardMultiPatternMultipleMethod</summary>
 public void WildcardMultiPatternMultipleMethodResourceNames1()
 {
     // Snippet: WildcardMultiPatternMultipleMethod(WildcardMultiPatternMultipleName, IEnumerable<WildcardMultiPatternMultipleName>, CallSettings)
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     WildcardMultiPatternMultipleName @ref = WildcardMultiPatternMultipleName.FromConstPattern();
     IEnumerable <WildcardMultiPatternMultipleName> repeatedRef = new WildcardMultiPatternMultipleName[]
     {
         WildcardMultiPatternMultipleName.FromConstPattern(),
     };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMultipleMethod(@ref, repeatedRef);
     // End snippet
 }
Exemple #12
0
 /// <summary>Snippet for WildcardMultiPatternMultipleMethod</summary>
 public void WildcardMultiPatternMultipleMethodResourceNames4()
 {
     // Snippet: WildcardMultiPatternMultipleMethod(IResourceName, IEnumerable<IResourceName>, CallSettings)
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     IResourceName @ref = new UnparsedResourceName("a/wildcard/resource");
     IEnumerable <IResourceName> repeatedRef = new IResourceName[]
     {
         new UnparsedResourceName("a/wildcard/resource"),
     };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMultipleMethod(@ref, repeatedRef);
     // End snippet
 }
Exemple #13
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
 }
Exemple #14
0
 /// <summary>Snippet for WildcardMultiPatternMultipleMethod</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void WildcardMultiPatternMultipleMethodRequestObject()
 {
     // Create client
     ResourceNamesClient resourceNamesClient = ResourceNamesClient.Create();
     // Initialize request argument(s)
     WildcardMultiPatternMultiple request = new WildcardMultiPatternMultiple
     {
         WildcardMultiPatternMultipleName               = WildcardMultiPatternMultipleName.FromConstPattern(),
         RefAsWildcardMultiPatternMultipleName          = WildcardMultiPatternMultipleName.FromConstPattern(),
         RepeatedRefAsWildcardMultiPatternMultipleNames =
         {
             WildcardMultiPatternMultipleName.FromConstPattern(),
         },
     };
     // Make the request
     Response response = resourceNamesClient.WildcardMultiPatternMultipleMethod(request);
 }
Exemple #15
0
 /// <summary>Snippet for WildcardMultiPatternMethod</summary>
 public void WildcardMultiPatternMethodRequestObject()
 {
     // Snippet: WildcardMultiPatternMethod(WildcardMultiPattern, CallSettings)
     // 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);
     // 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);
 }
Exemple #17
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);
 }
 /// <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);
 }
 /// <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);
 }