Class: Google::Apis::ComputeAlpha::BackendServiceIap

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

Overview

Identity-Aware Proxy

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BackendServiceIap

Returns a new instance of BackendServiceIap.



4283
4284
4285
# File 'lib/google/apis/compute_alpha/classes.rb', line 4283

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Whether the serving infrastructure will authenticate and authorize all incoming requests. If true, the oauth2ClientId and oauth2ClientSecret fields must be non-empty. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


4257
4258
4259
# File 'lib/google/apis/compute_alpha/classes.rb', line 4257

def enabled
  @enabled
end

#oauth2_client_idString

OAuth2 client ID to use for the authentication flow. Corresponds to the JSON property oauth2ClientId

Returns:

  • (String)


4263
4264
4265
# File 'lib/google/apis/compute_alpha/classes.rb', line 4263

def oauth2_client_id
  @oauth2_client_id
end

#oauth2_client_infoGoogle::Apis::ComputeAlpha::BackendServiceIapoAuth2ClientInfo

[Input Only] OAuth client info required to generate client id to be used for IAP. Corresponds to the JSON property oauth2ClientInfo



4269
4270
4271
# File 'lib/google/apis/compute_alpha/classes.rb', line 4269

def oauth2_client_info
  @oauth2_client_info
end

#oauth2_client_secretString

OAuth2 client secret to use for the authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field. @InputOnly Corresponds to the JSON property oauth2ClientSecret

Returns:

  • (String)


4276
4277
4278
# File 'lib/google/apis/compute_alpha/classes.rb', line 4276

def oauth2_client_secret
  @oauth2_client_secret
end

#oauth2_client_secret_sha256String

[Output Only] SHA256 hash value for the field oauth2_client_secret above. Corresponds to the JSON property oauth2ClientSecretSha256

Returns:

  • (String)


4281
4282
4283
# File 'lib/google/apis/compute_alpha/classes.rb', line 4281

def oauth2_client_secret_sha256
  @oauth2_client_secret_sha256
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4288
4289
4290
4291
4292
4293
4294
# File 'lib/google/apis/compute_alpha/classes.rb', line 4288

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
  @oauth2_client_info = args[:oauth2_client_info] if args.key?(:oauth2_client_info)
  @oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret)
  @oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256)
end