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 10, 2020
1 parent 0ba45b6 commit 4a8b89f
Show file tree
Hide file tree
Showing 6 changed files with 592 additions and 16 deletions.
67 changes: 67 additions & 0 deletions api_names_out.yaml
Expand Up @@ -10625,6 +10625,7 @@
"/apigee:v1/GoogleCloudApigeeV1App/status": status
"/apigee:v1/GoogleCloudApigeeV1AsyncQuery": google_cloud_apigee_v1_async_query
"/apigee:v1/GoogleCloudApigeeV1AsyncQuery/created": created
"/apigee:v1/GoogleCloudApigeeV1AsyncQuery/envgroupHostname": envgroup_hostname
"/apigee:v1/GoogleCloudApigeeV1AsyncQuery/error": error
"/apigee:v1/GoogleCloudApigeeV1AsyncQuery/executionTime": execution_time
"/apigee:v1/GoogleCloudApigeeV1AsyncQuery/name": name
Expand All @@ -10639,6 +10640,13 @@
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResult": google_cloud_apigee_v1_async_query_result
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResult/expires": expires
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResult/self": self
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResultView": google_cloud_apigee_v1_async_query_result_view
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResultView/code": code
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResultView/error": error
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResultView/metadata": metadata
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResultView/rows": rows
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResultView/rows/row": row
"/apigee:v1/GoogleCloudApigeeV1AsyncQueryResultView/state": state
"/apigee:v1/GoogleCloudApigeeV1Attribute": google_cloud_apigee_v1_attribute
"/apigee:v1/GoogleCloudApigeeV1Attribute/name": name
"/apigee:v1/GoogleCloudApigeeV1Attribute/value": value
Expand Down Expand Up @@ -11181,6 +11189,7 @@
"/apigee:v1/GoogleCloudApigeeV1Query/csvDelimiter": csv_delimiter
"/apigee:v1/GoogleCloudApigeeV1Query/dimensions": dimensions
"/apigee:v1/GoogleCloudApigeeV1Query/dimensions/dimension": dimension
"/apigee:v1/GoogleCloudApigeeV1Query/envgroupHostname": envgroup_hostname
"/apigee:v1/GoogleCloudApigeeV1Query/filter": filter
"/apigee:v1/GoogleCloudApigeeV1Query/groupByTimeUnit": group_by_time_unit
"/apigee:v1/GoogleCloudApigeeV1Query/limit": limit
Expand Down Expand Up @@ -11344,13 +11353,21 @@
"/apigee:v1/GoogleCloudApigeeV1Stats": google_cloud_apigee_v1_stats
"/apigee:v1/GoogleCloudApigeeV1Stats/environments": environments
"/apigee:v1/GoogleCloudApigeeV1Stats/environments/environment": environment
"/apigee:v1/GoogleCloudApigeeV1Stats/hosts": hosts
"/apigee:v1/GoogleCloudApigeeV1Stats/hosts/host": host
"/apigee:v1/GoogleCloudApigeeV1Stats/metaData": meta_data
"/apigee:v1/GoogleCloudApigeeV1StatsEnvironmentStats": google_cloud_apigee_v1_stats_environment_stats
"/apigee:v1/GoogleCloudApigeeV1StatsEnvironmentStats/dimensions": dimensions
"/apigee:v1/GoogleCloudApigeeV1StatsEnvironmentStats/dimensions/dimension": dimension
"/apigee:v1/GoogleCloudApigeeV1StatsEnvironmentStats/metrics": metrics
"/apigee:v1/GoogleCloudApigeeV1StatsEnvironmentStats/metrics/metric": metric
"/apigee:v1/GoogleCloudApigeeV1StatsEnvironmentStats/name": name
"/apigee:v1/GoogleCloudApigeeV1StatsHostStats": google_cloud_apigee_v1_stats_host_stats
"/apigee:v1/GoogleCloudApigeeV1StatsHostStats/dimensions": dimensions
"/apigee:v1/GoogleCloudApigeeV1StatsHostStats/dimensions/dimension": dimension
"/apigee:v1/GoogleCloudApigeeV1StatsHostStats/metrics": metrics
"/apigee:v1/GoogleCloudApigeeV1StatsHostStats/metrics/metric": metric
"/apigee:v1/GoogleCloudApigeeV1StatsHostStats/name": name
"/apigee:v1/GoogleCloudApigeeV1Subscription": google_cloud_apigee_v1_subscription
"/apigee:v1/GoogleCloudApigeeV1Subscription/name": name
"/apigee:v1/GoogleCloudApigeeV1SyncAuthorization": google_cloud_apigee_v1_sync_authorization
Expand Down Expand Up @@ -11631,6 +11648,7 @@
"/apigee:v1/apigee.organizations.developers.get/action": action
"/apigee:v1/apigee.organizations.developers.get/name": name
"/apigee:v1/apigee.organizations.developers.list": list_organization_developers
"/apigee:v1/apigee.organizations.developers.list/app": app
"/apigee:v1/apigee.organizations.developers.list/count": count
"/apigee:v1/apigee.organizations.developers.list/expand": expand
"/apigee:v1/apigee.organizations.developers.list/ids": ids
Expand Down Expand Up @@ -11885,6 +11903,39 @@
"/apigee:v1/apigee.organizations.getDeployedIngressConfig/view": view
"/apigee:v1/apigee.organizations.getSyncAuthorization": get_organization_sync_authorization
"/apigee:v1/apigee.organizations.getSyncAuthorization/name": name
"/apigee:v1/apigee.organizations.hostQueries.create": create_organization_host_query
"/apigee:v1/apigee.organizations.hostQueries.create/parent": parent
"/apigee:v1/apigee.organizations.hostQueries.get": get_organization_host_query
"/apigee:v1/apigee.organizations.hostQueries.get/name": name
"/apigee:v1/apigee.organizations.hostQueries.getResult": get_organization_host_query_result
"/apigee:v1/apigee.organizations.hostQueries.getResult/name": name
"/apigee:v1/apigee.organizations.hostQueries.getResultView": get_organization_host_query_result_view
"/apigee:v1/apigee.organizations.hostQueries.getResultView/name": name
"/apigee:v1/apigee.organizations.hostQueries.list": list_organization_host_queries
"/apigee:v1/apigee.organizations.hostQueries.list/dataset": dataset
"/apigee:v1/apigee.organizations.hostQueries.list/envgroupHostname": envgroup_hostname
"/apigee:v1/apigee.organizations.hostQueries.list/from": from
"/apigee:v1/apigee.organizations.hostQueries.list/inclQueriesWithoutReport": incl_queries_without_report
"/apigee:v1/apigee.organizations.hostQueries.list/parent": parent
"/apigee:v1/apigee.organizations.hostQueries.list/status": status
"/apigee:v1/apigee.organizations.hostQueries.list/submittedBy": submitted_by
"/apigee:v1/apigee.organizations.hostQueries.list/to": to
"/apigee:v1/apigee.organizations.hostStats.get": get_organization_host_stat
"/apigee:v1/apigee.organizations.hostStats.get/accuracy": accuracy
"/apigee:v1/apigee.organizations.hostStats.get/envgroupHostname": envgroup_hostname
"/apigee:v1/apigee.organizations.hostStats.get/filter": filter
"/apigee:v1/apigee.organizations.hostStats.get/limit": limit
"/apigee:v1/apigee.organizations.hostStats.get/name": name
"/apigee:v1/apigee.organizations.hostStats.get/offset": offset
"/apigee:v1/apigee.organizations.hostStats.get/realtime": realtime
"/apigee:v1/apigee.organizations.hostStats.get/select": select
"/apigee:v1/apigee.organizations.hostStats.get/sort": sort
"/apigee:v1/apigee.organizations.hostStats.get/sortby": sortby
"/apigee:v1/apigee.organizations.hostStats.get/timeRange": time_range
"/apigee:v1/apigee.organizations.hostStats.get/timeUnit": time_unit
"/apigee:v1/apigee.organizations.hostStats.get/topk": topk
"/apigee:v1/apigee.organizations.hostStats.get/tsAscending": ts_ascending
"/apigee:v1/apigee.organizations.hostStats.get/tzo": tzo
"/apigee:v1/apigee.organizations.instances.attachments.create": create_organization_instance_attachment
"/apigee:v1/apigee.organizations.instances.attachments.create/parent": parent
"/apigee:v1/apigee.organizations.instances.attachments.delete": delete_organization_instance_attachment
Expand Down Expand Up @@ -11924,6 +11975,22 @@
"/apigee:v1/apigee.organizations.operations.list/name": name
"/apigee:v1/apigee.organizations.operations.list/pageSize": page_size
"/apigee:v1/apigee.organizations.operations.list/pageToken": page_token
"/apigee:v1/apigee.organizations.optimizedHostStats.get": get_organization_optimized_host_stat
"/apigee:v1/apigee.organizations.optimizedHostStats.get/accuracy": accuracy
"/apigee:v1/apigee.organizations.optimizedHostStats.get/envgroupHostname": envgroup_hostname
"/apigee:v1/apigee.organizations.optimizedHostStats.get/filter": filter
"/apigee:v1/apigee.organizations.optimizedHostStats.get/limit": limit
"/apigee:v1/apigee.organizations.optimizedHostStats.get/name": name
"/apigee:v1/apigee.organizations.optimizedHostStats.get/offset": offset
"/apigee:v1/apigee.organizations.optimizedHostStats.get/realtime": realtime
"/apigee:v1/apigee.organizations.optimizedHostStats.get/select": select
"/apigee:v1/apigee.organizations.optimizedHostStats.get/sort": sort
"/apigee:v1/apigee.organizations.optimizedHostStats.get/sortby": sortby
"/apigee:v1/apigee.organizations.optimizedHostStats.get/timeRange": time_range
"/apigee:v1/apigee.organizations.optimizedHostStats.get/timeUnit": time_unit
"/apigee:v1/apigee.organizations.optimizedHostStats.get/topk": topk
"/apigee:v1/apigee.organizations.optimizedHostStats.get/tsAscending": ts_ascending
"/apigee:v1/apigee.organizations.optimizedHostStats.get/tzo": tzo
"/apigee:v1/apigee.organizations.reports.create": create_organization_report
"/apigee:v1/apigee.organizations.reports.create/parent": parent
"/apigee:v1/apigee.organizations.reports.delete": delete_organization_report
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/apigee_v1.rb
Expand Up @@ -29,7 +29,7 @@ module Apis
# @see https://cloud.google.com/apigee-api-management/
module ApigeeV1
VERSION = 'V1'
REVISION = '20201029'
REVISION = '20201108'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
Expand Down
125 changes: 114 additions & 11 deletions generated/google/apis/apigee_v1/classes.rb
Expand Up @@ -850,6 +850,11 @@ class GoogleCloudApigeeV1AsyncQuery
# @return [String]
attr_accessor :created

