Class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerProperty

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#descriptionString

Output only. The description of the property. Corresponds to the JSON property description

Returns:

  • (String)


3510
3511
3512
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3510

def description
  @description
end

#nameString

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

Returns:

  • (String)


3519
3520
3521
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3519

def name
  @name
end

#propagationGoogle::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_keyString

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

Returns:

  • (String)


3531
3532
3533
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3531

def property_key
  @property_key
end

#typeString

Output only. The type of this property. Corresponds to the JSON property type

Returns:

  • (String)


3536
3537
3538
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3536

def type
  @type
end

#valueObject

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

Returns:

  • (Object)


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