Class: Google::Apis::SecuresourcemanagerV1::SecureSourceManagerService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::SecuresourcemanagerV1::SecureSourceManagerService
- Defined in:
- lib/google/apis/securesourcemanager_v1/service.rb
Overview
Secure Source Manager API
Regionally deployed, single-tenant managed source code repository hosted on Google Cloud.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://securesourcemanager.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#batch_create_pull_request_comments(parent, batch_create_pull_request_comments_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Batch creates pull request comments.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#close_issue(name, close_issue_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Closes an issue.
-
#close_pull_request(name, close_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Closes a pull request without merging.
-
#create_project_location_instance(parent, instance_object = nil, instance_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a new instance in a given project and location.
-
#create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a new repository in a given project and location.
-
#create_project_location_repository_branch_rule(parent, branch_rule_object = nil, branch_rule_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
CreateBranchRule creates a branch rule in a given repository.
-
#create_project_location_repository_hook(parent, hook_object = nil, hook_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a new hook in a given repository.
-
#create_project_location_repository_issue(parent, issue_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates an issue.
-
#create_project_location_repository_issue_issue_comment(parent, issue_comment_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates an issue comment.
-
#create_project_location_repository_pull_request(parent, pull_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a pull request.
-
#create_project_location_repository_pull_request_pull_request_comment(parent, pull_request_comment_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a pull request comment.
-
#delete_project_location_instance(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes a single instance.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Empty
Deletes a long-running operation.
-
#delete_project_location_repository(name, allow_missing: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes a Repository.
-
#delete_project_location_repository_branch_rule(name, allow_missing: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
DeleteBranchRule deletes a branch rule.
-
#delete_project_location_repository_hook(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes a Hook.
-
#delete_project_location_repository_issue(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes an issue.
-
#delete_project_location_repository_issue_issue_comment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes an issue comment.
-
#delete_project_location_repository_pull_request_pull_request_comment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes a pull request comment.
-
#fetch_project_location_repository_blob(repository, sha: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::FetchBlobResponse
Fetches a blob from a repository.
-
#fetch_project_location_repository_tree(repository, page_size: nil, page_token: nil, recursive: nil, ref: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::FetchTreeResponse
Fetches a tree from a repository.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Location
Gets information about a location.
-
#get_project_location_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Instance
Gets details of a single instance.
-
#get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_repository(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Repository
Gets metadata of a repository.
-
#get_project_location_repository_branch_rule(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::BranchRule
GetBranchRule gets a branch rule.
-
#get_project_location_repository_hook(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Hook
Gets metadata of a hook.
-
#get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Policy
Get IAM policy for a repository.
-
#get_project_location_repository_issue(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Issue
Gets an issue.
-
#get_project_location_repository_issue_issue_comment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::IssueComment
Gets an issue comment.
-
#get_project_location_repository_pull_request(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::PullRequest
Gets a pull request.
-
#get_project_location_repository_pull_request_pull_request_comment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::PullRequestComment
Gets a pull request comment.
-
#initialize ⇒ SecureSourceManagerService
constructor
A new instance of SecureSourceManagerService.
-
#list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListInstancesResponse
Lists Instances in a given project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_repositories(parent, filter: nil, instance: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListRepositoriesResponse
Lists Repositories in a given project and location.
-
#list_project_location_repository_branch_rules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListBranchRulesResponse
ListBranchRules lists branch rules in a given repository.
-
#list_project_location_repository_hooks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListHooksResponse
Lists hooks in a given repository.
-
#list_project_location_repository_issue_issue_comments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListIssueCommentsResponse
Lists comments in an issue.
-
#list_project_location_repository_issues(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListIssuesResponse
Lists issues in a repository.
-
#list_project_location_repository_pull_request_file_diffs(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListPullRequestFileDiffsResponse
Lists a pull request's file diffs.
-
#list_project_location_repository_pull_request_pull_request_comments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListPullRequestCommentsResponse
Lists pull request comments.
-
#list_project_location_repository_pull_requests(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListPullRequestsResponse
Lists pull requests in a repository.
-
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#merge_pull_request(name, merge_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Merges a pull request.
-
#open_issue(name, open_issue_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Opens an issue.
-
#open_pull_request(name, open_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Opens a pull request.
-
#patch_project_location_repository(name, repository_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates the metadata of a repository.
-
#patch_project_location_repository_branch_rule(name, branch_rule_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
UpdateBranchRule updates a branch rule.
-
#patch_project_location_repository_hook(name, hook_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates the metadata of a hook.
-
#patch_project_location_repository_issue(name, issue_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates a issue.
-
#patch_project_location_repository_issue_issue_comment(name, issue_comment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates an issue comment.
-
#patch_project_location_repository_pull_request(name, pull_request_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates a pull request.
-
#patch_project_location_repository_pull_request_pull_request_comment(name, pull_request_comment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates a pull request comment.
-
#resolve_pull_request_comments(parent, resolve_pull_request_comments_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Resolves pull request comments.
-
#set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Policy
Sets the access control policy on the specified resource.
-
#set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Policy
Set IAM policy on a repository.
-
#test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::TestIamPermissionsResponse
Test IAM permissions on a repository.
-
#unresolve_pull_request_comments(parent, unresolve_pull_request_comments_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Unresolves pull request comment.
Constructor Details
#initialize ⇒ SecureSourceManagerService
Returns a new instance of SecureSourceManagerService.
48 49 50 51 52 53 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 48 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-securesourcemanager_v1', client_version: Google::Apis::SecuresourcemanagerV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
41 42 43 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 41 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
46 47 48 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 46 def quota_user @quota_user end |
Instance Method Details
#batch_create_pull_request_comments(parent, batch_create_pull_request_comments_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Batch creates pull request comments.
2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 2056 def batch_create_pull_request_comments(parent, batch_create_pull_request_comments_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/pullRequestComments:batchCreate', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::BatchCreatePullRequestCommentsRequest::Representation command.request_object = batch_create_pull_request_comments_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1
, corresponding to Code.CANCELLED.
444 445 446 447 448 449 450 451 452 453 454 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 444 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Empty::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#close_issue(name, close_issue_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Closes an issue.
1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1336 def close_issue(name, close_issue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:close', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::CloseIssueRequest::Representation command.request_object = close_issue_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#close_pull_request(name, close_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Closes a pull request without merging.
1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1767 def close_pull_request(name, close_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:close', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::ClosePullRequestRequest::Representation command.request_object = close_pull_request_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_instance(parent, instance_object = nil, instance_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a new instance in a given project and location.
166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 166 def create_project_location_instance(parent, instance_object = nil, instance_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/instances', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['instanceId'] = instance_id unless instance_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a new repository in a given project and location. The Repository. Instance field is required in the request body for requests using the securesourcemanager.googleapis.com endpoint.
588 589 590 591 592 593 594 595 596 597 598 599 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 588 def create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/repositories', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::Repository::Representation command.request_object = repository_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['repositoryId'] = repository_id unless repository_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_repository_branch_rule(parent, branch_rule_object = nil, branch_rule_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
CreateBranchRule creates a branch rule in a given repository.
978 979 980 981 982 983 984 985 986 987 988 989 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 978 def create_project_location_repository_branch_rule(parent, branch_rule_object = nil, branch_rule_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/branchRules', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::BranchRule::Representation command.request_object = branch_rule_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['branchRuleId'] = branch_rule_id unless branch_rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_repository_hook(parent, hook_object = nil, hook_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a new hook in a given repository.
1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1160 def create_project_location_repository_hook(parent, hook_object = nil, hook_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/hooks', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::Hook::Representation command.request_object = hook_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['hookId'] = hook_id unless hook_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_repository_issue(parent, issue_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates an issue.
1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1370 def create_project_location_repository_issue(parent, issue_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/issues', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::Issue::Representation command.request_object = issue_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_repository_issue_issue_comment(parent, issue_comment_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates an issue comment.
1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1588 def create_project_location_repository_issue_issue_comment(parent, issue_comment_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/issueComments', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::IssueComment::Representation command.request_object = issue_comment_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_repository_pull_request(parent, pull_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a pull request.
1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1801 def create_project_location_repository_pull_request(parent, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/pullRequests', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::PullRequest::Representation command.request_object = pull_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_repository_pull_request_pull_request_comment(parent, pull_request_comment_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Creates a pull request comment.
2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 2091 def create_project_location_repository_pull_request_pull_request_comment(parent, pull_request_comment_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/pullRequestComments', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::PullRequestComment::Representation command.request_object = pull_request_comment_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_instance(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes a single instance.
211 212 213 214 215 216 217 218 219 220 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 211 def delete_project_location_instance(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
479 480 481 482 483 484 485 486 487 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 479 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Empty::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository(name, allow_missing: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes a Repository.
625 626 627 628 629 630 631 632 633 634 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 625 def delete_project_location_repository(name, allow_missing: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository_branch_rule(name, allow_missing: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
DeleteBranchRule deletes a branch rule.
1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1013 def delete_project_location_repository_branch_rule(name, allow_missing: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository_hook(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes a Hook.
1194 1195 1196 1197 1198 1199 1200 1201 1202 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1194 def delete_project_location_repository_hook(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository_issue(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes an issue.
1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1407 def delete_project_location_repository_issue(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository_issue_issue_comment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes an issue comment.
1622 1623 1624 1625 1626 1627 1628 1629 1630 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1622 def delete_project_location_repository_issue_issue_comment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository_pull_request_pull_request_comment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Deletes a pull request comment.
2125 2126 2127 2128 2129 2130 2131 2132 2133 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 2125 def delete_project_location_repository_pull_request_pull_request_comment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#fetch_project_location_repository_blob(repository, sha: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::FetchBlobResponse
Fetches a blob from a repository.
659 660 661 662 663 664 665 666 667 668 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 659 def fetch_project_location_repository_blob(repository, sha: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+repository}:fetchBlob', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::FetchBlobResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::FetchBlobResponse command.params['repository'] = repository unless repository.nil? command.query['sha'] = sha unless sha.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#fetch_project_location_repository_tree(repository, page_size: nil, page_token: nil, recursive: nil, ref: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::FetchTreeResponse
Fetches a tree from a repository.
702 703 704 705 706 707 708 709 710 711 712 713 714 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 702 def fetch_project_location_repository_tree(repository, page_size: nil, page_token: nil, recursive: nil, ref: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+repository}:fetchTree', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::FetchTreeResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::FetchTreeResponse command.params['repository'] = repository unless repository.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['recursive'] = recursive unless recursive.nil? command.query['ref'] = ref unless ref.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Location
Gets information about a location.
75 76 77 78 79 80 81 82 83 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 75 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Location::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Instance
Gets details of a single instance.
242 243 244 245 246 247 248 249 250 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 242 def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Instance::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Instance command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
286 287 288 289 290 291 292 293 294 295 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 286 def get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Policy::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
510 511 512 513 514 515 516 517 518 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 510 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Repository
Gets metadata of a repository.
737 738 739 740 741 742 743 744 745 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 737 def get_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Repository::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Repository command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_branch_rule(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::BranchRule
GetBranchRule gets a branch rule.
1045 1046 1047 1048 1049 1050 1051 1052 1053 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1045 def get_project_location_repository_branch_rule(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::BranchRule::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::BranchRule command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_hook(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Hook
Gets metadata of a hook.
1226 1227 1228 1229 1230 1231 1232 1233 1234 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1226 def get_project_location_repository_hook(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Hook::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Hook command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Policy
Get IAM policy for a repository.
780 781 782 783 784 785 786 787 788 789 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 780 def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Policy::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_issue(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Issue
Gets an issue.
1439 1440 1441 1442 1443 1444 1445 1446 1447 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1439 def get_project_location_repository_issue(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::Issue::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Issue command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_issue_issue_comment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::IssueComment
Gets an issue comment.
1654 1655 1656 1657 1658 1659 1660 1661 1662 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1654 def get_project_location_repository_issue_issue_comment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::IssueComment::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::IssueComment command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_pull_request(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::PullRequest
Gets a pull request.
1835 1836 1837 1838 1839 1840 1841 1842 1843 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1835 def get_project_location_repository_pull_request(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::PullRequest::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::PullRequest command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_pull_request_pull_request_comment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::PullRequestComment
Gets a pull request comment.
2157 2158 2159 2160 2161 2162 2163 2164 2165 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 2157 def get_project_location_repository_pull_request_pull_request_comment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::PullRequestComment::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::PullRequestComment command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListInstancesResponse
Lists Instances in a given project and location.
326 327 328 329 330 331 332 333 334 335 336 337 338 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 326 def list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/instances', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListInstancesResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListInstancesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
547 548 549 550 551 552 553 554 555 556 557 558 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 547 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListOperationsResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repositories(parent, filter: nil, instance: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListRepositoriesResponse
Lists Repositories in a given project and location. The instance field is required in the query parameter for requests using the securesourcemanager. googleapis.com endpoint.
826 827 828 829 830 831 832 833 834 835 836 837 838 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 826 def list_project_location_repositories(parent, filter: nil, instance: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/repositories', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListRepositoriesResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListRepositoriesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['instance'] = instance unless instance.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repository_branch_rules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListBranchRulesResponse
ListBranchRules lists branch rules in a given repository.
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1076 def list_project_location_repository_branch_rules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/branchRules', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListBranchRulesResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListBranchRulesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repository_hooks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListHooksResponse
Lists hooks in a given repository.
1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1261 def list_project_location_repository_hooks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/hooks', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListHooksResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListHooksResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repository_issue_issue_comments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListIssueCommentsResponse
Lists comments in an issue.
1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1691 def list_project_location_repository_issue_issue_comments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/issueComments', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListIssueCommentsResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListIssueCommentsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repository_issues(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListIssuesResponse
Lists issues in a repository.
1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1477 def list_project_location_repository_issues(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/issues', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListIssuesResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListIssuesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repository_pull_request_file_diffs(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListPullRequestFileDiffsResponse
Lists a pull request's file diffs.
1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1910 def list_project_location_repository_pull_request_file_diffs(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:listFileDiffs', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListPullRequestFileDiffsResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListPullRequestFileDiffsResponse command.params['name'] = name unless name.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repository_pull_request_pull_request_comments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListPullRequestCommentsResponse
Lists pull request comments.
2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 2195 def list_project_location_repository_pull_request_pull_request_comments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/pullRequestComments', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListPullRequestCommentsResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListPullRequestCommentsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repository_pull_requests(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListPullRequestsResponse
Lists pull requests in a repository.
1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1871 def list_project_location_repository_pull_requests(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/pullRequests', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListPullRequestsResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListPullRequestsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::ListLocationsResponse
Lists information about the supported locations for this service.
118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 118 def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', ) command.response_representation = Google::Apis::SecuresourcemanagerV1::ListLocationsResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#merge_pull_request(name, merge_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Merges a pull request.
1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1945 def merge_pull_request(name, merge_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:merge', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::MergePullRequestRequest::Representation command.request_object = merge_pull_request_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#open_issue(name, open_issue_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Opens an issue.
1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1512 def open_issue(name, open_issue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:open', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::OpenIssueRequest::Representation command.request_object = open_issue_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#open_pull_request(name, open_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Opens a pull request.
1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1980 def open_pull_request(name, open_pull_request_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:open', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::OpenPullRequestRequest::Representation command.request_object = open_pull_request_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_repository(name, repository_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates the metadata of a repository.
872 873 874 875 876 877 878 879 880 881 882 883 884 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 872 def patch_project_location_repository(name, repository_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::Repository::Representation command.request_object = repository_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_repository_branch_rule(name, branch_rule_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
UpdateBranchRule updates a branch rule.
1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1119 def patch_project_location_repository_branch_rule(name, branch_rule_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::BranchRule::Representation command.request_object = branch_rule_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_repository_hook(name, hook_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates the metadata of a hook.
1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1301 def patch_project_location_repository_hook(name, hook_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::Hook::Representation command.request_object = hook_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_repository_issue(name, issue_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates a issue.
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1552 def patch_project_location_repository_issue(name, issue_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::Issue::Representation command.request_object = issue_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_repository_issue_issue_comment(name, issue_comment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates an issue comment.
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 1731 def patch_project_location_repository_issue_issue_comment(name, issue_comment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::IssueComment::Representation command.request_object = issue_comment_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_repository_pull_request(name, pull_request_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates a pull request.
2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 2020 def patch_project_location_repository_pull_request(name, pull_request_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::PullRequest::Representation command.request_object = pull_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_repository_pull_request_pull_request_comment(name, pull_request_comment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Updates a pull request comment.
2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 2234 def patch_project_location_repository_pull_request_pull_request_comment(name, pull_request_comment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::PullRequestComment::Representation command.request_object = pull_request_comment_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#resolve_pull_request_comments(parent, resolve_pull_request_comments_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Resolves pull request comments.
2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 2270 def resolve_pull_request_comments(parent, resolve_pull_request_comments_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/pullRequestComments:resolve', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::ResolvePullRequestCommentsRequest::Representation command.request_object = resolve_pull_request_comments_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 365 def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Policy::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Policy
Set IAM policy on a repository.
909 910 911 912 913 914 915 916 917 918 919 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 909 def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Policy::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 404 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::SecuresourcemanagerV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::TestIamPermissionsResponse
Test IAM permissions on a repository. IAM permission checks are not required on this method.
945 946 947 948 949 950 951 952 953 954 955 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 945 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::SecuresourcemanagerV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#unresolve_pull_request_comments(parent, unresolve_pull_request_comments_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::SecuresourcemanagerV1::Operation
Unresolves pull request comment.
2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 |
# File 'lib/google/apis/securesourcemanager_v1/service.rb', line 2305 def unresolve_pull_request_comments(parent, unresolve_pull_request_comments_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/pullRequestComments:unresolve', ) command.request_representation = Google::Apis::SecuresourcemanagerV1::UnresolvePullRequestCommentsRequest::Representation command.request_object = unresolve_pull_request_comments_request_object command.response_representation = Google::Apis::SecuresourcemanagerV1::Operation::Representation command.response_class = Google::Apis::SecuresourcemanagerV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |