Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory

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

Overview

the Api category resource wrapped with response status, error_code etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1ApiCategory

Returns a new instance of GoogleCloudApigeeV1ApiCategory.



454
455
456
# File 'lib/google/apis/apigee_v1/classes.rb', line 454

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

Instance Attribute Details

#dataGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData

the Api category resource. Corresponds to the JSON property data



432
433
434
# File 'lib/google/apis/apigee_v1/classes.rb', line 432

def data
  @data
end

#error_codeString

ID that can be used to find errors in the log files. Corresponds to the JSON property errorCode

Returns:

  • (String)


437
438
439
# File 'lib/google/apis/apigee_v1/classes.rb', line 437

def error_code
  @error_code
end

#messageString

Description of the operation. Corresponds to the JSON property message

Returns:

  • (String)


442
443
444
# File 'lib/google/apis/apigee_v1/classes.rb', line 442

def message
  @message
end

#request_idString

ID that can be used to find request details in the log files. Corresponds to the JSON property requestId

Returns:

  • (String)


447
448
449
# File 'lib/google/apis/apigee_v1/classes.rb', line 447

def request_id
  @request_id
end

#statusString

Status of the operation. Corresponds to the JSON property status

Returns:

  • (String)


452
453
454
# File 'lib/google/apis/apigee_v1/classes.rb', line 452

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



459
460
461
462
463
464
465
# File 'lib/google/apis/apigee_v1/classes.rb', line 459

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @error_code = args[:error_code] if args.key?(:error_code)
  @message = args[:message] if args.key?(:message)
  @request_id = args[:request_id] if args.key?(:request_id)
  @status = args[:status] if args.key?(:status)
end