mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 17:52:38 +00:00
Vendored updated bigtable client.
This commit is contained in:
parent
5bceaef26f
commit
cfe9e4afb4
21
vendor/cloud.google.com/go/bigtable/admin.go
generated
vendored
21
vendor/cloud.google.com/go/bigtable/admin.go
generated
vendored
|
@ -369,3 +369,24 @@ func (iac *InstanceAdminClient) Instances(ctx context.Context) ([]*InstanceInfo,
|
||||||
}
|
}
|
||||||
return is, nil
|
return is, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// InstanceInfo returns information about an instance.
|
||||||
|
func (iac *InstanceAdminClient) InstanceInfo(ctx context.Context, instanceId string) (*InstanceInfo, error) {
|
||||||
|
ctx = mergeOutgoingMetadata(ctx, iac.md)
|
||||||
|
req := &btapb.GetInstanceRequest{
|
||||||
|
Name: "projects/" + iac.project + "/instances/" + instanceId,
|
||||||
|
}
|
||||||
|
res, err := iac.iClient.GetInstance(ctx, req)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
m := instanceNameRegexp.FindStringSubmatch(res.Name)
|
||||||
|
if m == nil {
|
||||||
|
return nil, fmt.Errorf("malformed instance name %q", res.Name)
|
||||||
|
}
|
||||||
|
return &InstanceInfo{
|
||||||
|
Name: m[2],
|
||||||
|
DisplayName: res.DisplayName,
|
||||||
|
}, nil
|
||||||
|
}
|
||||||
|
|
2
vendor/cloud.google.com/go/bigtable/bigtable.go
generated
vendored
2
vendor/cloud.google.com/go/bigtable/bigtable.go
generated
vendored
|
@ -73,7 +73,7 @@ func (c *Client) Close() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
idempotentRetryCodes = []codes.Code{codes.DeadlineExceeded, codes.Unavailable, codes.Aborted, codes.Internal}
|
idempotentRetryCodes = []codes.Code{codes.DeadlineExceeded, codes.Unavailable, codes.Aborted}
|
||||||
isIdempotentRetryCode = make(map[codes.Code]bool)
|
isIdempotentRetryCode = make(map[codes.Code]bool)
|
||||||
retryOptions = []gax.CallOption{
|
retryOptions = []gax.CallOption{
|
||||||
gax.WithDelayTimeoutSettings(100*time.Millisecond, 2000*time.Millisecond, 1.2),
|
gax.WithDelayTimeoutSettings(100*time.Millisecond, 2000*time.Millisecond, 1.2),
|
||||||
|
|
4
vendor/cloud.google.com/go/bigtable/filter.go
generated
vendored
4
vendor/cloud.google.com/go/bigtable/filter.go
generated
vendored
|
@ -154,7 +154,7 @@ func (stripValueFilter) proto() *btpb.RowFilter {
|
||||||
return &btpb.RowFilter{Filter: &btpb.RowFilter_StripValueTransformer{true}}
|
return &btpb.RowFilter{Filter: &btpb.RowFilter_StripValueTransformer{true}}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TimestampRangeFilter returns a filter that matches any rows whose timestamp is within the given time bounds. A zero
|
// TimestampRangeFilter returns a filter that matches any cells whose timestamp is within the given time bounds. A zero
|
||||||
// time means no bound.
|
// time means no bound.
|
||||||
// The timestamp will be truncated to millisecond granularity.
|
// The timestamp will be truncated to millisecond granularity.
|
||||||
func TimestampRangeFilter(startTime time.Time, endTime time.Time) Filter {
|
func TimestampRangeFilter(startTime time.Time, endTime time.Time) Filter {
|
||||||
|
@ -168,7 +168,7 @@ func TimestampRangeFilter(startTime time.Time, endTime time.Time) Filter {
|
||||||
return trf
|
return trf
|
||||||
}
|
}
|
||||||
|
|
||||||
// TimestampRangeFilterMicros returns a filter that matches any rows whose timestamp is within the given time bounds,
|
// TimestampRangeFilterMicros returns a filter that matches any cells whose timestamp is within the given time bounds,
|
||||||
// specified in units of microseconds since 1 January 1970. A zero value for the end time is interpreted as no bound.
|
// specified in units of microseconds since 1 January 1970. A zero value for the end time is interpreted as no bound.
|
||||||
// The timestamp will be truncated to millisecond granularity.
|
// The timestamp will be truncated to millisecond granularity.
|
||||||
func TimestampRangeFilterMicros(startTime Timestamp, endTime Timestamp) Filter {
|
func TimestampRangeFilterMicros(startTime Timestamp, endTime Timestamp) Filter {
|
||||||
|
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
|
@ -3,10 +3,10 @@
|
||||||
"ignore": "appengine test github.com/hashicorp/nomad/",
|
"ignore": "appengine test github.com/hashicorp/nomad/",
|
||||||
"package": [
|
"package": [
|
||||||
{
|
{
|
||||||
"checksumSHA1": "fEobtlzPZ57VXi864qMmblI2gsA=",
|
"checksumSHA1": "NrTYYg3++pBxH1Z8xjVg6ssQTYY=",
|
||||||
"path": "cloud.google.com/go/bigtable",
|
"path": "cloud.google.com/go/bigtable",
|
||||||
"revision": "69931d826ffbbcb4f8451b42d5cf7fc2ac6c7443",
|
"revision": "f6bedb5a8dbce75418580cedf5c2434c78d06cfa",
|
||||||
"revisionTime": "2017-06-09T14:31:37Z"
|
"revisionTime": "2017-06-27T21:12:08Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "B1HkIrBavSgy6ntVyGr/eNUy44I=",
|
"checksumSHA1": "B1HkIrBavSgy6ntVyGr/eNUy44I=",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user