Skip to content

Commit

Permalink
feat(sqladmin)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### sqladmin:v1beta4
The following keys were deleted:
- schemas.DatabaseInstance.properties.suspensionReason.enumDescriptions
- schemas.Flag.properties.appliesTo.enumDescriptions

The following keys were added:
- resources.projects.resources.instances.methods.startExternalSync.parameters.syncMode.enumDescriptions
- resources.projects.resources.instances.methods.verifyExternalSyncSettings.parameters.syncMode.enumDescriptions
- schemas.BackupRun.properties.backupKind.description
- schemas.BackupRun.properties.backupKind.enum
- schemas.BackupRun.properties.backupKind.enumDescriptions
- schemas.BackupRun.properties.backupKind.type
- schemas.DatabaseInstance.properties.suspensionReason.items.enumDescriptions
- schemas.DenyMaintenancePeriod.description
- schemas.DenyMaintenancePeriod.id
- schemas.DenyMaintenancePeriod.properties.endDate.description
- schemas.DenyMaintenancePeriod.properties.endDate.type
- schemas.DenyMaintenancePeriod.properties.startDate.description
- schemas.DenyMaintenancePeriod.properties.startDate.type
- schemas.DenyMaintenancePeriod.properties.time.description
- schemas.DenyMaintenancePeriod.properties.time.type
- schemas.DenyMaintenancePeriod.type
- schemas.Flag.properties.appliesTo.items.enumDescriptions
- schemas.Settings.properties.activeDirectoryConfig.$ref
- schemas.Settings.properties.activeDirectoryConfig.description
- schemas.Settings.properties.collation.description
- schemas.Settings.properties.collation.type
- schemas.Settings.properties.denyMaintenancePeriods.description
- schemas.Settings.properties.denyMaintenancePeriods.items.$ref
- schemas.Settings.properties.denyMaintenancePeriods.type
- schemas.SqlActiveDirectoryConfig.description
- schemas.SqlActiveDirectoryConfig.id
- schemas.SqlActiveDirectoryConfig.properties.domain.description
- schemas.SqlActiveDirectoryConfig.properties.domain.type
- schemas.SqlActiveDirectoryConfig.properties.kind.description
- schemas.SqlActiveDirectoryConfig.properties.kind.type
- schemas.SqlActiveDirectoryConfig.type
- schemas.User.properties.type.description
- schemas.User.properties.type.enum
- schemas.User.properties.type.enumDescriptions
- schemas.User.properties.type.type

