示例#1
0
 /// <summary>Snippet for ExpandIpCidrRange</summary>
 public void ExpandIpCidrRangeRequestObject()
 {
     // Snippet: ExpandIpCidrRange(ExpandIpCidrRangeSubnetworkRequest, CallSettings)
     // Create client
     SubnetworksClient subnetworksClient = SubnetworksClient.Create();
     // Initialize request argument(s)
     ExpandIpCidrRangeSubnetworkRequest request = new ExpandIpCidrRangeSubnetworkRequest
     {
         RequestId  = "",
         Subnetwork = "",
         Region     = "",
         SubnetworksExpandIpCidrRangeRequestResource = new SubnetworksExpandIpCidrRangeRequest(),
         Project = "",
     };
     // Make the request
     Operation response = subnetworksClient.ExpandIpCidrRange(request);
     // End snippet
 }
示例#2
0
        /// <summary>Snippet for ExpandIpCidrRangeAsync</summary>
        public async Task ExpandIpCidrRangeRequestObjectAsync()
        {
            // Snippet: ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest, CallSettings)
            // Additional: ExpandIpCidrRangeAsync(ExpandIpCidrRangeSubnetworkRequest, CancellationToken)
            // Create client
            SubnetworksClient subnetworksClient = await SubnetworksClient.CreateAsync();

            // Initialize request argument(s)
            ExpandIpCidrRangeSubnetworkRequest request = new ExpandIpCidrRangeSubnetworkRequest
            {
                RequestId  = "",
                Subnetwork = "",
                Region     = "",
                SubnetworksExpandIpCidrRangeRequestResource = new SubnetworksExpandIpCidrRangeRequest(),
                Project = "",
            };
            // Make the request
            Operation response = await subnetworksClient.ExpandIpCidrRangeAsync(request);

            // End snippet
        }