@Override public FluentModelImplT withExistingParentResource(FluentParentModelT existingParentResource) { return withExistingParentResource(existingParentResource.resourceGroupName(), existingParentResource.name()); }
@Override public PagedList<T> listByParent(ParentT parentResource) { return listByParent(parentResource.resourceGroupName(), parentResource.name()); }
@Override public ManagementLockImpl withLockedResource(Resource resource) { if (resource != null) { this.lockedResourceId = resource.id(); } else { throw new IllegalArgumentException("Missing resource ID."); } return this; }
@Override public MetricAlertImpl withTargetResource(HasId resource) { return this.withTargetResource(resource.id()); }
@Override public FluentModelImplT withExistingParentResource(FluentParentModelT existingParentResource) { this.inner().withLocation(existingParentResource.regionName()); return super.withExistingParentResource(existingParentResource); } }
@Override public ManagementLockImpl withLockedResource(Resource resource) { if (resource != null) { this.lockedResourceId = resource.id(); } else { throw new IllegalArgumentException("Missing resource ID."); } return this; }
@Override public ActivityLogAlert.DefinitionStages.WithDescription withTargetResource(HasId resource) { return this.withTargetResource(resource.id()); }
@Override public FluentModelImplT withExistingParentResource(FluentParentModelT existingParentResource) { return withExistingParentResource(existingParentResource.resourceGroupName(), existingParentResource.name()); }
@Override public Observable<T> getByParentAsync(ParentT parentResource, String name) { return getByParentAsync(parentResource.resourceGroupName(), parentResource.name(), name); }
@Override public IdentityImpl withAccessTo(Resource resource, String roleDefinitionId) { this.roleAssignmentHelper.withAccessTo(resource.id(), roleDefinitionId); return this; }
@Override public ActivityLogAlert.DefinitionStages.WithDescription withTargetResource(HasId resource) { return this.withTargetResource(resource.id()); }
@Override public Observable<T> getByParentAsync(ParentT parentResource, String name) { return getByParentAsync(parentResource.resourceGroupName(), parentResource.name(), name); }
@Override public IdentityImpl withAccessTo(Resource resource, BuiltInRole role) { this.roleAssignmentHelper.withAccessTo(resource.id(), role); return this; }
@Override public MetricAlertImpl withTargetResource(HasId resource) { return this.withTargetResource(resource.id()); }
@Override public PagedList<T> listByParent(ParentT parentResource) { return listByParent(parentResource.resourceGroupName(), parentResource.name()); }
@Override public IdentityImpl withAccessTo(Resource resource, String roleDefinitionId) { this.roleAssignmentHelper.withAccessTo(resource.id(), roleDefinitionId); return this; }
@Override public RedisCacheImpl withSubnet(HasId networkResource, String subnetName) { if (networkResource != null) { String subnetId = networkResource.id() + "/subnets/" + subnetName; return withSubnet(subnetId); } else { createParameters.withSubnetId(null); } return this; }
@Override public IdentityImpl withAccessTo(Resource resource, BuiltInRole role) { this.roleAssignmentHelper.withAccessTo(resource.id(), role); return this; }
@Override public RedisCacheImpl withSubnet(HasId networkResource, String subnetName) { if (networkResource != null) { String subnetId = networkResource.id() + "/subnets/" + subnetName; return withSubnet(subnetId); } else { createParameters.withSubnetId(null); } return this; }
@Override public RoleAssignmentImpl withResourceScope(Resource resource) { return withScope(resource.id()); }