Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1GraphQlOperationConfig
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeV1::GoogleCloudApigeeV1GraphQlOperationConfig
- 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
GraphQLOperationConfig binds the resources in a proxy or remote service with the graphQL operation and its associated quota enforcement.
Instance Attribute Summary collapse
-
#api_source ⇒ String
Required.
-
#attributes ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute>
Custom attributes associated with the operation.
-
#operations ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1GraphQlOperation>
Required.
-
#quota ⇒ Google::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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApigeeV1GraphQlOperationConfig
constructor
A new instance of GoogleCloudApigeeV1GraphQlOperationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApigeeV1GraphQlOperationConfig
Returns a new instance of GoogleCloudApigeeV1GraphQlOperationConfig.
3198 3199 3200 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3198 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_source ⇒ String
Required. API proxy endpoint or remote service name with which the graphQL
operation, and quota are associated.
Corresponds to the JSON property apiSource
3173 3174 3175 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3173 def api_source @api_source end |
#attributes ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute>
Custom attributes associated with the operation.
Corresponds to the JSON property attributes
3178 3179 3180 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3178 def attributes @attributes end |
#operations ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1GraphQlOperation>
Required. List of graphQL name/Operation type pairs for the proxy/remote
service, upon which quota will applied. If GraphQLOperation operation has only
the operation type(s), that would imply that quota will be applied on all
graphQL requests irrespective of the graphQL name. Note: Currently, we can
specify only a single GraphQLOperation. Specifying more than one will result
in failure of the operation.
Corresponds to the JSON property operations
3188 3189 3190 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3188 def operations @operations end |
#quota ⇒ Google::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
3196 3197 3198 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3196 def quota @quota end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3203 3204 3205 3206 3207 3208 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3203 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 |