ExternalChildResource<FluentModelT,InnerModelT,IParentT,ParentImplT> Class
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.
Externalized child resource abstract implementation. In order to be eligible for an external child resource following criteria must be satisfied:
- It's is always associated with a parent resource and has no existence without parent i.e. if you delete parent then child resource will be deleted automatically.
- Parent may or may not contain collection of child resources (i.e. as inline collection property). It's has an ID and can be created, updated, fetched and deleted independent of the parent i.e.CRUD on child resource does not require CRUD on the parent (Internal use only)
public abstract class ExternalChildResource<FluentModelT,InnerModelT,IParentT,ParentImplT> : Microsoft.Azure.Management.ResourceManager.Fluent.Core.ChildResource<InnerModelT,ParentImplT,IParentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.IRefreshable<FluentModelT> where FluentModelT : class, IExternalChildResource<FluentModelT,IParentT> where ParentImplT : IParentT
type ExternalChildResource<'FluentModelT, 'InnerModelT, 'IParentT, #'IParentT (requires 'FluentModelT : null and 'FluentModelT :> IExternalChildResource<'FluentModelT, 'IParentT>)> = class
inherit ChildResource<'InnerModelT, #'IParentT, 'IParentT>
interface IRefreshable<'FluentModelT (requires 'FluentModelT : null and 'FluentModelT :> IExternalChildResource<'FluentModelT, 'IParentT>)>
Public MustInherit Class ExternalChildResource(Of FluentModelT, InnerModelT, IParentT, ParentImplT)
Inherits ChildResource(Of InnerModelT, ParentImplT, IParentT)
Implements IRefreshable(Of FluentModelT)
Type Parameters
- FluentModelT
the external child resource fluent interface
- InnerModelT
Azure inner resource class type representing the child resource
- IParentT
parent fluent interface
- ParentImplT
parent resource implementation type
- Inheritance
-
ChildResource<InnerModelT,ParentImplT,IParentT>ExternalChildResource<FluentModelT,InnerModelT,IParentT,ParentImplT>
- Implements
-
IRefreshable<FluentModelT>
Constructors
ExternalChildResource<FluentModelT,InnerModelT,IParentT,ParentImplT>(String, ParentImplT, InnerModelT) |
Creates an instance of external child resource in-memory. |
Properties
ChildResourceKey | |
Inner | (Inherited from IndexableWrapper<InnerT>) |
Key | (Inherited from Indexable) |
Parent |
Gets the reference to the parent implementation, this is used by the child resource impls to invoke methods in the parent such as method to add the child resource impl to collection of child resources maintained by the parent. (Inherited from ChildResource<InnerT,ParentImplT,IParentT>) |
PendingOperation |
Methods
CreateAsync(CancellationToken) |
Creates this external child resource. |
DeleteAsync(CancellationToken) |
Deletes this external child resource. |
GetInnerAsync(CancellationToken) | |
Name() | |
Refresh() | |
RefreshAsync(CancellationToken) | |
SetInner(InnerT) | (Inherited from IndexableWrapper<InnerT>) |
UpdateAsync(CancellationToken) |
Updates this external child resource. |
Explicit Interface Implementations
IHasName.Name | (Inherited from ChildResource<InnerT,ParentImplT,IParentT>) |
IHasParent<IParentT>.Parent | (Inherited from ChildResource<InnerT,ParentImplT,IParentT>) |
Applies to
Azure SDK for .NET