Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates a new category on the portal.
Deletes a category from the portal.
Gets a category on the portal.
Lists the categories on the portal.
patch(name, body=None, x__xgafv=None)
Updates a category on the portal.
close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates a new category on the portal. Args: parent: string, Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}` (required) body: object, The request body. The object takes the form of: { # the Api category resource. "id": "A String", # ID of the category (a UUID). "name": "A String", # Name of the category. "siteId": "A String", # Name of the portal. "updateTime": "A String", # Time the category was last modified in milliseconds since epoch. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # the Api category resource wrapped with response status, error_code etc. "data": { # the Api category resource. # Details of category. "id": "A String", # ID of the category (a UUID). "name": "A String", # Name of the category. "siteId": "A String", # Name of the portal. "updateTime": "A String", # Time the category was last modified in milliseconds since epoch. }, "errorCode": "A String", # ID that can be used to find errors in the log files. "message": "A String", # Description of the operation. "requestId": "A String", # ID that can be used to find request details in the log files. "status": "A String", # Status of the operation. }
delete(name, x__xgafv=None)
Deletes a category from the portal. Args: name: string, Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}` (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "errorCode": "A String", # ID that can be used to find errors in the log files. "message": "A String", # Description of the operation. "requestId": "A String", # ID that can be used to find request details in the log files. "status": "A String", # Status of the operation. }
get(name, x__xgafv=None)
Gets a category on the portal. Args: name: string, Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}` (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # the Api category resource wrapped with response status, error_code etc. "data": { # the Api category resource. # Details of category. "id": "A String", # ID of the category (a UUID). "name": "A String", # Name of the category. "siteId": "A String", # Name of the portal. "updateTime": "A String", # Time the category was last modified in milliseconds since epoch. }, "errorCode": "A String", # ID that can be used to find errors in the log files. "message": "A String", # Description of the operation. "requestId": "A String", # ID that can be used to find request details in the log files. "status": "A String", # Status of the operation. }
list(parent, x__xgafv=None)
Lists the categories on the portal. Args: parent: string, Required. Name of the portal. Use the following structure in your request: `organizations/{org}/sites/{site}` (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # the response for ListApiCategoriesRequest. "data": [ # Details of categories. { # the Api category resource. "id": "A String", # ID of the category (a UUID). "name": "A String", # Name of the category. "siteId": "A String", # Name of the portal. "updateTime": "A String", # Time the category was last modified in milliseconds since epoch. }, ], "errorCode": "A String", # ID that can be used to find errors in the log files. "message": "A String", # Description of the operation. "requestId": "A String", # ID that can be used to find request details in the log files. "status": "A String", # Status of the operation. }
patch(name, body=None, x__xgafv=None)
Updates a category on the portal. Args: name: string, Required. Name of the category. Use the following structure in your request: `organizations/{org}/sites/{site}/apicategories/{apicategory}` (required) body: object, The request body. The object takes the form of: { # the Api category resource. "id": "A String", # ID of the category (a UUID). "name": "A String", # Name of the category. "siteId": "A String", # Name of the portal. "updateTime": "A String", # Time the category was last modified in milliseconds since epoch. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # the Api category resource wrapped with response status, error_code etc. "data": { # the Api category resource. # Details of category. "id": "A String", # ID of the category (a UUID). "name": "A String", # Name of the category. "siteId": "A String", # Name of the portal. "updateTime": "A String", # Time the category was last modified in milliseconds since epoch. }, "errorCode": "A String", # ID that can be used to find errors in the log files. "message": "A String", # Description of the operation. "requestId": "A String", # ID that can be used to find request details in the log files. "status": "A String", # Status of the operation. }