Skip to main content
S3NS
Documentation Technology areas
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
/
  • C++
  • Documentation
  • Reference
Overview Guides Reference
S3NS
  • Documentation
    • Overview
    • Guides
    • Reference
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Overview
  • Library reference docs
  • Common Components for the Google Cloud C++ Client Libraries
  • In-Depth Topics
    • Error Handling
    • Logging Components
  • Modules
    • Intercepting Unrecoverable Errors
    • Authentication Components
    • Client Library Configuration
    • Options only applicable when using REST transport
  • Namespaces
    • google::cloud
      • Overview
      • Classes
        • AsyncOperation
          • Overview
          • Functions
            • Cancel()
        • AsyncStreamingReadWriteRpc<Request, Response>
          • Overview
          • Functions
            • Cancel()
            • Start()
            • Read()
            • Write(Request const &, grpc::WriteOptions)
            • WritesDone()
            • Finish()
            • virtual GetRequestMetadata() const
        • BackgroundThreads
          • Overview
          • Functions
            • cq() const
        • CompletionQueue
          • Overview
          • Constructors
            • CompletionQueue()
            • CompletionQueue(std::shared_ptr< internal::CompletionQueueImpl >)
          • Functions
            • Run()
            • Shutdown()
            • CancelAll()
            • MakeDeadlineTimer(std::chrono::system_clock::time_point)
            • MakeRelativeTimer(std::chrono::duration< Rep, Period >)
            • MakeUnaryRpc(AsyncCallType, Request const &, std::unique_ptr< grpc::ClientContext >)
            • MakeStreamingReadRpc(AsyncCallType &&, Request const &, std::unique_ptr< grpc::ClientContext >, OnReadHandler &&, OnFinishHandler &&)
            • RunAsync(Functor &&)
            • RunAsync(Functor &&)
            • AsyncWaitConnectionReady(std::shared_ptr< grpc::Channel >, std::chrono::system_clock::time_point)
        • ConnectionOptions<ConnectionTraits>
          • Overview
          • Constructors
            • ConnectionOptions()
            • ConnectionOptions(std::shared_ptr< grpc::ChannelCredentials >)
          • Functions
            • set_credentials(std::shared_ptr< grpc::ChannelCredentials >)
            • credentials() const
            • set_endpoint(std::string)
            • endpoint() const
            • num_channels() const
            • set_num_channels(int)
            • tracing_enabled(std::string const &) const
            • enable_tracing(std::string const &)
            • disable_tracing(std::string const &)
            • components() const
            • tracing_options() const
            • channel_pool_domain() const
            • set_channel_pool_domain(std::string)
            • add_user_agent_prefix(std::string)
            • user_agent_prefix() const
            • CreateChannelArguments() const
            • set_background_thread_pool_size(std::size_t)
            • background_thread_pool_size() const
            • DisableBackgroundThreads(google::cloud::CompletionQueue const &)
            • background_threads_factory() const
          • Types
            • BackgroundThreadsFactory
        • Credentials
          • Overview
        • ErrorInfo
          • Overview
          • Constructors
            • ErrorInfo()
            • ErrorInfo(std::string, std::string, std::unordered_map< std::string, std::string >)
          • Operators
            • operator==(ErrorInfo const &, ErrorInfo const &)
            • operator!=(ErrorInfo const &, ErrorInfo const &)
          • Functions
            • reason() const
            • domain() const
            • metadata() const
        • future<T>
          • Overview
          • Constructors
            • future()
            • future(future< future< T > > &&)
            • future(future< U > &&)
            • future(std::shared_ptr< shared_state_type >)
          • Functions
            • get()
            • then(F &&)
          • Types
            • shared_state_type
        • future< void >
          • Overview
          • Constructors
            • future()
            • future(future< future< void > > &&)
            • future(future< T > &&)
            • future(std::shared_ptr< shared_state_type >)
          • Functions
            • get()
            • then(F &&)
          • Types
            • shared_state_type
        • GenericPollingPolicy<Retry, Backoff>
          • Overview
          • Constructors
            • GenericPollingPolicy(Retry, Backoff)
          • Functions
            • virtual clone() const
            • virtual OnFailure(Status const &)
            • virtual WaitPeriod()
        • KmsKeyName
          • Overview
          • Constructors
            • KmsKeyName(KmsKeyName const &)
            • KmsKeyName(KmsKeyName &&)
            • KmsKeyName(std::string const &, std::string const &, std::string const &, std::string const &)
          • Operators
            • operator=(KmsKeyName const &)
            • operator=(KmsKeyName &&)
            • operator==(KmsKeyName const &, KmsKeyName const &)
            • operator!=(KmsKeyName const &, KmsKeyName const &)
            • operator<<(std::ostream &, KmsKeyName const &)
          • Functions
            • FullName() const
        • Location
          • Overview
          • Constructors
            • Location(Location const &)
            • Location(Location &&)
            • Location(Project, std::string)
            • Location(std::string, std::string)
          • Operators
            • operator=(Location const &)
            • operator=(Location &&)
            • operator==(Location const &, Location const &)
            • operator!=(Location const &, Location const &)
            • operator<<(std::ostream &, Location const &)
          • Functions
            • project() const
            • project_id() const
            • location_id() const
            • FullName() const
        • LogBackend
          • Overview
          • Functions
            • Process(LogRecord const &)
            • ProcessWithOwnership(LogRecord)
            • virtual Flush()
        • Logger<bool>
          • Overview
          • Constructors
            • Logger(Severity, char const *, char const *, int, LogSink &)
          • Functions
            • enabled() const
            • LogTo(LogSink &)
            • Stream()
        • Logger< false >
          • Overview
          • Constructors
            • Logger(Severity, char const *, char const *, int, LogSink &)
          • Functions
            • enabled() const
            • LogTo(LogSink &)
            • Stream()
        • LogSink
          • Overview
          • Constructors
            • LogSink()
          • Functions
            • empty() const
            • is_enabled(Severity) const
            • set_minimum_severity(Severity)
            • minimum_severity() const
            • AddBackend(std::shared_ptr< LogBackend >)
            • RemoveBackend(BackendId)
            • ClearBackends()
            • BackendCount() const
            • Log(LogRecord)
            • Flush()
            • static CompileTimeEnabled(Severity)
            • static Instance()
            • static EnableStdClog(Severity)
            • static DisableStdClog()
          • Types
            • BackendId
        • Options
          • Overview
          • Constructors
            • Options()
            • Options(Options const &)
            • Options(Options &&)
          • Operators
            • operator=(Options const &)
            • operator=(Options &&)
          • Functions
            • set(ValueTypeT< T >) &
            • set(ValueTypeT< T >) &&
            • has() const
            • unset()
            • get() const
            • lookup(ValueTypeT< T >)
        • PollingPolicy
          • Overview
          • Functions
            • clone() const
            • OnFailure(Status const &)
            • WaitPeriod()
        • Project
          • Overview
          • Constructors
            • Project(Project const &)
            • Project(Project &&)
            • Project(std::string)
          • Operators
            • operator=(Project const &)
            • operator=(Project &&)
            • operator==(Project const &, Project const &)
            • operator!=(Project const &, Project const &)
            • operator<<(std::ostream &, Project const &)
          • Functions
            • project_id() const
            • FullName() const
        • promise<T>
          • Overview
          • Constructors
            • promise()
            • promise(std::function< void()>)
            • promise(null_promise_t)
            • promise(promise &&)
            • promise(promise const &)
          • Operators
            • operator=(promise &&)
            • operator=(promise const &)
          • Functions
            • swap(promise &)
            • get_future()
            • set_value(T)
        • promise< void >
          • Overview
          • Constructors
            • promise()
            • promise(std::function< void()>)
            • promise(null_promise_t)
            • promise(promise &&)
            • promise(promise const &)
          • Operators
            • operator=(promise &&)
            • operator=(promise const &)
          • Functions
            • swap(promise &)
            • get_future()
            • set_value()
        • ProxyConfig
          • Overview
          • Constructors
            • ProxyConfig()
          • Functions
            • set_hostname(std::string) &
            • set_hostname(std::string) &&
            • set_port(std::string) &
            • set_port(std::string) &&
            • set_username(std::string) &
            • set_username(std::string) &&
            • set_password(std::string) &
            • set_password(std::string) &&
            • set_scheme(std::string) &
            • set_scheme(std::string) &&
            • hostname() const
            • port() const
            • username() const
            • password() const
            • scheme() const
        • RetryPolicy
          • Overview
          • Functions
            • OnFailure(Status const &)
            • IsExhausted() const
            • IsPermanentFailure(Status const &) const
        • RuntimeStatusError
          • Overview
          • Constructors
            • RuntimeStatusError(Status)
          • Functions
            • status() const
        • Status
          • Overview
          • Constructors
            • Status(Status const &)
            • Status(Status &&)
            • Status()
            • Status(StatusCode, std::string, ErrorInfo)
          • Operators
            • operator=(Status const &)
            • operator=(Status &&)
            • operator==(Status const &, Status const &)
            • operator!=(Status const &, Status const &)
          • Functions
            • ok() const
            • code() const
            • message() const
            • error_info() const
        • StatusOr<T>
          • Overview
          • Constructors
            • StatusOr()
            • StatusOr(StatusOr const &)
            • StatusOr(StatusOr &&)
            • StatusOr(Status)
            • StatusOr(T &&)
            • StatusOr(T const &)
            • operator bool() const
          • Operators
            • operator*() &
            • operator*() const &
            • operator*() &&
            • operator*() const &&
            • operator->() &
            • operator->() const &
            • operator=(StatusOr const &)
            • operator=(StatusOr &&)
            • operator=(Status)
            • operator=(U &&)
            • operator bool() const
          • Functions
            • value() &
            • value() const &
            • value() &&
            • value() const &&
            • status() const &
            • status() &&
            • ok() const
          • Types
            • value_type
        • StreamRange<T>
          • Overview
          • Constructors
            • IteratorImpl<U>
              • Overview
              • Constructors
                • IteratorImpl()
              • Operators
                • operator==(IteratorImpl const &, IteratorImpl const &)
                • operator!=(IteratorImpl const &, IteratorImpl const &)
                • operator*()
                • operator->()
                • operator*() const
                • operator->() const
                • operator++()
                • operator++(int)
              • Types
                • iterator_category
                • value_type
                • difference_type
                • reference
                • pointer
                • const_reference
                • const_pointer
            • StreamRange(StreamRange const &)
            • StreamRange(StreamRange &&)
            • StreamRange()
          • Operators
            • operator=(StreamRange const &)
            • operator=(StreamRange &&)
          • Functions
            • begin()
            • end()
          • Types
            • value_type
            • iterator
            • difference_type
            • reference
            • pointer
            • const_reference
            • const_pointer
        • TracingOptions
          • Overview
          • Constructors
            • TracingOptions()
            • TracingOptions(TracingOptions const &)
            • TracingOptions(TracingOptions &&)
          • Operators
            • operator=(TracingOptions const &)
            • operator=(TracingOptions &&)
            • operator==(TracingOptions const &, TracingOptions const &)
            • operator!=(TracingOptions const &, TracingOptions const &)
          • Functions
            • SetOptions(std::string const &)
            • single_line_mode() const
            • use_short_repeated_primitives() const
            • truncate_string_field_longer_than() const
      • Structs
        • AccessToken
          • Overview
        • AccessTokenLifetimeOption
          • Overview
          • Types
            • Type
        • AsyncTimerResult
          • Overview
        • AuthorityOption
          • Overview
          • Types
            • Type
        • CARootsFilePathOption
          • Overview
          • Types
            • Type
        • CustomHeadersOption
          • Overview
          • Types
            • Type
        • DelegatesOption
          • Overview
          • Types
            • Type
        • EnableServerRetriesOption
          • Overview
          • Types
            • Type
        • EndpointOption
          • Overview
          • Types
            • Type
        • ExperimentalTag
          • Overview
        • FieldMaskOption
          • Overview
          • Types
            • Type
        • GrpcBackgroundThreadPoolSizeOption
          • Overview
          • Types
            • Type
        • GrpcBackgroundThreadsFactoryOption
          • Overview
          • Types
            • Type
        • GrpcChannelArgumentsNativeOption
          • Overview
          • Types
            • Type
        • GrpcChannelArgumentsOption
          • Overview
          • Types
            • Type
        • GrpcCompletionQueueOption
          • Overview
          • Types
            • Type
        • GrpcCompressionAlgorithmOption
          • Overview
          • Types
            • Type
        • GrpcCredentialOption
          • Overview
          • Types
            • Type
        • GrpcNumChannelsOption
          • Overview
          • Types
            • Type
        • GrpcTracingOptionsOption
          • Overview
          • Types
            • Type
        • Interface
          • Overview
          • Types
            • Type
        • LoggingComponentsOption
          • Overview
          • Types
            • Type
        • LogRecord
          • Overview
        • NoAwaitTag
          • Overview
        • NullStream
          • Overview
          • Operators
            • operator<<(T)
        • OpenTelemetryTracingOption
          • Overview
          • Types
            • Type
        • ProxyOption
          • Overview
          • Types
            • Type
        • QuotaUserOption
          • Overview
          • Types
            • Type
        • RestTracingOptionsOption
          • Overview
          • Types
            • Type
        • RpcMetadata
          • Overview
        • ScopesOption
          • Overview
          • Types
            • Type
        • ServerTimeoutOption
          • Overview
          • Types
            • Type
        • UnifiedCredentialsOption
          • Overview
          • Types
            • Type
        • UserAgentProductsOption
          • Overview
          • Types
            • Type
        • UserIpOption
          • Overview
          • Types
            • Type
        • UserProjectOption
          • Overview
          • Types
            • Type
      • Functions
        • make_ready_future(T &&)
        • make_ready_future()
        • MakeStatusFromRpcError(grpc::Status const &)
        • MakeStatusFromRpcError(grpc::StatusCode, std::string)
        • MakeStatusFromRpcError(google::rpc::Status const &)
        • MakeKmsKeyName(std::string const &)
        • MakeLocation(std::string const &)
        • ParseSeverity(std::string const &)
        • MakeProject(std::string const &)
        • StatusCodeToString(StatusCode)
        • make_status_or(T)
        • AddUniverseDomainOption(ExperimentalTag, Options)
        • GetUniverseDomain(ExperimentalTag, Credentials const &, Options const &)
        • version_major()
        • version_minor()
        • version_patch()
        • version_pre_release()
        • version()
        • version_string()
      • Operators
        • operator<<(std::ostream &, AccessToken const &)
        • operator==(AccessToken const &, AccessToken const &)
        • operator!=(AccessToken const &, AccessToken const &)
        • operator<<(std::ostream &, Severity)
        • operator<<(std::ostream &, LogRecord const &)
        • operator<<(std::ostream &, StatusCode)
        • operator<<(std::ostream &, Status const &)
        • operator==(StatusOr< T > const &, StatusOr< T > const &)
        • operator!=(StatusOr< T > const &, StatusOr< T > const &)
      • Enums
        • Idempotency
          • Overview
          • kIdempotent
          • kNonIdempotent
        • Severity
          • Overview
          • GCP_LS_TRACE
          • GCP_LS_DEBUG
          • GCP_LS_INFO
          • GCP_LS_NOTICE
          • GCP_LS_WARNING
          • GCP_LS_ERROR
          • GCP_LS_CRITICAL
          • GCP_LS_ALERT
          • GCP_LS_FATAL
          • GCP_LS_HIGHEST
          • GCP_LS_LOWEST
          • GCP_LS_LOWEST_ENABLED
        • StatusCode
          • Overview
          • kOk
          • kCancelled
          • kUnknown
          • kInvalidArgument
          • kDeadlineExceeded
          • kNotFound
          • kAlreadyExists
          • kPermissionDenied
          • kResourceExhausted
          • kFailedPrecondition
          • kAborted
          • kOutOfRange
          • kUnimplemented
          • kInternal
          • kUnavailable
          • kDataLoss
          • kUnauthenticated
      • Types
        • CommonOptionList
        • BackoffPolicy
        • ExponentialBackoffPolicy
        • UnifiedCredentialsOptionList
        • BackgroundThreadsFactory
        • GrpcOptionList
        • IamUpdater
        • optional
        • OptionList
        • RestOptionList
    • google::cloud::experimental
      • Overview
      • Classes
        • SslCertificate
          • Overview
          • Constructors
            • SslCertificateType
              • Overview
              • kPEM
              • kDER
              • kP12
            • SslCertificate()
            • SslCertificate(std::string, std::string)
            • SslCertificate(std::string, std::string, SslCertificateType)
          • Functions
            • ssl_certificate() const
            • ssl_private_key() const
            • ssl_certificate_type() const
            • static ToString(SslCertificateType)
          • Enums
            • SslCertificateType
              • Overview
              • kPEM
              • kDER
              • kP12
      • Structs
        • CAInMemoryOption
          • Overview
          • Types
            • Type
        • ClientSslCertificateOption
          • Overview
          • Types
            • Type
        • SslCtxCallbackOption
          • Overview
          • Types
            • Type
      • Types
        • OpenTelemetryTracingOption
        • SslCtxCallback
    • google::cloud::mocks
      • Overview
      • Classes
        • MockAsyncStreamingReadWriteRpc<RequestType, ResponseType>
          • Overview
          • Functions
            • Cancel()
            • Start()
            • Read()
            • Write(RequestType const &, grpc::WriteOptions)
            • WritesDone()
            • Finish()
            • virtual GetRequestMetadata() const
      • Functions
        • CurrentOptions()
        • MakeStreamRange(std::vector< T >, Status)
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
Some or all of the information on this page might not apply to Cloud de Confiance by S3NS. See Differences from Google Cloud for more details.
  • Home
  • C++
  • Documentation
  • Reference

Struct ScopesOption (2.44.0-rc)

Configure the scopes for MakeImpersonateServiceAccountCredentials()

Type Aliases

Type

Alias Of: std::vector< std::string >

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-10 UTC.

  • Terms
  • Privacy
  • Manage cookies