mirror of
https://github.com/restic/restic.git
synced 2026-09-17 01:37:57 +00:00
Update dependencies
Among others, this updates minio-go, so that the new "eu-west-3" zone for AWS is supported.
This commit is contained in:
+646
-7
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/wCcRyDpa6JwxkLwmzDkr55huG84\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/FEIM1JSTcD4HhoBpMoEeP9vkMCQ\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "admin:directory_v1",
|
||||
"name": "admin",
|
||||
"canonicalName": "directory",
|
||||
"version": "directory_v1",
|
||||
"revision": "20171113",
|
||||
"revision": "20171212",
|
||||
"title": "Admin Directory API",
|
||||
"description": "The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more.",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -312,31 +312,138 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Building": {
|
||||
"id": "Building",
|
||||
"type": "object",
|
||||
"description": "JSON template for Building object in Directory API.",
|
||||
"properties": {
|
||||
"buildingId": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier for the building. The maximum length is 100 characters."
|
||||
},
|
||||
"buildingName": {
|
||||
"type": "string",
|
||||
"description": "The building name as seen by users in Calendar. Must be unique for the customer. For example, \"NYC-CHEL\". The maximum length is 100 characters."
|
||||
},
|
||||
"coordinates": {
|
||||
"$ref": "BuildingCoordinates",
|
||||
"description": "The geographic coordinates of the center of the building, expressed as latitude and longitude in decimal degrees."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "A brief description of the building. For example, \"Chelsea Market\"."
|
||||
},
|
||||
"etags": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"floorNames": {
|
||||
"type": "array",
|
||||
"description": "The display names for all floors in this building. The floors are expected to be sorted in ascending order, from lowest floor to highest floor. For example, [\"B2\", \"B1\", \"L\", \"1\", \"2\", \"2M\", \"3\", \"PH\"] Must contain at least one entry.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is.",
|
||||
"default": "admin#directory#resources#buildings#Building"
|
||||
}
|
||||
}
|
||||
},
|
||||
"BuildingCoordinates": {
|
||||
"id": "BuildingCoordinates",
|
||||
"type": "object",
|
||||
"description": "JSON template for coordinates of a building in Directory API.",
|
||||
"properties": {
|
||||
"latitude": {
|
||||
"type": "number",
|
||||
"description": "Latitude in decimal degrees.",
|
||||
"format": "double"
|
||||
},
|
||||
"longitude": {
|
||||
"type": "number",
|
||||
"description": "Longitude in decimal degrees.",
|
||||
"format": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Buildings": {
|
||||
"id": "Buildings",
|
||||
"type": "object",
|
||||
"description": "JSON template for Building List Response object in Directory API.",
|
||||
"properties": {
|
||||
"buildings": {
|
||||
"type": "array",
|
||||
"description": "The Buildings in this page of results.",
|
||||
"items": {
|
||||
"$ref": "Building"
|
||||
}
|
||||
},
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is.",
|
||||
"default": "admin#directory#resources#buildings#buildingsList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results."
|
||||
}
|
||||
}
|
||||
},
|
||||
"CalendarResource": {
|
||||
"id": "CalendarResource",
|
||||
"type": "object",
|
||||
"description": "JSON template for Calendar Resource object in Directory API.",
|
||||
"properties": {
|
||||
"buildingId": {
|
||||
"type": "string",
|
||||
"description": "Unique ID for the building a resource is located in."
|
||||
},
|
||||
"capacity": {
|
||||
"type": "integer",
|
||||
"description": "Capacity of a resource, number of seats in a room.",
|
||||
"format": "int32"
|
||||
},
|
||||
"etags": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"featureInstances": {
|
||||
"type": "any"
|
||||
},
|
||||
"floorName": {
|
||||
"type": "string",
|
||||
"description": "Name of the floor a resource is located on."
|
||||
},
|
||||
"floorSection": {
|
||||
"type": "string",
|
||||
"description": "Name of the section within a floor a resource is located in."
|
||||
},
|
||||
"generatedResourceName": {
|
||||
"type": "string",
|
||||
"description": "The auto-generated name of the calendar resource which includes metadata about the resource such as building name, floor, capacity, etc. For example, NYC-2-Training Room 1A (16)"
|
||||
"description": "The read-only auto-generated name of the calendar resource which includes metadata about the resource such as building name, floor, capacity, etc. For example, \"NYC-2-Training Room 1A (16)\"."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "The type of the resource. For calendar resources, the value is admin#directory#resources#calendars#CalendarResource.",
|
||||
"default": "admin#directory#resources#calendars#CalendarResource"
|
||||
},
|
||||
"resourceCategory": {
|
||||
"type": "string",
|
||||
"description": "The category of the calendar resource. Either CONFERENCE_ROOM or OTHER. Legacy data is set to CATEGORY_UNKNOWN."
|
||||
},
|
||||
"resourceDescription": {
|
||||
"type": "string",
|
||||
"description": "The brief description of the calendar resource."
|
||||
"description": "Description of the resource, visible only to admins."
|
||||
},
|
||||
"resourceEmail": {
|
||||
"type": "string",
|
||||
"description": "The read-only email ID for the calendar resource. Generated as part of creating a new calendar resource."
|
||||
"description": "The read-only email for the calendar resource. Generated as part of creating a new calendar resource."
|
||||
},
|
||||
"resourceId": {
|
||||
"type": "string",
|
||||
@@ -344,11 +451,15 @@
|
||||
},
|
||||
"resourceName": {
|
||||
"type": "string",
|
||||
"description": "The name of the calendar resource. For example, Training Room 1A"
|
||||
"description": "The name of the calendar resource. For example, \"Training Room 1A\"."
|
||||
},
|
||||
"resourceType": {
|
||||
"type": "string",
|
||||
"description": "The type of the calendar resource. Used for grouping resources in the calendar user interface."
|
||||
"description": "The type of the calendar resource, intended for non-room resources."
|
||||
},
|
||||
"userVisibleDescription": {
|
||||
"type": "string",
|
||||
"description": "Description of the resource, visible to users and admins."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -472,6 +583,32 @@
|
||||
"type": "string",
|
||||
"description": "Chromebook boot mode (Read-only)"
|
||||
},
|
||||
"deviceFiles": {
|
||||
"type": "array",
|
||||
"description": "List of device files to download (Read-only)",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"createTime": {
|
||||
"type": "string",
|
||||
"description": "Date and time the file was created",
|
||||
"format": "date-time"
|
||||
},
|
||||
"downloadUrl": {
|
||||
"type": "string",
|
||||
"description": "File downlod URL"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "File name"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "File type"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"deviceId": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of Chrome OS Device (Read-only)"
|
||||
@@ -565,6 +702,29 @@
|
||||
"description": "Final date the device will be supported (Read-only)",
|
||||
"format": "date-time"
|
||||
},
|
||||
"tpmVersionInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"family": {
|
||||
"type": "string"
|
||||
},
|
||||
"firmwareVersion": {
|
||||
"type": "string"
|
||||
},
|
||||
"manufacturer": {
|
||||
"type": "string"
|
||||
},
|
||||
"specLevel": {
|
||||
"type": "string"
|
||||
},
|
||||
"tpmModel": {
|
||||
"type": "string"
|
||||
},
|
||||
"vendorSpecific": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"willAutoRenew": {
|
||||
"type": "boolean",
|
||||
"description": "Will Chromebook auto renew after support end date (Read-only)"
|
||||
@@ -853,6 +1013,84 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Feature": {
|
||||
"id": "Feature",
|
||||
"type": "object",
|
||||
"description": "JSON template for Feature object in Directory API.",
|
||||
"properties": {
|
||||
"etags": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is.",
|
||||
"default": "admin#directory#resources#features#Feature"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the feature.",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"directory.resources.features.insert"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"FeatureInstance": {
|
||||
"id": "FeatureInstance",
|
||||
"type": "object",
|
||||
"description": "JSON template for a \"feature instance\".",
|
||||
"properties": {
|
||||
"feature": {
|
||||
"$ref": "Feature"
|
||||
}
|
||||
}
|
||||
},
|
||||
"FeatureRename": {
|
||||
"id": "FeatureRename",
|
||||
"type": "object",
|
||||
"description": "JSON request template for renaming a feature.",
|
||||
"properties": {
|
||||
"newName": {
|
||||
"type": "string",
|
||||
"description": "New name of the feature.",
|
||||
"annotations": {
|
||||
"required": [
|
||||
"directory.resources.features.rename"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Features": {
|
||||
"id": "Features",
|
||||
"type": "object",
|
||||
"description": "JSON template for Feature List Response object in Directory API.",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"description": "ETag of the resource."
|
||||
},
|
||||
"features": {
|
||||
"type": "array",
|
||||
"description": "The Features in this page of results.",
|
||||
"items": {
|
||||
"$ref": "Feature"
|
||||
}
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "Kind of resource this is.",
|
||||
"default": "admin#directory#resources#features#featuresList"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Group": {
|
||||
"id": "Group",
|
||||
"type": "object",
|
||||
@@ -4515,6 +4753,184 @@
|
||||
},
|
||||
"resources": {
|
||||
"resources": {
|
||||
"buildings": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"id": "directory.resources.buildings.delete",
|
||||
"path": "customer/{customer}/resources/buildings/{buildingId}",
|
||||
"httpMethod": "DELETE",
|
||||
"description": "Deletes a building.",
|
||||
"parameters": {
|
||||
"buildingId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the building to delete.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer",
|
||||
"buildingId"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "directory.resources.buildings.get",
|
||||
"path": "customer/{customer}/resources/buildings/{buildingId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a building.",
|
||||
"parameters": {
|
||||
"buildingId": {
|
||||
"type": "string",
|
||||
"description": "The unique ID of the building to retrieve.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer",
|
||||
"buildingId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Building"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar",
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"id": "directory.resources.buildings.insert",
|
||||
"path": "customer/{customer}/resources/buildings",
|
||||
"httpMethod": "POST",
|
||||
"description": "Inserts a building.",
|
||||
"parameters": {
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Building"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Building"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "directory.resources.buildings.list",
|
||||
"path": "customer/{customer}/resources/buildings",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a list of buildings for an account.",
|
||||
"parameters": {
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Buildings"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar",
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"id": "directory.resources.buildings.patch",
|
||||
"path": "customer/{customer}/resources/buildings/{buildingId}",
|
||||
"httpMethod": "PATCH",
|
||||
"description": "Updates a building. This method supports patch semantics.",
|
||||
"parameters": {
|
||||
"buildingId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the building to update.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer",
|
||||
"buildingId"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Building"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Building"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"id": "directory.resources.buildings.update",
|
||||
"path": "customer/{customer}/resources/buildings/{buildingId}",
|
||||
"httpMethod": "PUT",
|
||||
"description": "Updates a building.",
|
||||
"parameters": {
|
||||
"buildingId": {
|
||||
"type": "string",
|
||||
"description": "The ID of the building to update.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer",
|
||||
"buildingId"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Building"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Building"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"calendars": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
@@ -4621,10 +5037,20 @@
|
||||
"maximum": "500",
|
||||
"location": "query"
|
||||
},
|
||||
"orderBy": {
|
||||
"type": "string",
|
||||
"description": "Field(s) to sort results by in either ascending or descending order. Supported fields include resourceId, resourceName, capacity, buildingId, and floorName. If no order is specified, defaults to ascending. Should be of the form \"field [asc|desc], field [asc|desc], ...\". For example buildingId, capacity desc would return results sorted first by buildingId in ascending order then by capacity in descending order.",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify the next page in the list.",
|
||||
"location": "query"
|
||||
},
|
||||
"query": {
|
||||
"type": "string",
|
||||
"description": "String query used to filter results. Should be of the form \"field operator value\" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match where applicable. For prefix match, the value should always be followed by a *.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -4705,6 +5131,219 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
"id": "directory.resources.features.delete",
|
||||
"path": "customer/{customer}/resources/features/{featureKey}",
|
||||
"httpMethod": "DELETE",
|
||||
"description": "Deletes a feature.",
|
||||
"parameters": {
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"featureKey": {
|
||||
"type": "string",
|
||||
"description": "The unique ID of the feature to delete.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer",
|
||||
"featureKey"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "directory.resources.features.get",
|
||||
"path": "customer/{customer}/resources/features/{featureKey}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a feature.",
|
||||
"parameters": {
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"featureKey": {
|
||||
"type": "string",
|
||||
"description": "The unique ID of the feature to retrieve.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer",
|
||||
"featureKey"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Feature"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar",
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"id": "directory.resources.features.insert",
|
||||
"path": "customer/{customer}/resources/features",
|
||||
"httpMethod": "POST",
|
||||
"description": "Inserts a feature.",
|
||||
"parameters": {
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Feature"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Feature"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "directory.resources.features.list",
|
||||
"path": "customer/{customer}/resources/features",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a list of features for an account.",
|
||||
"parameters": {
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify the next page in the list.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Features"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar",
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"id": "directory.resources.features.patch",
|
||||
"path": "customer/{customer}/resources/features/{featureKey}",
|
||||
"httpMethod": "PATCH",
|
||||
"description": "Updates a feature. This method supports patch semantics.",
|
||||
"parameters": {
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"featureKey": {
|
||||
"type": "string",
|
||||
"description": "The unique ID of the feature to update.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer",
|
||||
"featureKey"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Feature"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Feature"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
|
||||
]
|
||||
},
|
||||
"rename": {
|
||||
"id": "directory.resources.features.rename",
|
||||
"path": "customer/{customer}/resources/features/{oldName}/rename",
|
||||
"httpMethod": "POST",
|
||||
"description": "Renames a feature.",
|
||||
"parameters": {
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"oldName": {
|
||||
"type": "string",
|
||||
"description": "The unique ID of the feature to rename.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer",
|
||||
"oldName"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "FeatureRename"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
|
||||
]
|
||||
},
|
||||
"update": {
|
||||
"id": "directory.resources.features.update",
|
||||
"path": "customer/{customer}/resources/features/{featureKey}",
|
||||
"httpMethod": "PUT",
|
||||
"description": "Updates a feature.",
|
||||
"parameters": {
|
||||
"customer": {
|
||||
"type": "string",
|
||||
"description": "The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"featureKey": {
|
||||
"type": "string",
|
||||
"description": "The unique ID of the feature to update.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"customer",
|
||||
"featureKey"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Feature"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Feature"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.directory.resource.calendar"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+2244
-30
File diff suppressed because it is too large
Load Diff
+83
-5
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/YvMEbSpUd5h8xmSpskCE_HPECco\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/bw0JROoLapnynZnUYWv2Bypz6Uk\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "admin:reports_v1",
|
||||
"name": "admin",
|
||||
"canonicalName": "reports",
|
||||
"version": "reports_v1",
|
||||
"revision": "20170622",
|
||||
"revision": "20180110",
|
||||
"title": "Admin Reports API",
|
||||
"description": "Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -309,6 +309,11 @@
|
||||
"description": "Obfuscated customer id for the record.",
|
||||
"readOnly": true
|
||||
},
|
||||
"entityId": {
|
||||
"type": "string",
|
||||
"description": "Object key. Only relevant if entity.type = \"OBJECT\" Note: external-facing name of report is \"Entities\" rather than \"Objects\".",
|
||||
"readOnly": true
|
||||
},
|
||||
"profileId": {
|
||||
"type": "string",
|
||||
"description": "Obfuscated user id for the record.",
|
||||
@@ -316,12 +321,12 @@
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of item, can be a customer or user.",
|
||||
"description": "The type of item, can be customer, user, or entity (aka. object).",
|
||||
"readOnly": true
|
||||
},
|
||||
"userEmail": {
|
||||
"type": "string",
|
||||
"description": "user's email.",
|
||||
"description": "user's email. Only relevant if entity.type = \"USER\"",
|
||||
"readOnly": true
|
||||
}
|
||||
}
|
||||
@@ -659,7 +664,7 @@
|
||||
"parameters": {
|
||||
"type": "string",
|
||||
"description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
|
||||
"pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
|
||||
"pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+)",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
@@ -675,6 +680,79 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"entityUsageReports": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "reports.entityUsageReports.get",
|
||||
"path": "usage/{entityType}/{entityKey}/dates/{date}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Retrieves a report which is a collection of properties / statistics for a set of objects.",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"type": "string",
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"pattern": "C.+",
|
||||
"location": "query"
|
||||
},
|
||||
"date": {
|
||||
"type": "string",
|
||||
"description": "Represents the date in yyyy-mm-dd format for which the data is to be fetched.",
|
||||
"required": true,
|
||||
"pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
|
||||
"location": "path"
|
||||
},
|
||||
"entityKey": {
|
||||
"type": "string",
|
||||
"description": "Represents the key of object for which the data should be filtered.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"entityType": {
|
||||
"type": "string",
|
||||
"description": "Type of object. Should be one of - gplus_communities.",
|
||||
"required": true,
|
||||
"pattern": "(gplus_communities)",
|
||||
"location": "path"
|
||||
},
|
||||
"filters": {
|
||||
"type": "string",
|
||||
"description": "Represents the set of filters including parameter operator value.",
|
||||
"pattern": "(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+,)*(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+)",
|
||||
"location": "query"
|
||||
},
|
||||
"maxResults": {
|
||||
"type": "integer",
|
||||
"description": "Maximum number of results to return. Maximum allowed is 1000",
|
||||
"format": "uint32",
|
||||
"maximum": "1000",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query"
|
||||
},
|
||||
"parameters": {
|
||||
"type": "string",
|
||||
"description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
|
||||
"pattern": "(((gplus)):[^,]+,)*(((gplus)):[^,]+)",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"entityType",
|
||||
"entityKey",
|
||||
"date"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "UsageReports"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.usage.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"userUsageReport": {
|
||||
"methods": {
|
||||
"get": {
|
||||
|
||||
+267
-3
@@ -62,6 +62,7 @@ func New(client *http.Client) (*Service, error) {
|
||||
s.Activities = NewActivitiesService(s)
|
||||
s.Channels = NewChannelsService(s)
|
||||
s.CustomerUsageReports = NewCustomerUsageReportsService(s)
|
||||
s.EntityUsageReports = NewEntityUsageReportsService(s)
|
||||
s.UserUsageReport = NewUserUsageReportService(s)
|
||||
return s, nil
|
||||
}
|
||||
@@ -77,6 +78,8 @@ type Service struct {
|
||||
|
||||
CustomerUsageReports *CustomerUsageReportsService
|
||||
|
||||
EntityUsageReports *EntityUsageReportsService
|
||||
|
||||
UserUsageReport *UserUsageReportService
|
||||
}
|
||||
|
||||
@@ -114,6 +117,15 @@ type CustomerUsageReportsService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
func NewEntityUsageReportsService(s *Service) *EntityUsageReportsService {
|
||||
rs := &EntityUsageReportsService{s: s}
|
||||
return rs
|
||||
}
|
||||
|
||||
type EntityUsageReportsService struct {
|
||||
s *Service
|
||||
}
|
||||
|
||||
func NewUserUsageReportService(s *Service) *UserUsageReportService {
|
||||
rs := &UserUsageReportService{s: s}
|
||||
return rs
|
||||
@@ -472,13 +484,18 @@ type UsageReportEntity struct {
|
||||
// CustomerId: Obfuscated customer id for the record.
|
||||
CustomerId string `json:"customerId,omitempty"`
|
||||
|
||||
// EntityId: Object key. Only relevant if entity.type = "OBJECT" Note:
|
||||
// external-facing name of report is "Entities" rather than "Objects".
|
||||
EntityId string `json:"entityId,omitempty"`
|
||||
|
||||
// ProfileId: Obfuscated user id for the record.
|
||||
ProfileId string `json:"profileId,omitempty"`
|
||||
|
||||
// Type: The type of item, can be a customer or user.
|
||||
// Type: The type of item, can be customer, user, or entity (aka.
|
||||
// object).
|
||||
Type string `json:"type,omitempty"`
|
||||
|
||||
// UserEmail: user's email.
|
||||
// UserEmail: user's email. Only relevant if entity.type = "USER"
|
||||
UserEmail string `json:"userEmail,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "CustomerId") to
|
||||
@@ -1435,7 +1452,7 @@ func (c *CustomerUsageReportsGetCall) Do(opts ...googleapi.CallOption) (*UsageRe
|
||||
// "parameters": {
|
||||
// "description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
|
||||
// "location": "query",
|
||||
// "pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
|
||||
// "pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+)",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
@@ -1471,6 +1488,253 @@ func (c *CustomerUsageReportsGetCall) Pages(ctx context.Context, f func(*UsageRe
|
||||
}
|
||||
}
|
||||
|
||||
// method id "reports.entityUsageReports.get":
|
||||
|
||||
type EntityUsageReportsGetCall struct {
|
||||
s *Service
|
||||
entityType string
|
||||
entityKey string
|
||||
date string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Retrieves a report which is a collection of properties /
|
||||
// statistics for a set of objects.
|
||||
func (r *EntityUsageReportsService) Get(entityType string, entityKey string, date string) *EntityUsageReportsGetCall {
|
||||
c := &EntityUsageReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.entityType = entityType
|
||||
c.entityKey = entityKey
|
||||
c.date = date
|
||||
return c
|
||||
}
|
||||
|
||||
// CustomerId sets the optional parameter "customerId": Represents the
|
||||
// customer for which the data is to be fetched.
|
||||
func (c *EntityUsageReportsGetCall) CustomerId(customerId string) *EntityUsageReportsGetCall {
|
||||
c.urlParams_.Set("customerId", customerId)
|
||||
return c
|
||||
}
|
||||
|
||||
// Filters sets the optional parameter "filters": Represents the set of
|
||||
// filters including parameter operator value.
|
||||
func (c *EntityUsageReportsGetCall) Filters(filters string) *EntityUsageReportsGetCall {
|
||||
c.urlParams_.Set("filters", filters)
|
||||
return c
|
||||
}
|
||||
|
||||
// MaxResults sets the optional parameter "maxResults": Maximum number
|
||||
// of results to return. Maximum allowed is 1000
|
||||
func (c *EntityUsageReportsGetCall) MaxResults(maxResults int64) *EntityUsageReportsGetCall {
|
||||
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
|
||||
return c
|
||||
}
|
||||
|
||||
// PageToken sets the optional parameter "pageToken": Token to specify
|
||||
// next page.
|
||||
func (c *EntityUsageReportsGetCall) PageToken(pageToken string) *EntityUsageReportsGetCall {
|
||||
c.urlParams_.Set("pageToken", pageToken)
|
||||
return c
|
||||
}
|
||||
|
||||
// Parameters sets the optional parameter "parameters": Represents the
|
||||
// application name, parameter name pairs to fetch in csv as
|
||||
// app_name1:param_name1, app_name2:param_name2.
|
||||
func (c *EntityUsageReportsGetCall) Parameters(parameters string) *EntityUsageReportsGetCall {
|
||||
c.urlParams_.Set("parameters", parameters)
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
func (c *EntityUsageReportsGetCall) Fields(s ...googleapi.Field) *EntityUsageReportsGetCall {
|
||||
c.urlParams_.Set("fields", googleapi.CombineFields(s))
|
||||
return c
|
||||
}
|
||||
|
||||
// IfNoneMatch sets the optional parameter which makes the operation
|
||||
// fail if the object's ETag matches the given value. This is useful for
|
||||
// getting updates only after the object has changed since the last
|
||||
// request. Use googleapi.IsNotModified to check whether the response
|
||||
// error from Do is the result of In-None-Match.
|
||||
func (c *EntityUsageReportsGetCall) IfNoneMatch(entityTag string) *EntityUsageReportsGetCall {
|
||||
c.ifNoneMatch_ = entityTag
|
||||
return c
|
||||
}
|
||||
|
||||
// Context sets the context to be used in this call's Do method. Any
|
||||
// pending HTTP request will be aborted if the provided context is
|
||||
// canceled.
|
||||
func (c *EntityUsageReportsGetCall) Context(ctx context.Context) *EntityUsageReportsGetCall {
|
||||
c.ctx_ = ctx
|
||||
return c
|
||||
}
|
||||
|
||||
// Header returns an http.Header that can be modified by the caller to
|
||||
// add HTTP headers to the request.
|
||||
func (c *EntityUsageReportsGetCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *EntityUsageReportsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "usage/{entityType}/{entityKey}/dates/{date}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"entityType": c.entityType,
|
||||
"entityKey": c.entityKey,
|
||||
"date": c.date,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "reports.entityUsageReports.get" call.
|
||||
// Exactly one of *UsageReports or error will be non-nil. Any non-2xx
|
||||
// status code is an error. Response headers are in either
|
||||
// *UsageReports.ServerResponse.Header or (if a response was returned at
|
||||
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
|
||||
// to check whether the returned error was because
|
||||
// http.StatusNotModified was returned.
|
||||
func (c *EntityUsageReportsGetCall) Do(opts ...googleapi.CallOption) (*UsageReports, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &UsageReports{
|
||||
ServerResponse: googleapi.ServerResponse{
|
||||
Header: res.Header,
|
||||
HTTPStatusCode: res.StatusCode,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Retrieves a report which is a collection of properties / statistics for a set of objects.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "reports.entityUsageReports.get",
|
||||
// "parameterOrder": [
|
||||
// "entityType",
|
||||
// "entityKey",
|
||||
// "date"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "customerId": {
|
||||
// "description": "Represents the customer for which the data is to be fetched.",
|
||||
// "location": "query",
|
||||
// "pattern": "C.+",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "date": {
|
||||
// "description": "Represents the date in yyyy-mm-dd format for which the data is to be fetched.",
|
||||
// "location": "path",
|
||||
// "pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "entityKey": {
|
||||
// "description": "Represents the key of object for which the data should be filtered.",
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "entityType": {
|
||||
// "description": "Type of object. Should be one of - gplus_communities.",
|
||||
// "location": "path",
|
||||
// "pattern": "(gplus_communities)",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "filters": {
|
||||
// "description": "Represents the set of filters including parameter operator value.",
|
||||
// "location": "query",
|
||||
// "pattern": "(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+,)*(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+)",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "maxResults": {
|
||||
// "description": "Maximum number of results to return. Maximum allowed is 1000",
|
||||
// "format": "uint32",
|
||||
// "location": "query",
|
||||
// "maximum": "1000",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "pageToken": {
|
||||
// "description": "Token to specify next page.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "parameters": {
|
||||
// "description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
|
||||
// "location": "query",
|
||||
// "pattern": "(((gplus)):[^,]+,)*(((gplus)):[^,]+)",
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "usage/{entityType}/{entityKey}/dates/{date}",
|
||||
// "response": {
|
||||
// "$ref": "UsageReports"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/admin.reports.usage.readonly"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// Pages invokes f for each page of results.
|
||||
// A non-nil error returned from f will halt the iteration.
|
||||
// The provided context supersedes any context provided to the Context method.
|
||||
func (c *EntityUsageReportsGetCall) Pages(ctx context.Context, f func(*UsageReports) error) error {
|
||||
c.ctx_ = ctx
|
||||
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
|
||||
for {
|
||||
x, err := c.Do()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := f(x); err != nil {
|
||||
return err
|
||||
}
|
||||
if x.NextPageToken == "" {
|
||||
return nil
|
||||
}
|
||||
c.PageToken(x.NextPageToken)
|
||||
}
|
||||
}
|
||||
|
||||
// method id "reports.userUsageReport.get":
|
||||
|
||||
type UserUsageReportGetCall struct {
|
||||
|
||||
Reference in New Issue
Block a user