Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1GraphQlOperation
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeV1::GoogleCloudApigeeV1GraphQlOperation
- 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
Represents the pairing of GraphQL operation types and the GraphQL operation name.
Instance Attribute Summary collapse
-
#operation ⇒ String
GraphQL operation name.
-
#operation_types ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApigeeV1GraphQlOperation
constructor
A new instance of GoogleCloudApigeeV1GraphQlOperation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApigeeV1GraphQlOperation
Returns a new instance of GoogleCloudApigeeV1GraphQlOperation.
3276 3277 3278 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3276 def initialize(**args) update!(**args) end |
Instance Attribute Details
#operation ⇒ String
GraphQL operation name. The name and operation type will be used to apply
quotas. If no name is specified, the quota will be applied to all GraphQL
operations irrespective of their operation names in the payload.
Corresponds to the JSON property operation
3268 3269 3270 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3268 def operation @operation end |
#operation_types ⇒ Array<String>
Required. GraphQL operation types. Valid values include query or mutation.
Note: Apigee does not currently support subscription types.
Corresponds to the JSON property operationTypes
3274 3275 3276 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3274 def operation_types @operation_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3281 3282 3283 3284 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3281 def update!(**args) @operation = args[:operation] if args.key?(:operation) @operation_types = args[:operation_types] if args.key?(:operation_types) end |