The following keys were changed:
- id
- name
- resources.backupRuns.methods.delete.parameters.id.description
- resources.backupRuns.methods.insert.description
- resources.backupRuns.methods.list.description
- resources.backupRuns.methods.list.parameters.pageToken.description
- resources.databases.methods.get.description
- resources.databases.methods.insert.description
- resources.databases.methods.patch.description
- resources.databases.methods.update.description
- resources.flags.methods.list.parameters.databaseVersion.description
- resources.instances.methods.addServerCa.description
- resources.instances.methods.clone.description
- resources.instances.methods.clone.parameters.instance.description
- resources.instances.methods.demoteMaster.description
- resources.instances.methods.export.description
- resources.instances.methods.failover.description
- resources.instances.methods.import.description
- resources.instances.methods.insert.parameters.project.description
- resources.instances.methods.list.parameters.filter.description
- resources.instances.methods.list.parameters.pageToken.description
- resources.instances.methods.listServerCas.description
- resources.instances.methods.patch.description
- resources.instances.methods.promoteReplica.description
- resources.instances.methods.resetSslConfig.description
- resources.instances.methods.restoreBackup.description
- resources.instances.methods.rotateServerCa.description
- resources.instances.methods.update.description
- resources.operations.methods.list.description
- resources.operations.methods.list.parameters.pageToken.description
- resources.projects.resources.instances.methods.startExternalSync.description
- resources.projects.resources.instances.methods.startExternalSync.parameters.project.description
- resources.projects.resources.instances.methods.verifyExternalSyncSettings.description
- resources.sslCerts.methods.createEphemeral.description
- resources.sslCerts.methods.delete.description
- resources.sslCerts.methods.get.description
- resources.sslCerts.methods.insert.description
- resources.tiers.methods.list.description
- schemas.AclEntry.properties.expirationTime.description
- schemas.AclEntry.properties.kind.description
- schemas.AclEntry.properties.value.description
- schemas.ApiWarning.properties.code.enumDescriptions
- schemas.BackupConfiguration.properties.binaryLogEnabled.description
- schemas.BackupConfiguration.properties.kind.description
- schemas.BackupConfiguration.properties.startTime.description
- schemas.BackupRun.properties.diskEncryptionConfiguration.description
- schemas.BackupRun.properties.diskEncryptionStatus.description
- schemas.BackupRun.properties.endTime.description
- schemas.BackupRun.properties.enqueuedTime.description
- schemas.BackupRun.properties.error.description
- schemas.BackupRun.properties.id.description
- schemas.BackupRun.properties.kind.description
- schemas.BackupRun.properties.startTime.description
- schemas.BackupRun.properties.status.enumDescriptions
- schemas.BackupRun.properties.windowStartTime.description
- schemas.BackupRunsListResponse.properties.kind.description
- schemas.BackupRunsListResponse.properties.nextPageToken.description
- schemas.BinLogCoordinates.properties.kind.description
- schemas.CloneContext.properties.binLogCoordinates.description
- schemas.CloneContext.properties.kind.description
- schemas.Database.properties.charset.description
- schemas.Database.properties.collation.description
- schemas.Database.properties.etag.description
- schemas.Database.properties.kind.description
- schemas.Database.properties.name.description
- schemas.Database.properties.project.description
- schemas.DatabaseFlags.properties.name.description
- schemas.DatabaseFlags.properties.value.description
- schemas.DatabaseInstance.description
- schemas.DatabaseInstance.properties.backendType.description
- schemas.DatabaseInstance.properties.currentDiskSize.description
- schemas.DatabaseInstance.properties.databaseVersion.description
- schemas.DatabaseInstance.properties.diskEncryptionConfiguration.description
- schemas.DatabaseInstance.properties.diskEncryptionStatus.description
- schemas.DatabaseInstance.properties.etag.description
- schemas.DatabaseInstance.properties.failoverReplica.description
- schemas.DatabaseInstance.properties.failoverReplica.properties.available.description
- schemas.DatabaseInstance.properties.failoverReplica.properties.name.description
- schemas.DatabaseInstance.properties.gceZone.description
- schemas.DatabaseInstance.properties.instanceType.description
- schemas.DatabaseInstance.properties.instanceType.enumDescriptions
- schemas.DatabaseInstance.properties.ipv6Address.description
- schemas.DatabaseInstance.properties.kind.description
- schemas.DatabaseInstance.properties.masterInstanceName.description
- schemas.DatabaseInstance.properties.project.description
- schemas.DatabaseInstance.properties.region.description
- schemas.DatabaseInstance.properties.serviceAccountEmailAddress.description
- schemas.DatabaseInstance.properties.state.description
- schemas.DatabasesListResponse.properties.kind.description
- schemas.DemoteMasterConfiguration.description
- schemas.DemoteMasterConfiguration.properties.kind.description
- schemas.DemoteMasterConfiguration.properties.mysqlReplicaConfiguration.description
- schemas.DemoteMasterContext.description
- schemas.DemoteMasterContext.properties.kind.description
- schemas.DemoteMasterContext.properties.masterInstanceName.description
- schemas.DemoteMasterContext.properties.replicaConfiguration.description
- schemas.DemoteMasterContext.properties.verifyGtidConsistency.description
- schemas.DemoteMasterMySqlReplicaConfiguration.properties.clientCertificate.description
- schemas.DemoteMasterMySqlReplicaConfiguration.properties.clientKey.description
- schemas.DemoteMasterMySqlReplicaConfiguration.properties.kind.description
- schemas.DiskEncryptionConfiguration.properties.kind.description
- schemas.DiskEncryptionStatus.properties.kind.description
- schemas.ExportContext.properties.databases.description
- schemas.ExportContext.properties.fileType.description
- schemas.ExportContext.properties.kind.description
- schemas.ExportContext.properties.sqlExportOptions.properties.mysqlExportOptions.properties.masterData.description
- schemas.ExportContext.properties.sqlExportOptions.properties.tables.description
- schemas.ExportContext.properties.uri.description
- schemas.FailoverContext.properties.kind.description
- schemas.FailoverContext.properties.settingsVersion.description
- schemas.Flag.properties.allowedIntValues.description
- schemas.Flag.properties.allowedStringValues.description
- schemas.Flag.properties.appliesTo.description
- schemas.Flag.properties.kind.description
- schemas.Flag.properties.maxValue.description
- schemas.Flag.properties.minValue.description
- schemas.Flag.properties.name.description
- schemas.Flag.properties.requiresRestart.description
- schemas.Flag.properties.type.description
- schemas.Flag.properties.type.enumDescriptions
- schemas.FlagsListResponse.properties.kind.description
- schemas.ImportContext.properties.bakImportOptions.properties.encryptionOptions.properties.certPath.description
- schemas.ImportContext.properties.bakImportOptions.properties.encryptionOptions.properties.pvkPath.description
- schemas.ImportContext.properties.csvImportOptions.properties.columns.description
- schemas.ImportContext.properties.database.description
- schemas.ImportContext.properties.fileType.description
- schemas.ImportContext.properties.kind.description
- schemas.ImportContext.properties.uri.description
- schemas.InstancesDemoteMasterRequest.description
- schemas.InstancesListResponse.properties.kind.description
- schemas.InstancesListResponse.properties.nextPageToken.description
- schemas.InstancesListServerCasResponse.properties.kind.description
- schemas.IpConfiguration.properties.authorizedNetworks.description
- schemas.IpConfiguration.properties.ipv4Enabled.description
- schemas.IpConfiguration.properties.privateNetwork.description
- schemas.IpConfiguration.properties.requireSsl.description
- schemas.IpMapping.properties.timeToRetire.description
- schemas.IpMapping.properties.type.description
- schemas.IpMapping.properties.type.enumDescriptions
- schemas.LocationPreference.description
- schemas.LocationPreference.properties.followGaeApplication.description
- schemas.LocationPreference.properties.kind.description
- schemas.LocationPreference.properties.zone.description
- schemas.MaintenanceWindow.description
- schemas.MaintenanceWindow.properties.kind.description
- schemas.MaintenanceWindow.properties.updateTrack.description
- schemas.MaintenanceWindow.properties.updateTrack.enumDescriptions
- schemas.MySqlReplicaConfiguration.properties.clientCertificate.description
- schemas.MySqlReplicaConfiguration.properties.clientKey.description
- schemas.MySqlReplicaConfiguration.properties.dumpFilePath.description
- schemas.MySqlReplicaConfiguration.properties.kind.description
- schemas.MySqlReplicaConfiguration.properties.verifyServerCertificate.description
- schemas.OnPremisesConfiguration.properties.clientCertificate.description
- schemas.OnPremisesConfiguration.properties.clientKey.description
- schemas.OnPremisesConfiguration.properties.kind.description
- schemas.Operation.description
- schemas.Operation.properties.endTime.description
- schemas.Operation.properties.error.description
- schemas.Operation.properties.insertTime.description
- schemas.Operation.properties.kind.description
- schemas.Operation.properties.name.description
- schemas.Operation.properties.operationType.description
- schemas.Operation.properties.operationType.enumDescriptions
- schemas.Operation.properties.startTime.description
- schemas.Operation.properties.status.description
- schemas.OperationError.properties.kind.description
- schemas.OperationErrors.properties.kind.description
- schemas.OperationsListResponse.properties.kind.description
- schemas.OperationsListResponse.properties.nextPageToken.description
- schemas.ReplicaConfiguration.description
- schemas.ReplicaConfiguration.properties.failoverTarget.description
- schemas.ReplicaConfiguration.properties.kind.description
- schemas.ReplicaConfiguration.properties.mysqlReplicaConfiguration.description
- schemas.Reschedule.properties.rescheduleType.enumDescriptions
- schemas.Reschedule.properties.scheduleTime.description
- schemas.RestoreBackupContext.description
- schemas.RestoreBackupContext.properties.kind.description
- schemas.RotateServerCaContext.properties.kind.description
- schemas.RotateServerCaContext.properties.nextVersion.description
- schemas.Settings.properties.activationPolicy.description
- schemas.Settings.properties.activationPolicy.enumDescriptions
- schemas.Settings.properties.authorizedGaeApplications.description
- schemas.Settings.properties.availabilityType.description
- schemas.Settings.properties.crashSafeReplicationEnabled.description
- schemas.Settings.properties.dataDiskSizeGb.description
- schemas.Settings.properties.dataDiskType.description
- schemas.Settings.properties.dataDiskType.enumDescriptions
- schemas.Settings.properties.databaseReplicationEnabled.description
- schemas.Settings.properties.ipConfiguration.description
- schemas.Settings.properties.kind.description
- schemas.Settings.properties.locationPreference.description
- schemas.Settings.properties.maintenanceWindow.description
- schemas.Settings.properties.pricingPlan.description
- schemas.Settings.properties.replicationType.description
- schemas.Settings.properties.replicationType.enumDescriptions
- schemas.Settings.properties.settingsVersion.description
- schemas.Settings.properties.storageAutoResize.description
- schemas.Settings.properties.storageAutoResizeLimit.description
- schemas.Settings.properties.tier.description
- schemas.Settings.properties.userLabels.description
- schemas.SqlExternalSyncSettingError.description
- schemas.SqlExternalSyncSettingError.properties.kind.description
- schemas.SqlExternalSyncSettingError.properties.type.enum
- schemas.SqlExternalSyncSettingError.properties.type.enumDescriptions
- schemas.SqlInstancesVerifyExternalSyncSettingsResponse.properties.kind.description
- schemas.SslCert.properties.commonName.description
- schemas.SslCert.properties.createTime.description
- schemas.SslCert.properties.expirationTime.description
- schemas.SslCert.properties.kind.description
- schemas.SslCertDetail.properties.certPrivateKey.description
- schemas.SslCertsInsertRequest.properties.commonName.description
- schemas.SslCertsInsertResponse.properties.clientCert.description
- schemas.SslCertsInsertResponse.properties.kind.description
- schemas.SslCertsInsertResponse.properties.serverCaCert.description
- schemas.SslCertsListResponse.properties.kind.description
- schemas.Tier.properties.kind.description
- schemas.Tier.properties.tier.description
- schemas.TiersListResponse.properties.kind.description
- schemas.TruncateLogContext.properties.kind.description
- schemas.TruncateLogContext.properties.logType.description
- schemas.User.properties.etag.description
- schemas.User.properties.host.description
- schemas.User.properties.instance.description
- schemas.User.properties.kind.description
- schemas.User.properties.name.description
- schemas.User.properties.project.description
- schemas.UsersListResponse.properties.kind.description
- schemas.UsersListResponse.properties.nextPageToken.description
  • Loading branch information
