/// <summary> /// Initializes a new instance of the <see cref="ResourceContainerBase{TOperations, TData}"/> class. /// </summary> /// <param name="options"> The client parameters to use in these operations. </param> /// <param name="parentResource"> The resource representing the parent resource. </param> protected ResourceContainerBase(AzureResourceManagerClientOptions options, TrackedResource parentResource) : base(options, parentResource) { Parent = parentResource; }
/// <summary> /// Gets resource operations base. /// </summary> /// <typeparam name="T"> The type of the underlying model this class wraps. </typeparam> /// <param name="resource"> The tracked resource. </param> /// <returns> Resource operations of the resource. </returns> public T GetResourceOperationsBase <T>(TrackedResource resource) where T : TrackedResource { return(Activator.CreateInstance(typeof(T), ClientOptions, resource) as T); }