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
GraphQLOperation represents the pairing of graphQL operation types and the graphQL operation name.
Instance Attribute Summary collapse
-
#operation ⇒ String
GraphQL operation name, along with operation type which will be used to associate quotas with.
-
#operation_type ⇒ 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.
3102 3103 3104 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3102 def initialize(**args) update!(**args) end |
Instance Attribute Details
#operation ⇒ String
GraphQL operation name, along with operation type which will be used to
associate quotas with. 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
3094 3095 3096 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3094 def operation @operation end |
#operation_type ⇒ Array<String>
Required. query, mutation and subscription are the three operation types
offered by graphQL. Currently we support only query and mutation.
Corresponds to the JSON property operationType
3100 3101 3102 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3100 def operation_type @operation_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3107 3108 3109 3110 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 3107 def update!(**args) @operation = args[:operation] if args.key?(:operation) @operation_type = args[:operation_type] if args.key?(:operation_type) end |