Cloud Functions API . projects . locations . runtimes

Instance Methods

close()

Close httplib2 connections.

list(parent, filter=None, x__xgafv=None)

Returns a list of runtimes that are supported for the requested project.

Method Details

close()
Close httplib2 connections.
list(parent, filter=None, x__xgafv=None)
Returns a list of runtimes that are supported for the requested project.

Args:
  parent: string, Required. The project and location from which the runtimes should be listed, specified in the format `projects/*/locations/*` (required)
  filter: string, The filter for Runtimes that match the filter expression, following the syntax outlined in https://google.aip.dev/160.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for the `ListRuntimes` method.
  "runtimes": [ # The runtimes that match the request.
    { # Describes a runtime and any special information (e.g., deprecation status) related to it.
      "decommissionDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Decommission date for the runtime.
        "day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
        "month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        "year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      "deprecationDate": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Deprecation date for the runtime.
        "day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
        "month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        "year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      "displayName": "A String", # The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
      "environment": "A String", # The environment for the runtime.
      "name": "A String", # The name of the runtime, e.g., 'go113', 'nodejs12', etc.
      "stage": "A String", # The stage of life this runtime is in, e.g., BETA, GA, etc.
      "warnings": [ # Warning messages, e.g., a deprecation warning.
        "A String",
      ],
    },
  ],
}