Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationConfig

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

OperationConfig binds the resources in a proxy or remote service with the allowed REST methods and its associated quota enforcement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1OperationConfig

Returns a new instance of GoogleCloudApigeeV1OperationConfig.



4312
4313
4314
# File 'lib/google/apis/apigee_v1/classes.rb', line 4312

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

Instance Attribute Details

#api_sourceString

Required. API proxy or remote service name with which the resources, methods, and quota are associated. Corresponds to the JSON property apiSource

Returns:

  • (String)


4289
4290
4291
# File 'lib/google/apis/apigee_v1/classes.rb', line 4289

def api_source
  @api_source
end

#attributesArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute>

Custom attributes associated with the operation. Corresponds to the JSON property attributes



4294
4295
4296
# File 'lib/google/apis/apigee_v1/classes.rb', line 4294

def attributes
  @attributes
end

#operationsArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Operation>

List of resource/method pairs for the proxy/remote service, upon which quota will applied. Note: Currently, you can specify only a single resource/ method pair. The call will fail if more than one resource/method pair is provided. Corresponds to the JSON property operations



4302
4303
4304
# File 'lib/google/apis/apigee_v1/classes.rb', line 4302

def operations
  @operations
end

#quotaGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1Quota

Quota contains the essential parameters needed that can be applied on a proxy/ remote service, resources and methods combination associated with this API product. While setting of Quota is optional, setting it prevents requests from exceeding the provisioned parameters. Corresponds to the JSON property quota



4310
4311
4312
# File 'lib/google/apis/apigee_v1/classes.rb', line 4310

def quota
  @quota
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4317
4318
4319
4320
4321
4322
# File 'lib/google/apis/apigee_v1/classes.rb', line 4317

def update!(**args)
  @api_source = args[:api_source] if args.key?(:api_source)
  @attributes = args[:attributes] if args.key?(:attributes)
  @operations = args[:operations] if args.key?(:operations)
  @quota = args[:quota] if args.key?(:quota)
end