ProjectMethods

Struct ProjectMethods 

Source
pub struct ProjectMethods<'a, C>
where C: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on project resources. It is not used directly, but through the Eventarc hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_eventarc1 as eventarc1;

use eventarc1::{Eventarc, FieldMask, hyper_rustls, hyper_util, yup_oauth2};

let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
    .with_native_roots()
    .unwrap()
    .https_only()
    .enable_http2()
    .build();

let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
    secret,
    yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    yup_oauth2::client::CustomHyperClientBuilder::from(
        hyper_util::client::legacy::Client::builder(executor).build(connector),
    ),
).build().await.unwrap();

let client = hyper_util::client::legacy::Client::builder(
    hyper_util::rt::TokioExecutor::new()
)
.build(
    hyper_rustls::HttpsConnectorBuilder::new()
        .with_native_roots()
        .unwrap()
        .https_or_http()
        .enable_http2()
        .build()
);
let mut hub = Eventarc::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_channel_connections_create(...)`, `locations_channel_connections_delete(...)`, `locations_channel_connections_get(...)`, `locations_channel_connections_get_iam_policy(...)`, `locations_channel_connections_list(...)`, `locations_channel_connections_set_iam_policy(...)`, `locations_channel_connections_test_iam_permissions(...)`, `locations_channels_create(...)`, `locations_channels_delete(...)`, `locations_channels_get(...)`, `locations_channels_get_iam_policy(...)`, `locations_channels_list(...)`, `locations_channels_patch(...)`, `locations_channels_set_iam_policy(...)`, `locations_channels_test_iam_permissions(...)`, `locations_enrollments_create(...)`, `locations_enrollments_delete(...)`, `locations_enrollments_get(...)`, `locations_enrollments_get_iam_policy(...)`, `locations_enrollments_list(...)`, `locations_enrollments_patch(...)`, `locations_enrollments_set_iam_policy(...)`, `locations_enrollments_test_iam_permissions(...)`, `locations_get(...)`, `locations_get_google_channel_config(...)`, `locations_google_api_sources_create(...)`, `locations_google_api_sources_delete(...)`, `locations_google_api_sources_get(...)`, `locations_google_api_sources_get_iam_policy(...)`, `locations_google_api_sources_list(...)`, `locations_google_api_sources_patch(...)`, `locations_google_api_sources_set_iam_policy(...)`, `locations_google_api_sources_test_iam_permissions(...)`, `locations_list(...)`, `locations_message_buses_create(...)`, `locations_message_buses_delete(...)`, `locations_message_buses_get(...)`, `locations_message_buses_get_iam_policy(...)`, `locations_message_buses_list(...)`, `locations_message_buses_list_enrollments(...)`, `locations_message_buses_patch(...)`, `locations_message_buses_set_iam_policy(...)`, `locations_message_buses_test_iam_permissions(...)`, `locations_operations_cancel(...)`, `locations_operations_delete(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_pipelines_create(...)`, `locations_pipelines_delete(...)`, `locations_pipelines_get(...)`, `locations_pipelines_get_iam_policy(...)`, `locations_pipelines_list(...)`, `locations_pipelines_patch(...)`, `locations_pipelines_set_iam_policy(...)`, `locations_pipelines_test_iam_permissions(...)`, `locations_providers_get(...)`, `locations_providers_list(...)`, `locations_triggers_create(...)`, `locations_triggers_delete(...)`, `locations_triggers_get(...)`, `locations_triggers_get_iam_policy(...)`, `locations_triggers_list(...)`, `locations_triggers_patch(...)`, `locations_triggers_set_iam_policy(...)`, `locations_triggers_test_iam_permissions(...)` and `locations_update_google_channel_config(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

Source§

impl<'a, C> ProjectMethods<'a, C>

Source

pub fn locations_channel_connections_create( &self, request: ChannelConnection, parent: &str, ) -> ProjectLocationChannelConnectionCreateCall<'a, C>

Create a builder to help you perform the following task:

Create a new ChannelConnection in a particular project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent collection in which to add this channel connection.
Source

pub fn locations_channel_connections_delete( &self, name: &str, ) -> ProjectLocationChannelConnectionDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete a single ChannelConnection.

§Arguments
  • name - Required. The name of the channel connection to delete.
Source

pub fn locations_channel_connections_get( &self, name: &str, ) -> ProjectLocationChannelConnectionGetCall<'a, C>

Create a builder to help you perform the following task:

Get a single ChannelConnection.

§Arguments
  • name - Required. The name of the channel connection to get.
Source

pub fn locations_channel_connections_get_iam_policy( &self, resource: &str, ) -> ProjectLocationChannelConnectionGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

§Arguments
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_channel_connections_list( &self, parent: &str, ) -> ProjectLocationChannelConnectionListCall<'a, C>

Create a builder to help you perform the following task:

List channel connections.

§Arguments
  • parent - Required. The parent collection from which to list channel connections.
Source

pub fn locations_channel_connections_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationChannelConnectionSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_channel_connections_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationChannelConnectionTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_channels_create( &self, request: Channel, parent: &str, ) -> ProjectLocationChannelCreateCall<'a, C>

Create a builder to help you perform the following task:

Create a new channel in a particular project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent collection in which to add this channel.
Source

pub fn locations_channels_delete( &self, name: &str, ) -> ProjectLocationChannelDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete a single channel.

§Arguments
  • name - Required. The name of the channel to be deleted.
Source

pub fn locations_channels_get( &self, name: &str, ) -> ProjectLocationChannelGetCall<'a, C>

Create a builder to help you perform the following task:

Get a single Channel.

§Arguments
  • name - Required. The name of the channel to get.
Source

pub fn locations_channels_get_iam_policy( &self, resource: &str, ) -> ProjectLocationChannelGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

§Arguments
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_channels_list( &self, parent: &str, ) -> ProjectLocationChannelListCall<'a, C>

Create a builder to help you perform the following task:

List channels.

§Arguments
  • parent - Required. The parent collection to list channels on.
Source

pub fn locations_channels_patch( &self, request: Channel, name: &str, ) -> ProjectLocationChannelPatchCall<'a, C>

Create a builder to help you perform the following task:

Update a single channel.

§Arguments
  • request - No description provided.
  • name - Required. The resource name of the channel. Must be unique within the location on the project and must be in projects/{project}/locations/{location}/channels/{channel_id} format.
Source

pub fn locations_channels_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationChannelSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_channels_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationChannelTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_enrollments_create( &self, request: Enrollment, parent: &str, ) -> ProjectLocationEnrollmentCreateCall<'a, C>

Create a builder to help you perform the following task:

Create a new Enrollment in a particular project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent collection in which to add this enrollment.
Source

pub fn locations_enrollments_delete( &self, name: &str, ) -> ProjectLocationEnrollmentDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete a single Enrollment.

§Arguments
  • name - Required. The name of the Enrollment to be deleted.
Source

pub fn locations_enrollments_get( &self, name: &str, ) -> ProjectLocationEnrollmentGetCall<'a, C>

Create a builder to help you perform the following task:

Get a single Enrollment.

§Arguments
  • name - Required. The name of the Enrollment to get.
Source

pub fn locations_enrollments_get_iam_policy( &self, resource: &str, ) -> ProjectLocationEnrollmentGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

§Arguments
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_enrollments_list( &self, parent: &str, ) -> ProjectLocationEnrollmentListCall<'a, C>

Create a builder to help you perform the following task:

List Enrollments.

§Arguments
  • parent - Required. The parent collection to list triggers on.
Source

pub fn locations_enrollments_patch( &self, request: Enrollment, name: &str, ) -> ProjectLocationEnrollmentPatchCall<'a, C>

Create a builder to help you perform the following task:

Update a single Enrollment.

§Arguments
  • request - No description provided.
  • name - Identifier. Resource name of the form projects/{project}/locations/{location}/enrollments/{enrollment}
Source

pub fn locations_enrollments_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationEnrollmentSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_enrollments_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationEnrollmentTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_google_api_sources_create( &self, request: GoogleApiSource, parent: &str, ) -> ProjectLocationGoogleApiSourceCreateCall<'a, C>

Create a builder to help you perform the following task:

Create a new GoogleApiSource in a particular project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent collection in which to add this google api source.
Source

pub fn locations_google_api_sources_delete( &self, name: &str, ) -> ProjectLocationGoogleApiSourceDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete a single GoogleApiSource.

§Arguments
  • name - Required. The name of the GoogleApiSource to be deleted.
Source

pub fn locations_google_api_sources_get( &self, name: &str, ) -> ProjectLocationGoogleApiSourceGetCall<'a, C>

Create a builder to help you perform the following task:

Get a single GoogleApiSource.

§Arguments
  • name - Required. The name of the google api source to get.
Source

pub fn locations_google_api_sources_get_iam_policy( &self, resource: &str, ) -> ProjectLocationGoogleApiSourceGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

§Arguments
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_google_api_sources_list( &self, parent: &str, ) -> ProjectLocationGoogleApiSourceListCall<'a, C>

Create a builder to help you perform the following task:

List GoogleApiSources.

§Arguments
  • parent - Required. The parent collection to list GoogleApiSources on.
Source

pub fn locations_google_api_sources_patch( &self, request: GoogleApiSource, name: &str, ) -> ProjectLocationGoogleApiSourcePatchCall<'a, C>

Create a builder to help you perform the following task:

Update a single GoogleApiSource.

§Arguments
  • request - No description provided.
  • name - Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}
Source

pub fn locations_google_api_sources_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationGoogleApiSourceSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_google_api_sources_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationGoogleApiSourceTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_message_buses_create( &self, request: MessageBus, parent: &str, ) -> ProjectLocationMessageBusCreateCall<'a, C>

Create a builder to help you perform the following task:

Create a new MessageBus in a particular project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent collection in which to add this message bus.
Source

pub fn locations_message_buses_delete( &self, name: &str, ) -> ProjectLocationMessageBusDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete a single message bus.

§Arguments
  • name - Required. The name of the MessageBus to be deleted.
Source

pub fn locations_message_buses_get( &self, name: &str, ) -> ProjectLocationMessageBusGetCall<'a, C>

Create a builder to help you perform the following task:

Get a single MessageBus.

§Arguments
  • name - Required. The name of the message bus to get.
Source

pub fn locations_message_buses_get_iam_policy( &self, resource: &str, ) -> ProjectLocationMessageBusGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

§Arguments
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_message_buses_list( &self, parent: &str, ) -> ProjectLocationMessageBusListCall<'a, C>

Create a builder to help you perform the following task:

List message buses.

§Arguments
  • parent - Required. The parent collection to list message buses on.
Source

pub fn locations_message_buses_list_enrollments( &self, parent: &str, ) -> ProjectLocationMessageBusListEnrollmentCall<'a, C>

Create a builder to help you perform the following task:

List message bus enrollments.

§Arguments
  • parent - Required. The parent message bus to list enrollments on.
Source

pub fn locations_message_buses_patch( &self, request: MessageBus, name: &str, ) -> ProjectLocationMessageBusPatchCall<'a, C>

Create a builder to help you perform the following task:

Update a single message bus.

§Arguments
  • request - No description provided.
  • name - Identifier. Resource name of the form projects/{project}/locations/{location}/messageBuses/{message_bus}
Source

pub fn locations_message_buses_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationMessageBusSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_message_buses_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationMessageBusTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_operations_cancel( &self, request: GoogleLongrunningCancelOperationRequest, name: &str, ) -> ProjectLocationOperationCancelCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • name - The name of the operation resource to be cancelled.
Source

pub fn locations_operations_delete( &self, name: &str, ) -> ProjectLocationOperationDeleteCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • name - The name of the operation resource to be deleted.
Source

pub fn locations_operations_get( &self, name: &str, ) -> ProjectLocationOperationGetCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • name - The name of the operation resource.
Source

pub fn locations_operations_list( &self, name: &str, ) -> ProjectLocationOperationListCall<'a, C>

Create a builder to help you perform the following task:

Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED.

§Arguments
  • name - The name of the operation’s parent resource.
Source

pub fn locations_pipelines_create( &self, request: Pipeline, parent: &str, ) -> ProjectLocationPipelineCreateCall<'a, C>

Create a builder to help you perform the following task:

Create a new Pipeline in a particular project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent collection in which to add this pipeline.
Source

pub fn locations_pipelines_delete( &self, name: &str, ) -> ProjectLocationPipelineDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete a single pipeline.

§Arguments
  • name - Required. The name of the Pipeline to be deleted.
Source

pub fn locations_pipelines_get( &self, name: &str, ) -> ProjectLocationPipelineGetCall<'a, C>

Create a builder to help you perform the following task:

Get a single Pipeline.

§Arguments
  • name - Required. The name of the pipeline to get.
Source

pub fn locations_pipelines_get_iam_policy( &self, resource: &str, ) -> ProjectLocationPipelineGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

§Arguments
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_pipelines_list( &self, parent: &str, ) -> ProjectLocationPipelineListCall<'a, C>

Create a builder to help you perform the following task:

List pipelines.

§Arguments
  • parent - Required. The parent collection to list pipelines on.
Source

pub fn locations_pipelines_patch( &self, request: Pipeline, name: &str, ) -> ProjectLocationPipelinePatchCall<'a, C>

Create a builder to help you perform the following task:

Update a single pipeline.

§Arguments
  • request - No description provided.
  • name - Identifier. The resource name of the Pipeline. Must be unique within the location of the project and must be in projects/{project}/locations/{location}/pipelines/{pipeline} format.
Source

pub fn locations_pipelines_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationPipelineSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_pipelines_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationPipelineTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_providers_get( &self, name: &str, ) -> ProjectLocationProviderGetCall<'a, C>

Create a builder to help you perform the following task:

Get a single Provider.

§Arguments
  • name - Required. The name of the provider to get.
Source

pub fn locations_providers_list( &self, parent: &str, ) -> ProjectLocationProviderListCall<'a, C>

Create a builder to help you perform the following task:

List providers.

§Arguments
  • parent - Required. The parent of the provider to get.
Source

pub fn locations_triggers_create( &self, request: Trigger, parent: &str, ) -> ProjectLocationTriggerCreateCall<'a, C>

Create a builder to help you perform the following task:

Create a new trigger in a particular project and location.

§Arguments
  • request - No description provided.
  • parent - Required. The parent collection in which to add this trigger.
Source

pub fn locations_triggers_delete( &self, name: &str, ) -> ProjectLocationTriggerDeleteCall<'a, C>

Create a builder to help you perform the following task:

Delete a single trigger.

§Arguments
  • name - Required. The name of the trigger to be deleted.
Source

pub fn locations_triggers_get( &self, name: &str, ) -> ProjectLocationTriggerGetCall<'a, C>

Create a builder to help you perform the following task:

Get a single trigger.

§Arguments
  • name - Required. The name of the trigger to get.
Source

pub fn locations_triggers_get_iam_policy( &self, resource: &str, ) -> ProjectLocationTriggerGetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

§Arguments
  • resource - REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_triggers_list( &self, parent: &str, ) -> ProjectLocationTriggerListCall<'a, C>

Create a builder to help you perform the following task:

List triggers.

§Arguments
  • parent - Required. The parent collection to list triggers on.
Source

pub fn locations_triggers_patch( &self, request: Trigger, name: &str, ) -> ProjectLocationTriggerPatchCall<'a, C>

Create a builder to help you perform the following task:

Update a single trigger.

§Arguments
  • request - No description provided.
  • name - Required. The resource name of the trigger. Must be unique within the location of the project and must be in projects/{project}/locations/{location}/triggers/{trigger} format.
Source

pub fn locations_triggers_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationTriggerSetIamPolicyCall<'a, C>

Create a builder to help you perform the following task:

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Source

pub fn locations_triggers_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationTriggerTestIamPermissionCall<'a, C>

Create a builder to help you perform the following task:

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.

§Arguments
  • request - No description provided.
  • resource - REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Source

pub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>

Create a builder to help you perform the following task:

Gets information about a location.

§Arguments
  • name - Resource name for the location.
Source

pub fn locations_get_google_channel_config( &self, name: &str, ) -> ProjectLocationGetGoogleChannelConfigCall<'a, C>

Create a builder to help you perform the following task:

Get a GoogleChannelConfig. The name of the GoogleChannelConfig in the response is ALWAYS coded with projectID.

§Arguments
  • name - Required. The name of the config to get.
Source

pub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>

Create a builder to help you perform the following task:

Lists information about the supported locations for this service.

§Arguments
  • name - The resource that owns the locations collection, if applicable.
Source

pub fn locations_update_google_channel_config( &self, request: GoogleChannelConfig, name: &str, ) -> ProjectLocationUpdateGoogleChannelConfigCall<'a, C>

Create a builder to help you perform the following task:

Update a single GoogleChannelConfig

§Arguments
  • request - No description provided.
  • name - Required. The resource name of the config. Must be in the format of, projects/{project}/locations/{location}/googleChannelConfig. In API responses, the config name always includes the projectID, regardless of whether the projectID or projectNumber was provided.

Trait Implementations§

Source§

impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>

Auto Trait Implementations§

§

impl<'a, C> Freeze for ProjectMethods<'a, C>

§

impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>

§

impl<'a, C> Send for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Sync for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for ProjectMethods<'a, C>

§

impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>

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> 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, 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<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