# Hostname is available only when query is executed at host level.
# Corresponds to the JSON property `envgroupHostname`
# @return [String]
attr_accessor :envgroup_hostname

# Error is set when query fails.
# Corresponds to the JSON property `error`
# @return [String]
Expand Down Expand Up @@ -891,7 +896,9 @@ class GoogleCloudApigeeV1AsyncQuery
attr_accessor :result_rows

# Self link of the query. Example: `/organizations/myorg/environments/myenv/
# queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd`
# queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd` or following format if query is
# running at host level: `/organizations/myorg/hostQueries/9cfc0d85-0f30-46d6-
# ae6f-318d0cb961bd`
# Corresponds to the JSON property `self`
# @return [String]
attr_accessor :self
Expand All @@ -913,6 +920,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@created = args[:created] if args.key?(:created)
@envgroup_hostname = args[:envgroup_hostname] if args.key?(:envgroup_hostname)
@error = args[:error] if args.key?(:error)
@execution_time = args[:execution_time] if args.key?(:execution_time)
@name = args[:name] if args.key?(:name)
Expand All @@ -937,7 +945,9 @@ class GoogleCloudApigeeV1AsyncQueryResult
attr_accessor :expires

# Self link of the query results. Example: `/organizations/myorg/environments/
# myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result`
# myenv/queries/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result` or following format
# if query is running at host level: `/organizations/myorg/hostQueries/9cfc0d85-
# 0f30-46d6-ae6f-318d0cb961bd/result`
# Corresponds to the JSON property `self`
# @return [String]
attr_accessor :self
Expand All @@ -953,6 +963,50 @@ def update!(**args)
end
end

