mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 10:33:34 +00:00
vendor: update all dependencies
This commit is contained in:
4
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/doc.go
generated
vendored
4
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/doc.go
generated
vendored
@@ -1,10 +1,10 @@
|
||||
// Copyright 2017, Google LLC All rights reserved.
|
||||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
||||
32
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/instance_admin_client.go
generated
vendored
32
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/instance_admin_client.go
generated
vendored
@@ -1,10 +1,10 @@
|
||||
// Copyright 2017, Google LLC All rights reserved.
|
||||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@@ -175,34 +175,6 @@ func (c *InstanceAdminClient) setGoogleClientInfo(keyval ...string) {
|
||||
c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...))
|
||||
}
|
||||
|
||||
// InstanceAdminProjectPath returns the path for the project resource.
|
||||
func InstanceAdminProjectPath(project string) string {
|
||||
return "" +
|
||||
"projects/" +
|
||||
project +
|
||||
""
|
||||
}
|
||||
|
||||
// InstanceAdminInstanceConfigPath returns the path for the instance config resource.
|
||||
func InstanceAdminInstanceConfigPath(project, instanceConfig string) string {
|
||||
return "" +
|
||||
"projects/" +
|
||||
project +
|
||||
"/instanceConfigs/" +
|
||||
instanceConfig +
|
||||
""
|
||||
}
|
||||
|
||||
// InstanceAdminInstancePath returns the path for the instance resource.
|
||||
func InstanceAdminInstancePath(project, instance string) string {
|
||||
return "" +
|
||||
"projects/" +
|
||||
project +
|
||||
"/instances/" +
|
||||
instance +
|
||||
""
|
||||
}
|
||||
|
||||
// ListInstanceConfigs lists the supported instance configurations for a given project.
|
||||
func (c *InstanceAdminClient) ListInstanceConfigs(ctx context.Context, req *instancepb.ListInstanceConfigsRequest, opts ...gax.CallOption) *InstanceConfigIterator {
|
||||
ctx = insertMetadata(ctx, c.xGoogMetadata)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2017, Google LLC All rights reserved.
|
||||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@@ -42,7 +42,7 @@ func ExampleInstanceAdminClient_ListInstanceConfigs() {
|
||||
}
|
||||
|
||||
req := &instancepb.ListInstanceConfigsRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
it := c.ListInstanceConfigs(ctx, req)
|
||||
for {
|
||||
@@ -66,7 +66,7 @@ func ExampleInstanceAdminClient_GetInstanceConfig() {
|
||||
}
|
||||
|
||||
req := &instancepb.GetInstanceConfigRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
resp, err := c.GetInstanceConfig(ctx, req)
|
||||
if err != nil {
|
||||
@@ -84,7 +84,7 @@ func ExampleInstanceAdminClient_ListInstances() {
|
||||
}
|
||||
|
||||
req := &instancepb.ListInstancesRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
it := c.ListInstances(ctx, req)
|
||||
for {
|
||||
@@ -108,7 +108,7 @@ func ExampleInstanceAdminClient_GetInstance() {
|
||||
}
|
||||
|
||||
req := &instancepb.GetInstanceRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
resp, err := c.GetInstance(ctx, req)
|
||||
if err != nil {
|
||||
@@ -126,7 +126,7 @@ func ExampleInstanceAdminClient_CreateInstance() {
|
||||
}
|
||||
|
||||
req := &instancepb.CreateInstanceRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
op, err := c.CreateInstance(ctx, req)
|
||||
if err != nil {
|
||||
@@ -149,7 +149,7 @@ func ExampleInstanceAdminClient_UpdateInstance() {
|
||||
}
|
||||
|
||||
req := &instancepb.UpdateInstanceRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
op, err := c.UpdateInstance(ctx, req)
|
||||
if err != nil {
|
||||
@@ -172,7 +172,7 @@ func ExampleInstanceAdminClient_DeleteInstance() {
|
||||
}
|
||||
|
||||
req := &instancepb.DeleteInstanceRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
err = c.DeleteInstance(ctx, req)
|
||||
if err != nil {
|
||||
@@ -188,7 +188,7 @@ func ExampleInstanceAdminClient_SetIamPolicy() {
|
||||
}
|
||||
|
||||
req := &iampb.SetIamPolicyRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
resp, err := c.SetIamPolicy(ctx, req)
|
||||
if err != nil {
|
||||
@@ -206,7 +206,7 @@ func ExampleInstanceAdminClient_GetIamPolicy() {
|
||||
}
|
||||
|
||||
req := &iampb.GetIamPolicyRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
resp, err := c.GetIamPolicy(ctx, req)
|
||||
if err != nil {
|
||||
@@ -224,7 +224,7 @@ func ExampleInstanceAdminClient_TestIamPermissions() {
|
||||
}
|
||||
|
||||
req := &iampb.TestIamPermissionsRequest{
|
||||
// TODO: Fill request struct fields.
|
||||
// TODO: Fill request struct fields.
|
||||
}
|
||||
resp, err := c.TestIamPermissions(ctx, req)
|
||||
if err != nil {
|
||||
|
||||
40
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/mock_test.go
generated
vendored
40
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/mock_test.go
generated
vendored
@@ -1,10 +1,10 @@
|
||||
// Copyright 2017, Google LLC All rights reserved.
|
||||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@@ -227,7 +227,7 @@ func TestInstanceAdminListInstanceConfigs(t *testing.T) {
|
||||
|
||||
mockInstanceAdmin.resps = append(mockInstanceAdmin.resps[:0], expectedResponse)
|
||||
|
||||
var formattedParent string = InstanceAdminProjectPath("[PROJECT]")
|
||||
var formattedParent string = fmt.Sprintf("projects/%s", "[PROJECT]")
|
||||
var request = &instancepb.ListInstanceConfigsRequest{
|
||||
Parent: formattedParent,
|
||||
}
|
||||
@@ -266,7 +266,7 @@ func TestInstanceAdminListInstanceConfigsError(t *testing.T) {
|
||||
errCode := codes.PermissionDenied
|
||||
mockInstanceAdmin.err = gstatus.Error(errCode, "test error")
|
||||
|
||||
var formattedParent string = InstanceAdminProjectPath("[PROJECT]")
|
||||
var formattedParent string = fmt.Sprintf("projects/%s", "[PROJECT]")
|
||||
var request = &instancepb.ListInstanceConfigsRequest{
|
||||
Parent: formattedParent,
|
||||
}
|
||||
@@ -298,7 +298,7 @@ func TestInstanceAdminGetInstanceConfig(t *testing.T) {
|
||||
|
||||
mockInstanceAdmin.resps = append(mockInstanceAdmin.resps[:0], expectedResponse)
|
||||
|
||||
var formattedName string = InstanceAdminInstanceConfigPath("[PROJECT]", "[INSTANCE_CONFIG]")
|
||||
var formattedName string = fmt.Sprintf("projects/%s/instanceConfigs/%s", "[PROJECT]", "[INSTANCE_CONFIG]")
|
||||
var request = &instancepb.GetInstanceConfigRequest{
|
||||
Name: formattedName,
|
||||
}
|
||||
@@ -327,7 +327,7 @@ func TestInstanceAdminGetInstanceConfigError(t *testing.T) {
|
||||
errCode := codes.PermissionDenied
|
||||
mockInstanceAdmin.err = gstatus.Error(errCode, "test error")
|
||||
|
||||
var formattedName string = InstanceAdminInstanceConfigPath("[PROJECT]", "[INSTANCE_CONFIG]")
|
||||
var formattedName string = fmt.Sprintf("projects/%s/instanceConfigs/%s", "[PROJECT]", "[INSTANCE_CONFIG]")
|
||||
var request = &instancepb.GetInstanceConfigRequest{
|
||||
Name: formattedName,
|
||||
}
|
||||
@@ -360,7 +360,7 @@ func TestInstanceAdminListInstances(t *testing.T) {
|
||||
|
||||
mockInstanceAdmin.resps = append(mockInstanceAdmin.resps[:0], expectedResponse)
|
||||
|
||||
var formattedParent string = InstanceAdminProjectPath("[PROJECT]")
|
||||
var formattedParent string = fmt.Sprintf("projects/%s", "[PROJECT]")
|
||||
var request = &instancepb.ListInstancesRequest{
|
||||
Parent: formattedParent,
|
||||
}
|
||||
@@ -399,7 +399,7 @@ func TestInstanceAdminListInstancesError(t *testing.T) {
|
||||
errCode := codes.PermissionDenied
|
||||
mockInstanceAdmin.err = gstatus.Error(errCode, "test error")
|
||||
|
||||
var formattedParent string = InstanceAdminProjectPath("[PROJECT]")
|
||||
var formattedParent string = fmt.Sprintf("projects/%s", "[PROJECT]")
|
||||
var request = &instancepb.ListInstancesRequest{
|
||||
Parent: formattedParent,
|
||||
}
|
||||
@@ -435,7 +435,7 @@ func TestInstanceAdminGetInstance(t *testing.T) {
|
||||
|
||||
mockInstanceAdmin.resps = append(mockInstanceAdmin.resps[:0], expectedResponse)
|
||||
|
||||
var formattedName string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedName string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var request = &instancepb.GetInstanceRequest{
|
||||
Name: formattedName,
|
||||
}
|
||||
@@ -464,7 +464,7 @@ func TestInstanceAdminGetInstanceError(t *testing.T) {
|
||||
errCode := codes.PermissionDenied
|
||||
mockInstanceAdmin.err = gstatus.Error(errCode, "test error")
|
||||
|
||||
var formattedName string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedName string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var request = &instancepb.GetInstanceRequest{
|
||||
Name: formattedName,
|
||||
}
|
||||
@@ -508,7 +508,7 @@ func TestInstanceAdminCreateInstance(t *testing.T) {
|
||||
Result: &longrunningpb.Operation_Response{Response: any},
|
||||
})
|
||||
|
||||
var formattedParent string = InstanceAdminProjectPath("[PROJECT]")
|
||||
var formattedParent string = fmt.Sprintf("projects/%s", "[PROJECT]")
|
||||
var instanceId string = "instanceId-2101995259"
|
||||
var instance *instancepb.Instance = &instancepb.Instance{}
|
||||
var request = &instancepb.CreateInstanceRequest{
|
||||
@@ -555,7 +555,7 @@ func TestInstanceAdminCreateInstanceError(t *testing.T) {
|
||||
},
|
||||
})
|
||||
|
||||
var formattedParent string = InstanceAdminProjectPath("[PROJECT]")
|
||||
var formattedParent string = fmt.Sprintf("projects/%s", "[PROJECT]")
|
||||
var instanceId string = "instanceId-2101995259"
|
||||
var instance *instancepb.Instance = &instancepb.Instance{}
|
||||
var request = &instancepb.CreateInstanceRequest{
|
||||
@@ -685,7 +685,7 @@ func TestInstanceAdminDeleteInstance(t *testing.T) {
|
||||
|
||||
mockInstanceAdmin.resps = append(mockInstanceAdmin.resps[:0], expectedResponse)
|
||||
|
||||
var formattedName string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedName string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var request = &instancepb.DeleteInstanceRequest{
|
||||
Name: formattedName,
|
||||
}
|
||||
@@ -711,7 +711,7 @@ func TestInstanceAdminDeleteInstanceError(t *testing.T) {
|
||||
errCode := codes.PermissionDenied
|
||||
mockInstanceAdmin.err = gstatus.Error(errCode, "test error")
|
||||
|
||||
var formattedName string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedName string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var request = &instancepb.DeleteInstanceRequest{
|
||||
Name: formattedName,
|
||||
}
|
||||
@@ -742,7 +742,7 @@ func TestInstanceAdminSetIamPolicy(t *testing.T) {
|
||||
|
||||
mockInstanceAdmin.resps = append(mockInstanceAdmin.resps[:0], expectedResponse)
|
||||
|
||||
var formattedResource string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedResource string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var policy *iampb.Policy = &iampb.Policy{}
|
||||
var request = &iampb.SetIamPolicyRequest{
|
||||
Resource: formattedResource,
|
||||
@@ -773,7 +773,7 @@ func TestInstanceAdminSetIamPolicyError(t *testing.T) {
|
||||
errCode := codes.PermissionDenied
|
||||
mockInstanceAdmin.err = gstatus.Error(errCode, "test error")
|
||||
|
||||
var formattedResource string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedResource string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var policy *iampb.Policy = &iampb.Policy{}
|
||||
var request = &iampb.SetIamPolicyRequest{
|
||||
Resource: formattedResource,
|
||||
@@ -807,7 +807,7 @@ func TestInstanceAdminGetIamPolicy(t *testing.T) {
|
||||
|
||||
mockInstanceAdmin.resps = append(mockInstanceAdmin.resps[:0], expectedResponse)
|
||||
|
||||
var formattedResource string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedResource string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var request = &iampb.GetIamPolicyRequest{
|
||||
Resource: formattedResource,
|
||||
}
|
||||
@@ -836,7 +836,7 @@ func TestInstanceAdminGetIamPolicyError(t *testing.T) {
|
||||
errCode := codes.PermissionDenied
|
||||
mockInstanceAdmin.err = gstatus.Error(errCode, "test error")
|
||||
|
||||
var formattedResource string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedResource string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var request = &iampb.GetIamPolicyRequest{
|
||||
Resource: formattedResource,
|
||||
}
|
||||
@@ -863,7 +863,7 @@ func TestInstanceAdminTestIamPermissions(t *testing.T) {
|
||||
|
||||
mockInstanceAdmin.resps = append(mockInstanceAdmin.resps[:0], expectedResponse)
|
||||
|
||||
var formattedResource string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedResource string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var permissions []string = nil
|
||||
var request = &iampb.TestIamPermissionsRequest{
|
||||
Resource: formattedResource,
|
||||
@@ -894,7 +894,7 @@ func TestInstanceAdminTestIamPermissionsError(t *testing.T) {
|
||||
errCode := codes.PermissionDenied
|
||||
mockInstanceAdmin.err = gstatus.Error(errCode, "test error")
|
||||
|
||||
var formattedResource string = InstanceAdminInstancePath("[PROJECT]", "[INSTANCE]")
|
||||
var formattedResource string = fmt.Sprintf("projects/%s/instances/%s", "[PROJECT]", "[INSTANCE]")
|
||||
var permissions []string = nil
|
||||
var request = &iampb.TestIamPermissionsRequest{
|
||||
Resource: formattedResource,
|
||||
|
||||
55
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/path_funcs.go
generated
vendored
Normal file
55
vendor/cloud.google.com/go/spanner/admin/instance/apiv1/path_funcs.go
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package instance
|
||||
|
||||
// InstanceAdminProjectPath returns the path for the project resource.
|
||||
//
|
||||
// Deprecated: Use
|
||||
// fmt.Sprintf("projects/%s", project)
|
||||
// instead.
|
||||
func InstanceAdminProjectPath(project string) string {
|
||||
return "" +
|
||||
"projects/" +
|
||||
project +
|
||||
""
|
||||
}
|
||||
|
||||
// InstanceAdminInstanceConfigPath returns the path for the instance config resource.
|
||||
//
|
||||
// Deprecated: Use
|
||||
// fmt.Sprintf("projects/%s/instanceConfigs/%s", project, instanceConfig)
|
||||
// instead.
|
||||
func InstanceAdminInstanceConfigPath(project, instanceConfig string) string {
|
||||
return "" +
|
||||
"projects/" +
|
||||
project +
|
||||
"/instanceConfigs/" +
|
||||
instanceConfig +
|
||||
""
|
||||
}
|
||||
|
||||
// InstanceAdminInstancePath returns the path for the instance resource.
|
||||
//
|
||||
// Deprecated: Use
|
||||
// fmt.Sprintf("projects/%s/instances/%s", project, instance)
|
||||
// instead.
|
||||
func InstanceAdminInstancePath(project, instance string) string {
|
||||
return "" +
|
||||
"projects/" +
|
||||
project +
|
||||
"/instances/" +
|
||||
instance +
|
||||
""
|
||||
}
|
||||
Reference in New Issue
Block a user