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 ManagedServiceForMicrosoftActiveDirectoryConsumerAPI hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_managedidentities1 as managedidentities1;

use managedidentities1::{ManagedServiceForMicrosoftActiveDirectoryConsumerAPI, 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 = ManagedServiceForMicrosoftActiveDirectoryConsumerAPI::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_get(...)`, `locations_global_domains_attach_trust(...)`, `locations_global_domains_backups_create(...)`, `locations_global_domains_backups_delete(...)`, `locations_global_domains_backups_get(...)`, `locations_global_domains_backups_get_iam_policy(...)`, `locations_global_domains_backups_list(...)`, `locations_global_domains_backups_patch(...)`, `locations_global_domains_backups_set_iam_policy(...)`, `locations_global_domains_backups_test_iam_permissions(...)`, `locations_global_domains_check_migration_permission(...)`, `locations_global_domains_create(...)`, `locations_global_domains_delete(...)`, `locations_global_domains_detach_trust(...)`, `locations_global_domains_disable_migration(...)`, `locations_global_domains_domain_join_machine(...)`, `locations_global_domains_enable_migration(...)`, `locations_global_domains_extend_schema(...)`, `locations_global_domains_get(...)`, `locations_global_domains_get_iam_policy(...)`, `locations_global_domains_get_ldapssettings(...)`, `locations_global_domains_list(...)`, `locations_global_domains_patch(...)`, `locations_global_domains_reconfigure_trust(...)`, `locations_global_domains_reset_admin_password(...)`, `locations_global_domains_restore(...)`, `locations_global_domains_set_iam_policy(...)`, `locations_global_domains_sql_integrations_get(...)`, `locations_global_domains_sql_integrations_list(...)`, `locations_global_domains_test_iam_permissions(...)`, `locations_global_domains_update_ldapssettings(...)`, `locations_global_domains_validate_trust(...)`, `locations_global_operations_cancel(...)`, `locations_global_operations_delete(...)`, `locations_global_operations_get(...)`, `locations_global_operations_list(...)`, `locations_global_peerings_create(...)`, `locations_global_peerings_delete(...)`, `locations_global_peerings_get(...)`, `locations_global_peerings_get_iam_policy(...)`, `locations_global_peerings_list(...)`, `locations_global_peerings_patch(...)`, `locations_global_peerings_set_iam_policy(...)`, `locations_global_peerings_test_iam_permissions(...)` and `locations_list(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

Source§

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

Source

pub fn locations_global_domains_backups_create( &self, request: Backup, parent: &str, ) -> ProjectLocationGlobalDomainBackupCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a Backup for a domain.

§Arguments
  • request - No description provided.
  • parent - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

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

Create a builder to help you perform the following task:

Deletes identified Backup.

§Arguments
  • name - Required. The backup resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}/backups/{backup_id}
Source

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

Create a builder to help you perform the following task:

Gets details of a single Backup.

§Arguments
  • name - Required. The backup resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}/backups/{backup_id}
Source

pub fn locations_global_domains_backups_get_iam_policy( &self, resource: &str, ) -> ProjectLocationGlobalDomainBackupGetIamPolicyCall<'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_global_domains_backups_list( &self, parent: &str, ) -> ProjectLocationGlobalDomainBackupListCall<'a, C>

Create a builder to help you perform the following task:

Lists Backup in a given project.

§Arguments
  • parent - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_backups_patch( &self, request: Backup, name: &str, ) -> ProjectLocationGlobalDomainBackupPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the labels for specified Backup.

§Arguments
  • request - No description provided.
  • name - Output only. The unique name of the Backup in the form of projects/{project_id}/locations/global/domains/{domain_name}/backups/{name}
Source

pub fn locations_global_domains_backups_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationGlobalDomainBackupSetIamPolicyCall<'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_global_domains_backups_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationGlobalDomainBackupTestIamPermissionCall<'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_global_domains_sql_integrations_get( &self, name: &str, ) -> ProjectLocationGlobalDomainSqlIntegrationGetCall<'a, C>

