Class: Google::Apis::ServicenetworkingV1::MethodPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::MethodPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/representations.rb
Overview
Defines policies applying to an RPC method.
Instance Attribute Summary collapse
-
#request_policies ⇒ Array<Google::Apis::ServicenetworkingV1::FieldPolicy>
Policies that are applicable to the request message.
-
#selector ⇒ String
Selects a method to which these policies should be enforced, for example, " google.pubsub.v1.Subscriber.CreateSubscription".
Instance Method Summary collapse
-
#initialize(**args) ⇒ MethodPolicy
constructor
A new instance of MethodPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MethodPolicy
Returns a new instance of MethodPolicy.
2970 2971 2972 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2970 def initialize(**args) update!(**args) end |
Instance Attribute Details
#request_policies ⇒ Array<Google::Apis::ServicenetworkingV1::FieldPolicy>
Policies that are applicable to the request message.
Corresponds to the JSON property requestPolicies
2960 2961 2962 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2960 def request_policies @request_policies end |
#selector ⇒ String
Selects a method to which these policies should be enforced, for example, "
google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax
details. NOTE: This field must not be set in the proto annotation. It will be
automatically filled by the service config compiler .
Corresponds to the JSON property selector
2968 2969 2970 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2968 def selector @selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2975 2976 2977 2978 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2975 def update!(**args) @request_policies = args[:request_policies] if args.key?(:request_policies) @selector = args[:selector] if args.key?(:selector) end |