actionCloud Run

update_service

Updates a Cloud Run service

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosgcp.cloudrun.actions
Nameupdate_service
Returnnull

Usage

JSON

{
  "name": "update-service",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosgcp.cloudrun.actions",
    "func": "update_service",
    "arguments": {
      "parent": ""
    }
  }
}

YAML

name: update-service
provider:
  arguments:
    parent: ''
  func: update_service
  module: chaosgcp.cloudrun.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
parentstringYesService PathFull service path
containerobjectYesContainer DefinitionJSON encoded description of the container
max_instance_request_concurrencyinteger30NoRequest ConcurrencyMaximum requests concurrency per instance
service_accountstring""NoService AccountName of the service account to attach to the service
encryption_keystring""NoEncryption KeyName of the encryption key to associate with the service
trafficobjectnullNoTraffic TargetJSON encoded sequence of of tarffic target objects
labelsobjectnullNoLabelsJSON encoded set of labels
annotationsobjectnullNoAnnotationsJSON encoded set of annotations
vpc_access_configobjectnullNoVPC Acces ConfigJSON encoded vpc configuration object

See https://cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.Service

Signature

def update_service(parent: str,
                   container: Dict[str, Any] = None,
                   max_instance_request_concurrency: int = 100,
                   service_account: str = None,
                   encryption_key: str = None,
                   traffic: List[Dict[str, Any]] = None,
                   labels: Dict[str, str] = None,
                   annotations: Dict[str, str] = None,
                   vpc_access_config: Dict[str, str] = None,
                   configuration: Dict[str, Dict[str, str]] = None,
                   secrets: Dict[str, Dict[str, str]] = None):
    pass