Пример #1
0
        public TestResourceOperation(TestResource value, bool exceptionOnWait = false, int delaySteps = 0)
        {
            _value           = value;
            _exceptionOnWait = exceptionOnWait;
            _operationHelper = OperationInternal <TestResource> .Succeeded(new MockResponse(200), value);

            _delaySteps = delaySteps;
        }
        internal DeleteSecretOperation(KeyVaultPipeline pipeline, Response <DeletedSecret> response)
        {
            _pipeline = pipeline;
            _value    = response.Value ?? throw new InvalidOperationException("The response does not contain a value.");

            // The recoveryId is only returned if soft delete is enabled.
            if (_value.RecoveryId is null)
            {
                // If soft delete is not enabled, deleting is immediate so set success accordingly.
                _operationInternal = OperationInternal.Succeeded(response.GetRawResponse());
            }
            else
            {
                _operationInternal = new(_pipeline.Diagnostics, this, response.GetRawResponse(), nameof(DeleteSecretOperation), new[] { new KeyValuePair <string, string>("secret", _value.Name) });
            }
        }
 internal DeviceUpdateArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
Пример #4
0
 internal ServiceBusArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal CommunicationArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
Пример #6
0
 internal DynatraceArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
Пример #7
0
 internal EdgeOrderArmOperation(Response <T> response)
 {
     _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value);
 }
 internal AppServiceArmOperation(Response <T> response)
 {
     _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value);
 }
Пример #9
0
 internal ResourceManagerArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
Пример #10
0
 internal CosmosDBArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
Пример #11
0
 internal NetworkFunctionArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal DnsResolverArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal ContainersArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal ManagementGroupsArmOperation(Response <T> response)
 {
     _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value);
 }
Пример #15
0
 internal MachineLearningArmOperation(Response <T> response)
 {
     _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value);
 }
 internal EventHubsArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
Пример #17
0
 internal AppPlatformArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal WebPubSubArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal ExtendedLocationArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
Пример #20
0
 internal ConfidentialLedgerArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal ConnectedVMwarevSphereArmOperation(Response <T> response)
 {
     _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value);
 }
 internal ContainersArmOperation(Response <T> response)
 {
     _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value);
 }
Пример #23
0
 internal SqlArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal ConnectedVMwarevSphereArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal KeyVaultArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
 internal ExtendedLocationArmOperation(Response <T> response)
 {
     _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value);
 }
Пример #27
0
 internal WorkloadsArmOperation(Response <T> response)
 {
     _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value);
 }
 internal EdgeOrderArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
Пример #29
0
 internal DesktopVirtualizationArmOperation(Response response)
 {
     _operation = OperationInternal.Succeeded(response);
 }
Пример #30
0
 internal ConfidentialLedgerArmOperation(Response <T> response)
 {
     _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value);
 }