Class: Google::Apis::ApimV1alpha::ApiOperation

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

Overview

Message describing ApiOperation object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApiOperation

Returns a new instance of ApiOperation.



130
131
132
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 130

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

Instance Attribute Details

#countFixnum

The number of occurrences of this API Operation. Corresponds to the JSON property count

Returns:

  • (Fixnum)


108
109
110
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 108

def count
  @count
end

#first_seen_timeString

First seen time stamp Corresponds to the JSON property firstSeenTime

Returns:

  • (String)


113
114
115
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 113

def first_seen_time
  @first_seen_time
end

#http_operationGoogle::Apis::ApimV1alpha::HttpOperation

An HTTP-based API Operation, sometimes called a "REST" Operation. Corresponds to the JSON property httpOperation



118
119
120
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 118

def http_operation
  @http_operation
end

#last_seen_timeString

Last seen time stamp Corresponds to the JSON property lastSeenTime

Returns:

  • (String)


123
124
125
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 123

def last_seen_time
  @last_seen_time
end

#nameString

Identifier. Name of resource Corresponds to the JSON property name

Returns:

  • (String)


128
129
130
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 128

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



135
136
137
138
139
140
141
# File 'lib/google/apis/apim_v1alpha/classes.rb', line 135

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @first_seen_time = args[:first_seen_time] if args.key?(:first_seen_time)
  @http_operation = args[:http_operation] if args.key?(:http_operation)
  @last_seen_time = args[:last_seen_time] if args.key?(:last_seen_time)
  @name = args[:name] if args.key?(:name)
end