Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
feat!: default to v1 of the API (#88)
Browse files Browse the repository at this point in the history
refactor!: v1 removes methods 'restoreCertificateAuthority', 'scheduleDeleteCertificateAuthority', 'getReusableConfig', 'listReusableConfigs'
refactor!: resource paths have changed for some methods, e.g., certificateAuthorities becomes caPools
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
Co-authored-by: Jeffrey Rennie <rennie@google.com>
  • Loading branch information
5 people committed Nov 26, 2021
1 parent 682096b commit a52d838
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .repo-metadata.json
Expand Up @@ -2,8 +2,8 @@
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/security-private-ca/latest",
"api_id": "privateca.googleapis.com",
"distribution_name": "@google-cloud/security-private-ca",
"release_level": "beta",
"default_version": "v1beta1",
"release_level": "ga",
"default_version": "v1",
"language": "nodejs",
"name_pretty": "Certificate Authority Service",
"repo": "googleapis/nodejs-security-private-ca",
Expand Down
13 changes: 7 additions & 6 deletions README.md
Expand Up @@ -4,7 +4,7 @@

# [Certificate Authority Service: Node.js Client](https://github.com/googleapis/nodejs-security-private-ca)

[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/security-private-ca.svg)](https://www.npmjs.org/package/@google-cloud/security-private-ca)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-security-private-ca/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-security-private-ca)

Expand Down Expand Up @@ -72,7 +72,7 @@ const client = new CertificateAuthorityServiceClient();

async function listCertificates() {
const res = await client.listCertificates({
parent: `projects/${projectId}/locations/${location}/certificateAuthorities/${name}`,
parent: `projects/${projectId}/locations/${location}/caPools/${name}`,
});
return res;
}
Expand Down Expand Up @@ -122,11 +122,12 @@ _Legacy Node.js versions are supported as a best effort:_
This library follows [Semantic Versioning](http://semver.org/).


This library is considered to be **General Availability (GA)**. This means it
is stable; the code surface will not change in backwards-incompatible ways
unless absolutely necessary (e.g. because of critical security issues) or with
an extensive deprecation period. Issues and requests against **GA** libraries
are addressed with the highest priority.

This library is considered to be in **beta**. This means it is expected to be
mostly stable while we work toward a general availability release; however,
complete stability is not guaranteed. We will address issues and requests
against beta libraries with a high priority.



Expand Down
4 changes: 1 addition & 3 deletions samples/quickstart.js
Expand Up @@ -13,8 +13,6 @@

'use strict';

// eslint-disable-next-line no-unused-vars
const thing = 'hello';
async function main(projectId, location, name) {
// [START cloud_certificate_authority_quickstart]
// Imports the Google Cloud client library
Expand All @@ -31,7 +29,7 @@ async function main(projectId, location, name) {

async function listCertificates() {
const res = await client.listCertificates({
parent: `projects/${projectId}/locations/${location}/certificateAuthorities/${name}`,
parent: `projects/${projectId}/locations/${location}/caPools/${name}`,
});
return res;
}
Expand Down
6 changes: 2 additions & 4 deletions src/index.ts
Expand Up @@ -19,10 +19,8 @@
import * as v1 from './v1';
import * as v1beta1 from './v1beta1';

const CertificateAuthorityServiceClient =
v1beta1.CertificateAuthorityServiceClient;
type CertificateAuthorityServiceClient =
v1beta1.CertificateAuthorityServiceClient;
const CertificateAuthorityServiceClient = v1.CertificateAuthorityServiceClient;
type CertificateAuthorityServiceClient = v1.CertificateAuthorityServiceClient;

export {v1, v1beta1, CertificateAuthorityServiceClient};
export default {v1, v1beta1, CertificateAuthorityServiceClient};
Expand Down

0 comments on commit a52d838

Please sign in to comment.