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

Unified Diff: generated/googleapis/lib/consumersurveys/v2.dart

Issue 2226653002: Api-roll 40: 2016-08-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed review comments Created 4 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/lib/compute/v1.dart ('k') | generated/googleapis/lib/content/v2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/consumersurveys/v2.dart
diff --git a/generated/googleapis/lib/consumersurveys/v2.dart b/generated/googleapis/lib/consumersurveys/v2.dart
index 08c280155505084e628096fb680aea572f413972..5dc1689695c707d364ed7a99bc2cbade18750118 100644
--- a/generated/googleapis/lib/consumersurveys/v2.dart
+++ b/generated/googleapis/lib/consumersurveys/v2.dart
@@ -260,6 +260,45 @@ class SurveysResourceApi {
_requester = client;
/**
+ * Removes a survey from view in all user GET requests.
+ *
+ * Request parameters:
+ *
+ * [surveyUrlId] - External URL ID for the survey.
+ *
+ * Completes with a [SurveysDeleteResponse].
+ *
+ * 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<SurveysDeleteResponse> delete(core.String surveyUrlId) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (surveyUrlId == null) {
+ throw new core.ArgumentError("Parameter surveyUrlId is required.");
+ }
+
+ _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId');
+
+ var _response = _requester.request(_url,
+ "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new SurveysDeleteResponse.fromJson(data));
+ }
+
+ /**
* Retrieves information about the specified survey.
*
* Request parameters:
@@ -1298,6 +1337,30 @@ class SurveyResults {
}
}
+class SurveysDeleteResponse {
+ /**
+ * Unique request ID used for logging and debugging. Please include in any
+ * error reporting or troubleshooting requests.
+ */
+ core.String requestId;
+
+ SurveysDeleteResponse();
+
+ SurveysDeleteResponse.fromJson(core.Map _json) {
+ if (_json.containsKey("requestId")) {
+ requestId = _json["requestId"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (requestId != null) {
+ _json["requestId"] = requestId;
+ }
+ return _json;
+ }
+}
+
class SurveysListResponse {
PageInfo pageInfo;
/**
« no previous file with comments | « generated/googleapis/lib/compute/v1.dart ('k') | generated/googleapis/lib/content/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698