code: public RefreshResponse refresh(String region) throws ApiException {
          ApiResponse<RefreshResponse> resp = refreshWithHttpInfo(region);
          return resp.getData();
      }
docs: Refresh auth state in the selected region.
  Change current SAML state.
  @param region The name of region (required)
  @return RefreshResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body