Class: Google::Apis::ConnectorsV1::AuthConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb

Overview

AuthConfig defines details of a authentication type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthConfig

Returns a new instance of AuthConfig.



128
129
130
# File 'lib/google/apis/connectors_v1/classes.rb', line 128

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#additional_variablesArray<Google::Apis::ConnectorsV1::ConfigVariable>

List containing additional auth configs. Corresponds to the JSON property additionalVariables



103
104
105
# File 'lib/google/apis/connectors_v1/classes.rb', line 103

def additional_variables
  @additional_variables
end

#auth_typeString

The type of authentication configured. Corresponds to the JSON property authType

Returns:

  • (String)


108
109
110
# File 'lib/google/apis/connectors_v1/classes.rb', line 108

def auth_type
  @auth_type
end

#oauth2_client_credentialsGoogle::Apis::ConnectorsV1::Oauth2ClientCredentials

Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. Corresponds to the JSON property oauth2ClientCredentials



114
115
116
# File 'lib/google/apis/connectors_v1/classes.rb', line 114

def oauth2_client_credentials
  @oauth2_client_credentials
end

#oauth2_jwt_bearerGoogle::Apis::ConnectorsV1::Oauth2JwtBearer

Parameters to support JSON Web Token (JWT) Profile for Oauth 2.0 Authorization Grant based authentication. See https://tools.ietf.org/html/rfc7523 for more details. Corresponds to the JSON property oauth2JwtBearer



121
122
123
# File 'lib/google/apis/connectors_v1/classes.rb', line 121

def oauth2_jwt_bearer
  @oauth2_jwt_bearer
end

#user_passwordGoogle::Apis::ConnectorsV1::UserPassword

Parameters to support Username and Password Authentication. Corresponds to the JSON property userPassword



126
127
128
# File 'lib/google/apis/connectors_v1/classes.rb', line 126

def user_password
  @user_password
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



133
134
135
136
137
138
139
# File 'lib/google/apis/connectors_v1/classes.rb', line 133

def update!(**args)
  @additional_variables = args[:additional_variables] if args.key?(:additional_variables)
  @auth_type = args[:auth_type] if args.key?(:auth_type)
  @oauth2_client_credentials = args[:oauth2_client_credentials] if args.key?(:oauth2_client_credentials)
  @oauth2_jwt_bearer = args[:oauth2_jwt_bearer] if args.key?(:oauth2_jwt_bearer)
  @user_password = args[:user_password] if args.key?(:user_password)
end