code: public ServiceCall<Credentials> getCredentials(GetCredentialsOptions getCredentialsOptions) {
      Validator.notNull(getCredentialsOptions, "getCredentialsOptions cannot be null");
      String[] pathSegments = { "v1/environments", "credentials" };
      String[] pathParameters = { getCredentialsOptions.environmentId(), getCredentialsOptions.credentialId() };
      RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments,
          pathParameters));
      builder.query("version", versionDate);
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("discovery", "v1", "getCredentials");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      return createServiceCall(builder.build(), ResponseConverterUtils.getObject(Credentials.class));
    }
docs: View Credentials.
  
  Returns details about the specified credentials.
  
  **Note:** Secure credential information such as a password or SSH key is never returned and must be obtained from
  the source system.
  
  @param getCredentialsOptions the {@link GetCredentialsOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of {@link Credentials}