Beispiel #1
0
 public override ArmResponse <Subnet> Get()
 {
     return(new PhArmResponse <Subnet, Azure.ResourceManager.Network.Models.Subnet>(Operations.Get(Id.ResourceGroup, Id.Parent.Name, Id.Name),
                                                                                    n =>
     {
         Resource = new SubnetData(n, DefaultLocation);
         return new Subnet(ClientOptions, Resource as SubnetData);
     }));
 }
Beispiel #2
0
 public async override Task <ArmResponse <Subnet> > GetAsync(CancellationToken cancellationToken = default)
 {
     return(new PhArmResponse <Subnet, Azure.ResourceManager.Network.Models.Subnet>(await Operations.GetAsync(Id.ResourceGroup, Id.Parent.Name, Id.Name, null, cancellationToken),
                                                                                    n =>
     {
         Resource = new SubnetData(n, DefaultLocation);
         return new Subnet(ClientOptions, Resource as SubnetData);
     }));
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Subnet"/> class.
 /// </summary>
 internal Subnet(ResourceOperationsBase options, SubnetData resource)
     : base(options, resource.Id)
 {
     Data = resource;
 }
Beispiel #4
0
 public Subnet(AzureResourceManagerClientOptions SubnetOptions, SubnetData resource)
     : base(SubnetOptions, resource.Id)
 {
     Data = resource;
 }
 public Subnet Subnet(SubnetData subnet)
 {
     return(new Subnet(ClientOptions, subnet));
 }