Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentGroupConfig

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

Overview

EnvironmentGroupConfig is a revisioned snapshot of an EnvironmentGroup and its associated routing rules.

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) ⇒ GoogleCloudApigeeV1EnvironmentGroupConfig

Returns a new instance of GoogleCloudApigeeV1EnvironmentGroupConfig.


2491
2492
2493
# File 'generated/google/apis/apigee_v1/classes.rb', line 2491

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

Instance Attribute Details

#hostnamesArray<String>

Host names for the environment group. Corresponds to the JSON property hostnames

Returns:

  • (Array<String>)

2465
2466
2467
# File 'generated/google/apis/apigee_v1/classes.rb', line 2465

def hostnames
  @hostnames
end

#nameString

Name of the environment group in the following format: organizations/org/ envgroups/envgroup`. Corresponds to the JSON propertyname`

Returns:

  • (String)

2471
2472
2473
# File 'generated/google/apis/apigee_v1/classes.rb', line 2471

def name
  @name
end

#revision_idFixnum

Revision id that defines the ordering of the EnvironmentGroupConfig resource. The higher the revision, the more recently the configuration was deployed. Corresponds to the JSON property revisionId

Returns:

  • (Fixnum)

2477
2478
2479
# File 'generated/google/apis/apigee_v1/classes.rb', line 2477

def revision_id
  @revision_id
end

#routing_rulesArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1RoutingRule>

Ordered list of routing rules defining how traffic to this environment group's hostnames should be routed to different environments. Corresponds to the JSON property routingRules


2483
2484
2485
# File 'generated/google/apis/apigee_v1/classes.rb', line 2483

def routing_rules
  @routing_rules
end

#uidString

A unique id for the environment group config that will only change if the environment group is deleted and recreated. Corresponds to the JSON property uid

Returns:

  • (String)

2489
2490
2491
# File 'generated/google/apis/apigee_v1/classes.rb', line 2489

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2496
2497
2498
2499
2500
2501
2502
# File 'generated/google/apis/apigee_v1/classes.rb', line 2496

def update!(**args)
  @hostnames = args[:hostnames] if args.key?(:hostnames)
  @name = args[:name] if args.key?(:name)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
  @routing_rules = args[:routing_rules] if args.key?(:routing_rules)
  @uid = args[:uid] if args.key?(:uid)
end