• Home
  • Raw
  • Download

Lines Matching +full:update +full:- +full:discovery +full:- +full:artifacts +full:-

7 #      http://www.apache.org/licenses/LICENSE-2.0
15 """Client for discovery based APIs.
17 A client library for Google's discovery based APIs.
41 # Third-party imports
85 VARNAME = re.compile("[a-zA-Z0-9_-]+")
87 "https://www.googleapis.com/discovery/v1/apis/" "{api}/{apiVersion}/rest"
91 "https://{api}.googleapis.com/$discovery/rest?" "version={apiVersion}"
120 # Parameters accepted by the stack, but not visible via discovery.
125 # Library-specific reserved words beyond Python keywords.
141 The name with '_' appended if the name is a reserved word and '$' and '-'
144 name = name.replace("$", "_").replace("-", "_")
154 For example, converting "max-results" -> "max_results"
197 version are the names from the Discovery service.
205 the discovery service. It should have two parameters {api} and
206 {apiVersion} that when filled in produce an absolute URI to the discovery
216 cache_discovery: Boolean, whether or not to cache the discovery doc.
218 cache object for the discovery documents.
244 num_retries: Integer, number of times to retry discovery with
246 static_discovery: Boolean, whether or not to use the static discovery docs
268 # google-api-python-client 1.x which does not support the `static_discovery`
331 Returns Discovery URIs to be used for attemnting to build the API Resource.
335 string, the Original Discovery Service URL preferred by the customer.
340 A list of URIs to be tried for the Service Discovery, in order.
346 # V1 Discovery won't work if the requested version is None
348 "Discovery V1 does not support empty versions. Defaulting to V2..."
369 url: string, the URL of the discovery document.
372 cache_discovery: Boolean, whether or not to cache the discovery doc.
376 object for the discovery documents.
379 num_retries: Integer, number of times to retry discovery with
381 static_discovery: Boolean, whether or not to use the static discovery docs
385 A unicode string representation of the discovery document.
397 # When `static_discovery=True`, use static discovery artifacts included
409 # request. If it exists then add that to the request for the discovery
410 # document to avoid exceeding the quota on discovery requests.
423 content = content.decode("utf-8")
454 Same as `build()`, but constructs the Resource object from a discovery
458 service: string or object, the JSON discovery document describing the API.
461 base: string, base URI for all HTTP requests, usually the discovery URI.
463 within the discovery document. (deprecated)
464 future: string, discovery document with future capabilities (deprecated).
469 model: Model class instance that serializes and de-serializes requests and
530 service = json.loads(service.decode("utf-8"))
535 + "having the service discovery doc in cache. Try calling "
586 # For google-auth service account credentials, enable self signed JWT if
684 See http://tools.ietf.org/html/draft-zyp-json-schema-03 for more details on
723 units = maxSize[-2:].upper()
726 return int(maxSize[:-2]) << bit_shift
734 Constructed using the API root URI and service path from the discovery
738 root_desc: Dictionary; the entire original deserialized discovery document.
740 root, which is specified in the discovery document.
757 appear in the discovery document, but are available to all discovery based
766 deserialized discovery document.
767 root_desc: Dictionary; the entire original deserialized discovery document.
790 body.update(method_desc["request"])
805 deserialized discovery document.
806 root_desc: Dictionary; the entire original deserialized discovery document.
808 root, which is specified in the discovery document.
814 - accept is a list of strings representing what content types are
816 discovery document.
817 - max_size is a long representing the max size in bytes allowed for a
818 media upload. Defaults to 0L if not in the discovery document.
819 - media_path_url is a String; the absolute URI for media upload for the
821 the discovery document and the relative path for the API method. If
838 """Updates a method description in a discovery document.
846 deserialized discovery document.
847 root_desc: Dictionary; the entire original deserialized discovery document.
853 - path_url is a String; the relative URL for the API method. Relative to
854 the API root, which is specified in the discovery document.
855 - http_method is a String; the HTTP method used to call the API method
857 - method_id is a String; the name of the RPC method associated with the
859 - accept is a list of strings representing what content types are
861 discovery document.
862 - max_size is a long representing the max size in bytes allowed for a
863 media upload. Defaults to 0L if not in the discovery document.
864 - media_path_url is a String; the absolute URI for media upload for the
866 the discovery document and the relative path for the API method. If
887 # the case of discovery documents, we know:
922 http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
935 the deserialized discovery document.
959 the deserialized discovery document.
981 # TODO(dhermes): Determine if this is still necessary. Discovery based APIs
997 methodDesc: object, fragment of deserialized discovery document that
999 rootDesc: object, the entire deserialized discovery document.
1015 # Don't bother with doc string, it will be over-written by createMethod.
1029 # temporary workaround for non-paging methods incorrectly requiring
1109 "media_mime_type argument not specified: trying to auto-detect for %s",
1138 # A non-resumable upload
1141 headers["content-type"] = media_upload.mimetype()
1151 msg = MIMENonMultipart(*headers["content-type"].split("/"))
1157 msg["Content-Transfer-Encoding"] = "binary"
1170 headers["content-type"] = (
1239 docs.append(" %s - %s\n" % (name, desc))
1303 if "content-length" in request.headers:
1304 del request.headers["content-length"]
1337 resourceDesc: object, section of deserialized discovery document that
1338 describes a resource. Note that the top level discovery document
1340 rootDesc: object, the entire deserialized discovery document.
1384 self.__dict__.update(state)
1416 """Create a BatchHttpRequest object based on the discovery document.
1427 A BatchHttpRequest object based on the discovery document.
1461 methodDesc: object, fragment of deserialized discovery document that
1540 methodDesc: object, fragment of deserialized discovery document that
1543 name: string, name of top-level field in method description.
1546 Object representing fragment of deserialized discovery document