#
class GoogleCloudApigeeV1AsyncQueryResultView
include Google::Apis::Core::Hashable

# Error code when there is a failure.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code

# Error message when there is a failure.
# Corresponds to the JSON property `error`
# @return [String]
attr_accessor :error

# Metadata contains information like metrics, dimenstions etc of the AsyncQuery.
# Corresponds to the JSON property `metadata`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1QueryMetadata]
attr_accessor :metadata

# Rows of query result. Each row is a JSON object. Example: `sum(message_count):
# 1, developer_app: "(not set)",…`
# Corresponds to the JSON property `rows`
# @return [Array<Object>]
attr_accessor :rows

# State of retrieving ResultView.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state

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

# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
@rows = args[:rows] if args.key?(:rows)
@state = args[:state] if args.key?(:state)
end
end

# Key-value pair to store extra metadata.
class GoogleCloudApigeeV1Attribute
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -4440,6 +4494,13 @@ class GoogleCloudApigeeV1Query
# @return [Array<String>]
attr_accessor :dimensions

# Hostname needs to be specified if query intends to run at host level. This
# field is only allowed when query is submitted by CreateHostAsyncQuery where
# analytics data will be grouped by organization and hostname.
# Corresponds to the JSON property `envgroupHostname`
# @return [String]
attr_accessor :envgroup_hostname

