Skip to content

Commit

Permalink
feat: Automated regeneration of apigee v1 client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Nov 24, 2024
1 parent 2b7105a commit 391546c
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 2 deletions.
6 changes: 6 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32486,6 +32486,7 @@
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig": google_cloud_apigee_v1_environment_config
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig/addonsConfig": addons_config
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig/arcConfigLocation": arc_config_location
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig/clientIpResolutionConfig": client_ip_resolution_config
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig/createTime": create_time
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig/dataCollectors": data_collectors
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig/dataCollectors/data_collector": data_collector
Expand Down Expand Up @@ -32516,6 +32517,11 @@
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig/targets/target": target
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig/traceConfig": trace_config
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfig/uid": uid
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig": google_cloud_apigee_v1_environment_config_client_ip_resolution_config
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig/headerIndexAlgorithm": header_index_algorithm
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm": google_cloud_apigee_v1_environment_config_client_ip_resolution_config_header_index_algorithm
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm/ipHeaderIndex": ip_header_index
"/apigee:v1/GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm/ipHeaderName": ip_header_name
"/apigee:v1/GoogleCloudApigeeV1EnvironmentGroup": google_cloud_apigee_v1_environment_group
"/apigee:v1/GoogleCloudApigeeV1EnvironmentGroup/createdAt": created_at
"/apigee:v1/GoogleCloudApigeeV1EnvironmentGroup/hostnames": hostnames
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-apigee_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-apigee_v1

### v0.97.0 (2024-11-24)

* Regenerated from discovery document revision 20241116

### v0.96.0 (2024-10-20)

* Regenerated from discovery document revision 20241011
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4382,6 +4382,11 @@ class GoogleCloudApigeeV1EnvironmentConfig
# @return [String]
attr_accessor :arc_config_location

# Configuration for resolving the client ip.
# Corresponds to the JSON property `clientIpResolutionConfig`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfig]
attr_accessor :client_ip_resolution_config

# Time that the environment configuration was created.
# Corresponds to the JSON property `createTime`
# @return [String]
Expand Down Expand Up @@ -4506,6 +4511,7 @@ def initialize(**args)
def update!(**args)
@addons_config = args[:addons_config] if args.key?(:addons_config)
@arc_config_location = args[:arc_config_location] if args.key?(:arc_config_location)
@client_ip_resolution_config = args[:client_ip_resolution_config] if args.key?(:client_ip_resolution_config)
@create_time = args[:create_time] if args.key?(:create_time)
@data_collectors = args[:data_collectors] if args.key?(:data_collectors)
@debug_mask = args[:debug_mask] if args.key?(:debug_mask)
Expand All @@ -4530,6 +4536,50 @@ def update!(**args)
end
end

# Configuration for resolving the client ip.
class GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfig
include Google::Apis::Core::Hashable

# Resolves the client ip based on a custom header.
# Corresponds to the JSON property `headerIndexAlgorithm`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfigHeaderIndexAlgorithm]
attr_accessor :header_index_algorithm

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

# Update properties of this object
def update!(**args)
@header_index_algorithm = args[:header_index_algorithm] if args.key?(:header_index_algorithm)
end
end

# Resolves the client ip based on a custom header.
class GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfigHeaderIndexAlgorithm
include Google::Apis::Core::Hashable

# The index of the ip in the header. (By default, value is 0 if missing)
# Corresponds to the JSON property `ipHeaderIndex`
# @return [Fixnum]
attr_accessor :ip_header_index

# The name of the header to extract the client ip from.
# Corresponds to the JSON property `ipHeaderName`
# @return [String]
attr_accessor :ip_header_name

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

# Update properties of this object
def update!(**args)
@ip_header_index = args[:ip_header_index] if args.key?(:ip_header_index)
@ip_header_name = args[:ip_header_name] if args.key?(:ip_header_name)
end
end

# EnvironmentGroup configuration. An environment group is used to group one or
# more Apigee environments under a single host name.
class GoogleCloudApigeeV1EnvironmentGroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ApigeeV1
# Version of the google-apis-apigee_v1 gem
GEM_VERSION = "0.96.0"
GEM_VERSION = "0.97.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.15.1"

# Revision of the discovery document this client was generated from
REVISION = "20241011"
REVISION = "20241116"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfigHeaderIndexAlgorithm
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudApigeeV1EnvironmentGroup
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -2898,6 +2910,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :addons_config, as: 'addonsConfig', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RuntimeAddonsConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RuntimeAddonsConfig::Representation

property :arc_config_location, as: 'arcConfigLocation'
property :client_ip_resolution_config, as: 'clientIpResolutionConfig', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfig::Representation

property :create_time, as: 'createTime'
collection :data_collectors, as: 'dataCollectors', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollectorConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollectorConfig::Representation

Expand Down Expand Up @@ -2932,6 +2946,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :header_index_algorithm, as: 'headerIndexAlgorithm', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfigHeaderIndexAlgorithm, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfigHeaderIndexAlgorithm::Representation

end
end

class GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfigHeaderIndexAlgorithm
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_header_index, as: 'ipHeaderIndex'
property :ip_header_name, as: 'ipHeaderName'
end
end

class GoogleCloudApigeeV1EnvironmentGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit 391546c

Please sign in to comment.