Пример #1
0
        VirtualCluster IOperationSource <VirtualCluster> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = VirtualClusterData.DeserializeVirtualClusterData(document.RootElement);

            return(new VirtualCluster(_client, data));
        }
 internal VirtualCluster(ArmResource options, VirtualClusterData resource) : base(options, resource.Id)
 {
     HasData                    = true;
     _data                      = resource;
     _clientDiagnostics         = new ClientDiagnostics(ClientOptions);
     _virtualClustersRestClient = new VirtualClustersRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Пример #3
0
 internal VirtualClusterResource(ArmClient client, VirtualClusterData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }
 internal VirtualCluster(ArmClient armClient, VirtualClusterData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }