B `w@sGdddeZdS)csjeZdZfddZeedddZedddZeed d d Zeed d d Z eed ddZ Z S) ActionBatchescstt|||_dS)N)superr__init___session)selfsession) __class__w/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki_v0/api/action_batches.pyrszActionBatches.__init__)organizationIdactionsc sT|tdgdd}d|d}dddgfd d |D}|j|||S) a **Create an action batch** https://developer.cisco.com/meraki/api/#!create-organization-action-batch - organizationId (string) - actions (array): A set of changes to make as part of this action (more details) - confirmed (boolean): Set to true for immediate execution. Set to false if the action should be previewed before executing. This property cannot be unset once it is true. Defaults to false. - synchronous (boolean): Set to true to force the batch to run synchronous. There can be at most 20 actions in synchronous batch. Defaults to false. zAction batchescreateOrganizationActionBatch)tags operationz/organizations/z/actionBatches confirmed synchronousr cs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr sz?ActionBatches.createOrganizationActionBatch..)updatelocalsitemsrpost)rr r kwargsmetadataresourcepayloadr)rr r s   z+ActionBatches.createOrganizationActionBatch)r c s|td|krBdddg}|d|ksBtd|dd|dgdd }d |d }dgfd d |D}|j|||S)a, **Return the list of action batches in the organization** https://developer.cisco.com/meraki/api/#!get-organization-action-batches - organizationId (string) - status (string): Filter batches by status. Valid types are pending, completed, and failed. statuspendingZ completedfailedz"status" cannot be "z", & must be set to one of: zAction batchesgetOrganizationActionBatches)r rz/organizations/z/actionBatchescs&i|]\}}|kr||qSr)r)rrr) query_paramsrr r4sz>ActionBatches.getOrganizationActionBatches..)rrAssertionErrorrrget)rr roptionsrrparamsr)r#r r"s  $ z*ActionBatches.getOrganizationActionBatches)r actionBatchIdcCs*dgdd}d|d|}|j||S)z **Return an action batch** https://developer.cisco.com/meraki/api/#!get-organization-action-batch - organizationId (string) - actionBatchId (string) zAction batchesgetOrganizationActionBatch)r rz/organizations/z/actionBatches/)rr%)rr r(rrrrr r)8s z(ActionBatches.getOrganizationActionBatchcCs*dgdd}d|d|}|j||S)z **Delete an action batch** https://developer.cisco.com/meraki/api/#!delete-organization-action-batch - organizationId (string) - actionBatchId (string) zAction batchesdeleteOrganizationActionBatch)r rz/organizations/z/actionBatches/)rdelete)rr r(rrrrr r*Is z+ActionBatches.deleteOrganizationActionBatchc sV|tdgdd}d|d|}ddgfdd |D}|j|||S) a **Update an action batch** https://developer.cisco.com/meraki/api/#!update-organization-action-batch - organizationId (string) - actionBatchId (string) - confirmed (boolean): A boolean representing whether or not the batch has been confirmed. This property cannot be unset once it is true. - synchronous (boolean): Set to true to force the batch to run synchronous. There can be at most 20 actions in synchronous batch. zAction batchesupdateOrganizationActionBatch)r rz/organizations/z/actionBatches/rrcs&i|]\}}|kr||qSr)r)rrr)rrr rnsz?ActionBatches.updateOrganizationActionBatch..)rrrrput)rr r(rrrrr)rr r,Zs z+ActionBatches.updateOrganizationActionBatch) __name__ __module__ __qualname__rstrlistr r"r)r*r, __classcell__rr)rr rs  rN)objectrrrrr