function resource(url) {
    let res = new Resource(url);
    res.authenticator = this.identity.getResourceAuthenticator();

    return res;
  }
/**
   * Obtain a Resource instance with authentication credentials.
   */
Obtain a Resource instance with authentication credentials.
Obtain a Resource instance with authentication credentials .
function resource(url) {
    let res = new Resource(url);
    res.authenticator = this.identity.getResourceAuthenticator();
    return res;
  }
function resource ( url ) { let res = new Resource ( url ) ; res . authenticator = this . identity . getResourceAuthenticator ( ) ; return res ; }
Obtain a Resource instance with authentication credentials.
Obtain a Resource instance with authentication credentials .