StorageAccountResource IOperationSource <StorageAccountResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = StorageAccountData.DeserializeStorageAccountData(document.RootElement);

            return(new StorageAccountResource(_client, data));
        }
Пример #2
0
 internal StorageAccount(ArmResource options, StorageAccountData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new StorageAccountsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
     _privateLinkResourcesRestClient = new PrivateLinkResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
Пример #3
0
 internal StorageAccount(ArmClient armClient, StorageAccountData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }