Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: generated/googleapis_beta/lib/sqladmin/v1beta4.dart

Issue 1296863002: Api-roll 22: 2015-08-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis_beta/lib/genomics/v1beta2.dart ('k') | generated/googleapis_beta/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis_beta/lib/sqladmin/v1beta4.dart
diff --git a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart
index 878a011cf0036c3571f3f70f4602b8bd075d85ca..d42499b5251d42ce5a6783ce72acde82c36b3ccd 100644
--- a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart
+++ b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart
@@ -1548,6 +1548,58 @@ class SslCertsResourceApi {
return _response.then((data) => new SslCertsListResponse.fromJson(data));
}
+ /**
+ * Generates a short-lived X509 certificate containing the provided public key
+ * and signed by a private key specific to the target instance. Users may use
+ * the certificate to authenticate as themselves when connecting to the
+ * database.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [project] - Project ID of the Cloud SQL project.
+ *
+ * [instance] - Cloud SQL instance ID. This does not include the project ID.
+ *
+ * Completes with a [SslCert].
+ *
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an
+ * error.
+ *
+ * If the used [http.Client] completes with an error when making a REST call,
+ * this method will complete with the same error.
+ */
+ async.Future<SslCert> sign(SslCertsSignRequest request, core.String project, core.String instance) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (project == null) {
+ throw new core.ArgumentError("Parameter project is required.");
+ }
+ if (instance == null) {
+ throw new core.ArgumentError("Parameter instance is required.");
+ }
+
+ _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/certSign';
+
+ var _response = _requester.request(_url,
+ "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new SslCert.fromJson(data));
+ }
+
}
@@ -3977,6 +4029,28 @@ class SslCertsListResponse {
}
}
+/** SslCerts sign request. */
+class SslCertsSignRequest {
+ /** PEM encoded public key to include in the signed certificate. */
+ core.String publicKey;
+
+ SslCertsSignRequest();
+
+ SslCertsSignRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("public_key")) {
+ publicKey = _json["public_key"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (publicKey != null) {
+ _json["public_key"] = publicKey;
+ }
+ return _json;
+ }
+}
+
/** A Google Cloud SQL service tier resource. */
class Tier {
/** The maximum disk size of this tier in bytes. */
« no previous file with comments | « generated/googleapis_beta/lib/genomics/v1beta2.dart ('k') | generated/googleapis_beta/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698