Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Added support for Datastream service & for ConnectionProfile resource…
Browse files Browse the repository at this point in the history
… (#6479) (#952)

* Added datastream connection profile

* Updated resource and tests to get to passing basic/full tests

* Added update test

* Corrected license dates

* Moved url params into parameters array

* Removed long timeouts

* Ensured that update test actually tests update

* Made update test move from gcs bucket to postgresql database instance

* Switched to handwritten operation due to unexpected error structure

* Added authorized networks to sql database instance

* fixed whitespace

* Re-added async definitions

Async definitions are used to figure out whether to call async code even if the async code isn't autogenerated

* Added postgresql password to importstateverifyignore

Signed-off-by: Modular Magician <[email protected]>

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Sep 6, 2022
1 parent b7fe306 commit 35a7d3e
Show file tree
Hide file tree
Showing 2 changed files with 508 additions and 0 deletions.
4 changes: 4 additions & 0 deletions converters/google/resources/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ type Config struct {
DataprocBasePath string
DataprocMetastoreBasePath string
DatastoreBasePath string
DatastreamBasePath string
DeploymentManagerBasePath string
DialogflowBasePath string
DialogflowCXBasePath string
Expand Down Expand Up @@ -286,6 +287,7 @@ const DataLossPreventionBasePathKey = "DataLossPrevention"
const DataprocBasePathKey = "Dataproc"
const DataprocMetastoreBasePathKey = "DataprocMetastore"
const DatastoreBasePathKey = "Datastore"
const DatastreamBasePathKey = "Datastream"
const DeploymentManagerBasePathKey = "DeploymentManager"
const DialogflowBasePathKey = "Dialogflow"
const DialogflowCXBasePathKey = "DialogflowCX"
Expand Down Expand Up @@ -374,6 +376,7 @@ var DefaultBasePaths = map[string]string{
DataprocBasePathKey: "https://dataproc.googleapis.com/v1/",
DataprocMetastoreBasePathKey: "https://metastore.googleapis.com/v1/",
DatastoreBasePathKey: "https://datastore.googleapis.com/v1/",
DatastreamBasePathKey: "https://datastream.googleapis.com/v1/",
DeploymentManagerBasePathKey: "https://www.googleapis.com/deploymentmanager/v2/",
DialogflowBasePathKey: "https://dialogflow.googleapis.com/v2/",
DialogflowCXBasePathKey: "https://{{location}}-dialogflow.googleapis.com/v3/",
Expand Down Expand Up @@ -1224,6 +1227,7 @@ func ConfigureBasePaths(c *Config) {
c.DataprocBasePath = DefaultBasePaths[DataprocBasePathKey]
c.DataprocMetastoreBasePath = DefaultBasePaths[DataprocMetastoreBasePathKey]
c.DatastoreBasePath = DefaultBasePaths[DatastoreBasePathKey]
c.DatastreamBasePath = DefaultBasePaths[DatastreamBasePathKey]
c.DeploymentManagerBasePath = DefaultBasePaths[DeploymentManagerBasePathKey]
c.DialogflowBasePath = DefaultBasePaths[DialogflowBasePathKey]
c.DialogflowCXBasePath = DefaultBasePaths[DialogflowCXBasePathKey]
Expand Down
Loading

0 comments on commit 35a7d3e

Please sign in to comment.