def build()

in google_cloud_automlops/provisioning/gcloud.py [0:0]


    def build(self):
        """Creates scripts/provision_resources.sh, which contains all GCloud commands needed to
        build the system's infrastructure.
        """
        write_and_chmod(
            GENERATED_RESOURCES_SH_FILE,
            render_jinja(
                template_path=import_files(GCLOUD_TEMPLATES_PATH) / 'provision_resources.sh.j2',
                artifact_repo_location=self.artifact_repo_location,
                artifact_repo_name=self.artifact_repo_name,
                artifact_repo_type=self.artifact_repo_type,
                base_dir=BASE_DIR,
                build_trigger_location=self.build_trigger_location,
                build_trigger_name=self.build_trigger_name,
                deployment_framework=self.deployment_framework,
                generated_license=GENERATED_LICENSE,
                generated_parameter_values_path=GENERATED_PARAMETER_VALUES_PATH,
                naming_prefix=self.naming_prefix,
                pipeline_job_runner_service_account=self.pipeline_job_runner_service_account,
                pipeline_job_submission_service_location=self.pipeline_job_submission_service_location,
                pipeline_job_submission_service_name=self.pipeline_job_submission_service_name,
                pipeline_job_submission_service_type=self.pipeline_job_submission_service_type,
                project_id=self.project_id,
                pubsub_topic_name=self.pubsub_topic_name,
                required_apis=self.required_apis,
                required_iam_roles=IAM_ROLES_RUNNER_SA,
                schedule_location=self.schedule_location,
                schedule_name=self.schedule_name,
                schedule_pattern=self.schedule_pattern,
                source_repo_branch=self.source_repo_branch,
                source_repo_name=self.source_repo_name,
                source_repo_type=self.source_repo_type,
                storage_bucket_location=self.storage_bucket_location,
                storage_bucket_name=self.storage_bucket_name,
                use_ci=self.use_ci,
                vpc_connector=self.vpc_connector))