# Boolean expression that can be used to filter data. Filter expressions can be
# combined using AND/OR terms and should be fully parenthesized to avoid
# ambiguity. See Analytics metrics, dimensions, and filters reference https://
Expand Down Expand Up @@ -4504,6 +4565,7 @@ def initialize(**args)
def update!(**args)
@csv_delimiter = args[:csv_delimiter] if args.key?(:csv_delimiter)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@envgroup_hostname = args[:envgroup_hostname] if args.key?(:envgroup_hostname)
@filter = args[:filter] if args.key?(:filter)
@group_by_time_unit = args[:group_by_time_unit] if args.key?(:group_by_time_unit)
@limit = args[:limit] if args.key?(:limit)
Expand Down Expand Up @@ -5046,7 +5108,7 @@ class GoogleCloudApigeeV1RoutingRule
# 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 debug=true.
# the GetDeployedIngressConfig API is called with view=FULL.
# Corresponds to the JSON property `envGroupRevision`
# @return [Fixnum]
attr_accessor :env_group_revision
Expand All @@ -5060,14 +5122,14 @@ class GoogleCloudApigeeV1RoutingRule
# 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 debug=true.
# called with view=FULL.
# Corresponds to the JSON property `receiver`
# @return [String]
attr_accessor :receiver

# 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 debug=true.
# unless the GetDeployedIngressConfig API is called with view=FULL.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
Expand Down Expand Up @@ -5522,6 +5584,11 @@ class GoogleCloudApigeeV1Stats
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsEnvironmentStats>]
attr_accessor :environments

# This field contains a list of query results grouped by host.
# Corresponds to the JSON property `hosts`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsHostStats>]
attr_accessor :hosts

# This message type encapsulates additional information about query execution.
# Corresponds to the JSON property `metaData`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metadata]
Expand All @@ -5534,6 +5601,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@environments = args[:environments] if args.key?(:environments)
@hosts = args[:hosts] if args.key?(:hosts)
@meta_data = args[:meta_data] if args.key?(:meta_data)
end
end
Expand Down Expand Up @@ -5579,6 +5647,47 @@ def update!(**args)
end
end

# This message type encapsulates the hostname wrapper: "hosts": [ ` "metrics": [
# ` "name": "sum(message_count)", "values": [ "2.52056245E8" ] ` ], "name": "
# example.com" ` ]
class GoogleCloudApigeeV1StatsHostStats
include Google::Apis::Core::Hashable

# This field contains the list of metrics grouped under dimensions.
# Corresponds to the JSON property `dimensions`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric>]
attr_accessor :dimensions

# In the final response, only one of the following fields will be present based
# on the dimensions provided. If no dimensions are provided, then only a top
# level metrics is provided. If dimensions are included, then there will be a
# top level dimensions field under hostnames which will contain metrics values
# and the dimension name. Example: "hosts": [ ` "dimensions": [ ` "metrics": [ `
# "name": "sum(message_count)", "values": [ "2.14049521E8" ] ` ], "name": "
# nit_proxy" ` ], "name": "example.com" ` ] OR "hosts": [ ` "metrics": [ ` "name"
# : "sum(message_count)", "values": [ "2.19026331E8" ] ` ], "name": "example.com"
# ` ] This field contains the list of metric values.
# Corresponds to the JSON property `metrics`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric>]
attr_accessor :metrics

# This field contains the hostname used in query.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

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

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

# Pub/Sub subscription of an environment.
class GoogleCloudApigeeV1Subscription
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -6057,11 +6166,6 @@ def update!(**args)
class GoogleIamV1Binding
include Google::Apis::Core::Hashable

#
# Corresponds to the JSON property `bindingId`
# @return [String]
attr_accessor :binding_id

# Represents a textual expression in the Common Expression Language (CEL) syntax.
# CEL is a C-like expression language. The syntax and semantics of CEL are
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
Expand Down Expand Up @@ -6123,7 +6227,6 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@binding_id = args[:binding_id] if args.key?(:binding_id)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
Expand Down

0 comments on commit 4a8b89f

Please sign in to comment.