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.



501
502
503
# File 'lib/google/apis/apigee_v1/classes.rb', line 501

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

Instance Attribute Details

#dataGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData

ApiCategoryData represents an API category. Catalog items can be tagged with API categories; users viewing the API catalog in the portal will have the option to browse the catalog by category. Corresponds to the JSON property data



479
480
481
# File 'lib/google/apis/apigee_v1/classes.rb', line 479

def data
  @data
end

#error_codeString

Unique error code for the request, if any. Corresponds to the JSON property errorCode

Returns:

  • (String)


484
485
486
# File 'lib/google/apis/apigee_v1/classes.rb', line 484

def error_code
  @error_code
end

#messageString

Description of the operation. Corresponds to the JSON property message

Returns:

  • (String)


489
490
491
# File 'lib/google/apis/apigee_v1/classes.rb', line 489

def message
  @message
end

#request_idString

Unique ID of the request. Corresponds to the JSON property requestId

Returns:

  • (String)


494
495
496
# File 'lib/google/apis/apigee_v1/classes.rb', line 494

def request_id
  @request_id
end

#statusString

Status of the operation. Corresponds to the JSON property status

Returns:

  • (String)


499
500
501
# File 'lib/google/apis/apigee_v1/classes.rb', line 499

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



506
507
508
509
510
511
512
# File 'lib/google/apis/apigee_v1/classes.rb', line 506

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