JustinBeckwith committed Oct 5, 2020
1 parent 97684fb commit e85236f
Show file tree
Hide file tree
Showing 7 changed files with 10,295 additions and 262 deletions.
633 changes: 371 additions & 262 deletions discovery/sqladmin-v1beta4.json

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions src/apis/sqladmin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<img src="https://avatars0.githubusercontent.com/u/1342004?v=3&s=96" alt="Google Inc. logo" title="Google" align="right" height="96" width="96"/>

# sqladmin

> API for Cloud SQL database instance management
## Installation

```sh
$ npm install googleapis
```

## Usage
All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client).

## Building a browser bundle

This library can be used in a browser. To prepare a single file bundle, clone the
[repository](https://github.com/googleapis/google-api-nodejs-client) and run

```sh
$ cd src/apis/sqladmin
$ npm install
$ npm run webpack
```

The generated bundle will be written to `dist/sqladmin.min.js`. Use it from your HTML file:

```html
<script src="/path/to/sqladmin.min.js"></script>
<script>
const { sqladmin, auth } = Sqladmin;
</script>
```

## License
This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE).

## Contributing
We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md).

## Questions/problems?
* Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client).
* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues).


*Crafted with ❤️ by the Google Node.js team*
35 changes: 35 additions & 0 deletions src/apis/sqladmin/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2020 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*! THIS FILE IS AUTO-GENERATED */

