diff --git a/.repo-metadata.json b/.repo-metadata.json index c62269e..332013c 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -2,8 +2,8 @@ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/binary-authorization/latest", "api_id": "binaryauthorization.googleapis.com", "distribution_name": "@google-cloud/binary-authorization", - "release_level": "preview", - "default_version": "v1beta1", + "release_level": "stable", + "default_version": "v1", "language": "nodejs", "name_pretty": "Binary Authorization", "repo": "googleapis/nodejs-binary-authorization", diff --git a/README.md b/README.md index b42cae3..e67c729 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # [Binary Authorization: Node.js Client](https://github.com/googleapis/nodejs-binary-authorization) -[![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/binary-authorization.svg)](https://www.npmjs.org/package/@google-cloud/binary-authorization) @@ -61,14 +61,14 @@ npm install @google-cloud/binary-authorization // eslint-disable-next-line node/no-missing-require const { - BinauthzManagementServiceV1Beta1Client, + BinauthzManagementServiceV1Client, } = require('@google-cloud/binary-authorization'); // TODO(developer): replace with your prefered project ID. // const projectId = 'my-project' // Creates a client -const client = new BinauthzManagementServiceV1Beta1Client(); +const client = new BinauthzManagementServiceV1Client(); async function listAttestors() { const attestors = await client.listAttestors({parent}); @@ -120,13 +120,14 @@ This library follows [Semantic Versioning](http://semver.org/). +This library is considered to be **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 **stable** libraries +are addressed with the highest priority. -This library is considered to be in **preview**. This means it is still a -work-in-progress and under active development. Any release is subject to -backwards-incompatible changes at any time. More Information: [Google Cloud Platform Launch Stages][launch_stages] diff --git a/samples/quickstart.js b/samples/quickstart.js index 4fd18f4..9590ea4 100644 --- a/samples/quickstart.js +++ b/samples/quickstart.js @@ -19,14 +19,14 @@ async function main(parent) { // eslint-disable-next-line node/no-missing-require const { - BinauthzManagementServiceV1Beta1Client, + BinauthzManagementServiceV1Client, } = require('@google-cloud/binary-authorization'); // TODO(developer): replace with your prefered project ID. // const projectId = 'my-project' // Creates a client - const client = new BinauthzManagementServiceV1Beta1Client(); + const client = new BinauthzManagementServiceV1Client(); async function listAttestors() { const attestors = await client.listAttestors({parent}); diff --git a/samples/test/quickstart.js b/samples/test/quickstart.js index 4860971..70b6384 100644 --- a/samples/test/quickstart.js +++ b/samples/test/quickstart.js @@ -20,7 +20,7 @@ const cp = require('child_process'); const {before, describe, it} = require('mocha'); const { - BinauthzManagementServiceV1Beta1Client, + BinauthzManagementServiceV1Client, } = require('@google-cloud/binary-authorization'); const {assert} = require('chai'); @@ -30,7 +30,7 @@ describe('Quickstart', () => { let projectId; before(async () => { - const client = new BinauthzManagementServiceV1Beta1Client(); + const client = new BinauthzManagementServiceV1Client(); projectId = await client.getProjectId(); }); diff --git a/src/index.ts b/src/index.ts index 4a13f7a..f1d240b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,24 +19,26 @@ import * as v1 from './v1'; import * as v1beta1 from './v1beta1'; -const BinauthzManagementServiceV1Beta1Client = - v1beta1.BinauthzManagementServiceV1Beta1Client; -type BinauthzManagementServiceV1Beta1Client = - v1beta1.BinauthzManagementServiceV1Beta1Client; -const SystemPolicyV1Beta1Client = v1beta1.SystemPolicyV1Beta1Client; -type SystemPolicyV1Beta1Client = v1beta1.SystemPolicyV1Beta1Client; +const BinauthzManagementServiceV1Client = v1.BinauthzManagementServiceV1Client; +type BinauthzManagementServiceV1Client = v1.BinauthzManagementServiceV1Client; +const SystemPolicyV1Client = v1.SystemPolicyV1Client; +type SystemPolicyV1Client = v1.SystemPolicyV1Client; +const ValidationHelperV1Client = v1.ValidationHelperV1Client; +type ValidationHelperV1Client = v1.ValidationHelperV1Client; export { v1, v1beta1, - BinauthzManagementServiceV1Beta1Client, - SystemPolicyV1Beta1Client, + BinauthzManagementServiceV1Client, + SystemPolicyV1Client, + ValidationHelperV1Client, }; export default { v1, v1beta1, - BinauthzManagementServiceV1Beta1Client, - SystemPolicyV1Beta1Client, + BinauthzManagementServiceV1Client, + SystemPolicyV1Client, + ValidationHelperV1Client, }; import * as protos from '../protos/protos'; export {protos}; diff --git a/system-test/fixtures/sample/src/index.js b/system-test/fixtures/sample/src/index.js index 4a370ed..d9f317c 100644 --- a/system-test/fixtures/sample/src/index.js +++ b/system-test/fixtures/sample/src/index.js @@ -20,10 +20,9 @@ const binaryauthorization = require('@google-cloud/binary-authorization'); function main() { - const binauthzManagementServiceV1Beta1Client = - new binaryauthorization.BinauthzManagementServiceV1Beta1Client(); - const systemPolicyV1Beta1Client = - new binaryauthorization.SystemPolicyV1Beta1Client(); + const binauthzManagementServiceV1Client = + new binaryauthorization.BinauthzManagementServiceV1Client(); + const systemPolicyV1Client = new binaryauthorization.SystemPolicyV1Client(); } main(); diff --git a/system-test/fixtures/sample/src/index.ts b/system-test/fixtures/sample/src/index.ts index 1f2222b..866287d 100644 --- a/system-test/fixtures/sample/src/index.ts +++ b/system-test/fixtures/sample/src/index.ts @@ -17,32 +17,30 @@ // ** All changes to this file may be overwritten. ** import { - BinauthzManagementServiceV1Beta1Client, - SystemPolicyV1Beta1Client, + BinauthzManagementServiceV1Client, + SystemPolicyV1Client, } from '@google-cloud/binary-authorization'; // check that the client class type name can be used function doStuffWithBinauthzManagementServiceV1Beta1Client( - client: BinauthzManagementServiceV1Beta1Client + client: BinauthzManagementServiceV1Client ) { client.close(); } -function doStuffWithSystemPolicyV1Beta1Client( - client: SystemPolicyV1Beta1Client -) { +function doStuffWithSystemPolicyV1Client(client: SystemPolicyV1Client) { client.close(); } function main() { // check that the client instance can be created - const binauthzManagementServiceV1Beta1Client = - new BinauthzManagementServiceV1Beta1Client(); + const binauthzManagementServiceV1Client = + new BinauthzManagementServiceV1Client(); doStuffWithBinauthzManagementServiceV1Beta1Client( - binauthzManagementServiceV1Beta1Client + binauthzManagementServiceV1Client ); // check that the client instance can be created - const systemPolicyV1Beta1Client = new SystemPolicyV1Beta1Client(); - doStuffWithSystemPolicyV1Beta1Client(systemPolicyV1Beta1Client); + const systemPolicyV1Beta1Client = new SystemPolicyV1Client(); + doStuffWithSystemPolicyV1Client(systemPolicyV1Beta1Client); } main();