Class: Google::Apis::ComputeAlpha::CallCredentials
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CallCredentials
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
gRPC call credentials to access the SDS server.
Instance Attribute Summary collapse
-
#access_token ⇒ String
The access token that is used as call credential for the SDS server.
-
#call_credential_type ⇒ String
The type of call credentials to use for GRPC requests to the SDS server.
-
#from_plugin ⇒ Google::Apis::ComputeAlpha::MetadataCredentialsFromPlugin
Custom authenticator credentials.
-
#jwt_service_account ⇒ Google::Apis::ComputeAlpha::ServiceAccountJwtAccessCredentials
JWT credentials for a service account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CallCredentials
constructor
A new instance of CallCredentials.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CallCredentials
Returns a new instance of CallCredentials
3787 3788 3789 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 3787 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ String
The access token that is used as call credential for the SDS server. This
field is used only if callCredentialType is ACCESS_TOKEN.
Corresponds to the JSON property accessToken
3764 3765 3766 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 3764 def access_token @access_token end |
#call_credential_type ⇒ String
The type of call credentials to use for GRPC requests to the SDS server. This
field can be set to one of the following: ACCESS_TOKEN: An access token is
used as call credentials for the SDS server. GCE_VM: The local GCE VM service
account credentials are used to access the SDS server. JWT_SERVICE_TOKEN: The
user provisioned service account credentials are used to access the SDS server.
FROM_PLUGIN: Custom authenticator credentials are used to access the SDS
server.
Corresponds to the JSON property callCredentialType
3775 3776 3777 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 3775 def call_credential_type @call_credential_type end |
#from_plugin ⇒ Google::Apis::ComputeAlpha::MetadataCredentialsFromPlugin
Custom authenticator credentials.
Corresponds to the JSON property fromPlugin
3780 3781 3782 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 3780 def from_plugin @from_plugin end |
#jwt_service_account ⇒ Google::Apis::ComputeAlpha::ServiceAccountJwtAccessCredentials
JWT credentials for a service account.
Corresponds to the JSON property jwtServiceAccount
3785 3786 3787 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 3785 def jwt_service_account @jwt_service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3792 3793 3794 3795 3796 3797 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 3792 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @call_credential_type = args[:call_credential_type] if args.key?(:call_credential_type) @from_plugin = args[:from_plugin] if args.key?(:from_plugin) @jwt_service_account = args[:jwt_service_account] if args.key?(:jwt_service_account) end |