def AnnotateResource(self, the_api, resource):
        """Correct naming for APIClient resources in Python.

    Overrides default implementation.

    Args:
      the_api: (Api) The Api which owns this resource.
      resource: (Resource) The Resource to annotate.
    """
        resource.SetTemplateValue("codeName", (discovery_client.fix_method_name(resource.codeName)))
Beispiel #2
0
    def AnnotateResource(self, the_api, resource):
        """Correct naming for APIClient resources in Python.

    Overrides default implementation.

    Args:
      the_api: (Api) The Api which owns this resource.
      resource: (Resource) The Resource to annotate.
    """
        resource.SetTemplateValue(
            'codeName', (discovery_client.fix_method_name(resource.codeName)))
    def AnnotateMethod(self, the_api, method, resource):
        """Correct naming for APIClient methods in Python.

    Overrides default implementation.

    Args:
      the_api: (Api) The Api.
      method: (Method) The Method to annotate.
      resource: (Resource) The Resource which owns this Method.
    """

        method.SetTemplateValue("codeName", discovery_client.fix_method_name(method.codeName))
Beispiel #4
0
    def AnnotateMethod(self, the_api, method, resource):
        """Correct naming for APIClient methods in Python.

    Overrides default implementation.

    Args:
      the_api: (Api) The Api.
      method: (Method) The Method to annotate.
      resource: (Resource) The Resource which owns this Method.
    """

        method.SetTemplateValue(
            'codeName', discovery_client.fix_method_name(method.codeName))