SecureSourceManager

Struct SecureSourceManager 

Source
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

Source

pub fn builder() -> ClientBuilder

Returns a builder for SecureSourceManager.

let client = SecureSourceManager::builder().build().await?;
Source

pub fn from_stub<T>(stub: T) -> Self
where 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.

Source

pub fn list_instances(&self) -> ListInstances

Lists Instances in a given project and location.

Source

pub fn get_instance(&self) -> GetInstance

Gets details of a single instance.

Source

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.

Source

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.

Source

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.

Source

pub fn get_repository(&self) -> GetRepository

Gets metadata of a repository.

Source

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.

Source

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.

Source

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.

Source

pub fn list_hooks(&self) -> ListHooks

Lists hooks in a given repository.

Source

pub fn get_hook(&self) -> GetHook

Gets metadata of a hook.

Source

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.

Source

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.

Source

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.

Source

pub fn get_iam_policy_repo(&self) -> GetIamPolicyRepo

Get IAM policy for a repository.

Source

pub fn set_iam_policy_repo(&self) -> SetIamPolicyRepo

Set IAM policy on a repository.

Source

pub fn test_iam_permissions_repo(&self) -> TestIamPermissionsRepo

Test IAM permissions on a repository. IAM permission checks are not required on this method.

Source

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.

Source

pub fn list_branch_rules(&self) -> ListBranchRules

ListBranchRules lists branch rules in a given repository.

Source

pub fn get_branch_rule(&self) -> GetBranchRule

GetBranchRule gets a branch rule.

Source

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.

Source

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.

Source

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.

Source

pub fn get_pull_request(&self) -> GetPullRequest

Gets a pull request.

Source

pub fn list_pull_requests(&self) -> ListPullRequests

Lists pull requests in a repository.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn list_pull_request_file_diffs(&self) -> ListPullRequestFileDiffs

Lists a pull request’s file diffs.

Source

pub fn fetch_tree(&self) -> FetchTree

Fetches a tree from a repository.

Source

pub fn fetch_blob(&self) -> FetchBlob

Fetches a blob from a repository.

Source

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.

Source

pub fn get_issue(&self) -> GetIssue

Gets an issue.

Source

pub fn list_issues(&self) -> ListIssues

Lists issues in a repository.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn get_pull_request_comment(&self) -> GetPullRequestComment

Gets a pull request comment.

Source

pub fn list_pull_request_comments(&self) -> ListPullRequestComments

Lists pull request comments.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn get_issue_comment(&self) -> GetIssueComment

Gets an issue comment.

Source

pub fn list_issue_comments(&self) -> ListIssueComments

Lists comments in an issue.

Source

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.

Source

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.

Source

pub fn list_locations(&self) -> ListLocations

Lists information about the supported locations for this service.

Source

pub fn get_location(&self) -> GetLocation

Gets information about a location.

Source

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.

Source

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.

Source

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.

Source

pub fn list_operations(&self) -> ListOperations

Provides the Operations service functionality in this service.

Source

pub fn get_operation(&self) -> GetOperation

Provides the Operations service functionality in this service.

Source

pub fn delete_operation(&self) -> DeleteOperation

Provides the Operations service functionality in this service.

Source

pub fn cancel_operation(&self) -> CancelOperation

Provides the Operations service functionality in this service.

Trait Implementations§

Source§

impl Clone for SecureSourceManager

Source§

fn clone(&self) -> SecureSourceManager

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SecureSourceManager

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more