@Override protected Observable<GenericResourceInner> getInnerAsync() { return this.manager().inner().resources().getAsync( resourceGroupName(), resourceProviderNamespace(), parentResourcePath(), resourceType(), name(), apiVersion()); }
@Override public Observable<GenericResource> listByResourceGroupAsync(String resourceGroupName) { return wrapPageAsync(this.manager().inner().resources().listByResourceGroupAsync(resourceGroupName)); } }
@Override protected Observable<DeploymentExtendedInner> getInnerAsync() { return this.manager().inner().deployments().getByResourceGroupAsync(resourceGroupName(), name()); }
protected ManagerBase(RestClient restClient, String subscriptionId) { if (restClient != null) { this.resourceManager = ResourceManager.authenticate(restClient).withSubscription(subscriptionId); } this.subscriptionId = subscriptionId; }
@Override public boolean checkExistence(String resourceGroupName, String deploymentName) { return this.manager().inner().deployments().checkExistence(resourceGroupName, deploymentName); }
@Override public GenericResource.DefinitionStages.Blank define(String name) { return new GenericResourceImpl( name, new GenericResourceInner(), this.manager()); }
@Override protected PolicyAssignmentImpl wrapModel(String name) { return new PolicyAssignmentImpl(name, new PolicyAssignmentInner().withDisplayName(name), client); }
protected DeploymentImpl createFluentModel(String name) { return new DeploymentImpl( new DeploymentExtendedInner().withName(name), this.resourceManager); }
@Override protected ResourceGroupImpl wrapModel(String name) { return new ResourceGroupImpl( new ResourceGroupInner().withName(name), serviceClient); }
@Override public Observable<PolicyDefinition> listAsync() { return wrapPageAsync(client.listAsync()); } }
/** * @return the resource provider management API entry point */ public Providers providers() { if (providers == null) { providers = new ProvidersImpl(resourceManagementClient.providers()); } return providers; }
/** * @return the policy definition management API entry point */ public PolicyDefinitions policyDefinitions() { if (policyDefinitions == null) { policyDefinitions = new PolicyDefinitionsImpl(policyClient.policyDefinitions()); } return policyDefinitions; }
@Override public PolicyDefinitionImpl withDisplayName(String displayName) { inner().withDisplayName(displayName); return this; }
@Override public PolicyDefinitionImpl withPolicyRule(Object policyRule) { inner().withPolicyRule(policyRule); return this; }
@Override public PolicyAssignmentImpl withPolicyDefinitionId(String policyDefinitionId) { inner().withPolicyDefinitionId(policyDefinitionId); return this; }
@Override protected Observable<GenericResourceInner> getInnerAsync() { return this.manager().inner().resources().getAsync( resourceGroupName(), resourceProviderNamespace(), parentResourcePath(), resourceType(), name(), apiVersion()); }
@Override public GenericResource.DefinitionStages.Blank define(String name) { return new GenericResourceImpl( name, new GenericResourceInner(), this.manager()); }