class Google::Apis::ServicenetworkingV1::MethodProp
Method represents a method of an API interface.
Attributes
The simple name of this method. Corresponds to the JSON property `name` @return [String]
Any metadata attached to the method. Corresponds to the JSON property `options` @return [Array<Google::Apis::ServicenetworkingV1::Option>]
If true, the request is streamed. Corresponds to the JSON property `requestStreaming` @return [Boolean]
If true, the request is streamed. Corresponds to the JSON property `requestStreaming` @return [Boolean]
A URL of the input message type. Corresponds to the JSON property `requestTypeUrl` @return [String]
If true, the response is streamed. Corresponds to the JSON property `responseStreaming` @return [Boolean]
If true, the response is streamed. Corresponds to the JSON property `responseStreaming` @return [Boolean]
The URL of the output message type. Corresponds to the JSON property `responseTypeUrl` @return [String]
The source syntax of this method. Corresponds to the JSON property `syntax` @return [String]
Public Class Methods
# File lib/google/apis/servicenetworking_v1/classes.rb, line 2289 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/servicenetworking_v1/classes.rb, line 2294 def update!(**args) @name = args[:name] if args.key?(:name) @options = args[:options] if args.key?(:options) @request_streaming = args[:request_streaming] if args.key?(:request_streaming) @request_type_url = args[:request_type_url] if args.key?(:request_type_url) @response_streaming = args[:response_streaming] if args.key?(:response_streaming) @response_type_url = args[:response_type_url] if args.key?(:response_type_url) @syntax = args[:syntax] if args.key?(:syntax) end