It's hard to navigate through all the docs given the number of services and properties involved in creating templates for the Deployment Manager. I wonder if there is a solution for that. I imagine that code editors like VS-Code are supposed to have autocomplete, maybe GCP provides something to help write templates faster.
I doubt that there is something like autocomplete for Deployment Manager Templates.
Deployment Manager accepts both Jinja and Python syntax in the same configuration as mentioned in
Template Syntax
Deployment Manager accepts both Jinja and Python templates. You can import templates in both languages in the same configuration.
As OP stkvtflw mentioned, there is already documentation which covers all schemas in GCP Documentation - Supported resource types.
Additional samples can be found in Github repository, which can be found here
Regarding the possibility to use autocomplete in Deployment Manager, there is a still opened Github Feature Request to Add support for auto completion of configuration files.
In addition to that, you could file a Feature Request in Google Issue Tracker.
Related
I'm exploring using AWS Amplify for a personal project. I'm finding many tutorials for data binding, using collections, building forms with the Amplify UI... all features that I am excited to use. However, I'm struggling to figure out how to use many of Amplify Studio's features without enabling Amplify DataStore, a feature that I do not need for my project (and would prefer the simplicity of an architecture without it).
I can't seem to find any documentation anywhere (in AWS docs, stackoverflow answers, google searches...) that says enabling DataStore is required to bind my models to my UI components using Amplify's UI Library.
The only message that comes close is Enable DataStore to edit your data model visually on the Data tab in Amplify Studio, suggesting that enabling DataStore is required to modify the schema.graphql file using the UI, which feels very arbitrary to me.
I can't understand why DataStore would be mandatory for so many of Amplify Studio's features, and since I can't find any documentation specifying this... I feel like I'm misunderstanding something. But Amplify Studio also seems to be hinting that DataStore is indeed required.
Can I leverage AWS Amplify Studio's UI Library feature to bind my UI components to my data models without enabling DataStore?
Digging more through the AWS documentation, I came across this:
https://docs.amplify.aws/console/data/data-model/#data-modeling-in-amplify-studio
All data models built with Studio work with Amplify DataStore out-of-the-box.
Another way to word that could be:
Building a data model with Amplify Studio requires enabling Amplify DataStore for your project.
Looks like I have to accept enabling Amplify DataStore for my project in order to leverage the rest of Amplify Studio's features.
I am working on a project that, among other things, automatically generates Swagger APIs for Python projects. One thing that I have noticed is that the curl text exposes passwords if the API requires those. Since there's no way to mask the passwords as of now (https://github.com/swagger-api/swagger-ui/issues/5025), it seems like the easiest thing to do is to simply disable the curl text so that I can screenshare my Swagger API without exposing my password.
In another issue (https://github.com/swagger-api/swagger-ui/issues/5020), a plugin is shown that can disable the curl text.
However, I'm totally stumped on how to actually import and use this plugin. There's lots of documentation about how to write plugins, and none on how to import them. I can see that I can load plugins using the plugins option in https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/, but I don't know how where to put the code.
As Helen alludes to, the answer to your question depends on your setup. However, I would hazard to guess that you will need to configure the SwaggerUI object by running an "unbundled" version of the app. You might think of this as creating a custom entrypoint to a docker container, say.
For example, the link you provide shows suggestions for running a customised version of SwaggerUI. Those customisations are written in JavaScript, so any old HTML page with the necessary dependencies in place which loads the script you write to configure SwaggerUI would answer the question of "where to put that code".
The details would depend on any frameworks you are or are not using.
Does anyone have experience in this topic? Is it fully incompatible or might it be possible to customize certain parts of the app to make it work.
multi-tenancy is not yet fully supported by Wagtail.
Although, as mentioned here in docs, there are some features that are supported.
You may find this blog helpful. Also here is a repository that implements basic features of multi tenancy with django and wagtail and you can play around with it.
Here are some other CMS (build on top of Django) you can try.
I think as long as there are no raw sql queries in wagtail's source code we are good to use django-tenents, the layer that django-tenets is working on is on top of django orm it self.
see wagtail-tenents
I'm considering using GraphQL with a Django backend service but I couldn't find much information regarding the API documentation. I need some solution to dynamically generate the documentation, perhaps like npm's graphql-docs with a result similar to GitHub's API docs.
Is it feasible to accomplish with graphene-django? If not, what's a good alternative for a python environment?
Yes, it's very easy to do by using GraphiQL, which is embedded in to Graphene.
The instructions on how to integrate this with Graphene are here in the graphene-python documentation. --- basically you need to add the parameter graphiql=True when setting up the API route in your urls.py file.
After it is set up, if go to your API endpoint in your browser, you'll see a nice interface for sending API calls, getting API responses, and reading documentation for both queries and mutations. The documentation is initially hidden on the right until you click on the "< Docs" link.
I have started Sitecore learning few months ago.That time first question come in my mind is that how can I develop module? but can not able to find documentation. Can anybody provide me documentation how can I develop custom module?
If you mean you would like to create a module for the Sitecore marketplace, as others have done, then the process is fairly simple.
Write your code (ASCX, ASPX, CS, JS, etc.)
Create your Sitecore items (Layouts, renderings/sublayouts, custom buttons, etc.)
Create your configuration files (if necessary) for the App_Config\Include folder.
Build your solution and test it in a Sitecore instance locally.
Package the published files and item together using the Sitecore packaging utility.
Contribute your module on the marketplace and upload the package for review.
What you are hoping to achieve here is that another person could grab your package, install it on their system, and be able to use it without needing to recompile your source code.
If you want to develop a module, come up with the idea and then build it.
You can then submit it to the Sitecore a Marketplace under the contribute section.
https://marketplace.sitecore.net/Contribute.aspx?sc_lang=en
Typically you'll submit a package to this section and documentation on how to setup and use the module.
Sitecore will then test the module and inform you whether it is suitable for the marketplace. Your module will then be published on the marketplace ready for others to download.
When developing your module you should consider compatibility with Sitecore versions, and you should also test it thoroughly.
Here's some more info on best practices when building modules:
https://kb.sitecore.net/articles/831724