@@ -263,6 +263,13 @@ var RemoteServerCredential = /*#__PURE__*/(0, _createClass2.default)(function Re
263263 ( 0 , _defineProperty2 . default ) ( this , "setWasabiSecretKey" , function ( value ) {
264264 _this . attributes . wasabi_secret_key = value ;
265265 } ) ;
266+ // int64 # ID of Remote Server Credential to copy omitted values from.
267+ ( 0 , _defineProperty2 . default ) ( this , "getCopyValuesFromCredentialId" , function ( ) {
268+ return _this . attributes . copy_values_from_credential_id ;
269+ } ) ;
270+ ( 0 , _defineProperty2 . default ) ( this , "setCopyValuesFromCredentialId" , function ( value ) {
271+ _this . attributes . copy_values_from_credential_id = value ;
272+ } ) ;
266273 // Parameters:
267274 // name - string - Internal name for your reference
268275 // description - string - Internal description for your reference
@@ -751,6 +758,7 @@ _RemoteServerCredential = RemoteServerCredential;
751758// s3_compatible_secret_key - string - S3-compatible: Secret Key
752759// wasabi_secret_key - string - Wasabi: Secret Key
753760// workspace_id - int64 - Workspace ID (0 for default workspace)
761+ // copy_values_from_credential_id - int64 - ID of Remote Server Credential to copy omitted values from.
754762( 0 , _defineProperty2 . default ) ( RemoteServerCredential , "create" , /*#__PURE__*/ ( 0 , _asyncToGenerator2 . default ) ( /*#__PURE__*/ _regenerator . default . mark ( function _callee6 ( ) {
755763 var params ,
756764 options ,
@@ -947,12 +955,18 @@ _RemoteServerCredential = RemoteServerCredential;
947955 }
948956 throw new errors . InvalidParameterError ( "Bad parameter: workspace_id must be of type Int, received " . concat ( ( 0 , _utils . getType ) ( params . workspace_id ) ) ) ;
949957 case 31 :
950- _context6 . next = 32 ;
951- return _Api . default . sendRequest ( '/remote_server_credentials' , 'POST' , params , options ) ;
958+ if ( ! ( params . copy_values_from_credential_id && ! ( 0 , _utils . isInt ) ( params . copy_values_from_credential_id ) ) ) {
959+ _context6 . next = 32 ;
960+ break ;
961+ }
962+ throw new errors . InvalidParameterError ( "Bad parameter: copy_values_from_credential_id must be of type Int, received " . concat ( ( 0 , _utils . getType ) ( params . copy_values_from_credential_id ) ) ) ;
952963 case 32 :
964+ _context6 . next = 33 ;
965+ return _Api . default . sendRequest ( '/remote_server_credentials' , 'POST' , params , options ) ;
966+ case 33 :
953967 response = _context6 . sent ;
954968 return _context6 . abrupt ( "return" , new _RemoteServerCredential ( response === null || response === void 0 ? void 0 : response . data , options ) ) ;
955- case 33 :
969+ case 34 :
956970 case "end" :
957971 return _context6 . stop ( ) ;
958972 }
0 commit comments