Class: Google::Apis::ServicemanagementV1::SystemParameter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicemanagement_v1/classes.rb,
generated/google/apis/servicemanagement_v1/representations.rb,
generated/google/apis/servicemanagement_v1/representations.rb

Overview

Define a parameter's name and location. The parameter may be passed as either an HTTP header or a URL query parameter, and if both are passed the behavior is implementation-dependent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SystemParameter

Returns a new instance of SystemParameter



48
49
50
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 48

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

Instance Attribute Details

#http_headerString

Define the HTTP header name to use for the parameter. It is case insensitive. Corresponds to the JSON property httpHeader

Returns:

  • (String)


35
36
37
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 35

def http_header
  @http_header
end

#nameString

Define the name of the parameter, such as "api_key" . It is case sensitive. Corresponds to the JSON property name

Returns:

  • (String)


40
41
42
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 40

def name
  @name
end

#url_query_parameterString

Define the URL query parameter name to use for the parameter. It is case sensitive. Corresponds to the JSON property urlQueryParameter

Returns:

  • (String)


46
47
48
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 46

def url_query_parameter
  @url_query_parameter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



53
54
55
56
57
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 53

def update!(**args)
  @http_header = args[:http_header] if args.key?(:http_header)
  @name = args[:name] if args.key?(:name)
  @url_query_parameter = args[:url_query_parameter] if args.key?(:url_query_parameter)
end