Class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerProperty
- Inherits:
-
Object
- Object
- Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerProperty
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb,
lib/google/apis/serviceconsumermanagement_v1beta1/representations.rb,
lib/google/apis/serviceconsumermanagement_v1beta1/representations.rb
Overview
A property assigned to a consumer of a service.
Instance Attribute Summary collapse
-
#description ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#propagation ⇒ Google::Apis::ServiceconsumermanagementV1beta1::Operation
This resource represents a long-running operation that is the result of a network API call.
-
#property_key ⇒ String
Output only.
-
#type ⇒ String
Output only.
-
#value ⇒ Object
Value of this property for the consumer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ V1Beta1ConsumerProperty
constructor
A new instance of V1Beta1ConsumerProperty.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ V1Beta1ConsumerProperty
Returns a new instance of V1Beta1ConsumerProperty.
3537 3538 3539 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3537 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Output only. The description of the property.
Corresponds to the JSON property description
3503 3504 3505 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3503 def description @description end |
#name ⇒ String
Output only. The resource name of this property. An example name would be:
services/serviceconsumermanagement.googleapis.com/projects/123/properties/
SERVICE_LEVEL The resource name is intended to be opaque and should not be
parsed for its component strings, since its representation could change in the
future.
Corresponds to the JSON property name
3512 3513 3514 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3512 def name @name end |
#propagation ⇒ Google::Apis::ServiceconsumermanagementV1beta1::Operation
This resource represents a long-running operation that is the result of a
network API call.
Corresponds to the JSON property propagation
3518 3519 3520 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3518 def propagation @propagation end |
#property_key ⇒ String
Output only. The name of the property as it appears in the service
configuration. An example property name would be: SERVICE_LEVEL
Corresponds to the JSON property propertyKey
3524 3525 3526 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3524 def property_key @property_key end |
#type ⇒ String
Output only. The type of this property.
Corresponds to the JSON property type
3529 3530 3531 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3529 def type @type end |
#value ⇒ Object
Value of this property for the consumer. This field may be empty if the
consumer has not been assigned a value.
Corresponds to the JSON property value
3535 3536 3537 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3535 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3542 3543 3544 3545 3546 3547 3548 3549 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3542 def update!(**args) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @propagation = args[:propagation] if args.key?(:propagation) @property_key = args[:property_key] if args.key?(:property_key) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |