mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
chore(make): update-json and all APIs
It's about time we finish up this part, to make it even easier to test against more APIs, and keep them up-to-date
This commit is contained in:
184
etc/api/androidpublisher/v1/androidpublisher-api.json
Normal file
184
etc/api/androidpublisher/v1/androidpublisher-api.json
Normal file
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/9IvWgk27pJzZedDa5uB3-hJOZ88\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v1",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v1",
|
||||
"revision": "20141117",
|
||||
"title": "Google Play Android Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1/applications/",
|
||||
"basePath": "/androidpublisher/v1/applications/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "androidpublisher/v1/applications/",
|
||||
"batchPath": "batch",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Android Developer account"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"SubscriptionPurchase": {
|
||||
"id": "SubscriptionPurchase",
|
||||
"type": "object",
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time."
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription was granted, in milliseconds since Epoch.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#subscriptionPurchase"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription will expire, in milliseconds since Epoch.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"httpMethod": "POST",
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user