Create a builder to help you perform the following task:

Gets details of a single sqlIntegration.

§Arguments
  • name - Required. SQLIntegration resource name using the form: projects/{project_id}/locations/global/domains/{domain}/sqlIntegrations/{name}
Source

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

Create a builder to help you perform the following task:

Lists SqlIntegrations in a given domain.

§Arguments
  • parent - Required. The resource name of the SqlIntegrations using the form: projects/{project_id}/locations/global/domains/*
Source

pub fn locations_global_domains_attach_trust( &self, request: AttachTrustRequest, name: &str, ) -> ProjectLocationGlobalDomainAttachTrustCall<'a, C>

Create a builder to help you perform the following task:

Adds an AD trust to a domain.

§Arguments
  • request - No description provided.
  • name - Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_check_migration_permission( &self, request: CheckMigrationPermissionRequest, domain: &str, ) -> ProjectLocationGlobalDomainCheckMigrationPermissionCall<'a, C>

Create a builder to help you perform the following task:

CheckMigrationPermission API gets the current state of DomainMigration

§Arguments
  • request - No description provided.
  • domain - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_create( &self, request: Domain, parent: &str, ) -> ProjectLocationGlobalDomainCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a Microsoft AD domain.

§Arguments
  • request - No description provided.
  • parent - Required. The resource project name and location using the form: projects/{project_id}/locations/global
Source

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

Create a builder to help you perform the following task:

Deletes a domain.

§Arguments
  • name - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_detach_trust( &self, request: DetachTrustRequest, name: &str, ) -> ProjectLocationGlobalDomainDetachTrustCall<'a, C>

Create a builder to help you perform the following task:

Removes an AD trust.

§Arguments
  • request - No description provided.
  • name - Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_disable_migration( &self, request: DisableMigrationRequest, domain: &str, ) -> ProjectLocationGlobalDomainDisableMigrationCall<'a, C>

Create a builder to help you perform the following task:

Disable Domain Migration

§Arguments
  • request - No description provided.
  • domain - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_domain_join_machine( &self, request: DomainJoinMachineRequest, domain: &str, ) -> ProjectLocationGlobalDomainDomainJoinMachineCall<'a, C>

Create a builder to help you perform the following task:

DomainJoinMachine API joins a Compute Engine VM to the domain

§Arguments
  • request - No description provided.
  • domain - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_enable_migration( &self, request: EnableMigrationRequest, domain: &str, ) -> ProjectLocationGlobalDomainEnableMigrationCall<'a, C>

Create a builder to help you perform the following task:

Enable Domain Migration

§Arguments
  • request - No description provided.
  • domain - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_extend_schema( &self, request: ExtendSchemaRequest, domain: &str, ) -> ProjectLocationGlobalDomainExtendSchemaCall<'a, C>

Create a builder to help you perform the following task:

Extend Schema for Domain

§Arguments
  • request - No description provided.
  • domain - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

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

Create a builder to help you perform the following task:

Gets information about a domain.

§Arguments
  • name - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_get_iam_policy( &self, resource: &str, ) -> ProjectLocationGlobalDomainGetIamPolicyCall<'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_global_domains_get_ldapssettings( &self, name: &str, ) -> ProjectLocationGlobalDomainGetLdapssettingCall<'a, C>

Create a builder to help you perform the following task:

Gets the domain ldaps settings.

§Arguments
  • name - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

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

Create a builder to help you perform the following task:

Lists domains in a project.

§Arguments
  • parent - Required. The resource name of the domain location using the form: projects/{project_id}/locations/global
Source

pub fn locations_global_domains_patch( &self, request: Domain, name: &str, ) -> ProjectLocationGlobalDomainPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the metadata and configuration of a domain.

§Arguments
  • request - No description provided.
  • name - Required. The unique name of the domain using the form: projects/{project_id}/locations/global/domains/{domain_name}.
Source

pub fn locations_global_domains_reconfigure_trust( &self, request: ReconfigureTrustRequest, name: &str, ) -> ProjectLocationGlobalDomainReconfigureTrustCall<'a, C>

Create a builder to help you perform the following task:

Updates the DNS conditional forwarder.

§Arguments
  • request - No description provided.
  • name - Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_reset_admin_password( &self, request: ResetAdminPasswordRequest, name: &str, ) -> ProjectLocationGlobalDomainResetAdminPasswordCall<'a, C>

Create a builder to help you perform the following task:

Resets a domain’s administrator password.

§Arguments
  • request - No description provided.
  • name - Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_domains_restore( &self, request: RestoreDomainRequest, name: &str, ) -> ProjectLocationGlobalDomainRestoreCall<'a, C>

Create a builder to help you perform the following task:

RestoreDomain restores domain backup mentioned in the RestoreDomainRequest

§Arguments
  • request - No description provided.
  • name - Required. Resource name for the domain to which the backup belongs
Source

pub fn locations_global_domains_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationGlobalDomainSetIamPolicyCall<'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_global_domains_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationGlobalDomainTestIamPermissionCall<'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_global_domains_update_ldapssettings( &self, request: LDAPSSettings, name: &str, ) -> ProjectLocationGlobalDomainUpdateLdapssettingCall<'a, C>

Create a builder to help you perform the following task:

Patches a single ldaps settings.

§Arguments
  • request - No description provided.
  • name - The resource name of the LDAPS settings. Uses the form: projects/{project}/locations/{location}/domains/{domain}.
Source

pub fn locations_global_domains_validate_trust( &self, request: ValidateTrustRequest, name: &str, ) -> ProjectLocationGlobalDomainValidateTrustCall<'a, C>

Create a builder to help you perform the following task:

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

§Arguments
  • request - No description provided.
  • name - Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}
Source

pub fn locations_global_operations_cancel( &self, request: CancelOperationRequest, name: &str, ) -> ProjectLocationGlobalOperationCancelCall<'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_global_operations_delete( &self, name: &str, ) -> ProjectLocationGlobalOperationDeleteCall<'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_global_operations_get( &self, name: &str, ) -> ProjectLocationGlobalOperationGetCall<'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_global_operations_list( &self, name: &str, ) -> ProjectLocationGlobalOperationListCall<'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_global_peerings_create( &self, request: Peering, parent: &str, ) -> ProjectLocationGlobalPeeringCreateCall<'a, C>

Create a builder to help you perform the following task:

Creates a Peering for Managed AD instance.

§Arguments
  • request - No description provided.
  • parent - Required. Resource project name and location using the form: projects/{project_id}/locations/global
Source

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

Create a builder to help you perform the following task:

Deletes identified Peering.

§Arguments
  • name - Required. Peering resource name using the form: projects/{project_id}/locations/global/peerings/{peering_id}
Source

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

Create a builder to help you perform the following task:

Gets details of a single Peering.

§Arguments
  • name - Required. Peering resource name using the form: projects/{project_id}/locations/global/peerings/{peering_id}
Source

pub fn locations_global_peerings_get_iam_policy( &self, resource: &str, ) -> ProjectLocationGlobalPeeringGetIamPolicyCall<'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_global_peerings_list( &self, parent: &str, ) -> ProjectLocationGlobalPeeringListCall<'a, C>

Create a builder to help you perform the following task:

Lists Peerings in a given project.

§Arguments
  • parent - Required. The resource name of the peering location using the form: projects/{project_id}/locations/global
Source

pub fn locations_global_peerings_patch( &self, request: Peering, name: &str, ) -> ProjectLocationGlobalPeeringPatchCall<'a, C>

Create a builder to help you perform the following task:

Updates the labels for specified Peering.

§Arguments
  • request - No description provided.
  • name - Output only. Unique name of the peering in this scope including projects and location using the form: projects/{project_id}/locations/global/peerings/{peering_id}.
Source

pub fn locations_global_peerings_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationGlobalPeeringSetIamPolicyCall<'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_global_peerings_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationGlobalPeeringTestIamPermissionCall<'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_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.

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