| { |
| "clientLibrary": { |
| "name": "cloud.google.com/go/cloudbuild/apiv2", |
| "version": "1.16.1", |
| "language": "GO", |
| "apis": [ |
| { |
| "id": "google.devtools.cloudbuild.v2", |
| "version": "v2" |
| } |
| ] |
| }, |
| "snippets": [ |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_BatchCreateRepositories_sync", |
| "title": "cloudbuild BatchCreateRepositories Sample", |
| "description": "BatchCreateRepositories creates multiple repositories inside a connection.", |
| "file": "RepositoryManagerClient/BatchCreateRepositories/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "BatchCreateRepositories", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.BatchCreateRepositories", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.BatchCreateRepositoriesRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "BatchCreateRepositoriesOperation", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "BatchCreateRepositories", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.BatchCreateRepositories", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_CancelOperation_sync", |
| "title": "cloudbuild CancelOperation Sample", |
| "description": "CancelOperation is a utility method from google.longrunning.Operations.", |
| "file": "RepositoryManagerClient/CancelOperation/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CancelOperation", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.CancelOperation", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "longrunningpb.CancelOperationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "CancelOperation", |
| "fullName": "google.longrunning.Operations.CancelOperation", |
| "service": { |
| "shortName": "Operations", |
| "fullName": "google.longrunning.Operations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 51, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_CreateConnection_sync", |
| "title": "cloudbuild CreateConnection Sample", |
| "description": "CreateConnection creates a Connection.", |
| "file": "RepositoryManagerClient/CreateConnection/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateConnection", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.CreateConnection", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.CreateConnectionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "CreateConnectionOperation", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "CreateConnection", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.CreateConnection", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_CreateRepository_sync", |
| "title": "cloudbuild CreateRepository Sample", |
| "description": "CreateRepository creates a Repository.", |
| "file": "RepositoryManagerClient/CreateRepository/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateRepository", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.CreateRepository", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.CreateRepositoryRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "CreateRepositoryOperation", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "CreateRepository", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.CreateRepository", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_DeleteConnection_sync", |
| "title": "cloudbuild DeleteConnection Sample", |
| "description": "DeleteConnection deletes a single connection.", |
| "file": "RepositoryManagerClient/DeleteConnection/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteConnection", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.DeleteConnection", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.DeleteConnectionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "DeleteConnectionOperation", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "DeleteConnection", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.DeleteConnection", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 56, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_DeleteRepository_sync", |
| "title": "cloudbuild DeleteRepository Sample", |
| "description": "DeleteRepository deletes a single repository.", |
| "file": "RepositoryManagerClient/DeleteRepository/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteRepository", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.DeleteRepository", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.DeleteRepositoryRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "DeleteRepositoryOperation", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "DeleteRepository", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.DeleteRepository", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 56, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_FetchGitRefs_sync", |
| "title": "cloudbuild FetchGitRefs Sample", |
| "description": "FetchGitRefs fetch the list of branches or tags for a given repository.", |
| "file": "RepositoryManagerClient/FetchGitRefs/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "FetchGitRefs", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.FetchGitRefs", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.FetchGitRefsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*cloudbuildpb.FetchGitRefsResponse", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "FetchGitRefs", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchGitRefs", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_FetchLinkableRepositories_sync", |
| "title": "cloudbuild FetchLinkableRepositories Sample", |
| "description": "FetchLinkableRepositories fetchLinkableRepositories get repositories from SCM that are\naccessible and could be added to the connection.", |
| "file": "RepositoryManagerClient/FetchLinkableRepositories/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "FetchLinkableRepositories", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.FetchLinkableRepositories", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.FetchLinkableRepositoriesRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "RepositoryIterator", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "FetchLinkableRepositories", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchLinkableRepositories", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_FetchReadToken_sync", |
| "title": "cloudbuild FetchReadToken Sample", |
| "description": "FetchReadToken fetches read token of a given repository.", |
| "file": "RepositoryManagerClient/FetchReadToken/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "FetchReadToken", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.FetchReadToken", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.FetchReadTokenRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*cloudbuildpb.FetchReadTokenResponse", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "FetchReadToken", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchReadToken", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_FetchReadWriteToken_sync", |
| "title": "cloudbuild FetchReadWriteToken Sample", |
| "description": "FetchReadWriteToken fetches read/write token of a given repository.", |
| "file": "RepositoryManagerClient/FetchReadWriteToken/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "FetchReadWriteToken", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.FetchReadWriteToken", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.FetchReadWriteTokenRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*cloudbuildpb.FetchReadWriteTokenResponse", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "FetchReadWriteToken", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchReadWriteToken", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_GetConnection_sync", |
| "title": "cloudbuild GetConnection Sample", |
| "description": "GetConnection gets details of a single connection.", |
| "file": "RepositoryManagerClient/GetConnection/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetConnection", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.GetConnection", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.GetConnectionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*cloudbuildpb.Connection", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "GetConnection", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.GetConnection", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_GetIamPolicy_sync", |
| "title": "cloudbuild GetIamPolicy Sample", |
| "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", |
| "file": "RepositoryManagerClient/GetIamPolicy/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetIamPolicy", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.GetIamPolicy", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "iampb.GetIamPolicyRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*iampb.Policy", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "GetIamPolicy", |
| "fullName": "google.iam.v1.IAMPolicy.GetIamPolicy", |
| "service": { |
| "shortName": "IAMPolicy", |
| "fullName": "google.iam.v1.IAMPolicy" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_GetOperation_sync", |
| "title": "cloudbuild GetOperation Sample", |
| "description": "GetOperation is a utility method from google.longrunning.Operations.", |
| "file": "RepositoryManagerClient/GetOperation/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetOperation", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.GetOperation", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "longrunningpb.GetOperationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*longrunningpb.Operation", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "GetOperation", |
| "fullName": "google.longrunning.Operations.GetOperation", |
| "service": { |
| "shortName": "Operations", |
| "fullName": "google.longrunning.Operations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_GetRepository_sync", |
| "title": "cloudbuild GetRepository Sample", |
| "description": "GetRepository gets details of a single repository.", |
| "file": "RepositoryManagerClient/GetRepository/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetRepository", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.GetRepository", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.GetRepositoryRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*cloudbuildpb.Repository", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "GetRepository", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.GetRepository", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_ListConnections_sync", |
| "title": "cloudbuild ListConnections Sample", |
| "description": "ListConnections lists Connections in a given project and location.", |
| "file": "RepositoryManagerClient/ListConnections/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListConnections", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.ListConnections", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.ListConnectionsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "ConnectionIterator", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "ListConnections", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.ListConnections", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_ListRepositories_sync", |
| "title": "cloudbuild ListRepositories Sample", |
| "description": "ListRepositories lists Repositories in a given connection.", |
| "file": "RepositoryManagerClient/ListRepositories/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListRepositories", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.ListRepositories", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.ListRepositoriesRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "RepositoryIterator", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "ListRepositories", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.ListRepositories", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_SetIamPolicy_sync", |
| "title": "cloudbuild SetIamPolicy Sample", |
| "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`\nerrors.", |
| "file": "RepositoryManagerClient/SetIamPolicy/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "SetIamPolicy", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.SetIamPolicy", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "iampb.SetIamPolicyRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*iampb.Policy", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "SetIamPolicy", |
| "fullName": "google.iam.v1.IAMPolicy.SetIamPolicy", |
| "service": { |
| "shortName": "IAMPolicy", |
| "fullName": "google.iam.v1.IAMPolicy" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_TestIamPermissions_sync", |
| "title": "cloudbuild TestIamPermissions Sample", |
| "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a `NOT_FOUND` error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may \"fail open\" without warning.", |
| "file": "RepositoryManagerClient/TestIamPermissions/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "TestIamPermissions", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.TestIamPermissions", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "iampb.TestIamPermissionsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*iampb.TestIamPermissionsResponse", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "TestIamPermissions", |
| "fullName": "google.iam.v1.IAMPolicy.TestIamPermissions", |
| "service": { |
| "shortName": "IAMPolicy", |
| "fullName": "google.iam.v1.IAMPolicy" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "cloudbuild_v2_generated_RepositoryManager_UpdateConnection_sync", |
| "title": "cloudbuild UpdateConnection Sample", |
| "description": "UpdateConnection updates a single connection.", |
| "file": "RepositoryManagerClient/UpdateConnection/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "UpdateConnection", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient.UpdateConnection", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "cloudbuildpb.UpdateConnectionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "UpdateConnectionOperation", |
| "client": { |
| "shortName": "RepositoryManagerClient", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" |
| }, |
| "method": { |
| "shortName": "UpdateConnection", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.UpdateConnection", |
| "service": { |
| "shortName": "RepositoryManager", |
| "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| } |
| ] |
| } |