toOperationType method
Implementation
OperationType toOperationType() {
switch (this) {
case 'DeleteKnownHostKeys':
return OperationType.deleteKnownHostKeys;
case 'DeleteInstance':
return OperationType.deleteInstance;
case 'CreateInstance':
return OperationType.createInstance;
case 'StopInstance':
return OperationType.stopInstance;
case 'StartInstance':
return OperationType.startInstance;
case 'RebootInstance':
return OperationType.rebootInstance;
case 'OpenInstancePublicPorts':
return OperationType.openInstancePublicPorts;
case 'PutInstancePublicPorts':
return OperationType.putInstancePublicPorts;
case 'CloseInstancePublicPorts':
return OperationType.closeInstancePublicPorts;
case 'AllocateStaticIp':
return OperationType.allocateStaticIp;
case 'ReleaseStaticIp':
return OperationType.releaseStaticIp;
case 'AttachStaticIp':
return OperationType.attachStaticIp;
case 'DetachStaticIp':
return OperationType.detachStaticIp;
case 'UpdateDomainEntry':
return OperationType.updateDomainEntry;
case 'DeleteDomainEntry':
return OperationType.deleteDomainEntry;
case 'CreateDomain':
return OperationType.createDomain;
case 'DeleteDomain':
return OperationType.deleteDomain;
case 'CreateInstanceSnapshot':
return OperationType.createInstanceSnapshot;
case 'DeleteInstanceSnapshot':
return OperationType.deleteInstanceSnapshot;
case 'CreateInstancesFromSnapshot':
return OperationType.createInstancesFromSnapshot;
case 'CreateLoadBalancer':
return OperationType.createLoadBalancer;
case 'DeleteLoadBalancer':
return OperationType.deleteLoadBalancer;
case 'AttachInstancesToLoadBalancer':
return OperationType.attachInstancesToLoadBalancer;
case 'DetachInstancesFromLoadBalancer':
return OperationType.detachInstancesFromLoadBalancer;
case 'UpdateLoadBalancerAttribute':
return OperationType.updateLoadBalancerAttribute;
case 'CreateLoadBalancerTlsCertificate':
return OperationType.createLoadBalancerTlsCertificate;
case 'DeleteLoadBalancerTlsCertificate':
return OperationType.deleteLoadBalancerTlsCertificate;
case 'AttachLoadBalancerTlsCertificate':
return OperationType.attachLoadBalancerTlsCertificate;
case 'CreateDisk':
return OperationType.createDisk;
case 'DeleteDisk':
return OperationType.deleteDisk;
case 'AttachDisk':
return OperationType.attachDisk;
case 'DetachDisk':
return OperationType.detachDisk;
case 'CreateDiskSnapshot':
return OperationType.createDiskSnapshot;
case 'DeleteDiskSnapshot':
return OperationType.deleteDiskSnapshot;
case 'CreateDiskFromSnapshot':
return OperationType.createDiskFromSnapshot;
case 'CreateRelationalDatabase':
return OperationType.createRelationalDatabase;
case 'UpdateRelationalDatabase':
return OperationType.updateRelationalDatabase;
case 'DeleteRelationalDatabase':
return OperationType.deleteRelationalDatabase;
case 'CreateRelationalDatabaseFromSnapshot':
return OperationType.createRelationalDatabaseFromSnapshot;
case 'CreateRelationalDatabaseSnapshot':
return OperationType.createRelationalDatabaseSnapshot;
case 'DeleteRelationalDatabaseSnapshot':
return OperationType.deleteRelationalDatabaseSnapshot;
case 'UpdateRelationalDatabaseParameters':
return OperationType.updateRelationalDatabaseParameters;
case 'StartRelationalDatabase':
return OperationType.startRelationalDatabase;
case 'RebootRelationalDatabase':
return OperationType.rebootRelationalDatabase;
case 'StopRelationalDatabase':
return OperationType.stopRelationalDatabase;
case 'EnableAddOn':
return OperationType.enableAddOn;
case 'DisableAddOn':
return OperationType.disableAddOn;
case 'PutAlarm':
return OperationType.putAlarm;
case 'GetAlarms':
return OperationType.getAlarms;
case 'DeleteAlarm':
return OperationType.deleteAlarm;
case 'TestAlarm':
return OperationType.testAlarm;
case 'CreateContactMethod':
return OperationType.createContactMethod;
case 'GetContactMethods':
return OperationType.getContactMethods;
case 'SendContactMethodVerification':
return OperationType.sendContactMethodVerification;
case 'DeleteContactMethod':
return OperationType.deleteContactMethod;
case 'CreateDistribution':
return OperationType.createDistribution;
case 'UpdateDistribution':
return OperationType.updateDistribution;
case 'DeleteDistribution':
return OperationType.deleteDistribution;
case 'ResetDistributionCache':
return OperationType.resetDistributionCache;
case 'AttachCertificateToDistribution':
return OperationType.attachCertificateToDistribution;
case 'DetachCertificateFromDistribution':
return OperationType.detachCertificateFromDistribution;
case 'UpdateDistributionBundle':
return OperationType.updateDistributionBundle;
case 'CreateCertificate':
return OperationType.createCertificate;
case 'DeleteCertificate':
return OperationType.deleteCertificate;
case 'CreateContainerService':
return OperationType.createContainerService;
case 'UpdateContainerService':
return OperationType.updateContainerService;
case 'DeleteContainerService':
return OperationType.deleteContainerService;
case 'CreateContainerServiceDeployment':
return OperationType.createContainerServiceDeployment;
case 'CreateContainerServiceRegistryLogin':
return OperationType.createContainerServiceRegistryLogin;
case 'RegisterContainerImage':
return OperationType.registerContainerImage;
case 'DeleteContainerImage':
return OperationType.deleteContainerImage;
}
throw Exception('$this is not known in enum OperationType');
}