From 4a8b89f4b72a567e777db921e70038b84ca2b074 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 10 Nov 2020 01:36:50 -0800 Subject: [PATCH] feat: Automated regeneration of apigee v1 client --- api_names_out.yaml | 67 ++++ generated/google/apis/apigee_v1.rb | 2 +- generated/google/apis/apigee_v1/classes.rb | 125 +++++- .../google/apis/apigee_v1/representations.rb | 40 +- generated/google/apis/apigee_v1/service.rb | 372 +++++++++++++++++- .../google/apis/apigee_v1/synth.metadata | 2 +- 6 files changed, 592 insertions(+), 16 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 70fc814c6db..54f6e47ca2a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 @@ -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 @@ -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 @@ -11344,6 +11353,8 @@ "/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 @@ -11351,6 +11362,12 @@ "/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 @@ -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 @@ -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 @@ -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 diff --git a/generated/google/apis/apigee_v1.rb b/generated/google/apis/apigee_v1.rb index 8a3e839a645..04b5dc2b3da 100644 --- a/generated/google/apis/apigee_v1.rb +++ b/generated/google/apis/apigee_v1.rb @@ -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' diff --git a/generated/google/apis/apigee_v1/classes.rb b/generated/google/apis/apigee_v1/classes.rb index b8790814ea9..c81f6cf4496 100644 --- a/generated/google/apis/apigee_v1/classes.rb +++ b/generated/google/apis/apigee_v1/classes.rb @@ -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] @@ -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 @@ -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) @@ -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 @@ -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] + 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 @@ -4440,6 +4494,13 @@ class GoogleCloudApigeeV1Query # @return [Array] 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:// @@ -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) @@ -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 @@ -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 @@ -5522,6 +5584,11 @@ class GoogleCloudApigeeV1Stats # @return [Array] attr_accessor :environments + # This field contains a list of query results grouped by host. + # Corresponds to the JSON property `hosts` + # @return [Array] + attr_accessor :hosts + # This message type encapsulates additional information about query execution. # Corresponds to the JSON property `metaData` # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metadata] @@ -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 @@ -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] + 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] + 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 @@ -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: @@ -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) diff --git a/generated/google/apis/apigee_v1/representations.rb b/generated/google/apis/apigee_v1/representations.rb index f7d266023e2..344421af432 100644 --- a/generated/google/apis/apigee_v1/representations.rb +++ b/generated/google/apis/apigee_v1/representations.rb @@ -124,6 +124,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1AsyncQueryResultView + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1Attribute class Representation < Google::Apis::Core::JsonRepresentation; end @@ -820,6 +826,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1StatsHostStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1Subscription class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1153,6 +1165,7 @@ class GoogleCloudApigeeV1AsyncQuery # @private class Representation < Google::Apis::Core::JsonRepresentation property :created, as: 'created' + property :envgroup_hostname, as: 'envgroupHostname' property :error, as: 'error' property :execution_time, as: 'executionTime' property :name, as: 'name' @@ -1177,6 +1190,18 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudApigeeV1AsyncQueryResultView + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :error, as: 'error' + property :metadata, as: 'metadata', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1QueryMetadata, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1QueryMetadata::Representation + + collection :rows, as: 'rows' + property :state, as: 'state' + end + end + class GoogleCloudApigeeV1Attribute # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2133,6 +2158,7 @@ class GoogleCloudApigeeV1Query class Representation < Google::Apis::Core::JsonRepresentation property :csv_delimiter, as: 'csvDelimiter' collection :dimensions, as: 'dimensions' + property :envgroup_hostname, as: 'envgroupHostname' property :filter, as: 'filter' property :group_by_time_unit, as: 'groupByTimeUnit' property :limit, as: 'limit' @@ -2415,6 +2441,8 @@ class GoogleCloudApigeeV1Stats class Representation < Google::Apis::Core::JsonRepresentation collection :environments, as: 'environments', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsEnvironmentStats, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsEnvironmentStats::Representation + collection :hosts, as: 'hosts', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsHostStats, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1StatsHostStats::Representation + property :meta_data, as: 'metaData', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metadata, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metadata::Representation end @@ -2431,6 +2459,17 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudApigeeV1StatsHostStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dimensions, as: 'dimensions', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric::Representation + + collection :metrics, as: 'metrics', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric::Representation + + property :name, as: 'name' + end + end + class GoogleCloudApigeeV1Subscription # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2549,7 +2588,6 @@ class Representation < Google::Apis::Core::JsonRepresentation class GoogleIamV1Binding # @private class Representation < Google::Apis::Core::JsonRepresentation - property :binding_id, as: 'bindingId' property :condition, as: 'condition', class: Google::Apis::ApigeeV1::GoogleTypeExpr, decorator: Google::Apis::ApigeeV1::GoogleTypeExpr::Representation collection :members, as: 'members' diff --git a/generated/google/apis/apigee_v1/service.rb b/generated/google/apis/apigee_v1/service.rb index c5f0d936d29..03214f3b0d5 100644 --- a/generated/google/apis/apigee_v1/service.rb +++ b/generated/google/apis/apigee_v1/service.rb @@ -1800,6 +1800,9 @@ def get_organization_developer(name, action: nil, fields: nil, quota_user: nil, # @param [String] parent # Required. Name of the Apigee organization. Use the following structure in your # request: `organizations/`org``. + # @param [String] app + # Optional. List only Developers that are associated with the app. Note that + # start_key, count are not applicable for this filter criteria. # @param [Fixnum] count # Optional. Number of developers to return in the API call. Use with the ` # startKey` parameter to provide more targeted filtering. The limit is 1000. @@ -1835,11 +1838,12 @@ def get_organization_developer(name, action: nil, fields: nil, quota_user: nil, # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_organization_developers(parent, count: nil, expand: nil, ids: nil, include_company: nil, start_key: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_organization_developers(parent, app: nil, count: nil, expand: nil, ids: nil, include_company: nil, start_key: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/developers', options) command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListOfDevelopersResponse::Representation command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListOfDevelopersResponse command.params['parent'] = parent unless parent.nil? + command.query['app'] = app unless app.nil? command.query['count'] = count unless count.nil? command.query['expand'] = expand unless expand.nil? command.query['ids'] = ids unless ids.nil? @@ -4447,7 +4451,9 @@ def get_organization_environment_keystore(name, fields: nil, quota_user: nil, op # organization`/environments/`environment`/keystores/`keystore``. # @param [Google::Apis::ApigeeV1::GoogleApiHttpBody] google_api_http_body_object # @param [String] _password - # The password for the private key file, if it exists. + # DEPRECATED: For improved security, send the password in the body instead of + # using this query param. To send it in the body, use a multipart/form-data part + # with name "password". The password for the private key file, if it exists. # @param [String] alias_ # The alias for the key, certificate pair. Values must match regular expression ` # [\w\s-.]`1,255``. This must be provided for all formats except 'selfsignedcert' @@ -5734,6 +5740,284 @@ def update_organization_environment_targetserver(name, google_cloud_apigee_v1_ta execute_or_queue_command(command, &block) end + # Submit a query at host level to be processed in the background. If the + # submission of the query succeeds, the API returns a 201 status and an ID that + # refer to the query. In addition to the HTTP status 201, the `state` of " + # enqueued" means that the request succeeded. + # @param [String] parent + # Required. The parent resource name. Must be of the form `organizations/`org``. + # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Query] google_cloud_apigee_v1_query_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQuery] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQuery] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_organization_host_query(parent, google_cloud_apigee_v1_query_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/hostQueries', options) + command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Query::Representation + command.request_object = google_cloud_apigee_v1_query_object + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQuery::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQuery + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Get status of a query submitted at host level. If the query is still in + # progress, the `state` is set to "running" After the query has completed + # successfully, `state` is set to "completed" + # @param [String] name + # Required. Name of the asynchronous query to get. Must be of the form ` + # organizations/`org`/queries/`queryId``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQuery] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQuery] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_host_query(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQuery::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQuery + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # After the query is completed, use this API to retrieve the results. If the + # request succeeds, and there is a non-zero result set, the result is downloaded + # to the client as a zipped JSON file. The name of the downloaded file will be: + # OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f- + # 318d0cb961bd.zip` + # @param [String] name + # Required. Name of the asynchronous query result to get. Must be of the form ` + # organizations/`org`/queries/`queryId`/result`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleApiHttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleApiHttpBody] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_host_query_result(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleApiHttpBody + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # + # @param [String] name + # Required. Name of the asynchronous query result view to get. Must be of the + # form `organizations/`org`/queries/`queryId`/resultView`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQueryResultView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQueryResultView] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_host_query_result_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQueryResultView::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQueryResultView + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Return a list of Asynchronous Queries at host level. + # @param [String] parent + # Required. The parent resource name. Must be of the form `organizations/`org``. + # @param [String] dataset + # Filter response list by dataset. Example: `api`, `mint` + # @param [String] envgroup_hostname + # Required. Filter response list by hostname. + # @param [String] from + # Filter response list by returning asynchronous queries that created after this + # date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'. + # @param [String] incl_queries_without_report + # Flag to include asynchronous queries that don't have a report denifition. + # @param [String] status + # Filter response list by asynchronous query status. + # @param [String] submitted_by + # Filter response list by user who submitted queries. + # @param [String] to + # Filter response list by returning asynchronous queries that created before + # this date time. Time must be in ISO date-time format like '2011-12-03T10:16: + # 30Z'. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListAsyncQueriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListAsyncQueriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_organization_host_queries(parent, dataset: nil, envgroup_hostname: nil, from: nil, incl_queries_without_report: nil, status: nil, submitted_by: nil, to: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/hostQueries', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListAsyncQueriesResponse::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListAsyncQueriesResponse + command.params['parent'] = parent unless parent.nil? + command.query['dataset'] = dataset unless dataset.nil? + command.query['envgroupHostname'] = envgroup_hostname unless envgroup_hostname.nil? + command.query['from'] = from unless from.nil? + command.query['inclQueriesWithoutReport'] = incl_queries_without_report unless incl_queries_without_report.nil? + command.query['status'] = status unless status.nil? + command.query['submittedBy'] = submitted_by unless submitted_by.nil? + command.query['to'] = to unless to.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieve metrics grouped by dimensions in host level. The types of metrics you + # can retrieve include traffic, message counts, API call latency, response size, + # and cache hits and counts. Dimensions let you view metrics in meaningful + # groups. The stats api does accept dimensions as path params. The dimensions + # are optional in which case the metrics are computed on the entire data for the + # given timerange. + # @param [String] name + # Required. The resource name for which the interactive query will be executed. + # Must be of the form `organizations/`organization_id`/stats/`dimensions``. + # Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, + # target_host. The value of dimensions should be comma separated list as shown + # below `organizations/`org`/stats/apiproxy,request_verb` + # @param [String] accuracy + # Legacy field: not used anymore. + # @param [String] envgroup_hostname + # Required. The hostname for which the interactive query will be executed. + # @param [String] filter + # Enables drill-down on specific dimension values. + # @param [String] limit + # This parameter is used to limit the number of result items. Default and the + # max value is 14400. + # @param [String] offset + # Use offset with limit to enable pagination of results. For example, to display + # results 11-20, set limit to '10' and offset to '10'. + # @param [Boolean] realtime + # Legacy field: not used anymore. + # @param [String] select + # The select parameter contains a comma separated list of metrics. E.g. sum( + # message_count),sum(error_count) + # @param [String] sort + # This parameter specifies if the sort order should be ascending or descending + # Supported values are DESC and ASC. + # @param [String] sortby + # Comma separated list of columns to sort the final result. + # @param [String] time_range + # Time interval for the interactive query. Time range is specified as start~end + # E.g. 04/15/2017 00:00~05/15/2017 23:59 + # @param [String] time_unit + # A value of second, minute, hour, day, week, month. Time Unit specifies the + # granularity of metrics returned. + # @param [String] topk + # Take 'top k' results from results, for example, to return the top 5 results ' + # topk=5'. + # @param [Boolean] ts_ascending + # Lists timestamps in ascending order if set to true. Recommend setting this + # value to true if you are using sortby with sort=DESC. + # @param [String] tzo + # This parameters contains the timezone offset value. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Stats] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Stats] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_host_stat(name, accuracy: nil, envgroup_hostname: nil, filter: nil, limit: nil, offset: nil, realtime: nil, select: nil, sort: nil, sortby: nil, time_range: nil, time_unit: nil, topk: nil, ts_ascending: nil, tzo: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Stats::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Stats + command.params['name'] = name unless name.nil? + command.query['accuracy'] = accuracy unless accuracy.nil? + command.query['envgroupHostname'] = envgroup_hostname unless envgroup_hostname.nil? + command.query['filter'] = filter unless filter.nil? + command.query['limit'] = limit unless limit.nil? + command.query['offset'] = offset unless offset.nil? + command.query['realtime'] = realtime unless realtime.nil? + command.query['select'] = select unless select.nil? + command.query['sort'] = sort unless sort.nil? + command.query['sortby'] = sortby unless sortby.nil? + command.query['timeRange'] = time_range unless time_range.nil? + command.query['timeUnit'] = time_unit unless time_unit.nil? + command.query['topk'] = topk unless topk.nil? + command.query['tsAscending'] = ts_ascending unless ts_ascending.nil? + command.query['tzo'] = tzo unless tzo.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates an Apigee runtime instance. The instance is accessible from the # authorized network configured on the organization. **Note:** Not supported for # Apigee hybrid. @@ -6251,6 +6535,90 @@ def list_organization_operations(name, filter: nil, page_size: nil, page_token: execute_or_queue_command(command, &block) end + # This api is similar to GetHostStats except that the response is less verbose. + # @param [String] name + # Required. The resource name for which the interactive query will be executed. + # Must be of the form `organizations/`organization_id`/stats/`dimensions``. + # Dimensions let you view metrics in meaningful groupings. E.g. apiproxy, + # target_host. The value of dimensions should be comma separated list as shown + # below `organizations/`org`/stats/apiproxy,request_verb` + # @param [String] accuracy + # Legacy field: not used anymore. + # @param [String] envgroup_hostname + # Required. The hostname for which the interactive query will be executed. + # @param [String] filter + # Enables drill-down on specific dimension values. + # @param [String] limit + # This parameter is used to limit the number of result items. Default and the + # max value is 14400. + # @param [String] offset + # Use offset with limit to enable pagination of results. For example, to display + # results 11-20, set limit to '10' and offset to '10'. + # @param [Boolean] realtime + # Legacy field: not used anymore. + # @param [String] select + # Required. The select parameter contains a comma separated list of metrics. E.g. + # sum(message_count),sum(error_count) + # @param [String] sort + # This parameter specifies if the sort order should be ascending or descending + # Supported values are DESC and ASC. + # @param [String] sortby + # Comma separated list of columns to sort the final result. + # @param [String] time_range + # Required. Time interval for the interactive query. Time range is specified as + # start~end. E.g 04/15/2017 00:00~05/15/2017 23:59. + # @param [String] time_unit + # A value of second, minute, hour, day, week, month. Time Unit specifies the + # granularity of metrics returned. + # @param [String] topk + # Take 'top k' results from results, for example, to return the top 5 results ' + # topk=5'. + # @param [Boolean] ts_ascending + # Lists timestamps in ascending order if set to true. Recommend setting this + # value to true if you are using sortby with sort=DESC. + # @param [String] tzo + # This parameters contains the timezone offset value. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1OptimizedStats] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1OptimizedStats] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_organization_optimized_host_stat(name, accuracy: nil, envgroup_hostname: nil, filter: nil, limit: nil, offset: nil, realtime: nil, select: nil, sort: nil, sortby: nil, time_range: nil, time_unit: nil, topk: nil, ts_ascending: nil, tzo: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1OptimizedStats::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1OptimizedStats + command.params['name'] = name unless name.nil? + command.query['accuracy'] = accuracy unless accuracy.nil? + command.query['envgroupHostname'] = envgroup_hostname unless envgroup_hostname.nil? + command.query['filter'] = filter unless filter.nil? + command.query['limit'] = limit unless limit.nil? + command.query['offset'] = offset unless offset.nil? + command.query['realtime'] = realtime unless realtime.nil? + command.query['select'] = select unless select.nil? + command.query['sort'] = sort unless sort.nil? + command.query['sortby'] = sortby unless sortby.nil? + command.query['timeRange'] = time_range unless time_range.nil? + command.query['timeUnit'] = time_unit unless time_unit.nil? + command.query['topk'] = topk unless topk.nil? + command.query['tsAscending'] = ts_ascending unless ts_ascending.nil? + command.query['tzo'] = tzo unless tzo.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a Custom Report for an Organization. A Custom Report provides Apigee # Customers to create custom dashboards in addition to the standard dashboards # which are provided. The Custom Report in its simplest form contains diff --git a/generated/google/apis/apigee_v1/synth.metadata b/generated/google/apis/apigee_v1/synth.metadata index eea78d8167e..1f850819174 100644 --- a/generated/google/apis/apigee_v1/synth.metadata +++ b/generated/google/apis/apigee_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "d99b4075b0c4b6f712495b22315268d5f28038c0" + "sha": "0ba45b6d22f2eced00e873b91fc685285919d4ff" } } ]