Class: Google::Apis::ServicecontrolV2::CheckRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicecontrol_v2/classes.rb,
lib/google/apis/servicecontrol_v2/representations.rb,
lib/google/apis/servicecontrol_v2/representations.rb

Overview

Request message for the Check method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CheckRequest

Returns a new instance of CheckRequest.



502
503
504
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 502

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

Instance Attribute Details

#attributesGoogle::Apis::ServicecontrolV2::AttributeContext

This message defines the standard attribute vocabulary for Google APIs. An attribute is a piece of metadata that describes an activity on a network service. For example, the size of an HTTP request, or the status code of an HTTP response. Each attribute has a type and a name, which is logically defined as a proto message field in AttributeContext. The field type becomes the attribute type, and the field path becomes the attribute name. For example, the attribute source.ip maps to field AttributeContext.source.ip. This message definition is guaranteed not to have any wire breaking change. So you can use it directly for passing attributes across different systems. NOTE: Different system may generate different subset of attributes. Please verify the system specification before relying on an attribute generated a system. Corresponds to the JSON property attributes



483
484
485
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 483

def attributes
  @attributes
end

#flagsString

Optional. Contains a comma-separated list of flags. Corresponds to the JSON property flags

Returns:

  • (String)


488
489
490
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 488

def flags
  @flags
end

#resourcesArray<Google::Apis::ServicecontrolV2::ResourceInfo>

Describes the resources and the policies applied to each resource. Corresponds to the JSON property resources



493
494
495
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 493

def resources
  @resources
end

#service_config_idString

Specifies the version of the service configuration that should be used to process the request. Must not be empty. Set this field to 'latest' to specify using the latest configuration. Corresponds to the JSON property serviceConfigId

Returns:

  • (String)


500
501
502
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 500

def service_config_id
  @service_config_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @attributes = args[:attributes] if args.key?(:attributes)
  @flags = args[:flags] if args.key?(:flags)
  @resources = args[:resources] if args.key?(:resources)
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
end