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.
3544 3545 3546 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3544 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Output only. The description of the property.
Corresponds to the JSON property description
3510 3511 3512 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3510 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
3519 3520 3521 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3519 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
3525 3526 3527 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3525 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
3531 3532 3533 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3531 def property_key @property_key end |
#type ⇒ String
Output only. The type of this property.
Corresponds to the JSON property type
3536 3537 3538 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3536 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
3542 3543 3544 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3542 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3549 3550 3551 3552 3553 3554 3555 3556 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3549 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 |