pub struct SecureSourceManager { /* private fields */ }Expand description
Implements a client for the Secure Source Manager API.
§Example
let client = SecureSourceManager::builder().build().await?;
// use `client` to make requests to the Secure Source Manager API.§Service Description
Secure Source Manager API
Access Secure Source Manager instances, resources, and repositories.
§Configuration
To configure SecureSourceManager use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://securesourcemanager.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
SecureSourceManager holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap SecureSourceManager in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl SecureSourceManager
impl SecureSourceManager
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for SecureSourceManager.
let client = SecureSourceManager::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: SecureSourceManager + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: SecureSourceManager + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_instances(&self) -> ListInstances
pub fn list_instances(&self) -> ListInstances
Lists Instances in a given project and location.
Sourcepub fn get_instance(&self) -> GetInstance
pub fn get_instance(&self) -> GetInstance
Gets details of a single instance.
Sourcepub fn create_instance(&self) -> CreateInstance
pub fn create_instance(&self) -> CreateInstance
Creates a new instance in a given project and location.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_instance(&self) -> DeleteInstance
pub fn delete_instance(&self) -> DeleteInstance
Deletes a single instance.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_repositories(&self) -> ListRepositories
pub fn list_repositories(&self) -> ListRepositories
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.
Sourcepub fn get_repository(&self) -> GetRepository
pub fn get_repository(&self) -> GetRepository
Gets metadata of a repository.
Sourcepub fn create_repository(&self) -> CreateRepository
pub fn create_repository(&self) -> CreateRepository
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.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_repository(&self) -> UpdateRepository
pub fn update_repository(&self) -> UpdateRepository
Updates the metadata of a repository.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_repository(&self) -> DeleteRepository
pub fn delete_repository(&self) -> DeleteRepository
Deletes a Repository.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_hooks(&self) -> ListHooks
pub fn list_hooks(&self) -> ListHooks
Lists hooks in a given repository.
Sourcepub fn create_hook(&self) -> CreateHook
pub fn create_hook(&self) -> CreateHook
Creates a new hook in a given repository.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_hook(&self) -> UpdateHook
pub fn update_hook(&self) -> UpdateHook
Updates the metadata of a hook.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_hook(&self) -> DeleteHook
pub fn delete_hook(&self) -> DeleteHook
Deletes a Hook.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_iam_policy_repo(&self) -> GetIamPolicyRepo
pub fn get_iam_policy_repo(&self) -> GetIamPolicyRepo
Get IAM policy for a repository.
Sourcepub fn set_iam_policy_repo(&self) -> SetIamPolicyRepo
pub fn set_iam_policy_repo(&self) -> SetIamPolicyRepo
Set IAM policy on a repository.
Sourcepub fn test_iam_permissions_repo(&self) -> TestIamPermissionsRepo
pub fn test_iam_permissions_repo(&self) -> TestIamPermissionsRepo
Test IAM permissions on a repository. IAM permission checks are not required on this method.
Sourcepub fn create_branch_rule(&self) -> CreateBranchRule
pub fn create_branch_rule(&self) -> CreateBranchRule
CreateBranchRule creates a branch rule in a given repository.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_branch_rules(&self) -> ListBranchRules
pub fn list_branch_rules(&self) -> ListBranchRules
ListBranchRules lists branch rules in a given repository.
Sourcepub fn get_branch_rule(&self) -> GetBranchRule
pub fn get_branch_rule(&self) -> GetBranchRule
GetBranchRule gets a branch rule.
Sourcepub fn update_branch_rule(&self) -> UpdateBranchRule
pub fn update_branch_rule(&self) -> UpdateBranchRule
UpdateBranchRule updates a branch rule.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_branch_rule(&self) -> DeleteBranchRule
pub fn delete_branch_rule(&self) -> DeleteBranchRule
DeleteBranchRule deletes a branch rule.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn create_pull_request(&self) -> CreatePullRequest
pub fn create_pull_request(&self) -> CreatePullRequest
Creates a pull request.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_pull_request(&self) -> GetPullRequest
pub fn get_pull_request(&self) -> GetPullRequest
Gets a pull request.
Sourcepub fn list_pull_requests(&self) -> ListPullRequests
pub fn list_pull_requests(&self) -> ListPullRequests
Lists pull requests in a repository.
Sourcepub fn update_pull_request(&self) -> UpdatePullRequest
pub fn update_pull_request(&self) -> UpdatePullRequest
Updates a pull request.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn merge_pull_request(&self) -> MergePullRequest
pub fn merge_pull_request(&self) -> MergePullRequest
Merges a pull request.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn open_pull_request(&self) -> OpenPullRequest
pub fn open_pull_request(&self) -> OpenPullRequest
Opens a pull request.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn close_pull_request(&self) -> ClosePullRequest
pub fn close_pull_request(&self) -> ClosePullRequest
Closes a pull request without merging.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_pull_request_file_diffs(&self) -> ListPullRequestFileDiffs
pub fn list_pull_request_file_diffs(&self) -> ListPullRequestFileDiffs
Lists a pull request’s file diffs.
Sourcepub fn fetch_tree(&self) -> FetchTree
pub fn fetch_tree(&self) -> FetchTree
Fetches a tree from a repository.
Sourcepub fn fetch_blob(&self) -> FetchBlob
pub fn fetch_blob(&self) -> FetchBlob
Fetches a blob from a repository.
Sourcepub fn create_issue(&self) -> CreateIssue
pub fn create_issue(&self) -> CreateIssue
Creates an issue.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_issues(&self) -> ListIssues
pub fn list_issues(&self) -> ListIssues
Lists issues in a repository.
Sourcepub fn update_issue(&self) -> UpdateIssue
pub fn update_issue(&self) -> UpdateIssue
Updates a issue.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_issue(&self) -> DeleteIssue
pub fn delete_issue(&self) -> DeleteIssue
Deletes an issue.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn open_issue(&self) -> OpenIssue
pub fn open_issue(&self) -> OpenIssue
Opens an issue.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn close_issue(&self) -> CloseIssue
pub fn close_issue(&self) -> CloseIssue
Closes an issue.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_pull_request_comment(&self) -> GetPullRequestComment
pub fn get_pull_request_comment(&self) -> GetPullRequestComment
Gets a pull request comment.
Sourcepub fn list_pull_request_comments(&self) -> ListPullRequestComments
pub fn list_pull_request_comments(&self) -> ListPullRequestComments
Lists pull request comments.
Sourcepub fn create_pull_request_comment(&self) -> CreatePullRequestComment
pub fn create_pull_request_comment(&self) -> CreatePullRequestComment
Creates a pull request comment. This function is used to create a single PullRequestComment of type Comment, or a single PullRequestComment of type Code that’s replying to another PullRequestComment of type Code. Use BatchCreatePullRequestComments to create multiple PullRequestComments for code reviews.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_pull_request_comment(&self) -> UpdatePullRequestComment
pub fn update_pull_request_comment(&self) -> UpdatePullRequestComment
Updates a pull request comment.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_pull_request_comment(&self) -> DeletePullRequestComment
pub fn delete_pull_request_comment(&self) -> DeletePullRequestComment
Deletes a pull request comment.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn batch_create_pull_request_comments(
&self,
) -> BatchCreatePullRequestComments
pub fn batch_create_pull_request_comments( &self, ) -> BatchCreatePullRequestComments
Batch creates pull request comments. This function is used to create multiple PullRequestComments for code review. There needs to be exactly one PullRequestComment of type Review, and at most 100 PullRequestComments of type Code per request. The Postition of the code comments must be unique within the request.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn resolve_pull_request_comments(&self) -> ResolvePullRequestComments
pub fn resolve_pull_request_comments(&self) -> ResolvePullRequestComments
Resolves pull request comments. A list of PullRequestComment names must be provided. The PullRequestComment names must be in the same conversation thread. If auto_fill is set, all comments in the conversation thread will be resolved.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn unresolve_pull_request_comments(&self) -> UnresolvePullRequestComments
pub fn unresolve_pull_request_comments(&self) -> UnresolvePullRequestComments
Unresolves pull request comments. A list of PullRequestComment names must be provided. The PullRequestComment names must be in the same conversation thread. If auto_fill is set, all comments in the conversation thread will be unresolved.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn create_issue_comment(&self) -> CreateIssueComment
pub fn create_issue_comment(&self) -> CreateIssueComment
Creates an issue comment.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_issue_comment(&self) -> GetIssueComment
pub fn get_issue_comment(&self) -> GetIssueComment
Gets an issue comment.
Sourcepub fn list_issue_comments(&self) -> ListIssueComments
pub fn list_issue_comments(&self) -> ListIssueComments
Lists comments in an issue.
Sourcepub fn update_issue_comment(&self) -> UpdateIssueComment
pub fn update_issue_comment(&self) -> UpdateIssueComment
Updates an issue comment.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_issue_comment(&self) -> DeleteIssueComment
pub fn delete_issue_comment(&self) -> DeleteIssueComment
Deletes an issue comment.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_locations(&self) -> ListLocations
pub fn list_locations(&self) -> ListLocations
Lists information about the supported locations for this service.
Sourcepub fn get_location(&self) -> GetLocation
pub fn get_location(&self) -> GetLocation
Gets information about a location.
Sourcepub fn set_iam_policy(&self) -> SetIamPolicy
pub fn set_iam_policy(&self) -> SetIamPolicy
Sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
errors.
Sourcepub fn get_iam_policy(&self) -> GetIamPolicy
pub fn get_iam_policy(&self) -> GetIamPolicy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Sourcepub fn test_iam_permissions(&self) -> TestIamPermissions
pub fn test_iam_permissions(&self) -> TestIamPermissions
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.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self) -> DeleteOperation
pub fn delete_operation(&self) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> CancelOperation
Provides the Operations service functionality in this service.
Trait Implementations§
Source§impl Clone for SecureSourceManager
impl Clone for SecureSourceManager
Source§fn clone(&self) -> SecureSourceManager
fn clone(&self) -> SecureSourceManager
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more