@Override public void copyTo(ResourceState target) { super.copyTo(target); if (target instanceof StorageDescription) { StorageDescription targetState = (StorageDescription) target; targetState.type = this.type; targetState.authCredentialsLink = this.authCredentialsLink; targetState.resourcePoolLink = this.resourcePoolLink; targetState.adapterManagementReference = this.adapterManagementReference; targetState.capacityBytes = this.capacityBytes; targetState.computeHostLink = this.computeHostLink; targetState.endpointLink = this.endpointLink; targetState.supportsEncryption = this.supportsEncryption; } } }
ResourceState patchBody = new ResourceState(); patchBody.customProperties = new HashMap<>(); patchBody.customProperties.put(EPZ_CUSTOM_PROP_NAME_PREFIX + extractRpId(state),
@Override public void copyTo(ResourceState target) { super.copyTo(target); if (target instanceof StorageDescription) { StorageDescription targetState = (StorageDescription) target; targetState.type = this.type; targetState.authCredentialsLink = this.authCredentialsLink; targetState.resourcePoolLink = this.resourcePoolLink; targetState.adapterManagementReference = this.adapterManagementReference; targetState.capacityBytes = this.capacityBytes; targetState.computeHostLink = this.computeHostLink; targetState.endpointLink = this.endpointLink; targetState.supportsEncryption = this.supportsEncryption; } } }
@Override public void copyTo(ResourceState target) { super.copyTo(target); if (target instanceof LoadBalancerState) { LoadBalancerState targetState = (LoadBalancerState) target; targetState.descriptionLink = this.descriptionLink; targetState.endpointLink = this.endpointLink; targetState.regionId = this.regionId; targetState.computeLinks = this.computeLinks; targetState.subnetLinks = this.subnetLinks; targetState.routes = this.routes; targetState.instanceAdapterReference = this.instanceAdapterReference; targetState.internetFacing = this.internetFacing; targetState.address = this.address; targetState.securityGroupLinks = this.securityGroupLinks; } } }
@Override public void copyTo(ResourceState target) { super.copyTo(target); if (target instanceof LoadBalancerState) { LoadBalancerState targetState = (LoadBalancerState) target; targetState.descriptionLink = this.descriptionLink; targetState.endpointLink = this.endpointLink; targetState.regionId = this.regionId; targetState.computeLinks = this.computeLinks; targetState.targetLinks = this.targetLinks; targetState.subnetLinks = this.subnetLinks; targetState.routes = this.routes; targetState.instanceAdapterReference = this.instanceAdapterReference; targetState.internetFacing = this.internetFacing; targetState.address = this.address; targetState.securityGroupLinks = this.securityGroupLinks; } } }
@Override public void copyTo(ResourceState target) { super.copyTo(target); if (target instanceof DiskState) { DiskState targetState = (DiskState) target; targetState.zoneId = this.zoneId; targetState.regionId = this.regionId; targetState.descriptionLink = this.descriptionLink; targetState.storageDescriptionLink = this.storageDescriptionLink; targetState.resourcePoolLink = this.resourcePoolLink; targetState.authCredentialsLink = this.authCredentialsLink; targetState.sourceImageReference = this.sourceImageReference; targetState.imageLink = this.imageLink; targetState.type = this.type; targetState.status = this.status; targetState.capacityMBytes = this.capacityMBytes; targetState.persistent = this.persistent; targetState.encrypted = this.encrypted; targetState.constraint = this.constraint; targetState.bootOrder = this.bootOrder; targetState.bootArguments = this.bootArguments; targetState.bootConfig = this.bootConfig; targetState.customizationServiceReference = this.customizationServiceReference; targetState.currencyUnit = this.currencyUnit; targetState.computeHostLink = this.computeHostLink; targetState.endpointLink = this.endpointLink; } } }
@Override public void copyTo(ResourceState target) { super.copyTo(target); if (target instanceof DiskState) { DiskState targetState = (DiskState) target;
public void copyTo(ProjectState destination) { super.copyTo(destination); destination.isPublic = this.isPublic; destination.description = this.description; destination.administratorsUserGroupLinks = new HashSet<>( this.administratorsUserGroupLinks != null ? this.administratorsUserGroupLinks : Collections.emptySet()); destination.membersUserGroupLinks = new HashSet<>( this.membersUserGroupLinks != null ? this.membersUserGroupLinks : Collections.emptySet()); destination.viewersUserGroupLinks = new HashSet<>( this.viewersUserGroupLinks != null ? this.viewersUserGroupLinks : Collections.emptySet()); }