Ejemplo n.º 1
0
 /// <summary>Snippet for SetTarget</summary>
 public void SetTarget()
 {
     // Snippet: SetTarget(string, string, string, TargetReference, CallSettings)
     // Create client
     ForwardingRulesClient forwardingRulesClient = ForwardingRulesClient.Create();
     // Initialize request argument(s)
     string          project                 = "";
     string          region                  = "";
     string          forwardingRule          = "";
     TargetReference targetReferenceResource = new TargetReference();
     // Make the request
     Operation response = forwardingRulesClient.SetTarget(project, region, forwardingRule, targetReferenceResource);
     // End snippet
 }
Ejemplo n.º 2
0
 /// <summary>Snippet for SetTarget</summary>
 public void SetTargetRequestObject()
 {
     // Snippet: SetTarget(SetTargetForwardingRuleRequest, CallSettings)
     // Create client
     ForwardingRulesClient forwardingRulesClient = ForwardingRulesClient.Create();
     // Initialize request argument(s)
     SetTargetForwardingRuleRequest request = new SetTargetForwardingRuleRequest
     {
         RequestId               = "",
         Region                  = "",
         Project                 = "",
         ForwardingRule          = "",
         TargetReferenceResource = new TargetReference(),
     };
     // Make the request
     Operation response = forwardingRulesClient.SetTarget(request);
     // End snippet
 }