From 756e428d4f71179ec6d5b8e41ebfd3b31a80f895 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 10 Nov 2020 01:54:07 -0800 Subject: [PATCH] feat: Automated regeneration of apigee v1 client (#1448) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-11-10 01:36:21,251 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-apigee-v1 nothing to commit, working tree clean 2020-11-10 01:36:21,282 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth apigee v1 DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth apigee v1 bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.5 Installing i18n 1.8.5 Fetching minitest 5.14.2 Installing minitest 5.14.2 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.8 Installing tzinfo 1.2.8 Fetching activesupport 5.0.7.2 Installing activesupport 5.0.7.2 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.3.1 Installing json 2.3.1 with native extensions Fetching docile 1.3.2 Installing docile 1.3.2 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.26.0 Installing tins 1.26.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching crack 0.4.4 Installing crack 0.4.4 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.1.0 Installing faraday 1.1.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching rexml 3.2.4 Installing rexml 3.2.4 Using google-api-client 0.49.0 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.0 Installing rspec-support 3.10.0 Fetching rspec-core 3.10.0 Installing rspec-core 3.10.0 Fetching rspec-expectations 3.10.0 Installing rspec-expectations 3.10.0 Fetching rspec-mocks 3.10.0 Installing rspec-mocks 3.10.0 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.0 Installing parallel 1.20.0 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.2 Installing powerpack 0.1.2 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.25 Installing yard 0.9.25 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.0 Installing redcarpet 3.5.0 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.10.1 Installing ruby-progressbar 1.10.1 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 31 Gemfile dependencies, 78 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen generated --api=apigee.v1 --names-out=/workspace/api_names_out.yaml Loading apigee, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/apigee.v1.json W, [2020-11-10T09:36:44.247295 #241] WARN -- : Found reserved keyword 'alias' W, [2020-11-10T09:36:44.247383 #241] WARN -- : Changed to 'alias_' W, [2020-11-10T09:36:44.270503 #241] WARN -- : Found reserved property 'methods' W, [2020-11-10T09:36:44.270555 #241] WARN -- : Changed to 'methods_prop' conflict google/apis/apigee_v1.rb Wrote metadata to generated/google/apis/apigee_v1/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google/apis/apigee_v1/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/bcc4dc3c-f04b-44c0-b838-d4409e56bd5b/targets - [ ] To automatically regenerate this PR, check this box. --- 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 227848774..fd9eb736d 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -10626,6 +10626,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 @@ -10640,6 +10641,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 @@ -11182,6 +11190,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 @@ -11345,6 +11354,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 @@ -11352,6 +11363,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 @@ -11632,6 +11649,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 @@ -11886,6 +11904,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 @@ -11925,6 +11976,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 8a3e839a6..04b5dc2b3 100644 --- a/generated/google/apis/apigee_v1.rb +++ b/generated/google/apis/apigee_v1.rb @@ -29,7 +29,7 @@ module Google # @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 b8790814e..c81f6cf44 100644 --- a/generated/google/apis/apigee_v1/classes.rb +++ b/generated/google/apis/apigee_v1/classes.rb @@ -850,6 +850,11 @@ module Google # @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 @@ module Google 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 @@ module Google # 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 @@ module Google 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 @@ module Google 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 @@ module Google # @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 @@ module Google 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 @@ module Google # 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 @@ module Google # 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 @@ module Google # @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 @@ module Google # 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 @@ module Google 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 @@ module Google 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 @@ module Google # 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 f7d266023..344421af4 100644 --- a/generated/google/apis/apigee_v1/representations.rb +++ b/generated/google/apis/apigee_v1/representations.rb @@ -124,6 +124,12 @@ module Google 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 @@ module Google 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 @@ module Google # @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 @@ module Google 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 @@ module Google 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 @@ module Google 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 @@ module Google 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 @@ module Google 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 c5f0d936d..03214f3b0 100644 --- a/generated/google/apis/apigee_v1/service.rb +++ b/generated/google/apis/apigee_v1/service.rb @@ -1800,6 +1800,9 @@ module Google # @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 @@ module Google # @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 @@ module Google # 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 @@ module Google 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 @@ module Google 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 eea78d816..1f8508191 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" } } ]