Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RoutingRule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1RoutingRule

Returns a new instance of GoogleCloudApigeeV1RoutingRule.



5210
5211
5212
# File 'generated/google/apis/apigee_v1/classes.rb', line 5210

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

Instance Attribute Details

#basepathString

URI path prefix used to route to the specified environment. May contain one or more wildcards. For example, path segments consisting of a single * character will match any string. Corresponds to the JSON property basepath

Returns:

  • (String)


5178
5179
5180
# File 'generated/google/apis/apigee_v1/classes.rb', line 5178

def basepath
  @basepath
end

#env_group_revisionFixnum

The env group config revision_id when this rule was added or last updated. This value is set when the rule is created and will only update if the the environment_id changes. It is used to determine if the runtime is up to date with respect to this rule. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL. Corresponds to the JSON property envGroupRevision

Returns:

  • (Fixnum)


5187
5188
5189
# File 'generated/google/apis/apigee_v1/classes.rb', line 5187

def env_group_revision
  @env_group_revision
end

#environmentString

Name of an environment bound to the environment group in the following format: organizations/org/environments/env`. Corresponds to the JSON propertyenvironment`

Returns:

  • (String)


5193
5194
5195
# File 'generated/google/apis/apigee_v1/classes.rb', line 5193

def environment
  @environment
end

#receiverString

The resource name of the proxy revision that is receiving this basepath in the following format: organizations/org/apis/api/revisions/rev`. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL. Corresponds to the JSON propertyreceiver`

Returns:

  • (String)


5201
5202
5203
# File 'generated/google/apis/apigee_v1/classes.rb', line 5201

def receiver
  @receiver
end

#update_timeString

The unix timestamp when this rule was updated. This is updated whenever env_group_revision is updated. This field is omitted from the IngressConfig unless the GetDeployedIngressConfig API is called with view=FULL. Corresponds to the JSON property updateTime

Returns:

  • (String)


5208
5209
5210
# File 'generated/google/apis/apigee_v1/classes.rb', line 5208

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5215
5216
5217
5218
5219
5220
5221
# File 'generated/google/apis/apigee_v1/classes.rb', line 5215

def update!(**args)
  @basepath = args[:basepath] if args.key?(:basepath)
  @env_group_revision = args[:env_group_revision] if args.key?(:env_group_revision)
  @environment = args[:environment] if args.key?(:environment)
  @receiver = args[:receiver] if args.key?(:receiver)
  @update_time = args[:update_time] if args.key?(:update_time)
end