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

Unified Diff: discovery/googleapis/surveys__v2.json

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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 | « discovery/googleapis/storage__v1.json ('k') | discovery/googleapis/vision__v1.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis/surveys__v2.json
diff --git a/discovery/googleapis/consumersurveys__v2.json b/discovery/googleapis/surveys__v2.json
similarity index 90%
copy from discovery/googleapis/consumersurveys__v2.json
copy to discovery/googleapis/surveys__v2.json
index 495c411afdbd8e6ebb916d7b98fb386b90d923f3..c4d8a0b93c47928379fee1d22a53bbc807d5a16f 100644
--- a/discovery/googleapis/consumersurveys__v2.json
+++ b/discovery/googleapis/surveys__v2.json
@@ -2,11 +2,11 @@
"auth": {
"oauth2": {
"scopes": {
- "https://www.googleapis.com/auth/consumersurveys": {
- "description": "View and edit your surveys and results"
+ "https://www.googleapis.com/auth/surveys": {
+ "description": "View and manage your surveys and results"
},
- "https://www.googleapis.com/auth/consumersurveys.readonly": {
- "description": "View the results for your surveys"
+ "https://www.googleapis.com/auth/surveys.readonly": {
+ "description": "View your surveys and survey results"
},
"https://www.googleapis.com/auth/userinfo.email": {
"description": "View your email address"
@@ -14,20 +14,20 @@
}
}
},
- "basePath": "/consumersurveys/v2/",
- "baseUrl": "https://www.googleapis.com/consumersurveys/v2/",
+ "basePath": "/surveys/v2/",
+ "baseUrl": "https://www.googleapis.com/surveys/v2/",
"batchPath": "batch",
- "canonicalName": "Consumer Surveys",
+ "canonicalName": "Surveys",
"description": "Creates and conducts surveys, lists the surveys that an authenticated user owns, and retrieves survey results and information about specified surveys.",
"discoveryVersion": "v1",
- "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/r9HedtrzUW2pbu5XQ5oErnzKmxQ\"",
+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/6fZP85KIl1fykMUO-HK10xFnDKI\"",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
- "id": "consumersurveys:v2",
+ "id": "surveys:v2",
"kind": "discovery#restDescription",
- "name": "consumersurveys",
+ "name": "surveys",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
@@ -82,7 +82,7 @@
"get": {
"description": "Retrieves a MobileAppPanel that is available to the authenticated user.",
"httpMethod": "GET",
- "id": "consumersurveys.mobileapppanels.get",
+ "id": "surveys.mobileapppanels.get",
"parameterOrder": [
"panelId"
],
@@ -99,15 +99,15 @@
"$ref": "MobileAppPanel"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
- "https://www.googleapis.com/auth/consumersurveys.readonly",
+ "https://www.googleapis.com/auth/surveys",
+ "https://www.googleapis.com/auth/surveys.readonly",
"https://www.googleapis.com/auth/userinfo.email"
]
},
"list": {
"description": "Lists the MobileAppPanels available to the authenticated user.",
"httpMethod": "GET",
- "id": "consumersurveys.mobileapppanels.list",
+ "id": "surveys.mobileapppanels.list",
"parameters": {
"maxResults": {
"format": "uint32",
@@ -129,15 +129,15 @@
"$ref": "MobileAppPanelsListResponse"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
- "https://www.googleapis.com/auth/consumersurveys.readonly",
+ "https://www.googleapis.com/auth/surveys",
+ "https://www.googleapis.com/auth/surveys.readonly",
"https://www.googleapis.com/auth/userinfo.email"
]
},
"update": {
"description": "Updates a MobileAppPanel. Currently the only property that can be updated is the owners property.",
"httpMethod": "PUT",
- "id": "consumersurveys.mobileapppanels.update",
+ "id": "surveys.mobileapppanels.update",
"parameterOrder": [
"panelId"
],
@@ -157,7 +157,7 @@
"$ref": "MobileAppPanel"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
+ "https://www.googleapis.com/auth/surveys",
"https://www.googleapis.com/auth/userinfo.email"
]
}
@@ -166,9 +166,9 @@
"results": {
"methods": {
"get": {
- "description": "Retrieves any survey results that have been produced so far. Results are formatted as an Excel file.",
+ "description": "Retrieves any survey results that have been produced so far. Results are formatted as an Excel file. You must add \"?alt=media\" to the URL as an argument to get results.",
"httpMethod": "GET",
- "id": "consumersurveys.results.get",
+ "id": "surveys.results.get",
"parameterOrder": [
"surveyUrlId"
],
@@ -188,8 +188,8 @@
"$ref": "SurveyResults"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
- "https://www.googleapis.com/auth/consumersurveys.readonly",
+ "https://www.googleapis.com/auth/surveys",
+ "https://www.googleapis.com/auth/surveys.readonly",
"https://www.googleapis.com/auth/userinfo.email"
],
"supportsMediaDownload": true
@@ -201,7 +201,7 @@
"delete": {
"description": "Removes a survey from view in all user GET requests.",
"httpMethod": "DELETE",
- "id": "consumersurveys.surveys.delete",
+ "id": "surveys.surveys.delete",
"parameterOrder": [
"surveyUrlId"
],
@@ -218,14 +218,14 @@
"$ref": "SurveysDeleteResponse"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
+ "https://www.googleapis.com/auth/surveys",
"https://www.googleapis.com/auth/userinfo.email"
]
},
"get": {
"description": "Retrieves information about the specified survey.",
"httpMethod": "GET",
- "id": "consumersurveys.surveys.get",
+ "id": "surveys.surveys.get",
"parameterOrder": [
"surveyUrlId"
],
@@ -242,15 +242,15 @@
"$ref": "Survey"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
- "https://www.googleapis.com/auth/consumersurveys.readonly",
+ "https://www.googleapis.com/auth/surveys",
+ "https://www.googleapis.com/auth/surveys.readonly",
"https://www.googleapis.com/auth/userinfo.email"
]
},
"insert": {
"description": "Creates a survey.",
"httpMethod": "POST",
- "id": "consumersurveys.surveys.insert",
+ "id": "surveys.surveys.insert",
"path": "surveys",
"request": {
"$ref": "Survey"
@@ -259,14 +259,14 @@
"$ref": "Survey"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
+ "https://www.googleapis.com/auth/surveys",
"https://www.googleapis.com/auth/userinfo.email"
]
},
"list": {
"description": "Lists the surveys owned by the authenticated user.",
"httpMethod": "GET",
- "id": "consumersurveys.surveys.list",
+ "id": "surveys.surveys.list",
"parameters": {
"maxResults": {
"format": "uint32",
@@ -288,15 +288,15 @@
"$ref": "SurveysListResponse"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
- "https://www.googleapis.com/auth/consumersurveys.readonly",
+ "https://www.googleapis.com/auth/surveys",
+ "https://www.googleapis.com/auth/surveys.readonly",
"https://www.googleapis.com/auth/userinfo.email"
]
},
"start": {
"description": "Begins running a survey.",
"httpMethod": "POST",
- "id": "consumersurveys.surveys.start",
+ "id": "surveys.surveys.start",
"parameterOrder": [
"resourceId"
],
@@ -315,14 +315,14 @@
"$ref": "SurveysStartResponse"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
+ "https://www.googleapis.com/auth/surveys",
"https://www.googleapis.com/auth/userinfo.email"
]
},
"stop": {
"description": "Stops a running survey.",
"httpMethod": "POST",
- "id": "consumersurveys.surveys.stop",
+ "id": "surveys.surveys.stop",
"parameterOrder": [
"resourceId"
],
@@ -338,14 +338,14 @@
"$ref": "SurveysStopResponse"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
+ "https://www.googleapis.com/auth/surveys",
"https://www.googleapis.com/auth/userinfo.email"
]
},
"update": {
"description": "Updates a survey. Currently the only property that can be updated is the owners property.",
"httpMethod": "PUT",
- "id": "consumersurveys.surveys.update",
+ "id": "surveys.surveys.update",
"parameterOrder": [
"surveyUrlId"
],
@@ -365,14 +365,14 @@
"$ref": "Survey"
},
"scopes": [
- "https://www.googleapis.com/auth/consumersurveys",
+ "https://www.googleapis.com/auth/surveys",
"https://www.googleapis.com/auth/userinfo.email"
]
}
}
}
},
- "revision": "20160718",
+ "revision": "20161103",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"FieldMask": {
@@ -514,7 +514,7 @@
"owners": {
"annotations": {
"required": [
- "consumersurveys.surveys.insert"
+ "surveys.surveys.insert"
]
},
"description": "List of email addresses for survey owners. Must contain at least the address of the user making the API call.",
@@ -526,7 +526,7 @@
"questions": {
"annotations": {
"required": [
- "consumersurveys.surveys.insert"
+ "surveys.surveys.insert"
]
},
"description": "List of questions defining the survey.",
@@ -535,6 +535,10 @@
},
"type": "array"
},
+ "rejectionReason": {
+ "$ref": "SurveyRejection",
+ "description": "Reason for the survey being rejected. Only present if the survey state is rejected."
+ },
"state": {
"description": "State that the survey is in.",
"type": "string"
@@ -569,7 +573,7 @@
"country": {
"annotations": {
"required": [
- "consumersurveys.surveys.insert"
+ "surveys.surveys.insert"
]
},
"description": "Required country code that surveys should be targeted to. Accepts standard ISO 3166-1 2 character language codes. For instance, 'US' for the United States, and 'GB' for the United Kingdom.",
@@ -586,7 +590,7 @@
"languages": {
"annotations": {
"required": [
- "consumersurveys.surveys.insert"
+ "surveys.surveys.insert"
]
},
"description": "Language code that surveys should be targeted to. For instance, 'en-US'. Surveys may target bilingual users by specifying a list of language codes (for example, 'de' and 'en-US'). In that case, all languages will be used for targeting users but the survey content (which is displayed) must match the first language listed. Accepts standard BCP47 language codes. See specification.",
@@ -710,7 +714,7 @@
"type": {
"annotations": {
"required": [
- "consumersurveys.surveys.insert"
+ "surveys.surveys.insert"
]
},
"description": "Required field defining the question type. For details about configuring different type of questions, consult the question configuration guide.",
@@ -747,6 +751,21 @@
},
"type": "object"
},
+ "SurveyRejection": {
+ "description": "Message representing why the survey was rejected from review, if it was.",
+ "id": "SurveyRejection",
+ "properties": {
+ "explanation": {
+ "description": "A human-readable explanation of what was wrong with the survey.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Which category of rejection this was. See the Google Surveys Help Center for additional details on each category.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"SurveyResults": {
"description": "Reference to the current results for a given survey.",
"id": "SurveyResults",
@@ -847,7 +866,7 @@
"type": "object"
}
},
- "servicePath": "consumersurveys/v2/",
- "title": "Consumer Surveys API",
+ "servicePath": "surveys/v2/",
+ "title": "Surveys API",
"version": "v2"
}
« no previous file with comments | « discovery/googleapis/storage__v1.json ('k') | discovery/googleapis/vision__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698