import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
import {sqladmin_v1beta4} from './v1beta4';

export const VERSIONS = {
v1beta4: sqladmin_v1beta4.Sqladmin,
};

export function sqladmin(version: 'v1beta4'): sqladmin_v1beta4.Sqladmin;
export function sqladmin(
options: sqladmin_v1beta4.Options
): sqladmin_v1beta4.Sqladmin;
export function sqladmin<T = sqladmin_v1beta4.Sqladmin>(
this: GoogleConfigurable,
versionOrOptions: 'v1beta4' | sqladmin_v1beta4.Options
) {
return getAPI<T>('sqladmin', versionOrOptions, VERSIONS, this);
}

const auth = new AuthPlus();
export {auth};
43 changes: 43 additions & 0 deletions src/apis/sqladmin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@google/sqladmin",
"version": "0.1.0",
"description": "sqladmin",
"main": "build/index.js",
"types": "build/index.d.ts",
"keywords": [
"google"
],
"author": "Google LLC",
"license": "Apache-2.0",
"homepage": "https://github.com/googleapis/google-api-nodejs-client",
"bugs": {
"url": "https://github.com/googleapis/google-api-nodejs-client/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
},
"engines": {
"node": ">=10.0.0"
},
"scripts": {
"fix": "gts fix",
"lint": "gts check",
"compile": "tsc -p .",
"prepare": "npm run compile",
"docs": "typedoc --out docs/",
"webpack": "webpack"
},
"dependencies": {
"googleapis-common": "^4.4.0"
},
"devDependencies": {
"gts": "^2.0.0",
"null-loader": "^4.0.0",
"ts-loader": "^8.0.0",
"typedoc": "^0.19.0",
"typescript": "~3.7.0",
"webpack": "^4.35.3",
"webpack-cli": "^3.3.5"
}
}
10 changes: 10 additions & 0 deletions src/apis/sqladmin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"*.ts",
]
}
Loading

0 comments on commit e85236f

Please sign in to comment.