def setUp(self): super().setUp() self.database_workflow = _database.DatabaseWorkflow(self.credentials) self.sqladmin_service = discovery.build('sqladmin', 'v1beta4', cache_discovery=False, credentials=self.credentials)
def __init__(self, credentials: credentials.Credentials): self._source_generator = source_generator.DjangoSourceFileGenerator() self._billing_client = billing.BillingClient.from_credentials( credentials) self._project_workflow = _project.ProjectWorkflow(credentials) self._database_workflow = _database.DatabaseWorkflow(credentials) self.deploy_workflow = deploy_workflow.DeployWorkflow(credentials) self._enable_service_workflow = _enable_service.EnableServiceWorkflow( credentials) self._service_account_workflow = ( _service_account.ServiceAccountKeyGenerationWorkflow(credentials)) self._static_content_workflow = ( _static_content_serve.StaticContentServeWorkflow(credentials)) self._console_io = io.ConsoleIO()
def __init__(self, credentials: credentials.Credentials, backend: str): self._source_generator = source_generator.DjangoSourceFileGenerator() self._billing_client = billing.BillingClient.from_credentials( credentials) self._project_workflow = _project.ProjectWorkflow(credentials) self._database_workflow = _database.DatabaseWorkflow(credentials) if backend == 'gke': self._deploygke_workflow = _deploygke.DeploygkeWorkflow( credentials) else: self._deploygae_workflow = _deploygae.DeploygaeWorkflow() self._enable_service_workflow = _enable_service.EnableServiceWorkflow( credentials) self._service_account_workflow = ( _service_account.ServiceAccountKeyGenerationWorkflow(credentials)) self._static_content_workflow = ( _static_content_serve.StaticContentServeWorkflow(credentials))