Class: Google::Cloud::Functions::V1::HttpsTrigger

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/functions/v1/functions.rb

Overview

Describes HttpsTrigger, could be used to connect web hooks to function.

Defined Under Namespace

Modules: SecurityLevel

Instance Attribute Summary collapse

Instance Attribute Details

#security_level::Google::Cloud::Functions::V1::HttpsTrigger::SecurityLevel

Returns The security level for the function.

Returns:



389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'proto_docs/google/cloud/functions/v1/functions.rb', line 389

class HttpsTrigger
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Available security level settings.
  #
  # This controls the methods to enforce security (HTTPS) on a URL.
  #
  # If unspecified, SECURE_OPTIONAL will be used.
  module SecurityLevel
    # Unspecified.
    SECURITY_LEVEL_UNSPECIFIED = 0

    # Requests for a URL that match this handler that do not use HTTPS are
    # automatically redirected to the HTTPS URL with the same path. Query
    # parameters are reserved for the redirect.
    SECURE_ALWAYS = 1

    # Both HTTP and HTTPS requests with URLs that match the handler succeed
    # without redirects. The application can examine the request to determine
    # which protocol was used and respond accordingly.
    SECURE_OPTIONAL = 2
  end
end

#url::String (readonly)

Returns Output only. The deployed url for the function.

Returns:

  • (::String)

    Output only. The deployed url for the function.



389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'proto_docs/google/cloud/functions/v1/functions.rb', line 389

class HttpsTrigger
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Available security level settings.
  #
  # This controls the methods to enforce security (HTTPS) on a URL.
  #
  # If unspecified, SECURE_OPTIONAL will be used.
  module SecurityLevel
    # Unspecified.
    SECURITY_LEVEL_UNSPECIFIED = 0

    # Requests for a URL that match this handler that do not use HTTPS are
    # automatically redirected to the HTTPS URL with the same path. Query
    # parameters are reserved for the redirect.
    SECURE_ALWAYS = 1

    # Both HTTP and HTTPS requests with URLs that match the handler succeed
    # without redirects. The application can examine the request to determine
    # which protocol was used and respond accordingly.
    SECURE_OPTIONAL = 2
  end
end