code: def deployment_state(self, deployment_state):
          
          allowed_values = ["pending", "updated_connector_channel", "failed_connector_channel_update", "deployed", "manifestremoved", "deregistered"]
          if deployment_state not in allowed_values:
              raise ValueError(
                  "Invalid value for `deployment_state` ({0}), must be one of {1}"
                  .format(deployment_state, allowed_values)
              )
  
          self._deployment_state = deployment_state
docs: Sets the deployment_state of this CampaignDeviceMetadata.
          The state of the update campaign on the device
  
          :param deployment_state: The deployment_state of this CampaignDeviceMetadata.
          :type: str