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); }
internal ServiceBusArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
internal CommunicationArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
internal DynatraceArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
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); }
internal ResourceManagerArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
internal CosmosDBArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
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); }
internal MachineLearningArmOperation(Response <T> response) { _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value); }
internal EventHubsArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
internal AppPlatformArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
internal WebPubSubArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
internal ExtendedLocationArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
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); }
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); }
internal WorkloadsArmOperation(Response <T> response) { _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value); }
internal EdgeOrderArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
internal DesktopVirtualizationArmOperation(Response response) { _operation = OperationInternal.Succeeded(response); }
internal ConfidentialLedgerArmOperation(Response <T> response) { _operation = OperationInternal <T> .Succeeded(response.GetRawResponse(), response.Value); }