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

Side by Side Diff: generated/googleapis_beta/lib/sqladmin/v1beta4.dart

Issue 2159673002: Api-roll 39: 2016-07-18 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis_beta.sqladmin.v1beta4; 3 library googleapis_beta.sqladmin.v1beta4;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 "GET", 141 "GET",
142 body: _body, 142 body: _body,
143 queryParams: _queryParams, 143 queryParams: _queryParams,
144 uploadOptions: _uploadOptions, 144 uploadOptions: _uploadOptions,
145 uploadMedia: _uploadMedia, 145 uploadMedia: _uploadMedia,
146 downloadOptions: _downloadOptions); 146 downloadOptions: _downloadOptions);
147 return _response.then((data) => new BackupRun.fromJson(data)); 147 return _response.then((data) => new BackupRun.fromJson(data));
148 } 148 }
149 149
150 /** 150 /**
151 * Creates a new backup run on demand.
152 *
153 * [request] - The metadata request object.
154 *
155 * Request parameters:
156 *
157 * [project] - Project ID of the project that contains the instance.
158 *
159 * [instance] - Cloud SQL instance ID. This does not include the project ID.
160 *
161 * Completes with a [Operation].
162 *
163 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
164 * error.
165 *
166 * If the used [http.Client] completes with an error when making a REST call,
167 * this method will complete with the same error.
168 */
169 async.Future<Operation> insert(BackupRun request, core.String project, core.St ring instance) {
170 var _url = null;
171 var _queryParams = new core.Map();
172 var _uploadMedia = null;
173 var _uploadOptions = null;
174 var _downloadOptions = commons.DownloadOptions.Metadata;
175 var _body = null;
176
177 if (request != null) {
178 _body = convert.JSON.encode((request).toJson());
179 }
180 if (project == null) {
181 throw new core.ArgumentError("Parameter project is required.");
182 }
183 if (instance == null) {
184 throw new core.ArgumentError("Parameter instance is required.");
185 }
186
187 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/backupRuns';
188
189 var _response = _requester.request(_url,
190 "POST",
191 body: _body,
192 queryParams: _queryParams,
193 uploadOptions: _uploadOptions,
194 uploadMedia: _uploadMedia,
195 downloadOptions: _downloadOptions);
196 return _response.then((data) => new Operation.fromJson(data));
197 }
198
199 /**
151 * Lists all backup runs associated with a given instance and configuration in 200 * Lists all backup runs associated with a given instance and configuration in
152 * the reverse chronological order of the enqueued time. 201 * the reverse chronological order of the enqueued time.
153 * 202 *
154 * Request parameters: 203 * Request parameters:
155 * 204 *
156 * [project] - Project ID of the project that contains the instance. 205 * [project] - Project ID of the project that contains the instance.
157 * 206 *
158 * [instance] - Cloud SQL instance ID. This does not include the project ID. 207 * [instance] - Cloud SQL instance ID. This does not include the project ID.
159 * 208 *
160 * [maxResults] - Maximum number of backup runs per response. 209 * [maxResults] - Maximum number of backup runs per response.
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
2070 } 2119 }
2071 if (startTime != null) { 2120 if (startTime != null) {
2072 _json["startTime"] = startTime; 2121 _json["startTime"] = startTime;
2073 } 2122 }
2074 return _json; 2123 return _json;
2075 } 2124 }
2076 } 2125 }
2077 2126
2078 /** A database instance backup run resource. */ 2127 /** A database instance backup run resource. */
2079 class BackupRun { 2128 class BackupRun {
2129 /** The description of this run, only applicable to on-demand backups. */
2130 core.String description;
2080 /** 2131 /**
2081 * The time the backup operation completed in UTC timezone in RFC 3339 format, 2132 * The time the backup operation completed in UTC timezone in RFC 3339 format,
2082 * for example 2012-11-15T16:19:00.094Z. 2133 * for example 2012-11-15T16:19:00.094Z.
2083 */ 2134 */
2084 core.DateTime endTime; 2135 core.DateTime endTime;
2085 /** 2136 /**
2086 * The time the run was enqueued in UTC timezone in RFC 3339 format, for 2137 * The time the run was enqueued in UTC timezone in RFC 3339 format, for
2087 * example 2012-11-15T16:19:00.094Z. 2138 * example 2012-11-15T16:19:00.094Z.
2088 */ 2139 */
2089 core.DateTime enqueuedTime; 2140 core.DateTime enqueuedTime;
(...skipping 13 matching lines...) Expand all
2103 core.String kind; 2154 core.String kind;
2104 /** The URI of this resource. */ 2155 /** The URI of this resource. */
2105 core.String selfLink; 2156 core.String selfLink;
2106 /** 2157 /**
2107 * The time the backup operation actually started in UTC timezone in RFC 3339 2158 * The time the backup operation actually started in UTC timezone in RFC 3339
2108 * format, for example 2012-11-15T16:19:00.094Z. 2159 * format, for example 2012-11-15T16:19:00.094Z.
2109 */ 2160 */
2110 core.DateTime startTime; 2161 core.DateTime startTime;
2111 /** The status of this run. */ 2162 /** The status of this run. */
2112 core.String status; 2163 core.String status;
2164 /** The type of this run; can be either "AUTOMATED" or "ON_DEMAND". */
2165 core.String type;
2113 /** 2166 /**
2114 * The start time of the backup window during which this the backup was 2167 * The start time of the backup window during which this the backup was
2115 * attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. 2168 * attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
2116 */ 2169 */
2117 core.DateTime windowStartTime; 2170 core.DateTime windowStartTime;
2118 2171
2119 BackupRun(); 2172 BackupRun();
2120 2173
2121 BackupRun.fromJson(core.Map _json) { 2174 BackupRun.fromJson(core.Map _json) {
2175 if (_json.containsKey("description")) {
2176 description = _json["description"];
2177 }
2122 if (_json.containsKey("endTime")) { 2178 if (_json.containsKey("endTime")) {
2123 endTime = core.DateTime.parse(_json["endTime"]); 2179 endTime = core.DateTime.parse(_json["endTime"]);
2124 } 2180 }
2125 if (_json.containsKey("enqueuedTime")) { 2181 if (_json.containsKey("enqueuedTime")) {
2126 enqueuedTime = core.DateTime.parse(_json["enqueuedTime"]); 2182 enqueuedTime = core.DateTime.parse(_json["enqueuedTime"]);
2127 } 2183 }
2128 if (_json.containsKey("error")) { 2184 if (_json.containsKey("error")) {
2129 error = new OperationError.fromJson(_json["error"]); 2185 error = new OperationError.fromJson(_json["error"]);
2130 } 2186 }
2131 if (_json.containsKey("id")) { 2187 if (_json.containsKey("id")) {
2132 id = _json["id"]; 2188 id = _json["id"];
2133 } 2189 }
2134 if (_json.containsKey("instance")) { 2190 if (_json.containsKey("instance")) {
2135 instance = _json["instance"]; 2191 instance = _json["instance"];
2136 } 2192 }
2137 if (_json.containsKey("kind")) { 2193 if (_json.containsKey("kind")) {
2138 kind = _json["kind"]; 2194 kind = _json["kind"];
2139 } 2195 }
2140 if (_json.containsKey("selfLink")) { 2196 if (_json.containsKey("selfLink")) {
2141 selfLink = _json["selfLink"]; 2197 selfLink = _json["selfLink"];
2142 } 2198 }
2143 if (_json.containsKey("startTime")) { 2199 if (_json.containsKey("startTime")) {
2144 startTime = core.DateTime.parse(_json["startTime"]); 2200 startTime = core.DateTime.parse(_json["startTime"]);
2145 } 2201 }
2146 if (_json.containsKey("status")) { 2202 if (_json.containsKey("status")) {
2147 status = _json["status"]; 2203 status = _json["status"];
2148 } 2204 }
2205 if (_json.containsKey("type")) {
2206 type = _json["type"];
2207 }
2149 if (_json.containsKey("windowStartTime")) { 2208 if (_json.containsKey("windowStartTime")) {
2150 windowStartTime = core.DateTime.parse(_json["windowStartTime"]); 2209 windowStartTime = core.DateTime.parse(_json["windowStartTime"]);
2151 } 2210 }
2152 } 2211 }
2153 2212
2154 core.Map toJson() { 2213 core.Map toJson() {
2155 var _json = new core.Map(); 2214 var _json = new core.Map();
2215 if (description != null) {
2216 _json["description"] = description;
2217 }
2156 if (endTime != null) { 2218 if (endTime != null) {
2157 _json["endTime"] = (endTime).toIso8601String(); 2219 _json["endTime"] = (endTime).toIso8601String();
2158 } 2220 }
2159 if (enqueuedTime != null) { 2221 if (enqueuedTime != null) {
2160 _json["enqueuedTime"] = (enqueuedTime).toIso8601String(); 2222 _json["enqueuedTime"] = (enqueuedTime).toIso8601String();
2161 } 2223 }
2162 if (error != null) { 2224 if (error != null) {
2163 _json["error"] = (error).toJson(); 2225 _json["error"] = (error).toJson();
2164 } 2226 }
2165 if (id != null) { 2227 if (id != null) {
2166 _json["id"] = id; 2228 _json["id"] = id;
2167 } 2229 }
2168 if (instance != null) { 2230 if (instance != null) {
2169 _json["instance"] = instance; 2231 _json["instance"] = instance;
2170 } 2232 }
2171 if (kind != null) { 2233 if (kind != null) {
2172 _json["kind"] = kind; 2234 _json["kind"] = kind;
2173 } 2235 }
2174 if (selfLink != null) { 2236 if (selfLink != null) {
2175 _json["selfLink"] = selfLink; 2237 _json["selfLink"] = selfLink;
2176 } 2238 }
2177 if (startTime != null) { 2239 if (startTime != null) {
2178 _json["startTime"] = (startTime).toIso8601String(); 2240 _json["startTime"] = (startTime).toIso8601String();
2179 } 2241 }
2180 if (status != null) { 2242 if (status != null) {
2181 _json["status"] = status; 2243 _json["status"] = status;
2182 } 2244 }
2245 if (type != null) {
2246 _json["type"] = type;
2247 }
2183 if (windowStartTime != null) { 2248 if (windowStartTime != null) {
2184 _json["windowStartTime"] = (windowStartTime).toIso8601String(); 2249 _json["windowStartTime"] = (windowStartTime).toIso8601String();
2185 } 2250 }
2186 return _json; 2251 return _json;
2187 } 2252 }
2188 } 2253 }
2189 2254
2190 /** Backup run list results. */ 2255 /** Backup run list results. */
2191 class BackupRunsListResponse { 2256 class BackupRunsListResponse {
2192 /** 2257 /**
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2439 * The name and status of the failover replica. This property is applicable only 2504 * The name and status of the failover replica. This property is applicable only
2440 * to Second Generation instances. 2505 * to Second Generation instances.
2441 */ 2506 */
2442 class DatabaseInstanceFailoverReplica { 2507 class DatabaseInstanceFailoverReplica {
2443 /** 2508 /**
2444 * The availability status of the failover replica. A false status indicates 2509 * The availability status of the failover replica. A false status indicates
2445 * that the failover replica is out of sync. The master can only failover to 2510 * that the failover replica is out of sync. The master can only failover to
2446 * the falover replica when the status is true. 2511 * the falover replica when the status is true.
2447 */ 2512 */
2448 core.bool available; 2513 core.bool available;
2449 /** The name of the failover replica. */ 2514 /**
2515 * The name of the failover replica. If specified at instance creation, a
2516 * failover replica is created for the instance. The name doesn't include the
2517 * project ID. This property is applicable only to Second Generation
2518 * instances.
2519 */
2450 core.String name; 2520 core.String name;
2451 2521
2452 DatabaseInstanceFailoverReplica(); 2522 DatabaseInstanceFailoverReplica();
2453 2523
2454 DatabaseInstanceFailoverReplica.fromJson(core.Map _json) { 2524 DatabaseInstanceFailoverReplica.fromJson(core.Map _json) {
2455 if (_json.containsKey("available")) { 2525 if (_json.containsKey("available")) {
2456 available = _json["available"]; 2526 available = _json["available"];
2457 } 2527 }
2458 if (_json.containsKey("name")) { 2528 if (_json.containsKey("name")) {
2459 name = _json["name"]; 2529 name = _json["name"];
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
3972 if (kind != null) { 4042 if (kind != null) {
3973 _json["kind"] = kind; 4043 _json["kind"] = kind;
3974 } 4044 }
3975 return _json; 4045 return _json;
3976 } 4046 }
3977 } 4047 }
3978 4048
3979 /** Database instance settings. */ 4049 /** Database instance settings. */
3980 class Settings { 4050 class Settings {
3981 /** 4051 /**
3982 * The activation policy for this instance. This specifies when the instance 4052 * The activation policy specifies when the instance is activated; it is
3983 * should be activated and is applicable only when the instance state is 4053 * applicable only when the instance state is RUNNABLE. The activation policy
3984 * RUNNABLE. This can be one of the following. 4054 * cannot be updated together with other settings for Second Generation
3985 * ALWAYS: The instance should always be active. 4055 * instances. Valid values:
3986 * NEVER: The instance should never be activated. 4056 * ALWAYS: The instance is on; it is not deactivated by inactivity.
3987 * ON_DEMAND: The instance is activated upon receiving requests; only 4057 * NEVER: The instance is off; it is not activated, even if a connection
3988 * applicable to First Generation instances. 4058 * request arrives.
4059 * ON_DEMAND: The instance responds to incoming requests, and turns itself off
4060 * when not in use. Instances with PER_USE pricing turn off after 15 minutes
4061 * of inactivity. Instances with PER_PACKAGE pricing turn off after 12 hours
4062 * of inactivity.
3989 */ 4063 */
3990 core.String activationPolicy; 4064 core.String activationPolicy;
3991 /** 4065 /**
3992 * The App Engine app IDs that can access this instance. This property is only 4066 * The App Engine app IDs that can access this instance. This property is only
3993 * applicable to First Generation instances. 4067 * applicable to First Generation instances.
3994 */ 4068 */
3995 core.List<core.String> authorizedGaeApplications; 4069 core.List<core.String> authorizedGaeApplications;
3996 /** The daily backup configuration for the instance. */ 4070 /** The daily backup configuration for the instance. */
3997 BackupConfiguration backupConfiguration; 4071 BackupConfiguration backupConfiguration;
3998 /** 4072 /**
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
4645 } 4719 }
4646 if (kind != null) { 4720 if (kind != null) {
4647 _json["kind"] = kind; 4721 _json["kind"] = kind;
4648 } 4722 }
4649 if (nextPageToken != null) { 4723 if (nextPageToken != null) {
4650 _json["nextPageToken"] = nextPageToken; 4724 _json["nextPageToken"] = nextPageToken;
4651 } 4725 }
4652 return _json; 4726 return _json;
4653 } 4727 }
4654 } 4728 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/dataflow/v1b3.dart ('k') | generated/googleapis_beta/lib/toolresults/v1beta3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698