You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.5 KiB

  1. // Copyright 2018 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // https://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // AUTO-GENERATED CODE. DO NOT EDIT.
  15. // Package datatransfer is an auto-generated package for the
  16. // BigQuery Data Transfer API.
  17. //
  18. // NOTE: This package is in alpha. It is not stable, and is likely to change.
  19. //
  20. // Transfers data from partner SaaS applications to Google BigQuery on a
  21. // scheduled, managed basis.
  22. package datatransfer // import "cloud.google.com/go/bigquery/datatransfer/apiv1"
  23. import (
  24. "golang.org/x/net/context"
  25. "google.golang.org/grpc/metadata"
  26. )
  27. func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context {
  28. out, _ := metadata.FromOutgoingContext(ctx)
  29. out = out.Copy()
  30. for _, md := range mds {
  31. for k, v := range md {
  32. out[k] = append(out[k], v...)
  33. }
  34. }
  35. return metadata.NewOutgoingContext(ctx, out)
  36. }
  37. // DefaultAuthScopes reports the default set of authentication scopes to use with this package.
  38. func DefaultAuthScopes() []string {
  39. return []string{
  40. "https://www.googleapis.com/auth/cloud-platform",
  41. }
  42. }