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:



368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
# File 'proto_docs/google/cloud/functions/v1/functions.rb', line 368

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.



368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
# File 'proto_docs/google/cloud/functions/v1/functions.rb', line 368

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