createSecret method
Creates a new Secret containing no
SecretVersions.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
@override
Future<Secret> createSecret(CreateSecretRequest request) async {
if (isClosed) throw StateError('Service is closed');
if (_createSecret case final createSecret?) {
return createSecret(request);
}
throw UnsupportedError('createSecret');
}