Google-api-nodejs-client: Please add V1 to Google Cloud Functions

Created on 4 Sep 2018  路  8Comments  路  Source: googleapis/google-api-nodejs-client

Looking at the list here, https://cloud.google.com/deployment-manager/docs/configuration/supported-resource-types, we see that cloudfunctions.v1beta2.function is a supported type.

However, Cloud Functions are now out of beta, and we should upgrade to V1 them before December 4th 2018.

It would be nice to have it added to this list

I have tried deploying with the type cloudfunctions.v1.function, but am getting the error The type [cloudfunctions.v1.function] was not found.

Thanks!

needs more info feature request

All 8 comments

Greetings! I just want to make sure I understand this one. Currently, this library supports the API for v1 of Google Cloud Functions here:
https://github.com/google/google-api-nodejs-client/blob/master/src/apis/cloudfunctions/v1.ts

This is in the v33 release for sure. Are you specifically looking for a feature in this library, or in the deployment manager product?

Hey @JustinBeckwith ,

You're right. I am using V24 of this library and it also has support for v1. I suppose it would be in the deployment manager product to support this type!

Any guidance of how I can request for it?

If you have support, I would really recommend filing there:
https://cloud.google.com/support-hub/

Otherwise, I would suggest here:
https://googlecloudplatform.uservoice.com/forums/302826-cloud-deployment-manager

Hope this helps!

Thanks! I've opened it as an idea on uservoice.

For anyone who'd like to upvote it, here is the link: https://googlecloudplatform.uservoice.com/forums/302826-cloud-deployment-manager/suggestions/35318500-support-for-google-cloud-functions-v1-type-cloudf

EDIT: Deleted the idea on user voice, as it ended up being already supported!

Thanks! I chatted with their PM - you can also feel free to reach out to [email protected], and he'll be happy to help. Good luck!

Cloud functions V1 is accessible through a DM type provider:
type: gcp-types/cloudfunctions-v1:$collection

e.g. https://github.com/GoogleCloudPlatform/deploymentmanager-samples/tree/master/examples/v2/cloud_functions

Supported types are updated often, for the latest list please use:
gcloud beta deployment-manager types list --project gcp-types

provider: gcp-types/cloudfunctions-v1
types:

  • projects.locations
  • projects.locations.functions
  • operations

Thanks guys, I got it working following your example! 馃敟馃敟

Something that was not very obvious with the documentation, but got it from the example, is the parent field.

For anyone else landing on this issue, here is an example of a V1 Cloud Function for Deployment Manager:

{
        type: 'gcp-types/cloudfunctions-v1:projects.locations.functions',
        name: 'my-service-dev-func1',
        properties: {
          parent: 'projects/gcloud-project-id/locations/us-central1',
          location: 'us-central1',
          runtime: 'nodejs8',
          entryPoint: 'func1',
          function: 'my-service-dev-func1',
          availableMemoryMb: 256,
          timeout: '60s',
          sourceArchiveUrl: 'gs://sls-my-service-dev-12345678/some-path/artifact.zip',
          httpsTrigger: {
            url: 'foo',
          },
          labels: {},
        },
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

leecheve picture leecheve  路  3Comments

skiod picture skiod  路  3Comments

ovaris picture ovaris  路  3Comments

ashishbajaj99 picture ashishbajaj99  路  3Comments

lowagner picture lowagner  路  3Comments