release_tracks: [GA, ALPHA, BETA]
help_text:
  brief: Update a multicast domain activation.
  description: |
    Update a multicast domain activation in the specified location of the current project.
  examples: |
    Update a multicast domain activation with the name `my-multicast-domain-activation`
    and location `zone`.

      $ {command} my-multicast-domain-activation --aggr-egress-pps=10000 --max-per-group-subscribers=10 --location=zone
arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.network_services.resources:multicastDomainActivation
    help_text: |
      Name of the multicast domain activation to be updated.
  params:
  - group:
      params:
      - arg_name: aggr-egress-pps
        api_field: multicastDomainActivation.trafficSpec.aggrEgressPps
        help_text: |
          Aggregated egress packets per second for all multicast groups in the domain in this zone.
      - arg_name: aggr-ingress-pps
        api_field: multicastDomainActivation.trafficSpec.aggrIngressPps
        help_text: |
          Aggregated ingress Packet-Per-Second for all multicast groups in the domain in this zone.
      - arg_name: avg-packet-size
        api_field: multicastDomainActivation.trafficSpec.avgPacketSize
        help_text: Average packet size (defaults to 512 bytes).
      - arg_name: max-per-group-ingress-pps
        api_field: multicastDomainActivation.trafficSpec.maxPerGroupIngressPps
        help_text: Maximum ingress Packet-Per-Second for a single multicast group in this zone.
      - arg_name: max-per-group-subscribers
        api_field: multicastDomainActivation.trafficSpec.maxPerGroupSubscribers
        help_text: Maximum number of subscribers for a single multicast group in this zone.
  - arg_name: description
    api_field: multicastDomainActivation.description
    help_text: The description for the multicast domain activation.
  labels:
    api_field: multicastDomainActivation.labels
update:
  read_modify_update: true
async:
  collection: networkservices.projects.locations.operations
request: &request
  GA:
    api_version: v1
  ALPHA:
    api_version: v1alpha1
  BETA:
    api_version: v1beta1
  collection: networkservices.projects.locations.multicastDomainActivations
  method: patch
