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.



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

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)


3503
3504
3505
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3503

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)


3512
3513
3514
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3512

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



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

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)


3524
3525
3526
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3524

def property_key
  @property_key
end

#typeString

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

Returns:

  • (String)


3529
3530
3531
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3529

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)


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