/** * Mark that there is no action pending on this child resource and clear * any cached result, i.e. the output produced by the invocation of last * action. */ public void clear() { this.setPendingOperation(PendingOperation.None); this.childAction.clear(); }
protected GroupableParentResourceImpl( String name, InnerModelT innerObject, ManagerT manager) { super(name, innerObject, manager); initializeChildrenFromInner(); }
/** * @return the key of this child resource in the collection maintained by ExternalChildResourceCollectionImpl */ public String childResourceKey() { return name(); }
@SuppressWarnings("unchecked") @Override public Observable<FluentModelT> createResourceAsync() { if (this.creatableParentResourceKey != null) { FluentParentModelT parentResource = this.<FluentParentModelT>taskResult(this.creatableParentResourceKey); withExistingParentResource(parentResource); } return this.createChildResourceAsync(); }
/** * Creates a new resource group to put the resource in. * <p> * The group will be created in the same location as the resource. * The group's name is automatically derived from the resource's name. * @return the next stage of the definition */ public final FluentModelImplT withNewResourceGroup() { return this.withNewResourceGroup(this.name() + "group"); }
@Override public SqlFirewallRuleImpl update() { super.prepareUpdate(); return this; }
/** * Add a creatable dependency for this model. * * @param creatable the creatable dependency. * @return the key to be used as parameter to taskResult(string) method to retrieve created dependency */ @SuppressWarnings("unchecked") protected String addDependency(Creatable<? extends Indexable> creatable) { TaskGroup.HasTaskGroup dependency = (TaskGroup.HasTaskGroup) creatable; return this.addDependency(dependency); }
/** * @return the task group associated with this external child resource. */ @Override public TaskGroup taskGroup() { return this.childAction.taskGroup(); }
/** * @return <tt>true</tt> if currently in define..create mode */ @Override public boolean isInCreateMode() { return this.id() == null; }
@Override public FluentModelT call(InnerModelT innerModelT) { self.setInner(innerModelT); return (FluentModelT) self; } });
/** * Add an appliable "post-run" dependent for this model. * * @param appliable the appliable "post-run" dependent. * @return the key to be used as parameter to taskResult(string) method to retrieve updated "post-run" dependent */ @SuppressWarnings("unchecked") protected String addPostRunDependent(Appliable<? extends Indexable> appliable) { TaskGroup.HasTaskGroup dependency = (TaskGroup.HasTaskGroup) appliable; return this.addPostRunDependent(dependency); }
@SuppressWarnings("unchecked") @Override public Observable<FluentModelT> createResourceAsync() { if (this.creatableParentResourceKey != null) { FluentParentModelT parentResource = this.<FluentParentModelT>taskResult(this.creatableParentResourceKey); withExistingParentResource(parentResource); } return this.createChildResourceAsync(); }
/** * Mark that there is no action pending on this child resource and clear * any cached result, i.e. the output produced by the invocation of last * action. */ public void clear() { this.setPendingOperation(PendingOperation.None); this.childAction.clear(); }
/** * Creates a new resource group to put the resource in. * <p> * The group will be created in the same location as the resource. * The group's name is automatically derived from the resource's name. * * @param region the region where resource group needs to be created * @return the next stage of the definition */ public final FluentModelImplT withNewResourceGroup(Region region) { return this.withNewResourceGroup(this.name() + "group", region); }
@Override public Update update() { super.prepareUpdate(); return this; } }
protected GroupableParentResourceImpl( String name, InnerModelT innerObject, ManagerT manager) { super(name, innerObject, manager); initializeChildrenFromInner(); }
/** * @return the key of this child resource in the collection maintained by ExternalChildResourceCollectionImpl */ public String childResourceKey() { return name(); }
/** * Add an appliable dependency for this model. * * @param appliable the appliable dependency. * @return the key to be used as parameter to taskResult(string) method to retrieve updated dependency */ @SuppressWarnings("unchecked") protected String addeDependency(Appliable<? extends Indexable> appliable) { TaskGroup.HasTaskGroup dependency = (TaskGroup.HasTaskGroup) appliable; return this.addDependency(dependency); }
@Override public SqlFailoverGroupImpl update() { super.prepareUpdate(); return this; }
@Override public SqlDatabaseImpl update() { super.prepareUpdate(); return this; }