ResourceStrategy.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Create<TModel,TClient,TOperation>(ResourceType, Func<TClient, TOperation>, Func<TOperation,GetAsyncParams,Task<TModel>>, Func<TOperation, CreateOrUpdateAsyncParams<TModel>,Task<TModel>>, Func<TModel, String>, Action<TModel,String>, Func<TModel,Int32>, Boolean)
public static Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<TModel> Create<TModel,TClient,TOperation> (Microsoft.Azure.Commands.Common.Strategies.ResourceType type, Func<TClient,TOperation> getOperations, Func<TOperation,Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams,System.Threading.Tasks.Task<TModel>> getAsync, Func<TOperation,Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<TModel>,System.Threading.Tasks.Task<TModel>> createOrUpdateAsync, Func<TModel,string> getLocation, Action<TModel,string> setLocation, Func<TModel,int> createTime, bool compulsoryLocation) where TModel : class where TClient : Microsoft.Rest.ServiceClient<TClient>;
static member Create : Microsoft.Azure.Commands.Common.Strategies.ResourceType * Func<'Client, 'Operation (requires 'Client :> Microsoft.Rest.ServiceClient<'Client>)> * Func<'Operation, Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams, System.Threading.Tasks.Task<'Model>> * Func<'Operation, Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<'Model>, System.Threading.Tasks.Task<'Model>> * Func<'Model, string (requires 'Model : null)> * Action<'Model, string (requires 'Model : null)> * Func<'Model, int (requires 'Model : null)> * bool -> Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model (requires 'Model : null)> (requires 'Model : null and 'Client :> Microsoft.Rest.ServiceClient<'Client>)
Public Shared Function Create(Of TModel As Class, TClient As Class, TOperation As Class) (type As ResourceType, getOperations As Func(Of TClient, TOperation), getAsync As Func(Of TOperation, GetAsyncParams, Task(Of TModel)), createOrUpdateAsync As Func(Of TOperation, CreateOrUpdateAsyncParams(Of TModel), Task(Of TModel)), getLocation As Func(Of TModel, String), setLocation As Action(Of TModel, String), createTime As Func(Of TModel, Integer), compulsoryLocation As Boolean) As ResourceStrategy(Of TModel)
Type Parameters
- TModel
- TClient
- TOperation
Parameters
- type
- ResourceType
- getOperations
- Func<TClient,TOperation>
- getAsync
- Func<TOperation,GetAsyncParams,Task<TModel>>
- createOrUpdateAsync
- Func<TOperation,CreateOrUpdateAsyncParams<TModel>,Task<TModel>>
- compulsoryLocation
- Boolean
Returns
Applies to
Create<TModel,TClient,TOperation>(ResourceType, Func<TClient, TOperation>, Func<TOperation,GetAsyncParams,Task<TModel>>, Func<TOperation, CreateOrUpdateAsyncParams<TModel>,Task<TModel>>, Func<TModel, String>, Action<TModel,String>, Func<TModel,Int32>, Boolean, Func<TModel, Boolean>)
public static Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<TModel> Create<TModel,TClient,TOperation> (Microsoft.Azure.Commands.Common.Strategies.ResourceType type, Func<TClient,TOperation> getOperations, Func<TOperation,Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams,System.Threading.Tasks.Task<TModel>> getAsync, Func<TOperation,Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<TModel>,System.Threading.Tasks.Task<TModel>> createOrUpdateAsync, Func<TModel,string> getLocation, Action<TModel,string> setLocation, Func<TModel,int> createTime, bool compulsoryLocation, Func<TModel,bool> evaluatePreexistingConfiguration = default) where TModel : class where TClient : Microsoft.Rest.ServiceClient<TClient>;
static member Create : Microsoft.Azure.Commands.Common.Strategies.ResourceType * Func<'Client, 'Operation (requires 'Client :> Microsoft.Rest.ServiceClient<'Client>)> * Func<'Operation, Microsoft.Azure.Commands.Common.Strategies.GetAsyncParams, System.Threading.Tasks.Task<'Model>> * Func<'Operation, Microsoft.Azure.Commands.Common.Strategies.CreateOrUpdateAsyncParams<'Model>, System.Threading.Tasks.Task<'Model>> * Func<'Model, string (requires 'Model : null)> * Action<'Model, string (requires 'Model : null)> * Func<'Model, int (requires 'Model : null)> * bool * Func<'Model, bool (requires 'Model : null)> -> Microsoft.Azure.Commands.Common.Strategies.ResourceStrategy<'Model (requires 'Model : null)> (requires 'Model : null and 'Client :> Microsoft.Rest.ServiceClient<'Client>)
Public Shared Function Create(Of TModel As Class, TClient As Class, TOperation As Class) (type As ResourceType, getOperations As Func(Of TClient, TOperation), getAsync As Func(Of TOperation, GetAsyncParams, Task(Of TModel)), createOrUpdateAsync As Func(Of TOperation, CreateOrUpdateAsyncParams(Of TModel), Task(Of TModel)), getLocation As Func(Of TModel, String), setLocation As Action(Of TModel, String), createTime As Func(Of TModel, Integer), compulsoryLocation As Boolean, Optional evaluatePreexistingConfiguration As Func(Of TModel, Boolean) = Nothing) As ResourceStrategy(Of TModel)
Type Parameters
- TModel
- TClient
- TOperation
Parameters
- type
- ResourceType
- getOperations
- Func<TClient,TOperation>
- getAsync
- Func<TOperation,GetAsyncParams,Task<TModel>>
- createOrUpdateAsync
- Func<TOperation,CreateOrUpdateAsyncParams<TModel>,Task<TModel>>
- compulsoryLocation
- Boolean