public Observable<EnvironmentInner> createOrUpdateAsync(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, String environmentName, EnvironmentInner environment) {
        return createOrUpdateWithServiceResponseAsync(resourceGroupName, labAccountName, labName, environmentSettingName, environmentName, environment).map(new Func1<ServiceResponse<EnvironmentInner>, EnvironmentInner>() {
            @Override
            public EnvironmentInner call(ServiceResponse<EnvironmentInner> response) {
                return response.body();
            }
        });
    }
public Observable < EnvironmentInner > createOrUpdateAsync ( String resourceGroupName , String labAccountName , String labName , String environmentSettingName , String environmentName , EnvironmentInner environment ) { return createOrUpdateWithServiceResponseAsync ( resourceGroupName , labAccountName , labName , environmentSettingName , environmentName , environment ) . map ( new Func1 < ServiceResponse < EnvironmentInner > , EnvironmentInner > ( ) { @ Override public EnvironmentInner call ( ServiceResponse < EnvironmentInner > response ) { return response . body ( ) ; } } ) ; }
Create or replace an existing Environment.

@param resourceGroupName The name of the resource group.
@param labAccountName The name of the lab Account.
@param labName The name of the lab.
@param environmentSettingName The name of the environment Setting.
@param environmentName The name of the environment.
@param environment Represents an environment instance
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the EnvironmentInner object