def setUp(self):
     super().setUp()
     self.service_account_workflow = (
         _service_account.ServiceAccountKeyGenerationWorkflow(
             self.credentials))
     self.iam_service = discovery.build('iam',
                                        'v1',
                                        credentials=self.credentials)
     self.cloudresourcemanager_service = discovery.build(
         'cloudresourcemanager', 'v1', credentials=self.credentials)
예제 #2
0
 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()
예제 #3
0
 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))