Class: Google::Apis::ServicemanagementV1::ConfigChange

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicemanagement_v1/classes.rb,
generated/google/apis/servicemanagement_v1/representations.rb,
generated/google/apis/servicemanagement_v1/representations.rb

Overview

Output generated from semantically comparing two versions of a service configuration. Includes detailed information about a field that have changed with applicable advice about potential consequences for the change, such as backwards-incompatibility.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ConfigChange

Returns a new instance of ConfigChange



3846
3847
3848
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3846

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#advicesArray<Google::Apis::ServicemanagementV1::Advice>

Collection of advice provided for this change, useful for determining the possible impact of this change. Corresponds to the JSON property advices



3844
3845
3846
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3844

def advices
  @advices
end

#change_typeString

The type for this change, either ADDED, REMOVED, or MODIFIED. Corresponds to the JSON property changeType

Returns:

  • (String)


3819
3820
3821
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3819

def change_type
  @change_type
end

#elementString

Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples:

  • visibility.rules[selector=="google.LibraryService.CreateBook"].restriction
  • quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
  • logging.producer_destinations[0] Corresponds to the JSON property element

Returns:

  • (String)


3832
3833
3834
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3832

def element
  @element
end

#new_valueString

Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED. Corresponds to the JSON property newValue

Returns:

  • (String)


3814
3815
3816
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3814

def new_value
  @new_value
end

#old_valueString

Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED. Corresponds to the JSON property oldValue

Returns:

  • (String)


3838
3839
3840
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3838

def old_value
  @old_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3851
3852
3853
3854
3855
3856
3857
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3851

def update!(**args)
  @new_value = args[:new_value] if args.key?(:new_value)
  @change_type = args[:change_type] if args.key?(:change_type)
  @element = args[:element] if args.key?(:element)
  @old_value = args[:old_value] if args.key?(:old_value)
  @advices = args[:advices] if args.key?(:advices)
end