mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
feat(deps): update-json using discovery API
Instead of depending on the google go client API repository, I now use the original data source, namely the discovery API. fixes #5
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/deWKWLiFywg1_Xne7G92xyJt8HA\"",
|
||||
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/RcOjYGQDsg144Y5EM1meYl_XNYw\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "analytics:v2.4",
|
||||
"name": "analytics",
|
||||
"version": "v2.4",
|
||||
"revision": "20150115",
|
||||
"revision": "20141118",
|
||||
"title": "Google Analytics API",
|
||||
"description": "View and manage your Google Analytics data",
|
||||
"ownerDomain": "google.com",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/A7O3agkh7yC4B7ApdQ5Stb69Ofk\"",
|
||||
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/aw3TpXPEnqSVSodmCVhPn55WgQk\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "analytics:v3",
|
||||
"name": "analytics",
|
||||
"version": "v3",
|
||||
"revision": "20150115",
|
||||
"revision": "20141118",
|
||||
"title": "Google Analytics API",
|
||||
"description": "View and manage your Google Analytics data",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -819,168 +819,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"DailyUpload": {
|
||||
"id": "DailyUpload",
|
||||
"type": "object",
|
||||
"description": "Metadata for daily upload entity.",
|
||||
"properties": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account ID to which this daily upload belongs."
|
||||
},
|
||||
"appendCount": {
|
||||
"type": "integer",
|
||||
"description": "Number of appends for this date.",
|
||||
"format": "int32"
|
||||
},
|
||||
"createdTime": {
|
||||
"type": "string",
|
||||
"description": "Time this daily upload was created.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"customDataSourceId": {
|
||||
"type": "string",
|
||||
"description": "Custom data source ID to which this daily upload belongs."
|
||||
},
|
||||
"date": {
|
||||
"type": "string",
|
||||
"description": "Date associated with daily upload."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Resource type for Analytics daily upload.",
|
||||
"default": "analytics#dailyUpload"
|
||||
},
|
||||
"modifiedTime": {
|
||||
"type": "string",
|
||||
"description": "Time this daily upload was last modified.",
|
||||
"format": "date-time"
|
||||
},
|
||||
"parentLink": {
|
||||
"type": "object",
|
||||
"description": "Parent link for a daily upload. Points to the custom data source to which this daily upload belongs.",
|
||||
"properties": {
|
||||
"href": {
|
||||
"type": "string",
|
||||
"description": "Link to the custom data source to which this daily upload belongs."
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Value is \"analytics#customDataSource\".",
|
||||
"default": "analytics#customDataSource"
|
||||
}
|
||||
}
|
||||
},
|
||||
"recentChanges": {
|
||||
"type": "array",
|
||||
"description": "Change log for last 10 changes in chronological order.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"change": {
|
||||
"type": "string",
|
||||
"description": "The type of change: APPEND, RESET, or DELETE."
|
||||
},
|
||||
"time": {
|
||||
"type": "string",
|
||||
"description": "The time when the change occurred.",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"selfLink": {
|
||||
"type": "string",
|
||||
"description": "Link for this daily upload."
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property ID of the form UA-XXXXX-YY to which this daily upload belongs."
|
||||
}
|
||||
}
|
||||
},
|
||||
"DailyUploadAppend": {
|
||||
"id": "DailyUploadAppend",
|
||||
"type": "object",
|
||||
"description": "Metadata returned for a successful append operation.",
|
||||
"properties": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account Id to which this daily upload append belongs."
|
||||
},
|
||||
"appendNumber": {
|
||||
"type": "integer",
|
||||
"description": "Append number.",
|
||||
"format": "int32"
|
||||
},
|
||||
"customDataSourceId": {
|
||||
"type": "string",
|
||||
"description": "Custom data source Id to which this daily upload append belongs."
|
||||
},
|
||||
"date": {
|
||||
"type": "string",
|
||||
"description": "Date associated with daily upload append."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Resource type for Analytics daily upload append.",
|
||||
"default": "analytics#dailyUploadAppend"
|
||||
},
|
||||
"nextAppendLink": {
|
||||
"type": "string"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property Id of the form UA-XXXXX-YY to which this daily upload append belongs."
|
||||
}
|
||||
}
|
||||
},
|
||||
"DailyUploads": {
|
||||
"id": "DailyUploads",
|
||||
"type": "object",
|
||||
"description": "A daily upload collection lists Analytics daily uploads to which the user has access. Each resource in the collection corresponds to a single Analytics daily upload.",
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "A collection of daily uploads.",
|
||||
"items": {
|
||||
"$ref": "DailyUpload"
|
||||
}
|
||||
},
|
||||
"itemsPerPage": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.",
|
||||
"format": "int32"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Collection type. Value is analytics#dailyUploads.",
|
||||
"default": "analytics#dailyUploads"
|
||||
},
|
||||
"nextLink": {
|
||||
"type": "string",
|
||||
"description": "Link to next page for this daily upload collection."
|
||||
},
|
||||
"previousLink": {
|
||||
"type": "string",
|
||||
"description": "Link to previous page for this daily upload collection."
|
||||
},
|
||||
"startIndex": {
|
||||
"type": "integer",
|
||||
"description": "The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.",
|
||||
"format": "int32"
|
||||
},
|
||||
"totalResults": {
|
||||
"type": "integer",
|
||||
"description": "The total number of results for the query, regardless of the number of results in the response.",
|
||||
"format": "int32"
|
||||
},
|
||||
"username": {
|
||||
"type": "string",
|
||||
"description": "Email ID of the authenticated user"
|
||||
}
|
||||
}
|
||||
},
|
||||
"EntityAdWordsLink": {
|
||||
"id": "EntityAdWordsLink",
|
||||
"type": "object",
|
||||
@@ -4374,233 +4212,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dailyUploads": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"id": "analytics.management.dailyUploads.delete",
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}",
|
||||
"httpMethod": "DELETE",
|
||||
"description": "Delete uploaded data for the given date.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account Id associated with daily upload delete.",
|
||||
"required": true,
|
||||
"pattern": "[0-9]+",
|
||||
"location": "path"
|
||||
},
|
||||
"customDataSourceId": {
|
||||
"type": "string",
|
||||
"description": "Custom data source Id associated with daily upload delete.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"date": {
|
||||
"type": "string",
|
||||
"description": "Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD.",
|
||||
"required": true,
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"location": "path"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Type of data for this delete.",
|
||||
"required": true,
|
||||
"enum": [
|
||||
"cost"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Value for specifying cost data upload."
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property Id associated with daily upload delete.",
|
||||
"required": true,
|
||||
"pattern": "UA-[0-9]+-[0-9]+",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId",
|
||||
"customDataSourceId",
|
||||
"date",
|
||||
"type"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.edit"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "analytics.management.dailyUploads.list",
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads",
|
||||
"httpMethod": "GET",
|
||||
"description": "List daily uploads to which the user has access.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account Id for the daily uploads to retrieve.",
|
||||
"required": true,
|
||||
"pattern": "\\d+",
|
||||
"location": "path"
|
||||
},
|
||||
"customDataSourceId": {
|
||||
"type": "string",
|
||||
"description": "Custom data source Id for daily uploads to retrieve.",
|
||||
"required": true,
|
||||
"pattern": ".{22}",
|
||||
"location": "path"
|
||||
},
|
||||
"end-date": {
|
||||
"type": "string",
|
||||
"description": "End date of the form YYYY-MM-DD.",
|
||||
"required": true,
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"location": "query"
|
||||
},
|
||||
"max-results": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of custom data sources to include in this response.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
},
|
||||
"start-date": {
|
||||
"type": "string",
|
||||
"description": "Start date of the form YYYY-MM-DD.",
|
||||
"required": true,
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"location": "query"
|
||||
},
|
||||
"start-index": {
|
||||
"type": "integer",
|
||||
"description": "A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.",
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"location": "query"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property Id for the daily uploads to retrieve.",
|
||||
"required": true,
|
||||
"pattern": "UA-(\\d+)-(\\d+)",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId",
|
||||
"customDataSourceId",
|
||||
"start-date",
|
||||
"end-date"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "DailyUploads"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
},
|
||||
"upload": {
|
||||
"id": "analytics.management.dailyUploads.upload",
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads",
|
||||
"httpMethod": "POST",
|
||||
"description": "Update/Overwrite data for a custom data source.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account Id associated with daily upload.",
|
||||
"required": true,
|
||||
"pattern": "\\d+",
|
||||
"location": "path"
|
||||
},
|
||||
"appendNumber": {
|
||||
"type": "integer",
|
||||
"description": "Append number for this upload indexed from 1.",
|
||||
"required": true,
|
||||
"format": "int32",
|
||||
"minimum": "1",
|
||||
"maximum": "20",
|
||||
"location": "query"
|
||||
},
|
||||
"customDataSourceId": {
|
||||
"type": "string",
|
||||
"description": "Custom data source Id to which the data being uploaded belongs.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"date": {
|
||||
"type": "string",
|
||||
"description": "Date for which data is uploaded. Date should be formatted as YYYY-MM-DD.",
|
||||
"required": true,
|
||||
"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}",
|
||||
"location": "path"
|
||||
},
|
||||
"reset": {
|
||||
"type": "boolean",
|
||||
"description": "Reset/Overwrite all previous appends for this date and start over with this file as the first upload.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Type of data for this upload.",
|
||||
"required": true,
|
||||
"enum": [
|
||||
"cost"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Value for specifying cost data upload."
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property Id associated with daily upload.",
|
||||
"required": true,
|
||||
"pattern": "UA-\\d+-\\d+",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId",
|
||||
"customDataSourceId",
|
||||
"date",
|
||||
"appendNumber",
|
||||
"type"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "DailyUploadAppend"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.edit"
|
||||
],
|
||||
"supportsMediaUpload": true,
|
||||
"mediaUpload": {
|
||||
"accept": [
|
||||
"application/octet-stream"
|
||||
],
|
||||
"maxSize": "5MB",
|
||||
"protocols": {
|
||||
"simple": {
|
||||
"multipart": true,
|
||||
"path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"
|
||||
},
|
||||
"resumable": {
|
||||
"multipart": true,
|
||||
"path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"experiments": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
@@ -6355,44 +5966,6 @@
|
||||
"https://www.googleapis.com/auth/analytics.readonly"
|
||||
]
|
||||
},
|
||||
"migrateDataImport": {
|
||||
"id": "analytics.management.uploads.migrateDataImport",
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/migrateDataImport",
|
||||
"httpMethod": "POST",
|
||||
"description": "Migrate custom data source and data imports to latest version.",
|
||||
"parameters": {
|
||||
"accountId": {
|
||||
"type": "string",
|
||||
"description": "Account Id for migration.",
|
||||
"required": true,
|
||||
"pattern": "\\d+",
|
||||
"location": "path"
|
||||
},
|
||||
"customDataSourceId": {
|
||||
"type": "string",
|
||||
"description": "Custom data source Id for migration.",
|
||||
"required": true,
|
||||
"pattern": ".{22}",
|
||||
"location": "path"
|
||||
},
|
||||
"webPropertyId": {
|
||||
"type": "string",
|
||||
"description": "Web property Id for migration.",
|
||||
"required": true,
|
||||
"pattern": "UA-(\\d+)-(\\d+)",
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"accountId",
|
||||
"webPropertyId",
|
||||
"customDataSourceId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/analytics",
|
||||
"https://www.googleapis.com/auth/analytics.edit"
|
||||
]
|
||||
},
|
||||
"uploadData": {
|
||||
"id": "analytics.management.uploads.uploadData",
|
||||
"path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads",
|
||||
|
||||
Reference in New Issue
Block a user