Deployment IOperationSource <Deployment> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = DeploymentData.DeserializeDeploymentData(document.RootElement);

            return(new Deployment(_client, data));
        }
Пример #2
0
 internal Deployment(ArmResource options, DeploymentData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new DeploymentsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Пример #3
0
 internal Deployment(ArmClient client, DeploymentData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }