Skip to content

Commit

Permalink
Add Filestore client to config. (#2074)
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-henderson authored Sep 18, 2018
1 parent 9311331 commit 46d297b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions google/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"google.golang.org/api/dataproc/v1"
"google.golang.org/api/dns/v1"
dnsBeta "google.golang.org/api/dns/v1beta2"
file "google.golang.org/api/file/v1beta1"
"google.golang.org/api/iam/v1"
cloudlogging "google.golang.org/api/logging/v2"
"google.golang.org/api/pubsub/v1"
Expand Down Expand Up @@ -70,6 +71,7 @@ type Config struct {
clientDataflow *dataflow.Service
clientDns *dns.Service
clientDnsBeta *dnsBeta.Service
clientFile *file.Service
clientKms *cloudkms.Service
clientLogging *cloudlogging.Service
clientPubsub *pubsub.Service
Expand Down Expand Up @@ -348,6 +350,12 @@ func (c *Config) loadAndValidate() error {
}
c.clientDataproc.UserAgent = userAgent

c.clientFile, err = file.New(client)
if err != nil {
return err
}
c.clientFile.UserAgent = userAgent

log.Printf("[INFO] Instantiating Google Cloud IoT Core Client...")
c.clientCloudIoT, err = cloudiot.New(client)
if err != nil {
Expand Down

0 comments on commit 46d297b

Please sign in to comment.