feat: Automated regeneration of apigee v1 client (#1354)

This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2020-11-03 01:35:46,095 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-03 01:35:46,125 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.7
Installing tzinfo 1.2.7
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.48.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.0512
Installing mime-types-data 3.2020.0512
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.19.2
Installing parallel 1.19.2
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-03T09:36:09.170736 #241]  WARN -- : Found reserved keyword 'alias'
W, [2020-11-03T09:36:09.170804 #241]  WARN -- : Changed to 'alias_'
W, [2020-11-03T09:36:09.191682 #241]  WARN -- : Found reserved property 'methods'
W, [2020-11-03T09:36:09.191734 #241]  WARN -- : Changed to 'methods_prop'
    conflict  google/apis/apigee_v1.rb
</apis/apigee_v1.rb? (enter "h" for help) [Ynaqdhm] a
       force  google/apis/apigee_v1.rb
    conflict  google/apis/apigee_v1/service.rb
       force  google/apis/apigee_v1/service.rb
    conflict  google/apis/apigee_v1/classes.rb
       force  google/apis/apigee_v1/classes.rb
    conflict  google/apis/apigee_v1/representations.rb
       force  google/apis/apigee_v1/representations.rb
    conflict  /workspace/api_names_out.yaml
       force  /workspace/api_names_out.yaml
2020-11-03 01:36:14,676 synthtool [DEBUG] > Wrote metadata to generated/google/apis/apigee_v1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/apigee_v1/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/04916cbb-e133-43ad-a40c-98cc304d8451/targets

- [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
Yoshi Automation Bot 2020-11-03 01:54:06 -08:00 committed by GitHub
parent 895b9cc05f
commit 1130b30359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 650 additions and 121 deletions

View File

@ -10644,6 +10644,20 @@
"/apigee:v1/GoogleCloudApigeeV1Attributes": google_cloud_apigee_v1_attributes
"/apigee:v1/GoogleCloudApigeeV1Attributes/attribute": attribute
"/apigee:v1/GoogleCloudApigeeV1Attributes/attribute/attribute": attribute
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation": google_cloud_apigee_v1_canary_evaluation
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation/control": control
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation/createTime": create_time
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation/endTime": end_time
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation/metricLabels": metric_labels
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation/name": name
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation/startTime": start_time
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation/state": state
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation/treatment": treatment
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluation/verdict": verdict
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluationMetricLabels": google_cloud_apigee_v1_canary_evaluation_metric_labels
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluationMetricLabels/env": env
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluationMetricLabels/instance_id": instance_id
"/apigee:v1/GoogleCloudApigeeV1CanaryEvaluationMetricLabels/location": location
"/apigee:v1/GoogleCloudApigeeV1CertInfo": google_cloud_apigee_v1_cert_info
"/apigee:v1/GoogleCloudApigeeV1CertInfo/basicConstraints": basic_constraints
"/apigee:v1/GoogleCloudApigeeV1CertInfo/expiryDate": expiry_date
@ -10710,6 +10724,12 @@
"/apigee:v1/GoogleCloudApigeeV1CustomReportMetric": google_cloud_apigee_v1_custom_report_metric
"/apigee:v1/GoogleCloudApigeeV1CustomReportMetric/function": function
"/apigee:v1/GoogleCloudApigeeV1CustomReportMetric/name": name
"/apigee:v1/GoogleCloudApigeeV1DataCollector": google_cloud_apigee_v1_data_collector
"/apigee:v1/GoogleCloudApigeeV1DataCollector/createdAt": created_at
"/apigee:v1/GoogleCloudApigeeV1DataCollector/description": description
"/apigee:v1/GoogleCloudApigeeV1DataCollector/lastModifiedAt": last_modified_at
"/apigee:v1/GoogleCloudApigeeV1DataCollector/name": name
"/apigee:v1/GoogleCloudApigeeV1DataCollector/type": type
"/apigee:v1/GoogleCloudApigeeV1DataCollectorConfig": google_cloud_apigee_v1_data_collector_config
"/apigee:v1/GoogleCloudApigeeV1DataCollectorConfig/name": name
"/apigee:v1/GoogleCloudApigeeV1DataCollectorConfig/type": type
@ -11014,6 +11034,10 @@
"/apigee:v1/GoogleCloudApigeeV1ListCustomReportsResponse": google_cloud_apigee_v1_list_custom_reports_response
"/apigee:v1/GoogleCloudApigeeV1ListCustomReportsResponse/qualifier": qualifier
"/apigee:v1/GoogleCloudApigeeV1ListCustomReportsResponse/qualifier/qualifier": qualifier
"/apigee:v1/GoogleCloudApigeeV1ListDataCollectorsResponse": google_cloud_apigee_v1_list_data_collectors_response
"/apigee:v1/GoogleCloudApigeeV1ListDataCollectorsResponse/dataCollectors": data_collectors
"/apigee:v1/GoogleCloudApigeeV1ListDataCollectorsResponse/dataCollectors/data_collector": data_collector
"/apigee:v1/GoogleCloudApigeeV1ListDataCollectorsResponse/nextPageToken": next_page_token
"/apigee:v1/GoogleCloudApigeeV1ListDatastoresResponse": google_cloud_apigee_v1_list_datastores_response
"/apigee:v1/GoogleCloudApigeeV1ListDatastoresResponse/datastores": datastores
"/apigee:v1/GoogleCloudApigeeV1ListDatastoresResponse/datastores/datastore": datastore
@ -11388,6 +11412,7 @@
"/apigee:v1/GoogleIamV1AuditLogConfig/exemptedMembers/exempted_member": exempted_member
"/apigee:v1/GoogleIamV1AuditLogConfig/logType": log_type
"/apigee:v1/GoogleIamV1Binding": google_iam_v1_binding
"/apigee:v1/GoogleIamV1Binding/bindingId": binding_id
"/apigee:v1/GoogleIamV1Binding/condition": condition
"/apigee:v1/GoogleIamV1Binding/members": members
"/apigee:v1/GoogleIamV1Binding/members/member": member
@ -11523,6 +11548,20 @@
"/apigee:v1/apigee.organizations.apps.list/status": status
"/apigee:v1/apigee.organizations.create": create_organization
"/apigee:v1/apigee.organizations.create/parent": parent
"/apigee:v1/apigee.organizations.datacollectors.create": create_organization_datacollector
"/apigee:v1/apigee.organizations.datacollectors.create/dataCollectorId": data_collector_id
"/apigee:v1/apigee.organizations.datacollectors.create/parent": parent
"/apigee:v1/apigee.organizations.datacollectors.delete": delete_organization_datacollector
"/apigee:v1/apigee.organizations.datacollectors.delete/name": name
"/apigee:v1/apigee.organizations.datacollectors.get": get_organization_datacollector
"/apigee:v1/apigee.organizations.datacollectors.get/name": name
"/apigee:v1/apigee.organizations.datacollectors.list": list_organization_datacollectors
"/apigee:v1/apigee.organizations.datacollectors.list/pageSize": page_size
"/apigee:v1/apigee.organizations.datacollectors.list/pageToken": page_token
"/apigee:v1/apigee.organizations.datacollectors.list/parent": parent
"/apigee:v1/apigee.organizations.datacollectors.patch": patch_organization_datacollector
"/apigee:v1/apigee.organizations.datacollectors.patch/name": name
"/apigee:v1/apigee.organizations.datacollectors.patch/updateMask": update_mask
"/apigee:v1/apigee.organizations.deployments.list": list_organization_deployments
"/apigee:v1/apigee.organizations.deployments.list/parent": parent
"/apigee:v1/apigee.organizations.deployments.list/sharedFlows": shared_flows
@ -11855,6 +11894,10 @@
"/apigee:v1/apigee.organizations.instances.attachments.list/pageSize": page_size
"/apigee:v1/apigee.organizations.instances.attachments.list/pageToken": page_token
"/apigee:v1/apigee.organizations.instances.attachments.list/parent": parent
"/apigee:v1/apigee.organizations.instances.canaryevaluations.create": create_organization_instance_canaryevaluation
"/apigee:v1/apigee.organizations.instances.canaryevaluations.create/parent": parent
"/apigee:v1/apigee.organizations.instances.canaryevaluations.get": get_organization_instance_canaryevaluation
"/apigee:v1/apigee.organizations.instances.canaryevaluations.get/name": name
"/apigee:v1/apigee.organizations.instances.create": create_organization_instance
"/apigee:v1/apigee.organizations.instances.create/parent": parent
"/apigee:v1/apigee.organizations.instances.delete": delete_organization_instance

View File

@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/apigee-api-management/
module ApigeeV1
VERSION = 'V1'
REVISION = '20201022'
REVISION = '20201029'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -339,32 +339,18 @@ module Google
class GoogleCloudApigeeV1ApiProduct
include Google::Apis::Core::Hashable
# Comma-separated list of API resources to be bundled in the API Product. By
# default, the resource paths are mapped from the `proxy.pathsuffix` variable.
# The proxy path suffix is defined as the URI fragment following the
# ProxyEndpoint base path. For example, if the `apiResources` element is defined
# to be `/forecastrss` and the base path defined for the API proxy is `/weather`,
# then only requests to `/weather/forecastrss` are permitted by the API product.
# You can select a specific path, or you can select all subpaths with the
# following wildcard: - /**: Indicates that all sub-URIs are included. - /* :
# Indicates that only URIs one level down are included. By default, / supports
# the same resources as /** as well as the base path defined by the API proxy.
# For example, if the base path of the API proxy is `/v1/weatherapikey`, then
# the API product supports requests to `/v1/weatherapikey` and to any sub-URIs,
# such as `/v1/weatherapikey/forecastrss`, `/v1/weatherapikey/region/CA`, and so
# on. For more information, see: - Manage API products - Managing a transaction
# recording policy using the API
#
# Corresponds to the JSON property `apiResources`
# @return [Array<String>]
attr_accessor :api_resources
# Specifies how API keys are approved to access the APIs defined by the API
# product. If set to `manual`, the consumer key is generated and returned in "
# pending" state. In this case, the API keys won't work until they have been
# explicitly approved. If set to `auto`, the consumer key is generated and
# returned in "approved" state and can be used immediately. *NOTE:* Typically, `
# auto` is used to provide access to free or trial API products that provide
# limited quota or capabilities.
# Flag that specifies how API keys are approved to access the APIs defined by
# the API product. If set to `manual`, the consumer key is generated and
# returned in "pending" state. In this case, the API keys won't work until they
# have been explicitly approved. If set to `auto`, the consumer key is generated
# and returned in "approved" state and can be used immediately. **Note:**
# Typically, `auto` is used to provide access to free or trial API products that
# provide limited quota or capabilities.
# Corresponds to the JSON property `approvalType`
# @return [String]
attr_accessor :approval_type
@ -376,10 +362,8 @@ module Google
# to developers in the Apigee developer portal. For example, you can set a
# product to `internal` while it is in development and then change access to `
# public` when it is ready to release on the portal. API products marked as `
# private` do not appear on the portal but can be accessed by external
# developers. For monetization, you can use the attributes field to: - Specify
# transaction success criteria - Specify custom attributes on which you base
# rate plan charges.
# private` do not appear on the portal, but can be accessed by external
# developers.
# Corresponds to the JSON property `attributes`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute>]
attr_accessor :attributes
@ -389,25 +373,39 @@ module Google
# @return [Fixnum]
attr_accessor :created_at
# An overview of the API product. Include key information about the API product
# that is not captured by other fields.
# Description of the API product. Include key information about the API product
# that is not captured by other fields. Comma-separated list of API resources to
# be bundled in the API product. By default, the resource paths are mapped from
# the `proxy.pathsuffix` variable. The proxy path suffix is defined as the URI
# fragment following the ProxyEndpoint base path. For example, if the `
# apiResources` element is defined to be `/forecastrss` and the base path
# defined for the API proxy is `/weather`, then only requests to `/weather/
# forecastrss` are permitted by the API product. You can select a specific path,
# or you can select all subpaths with the following wildcard: - `/**`: Indicates
# that all sub-URIs are included. - `/*` : Indicates that only URIs one level
# down are included. By default, / supports the same resources as /** as well as
# the base path defined by the API proxy. For example, if the base path of the
# API proxy is `/v1/weatherapikey`, then the API product supports requests to `/
# v1/weatherapikey` and to any sub-URIs, such as `/v1/weatherapikey/forecastrss`,
# `/v1/weatherapikey/region/CA`, and so on. For more information, see Managing
# API products.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The name to be displayed in the UI or developer portal to developers
# registering for API access.
# Name displayed in the UI or developer portal to developers registering for API
# access.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# A comma-separated list of environment names to which the API product is bound.
# Comma-separated list of environment names to which the API product is bound.
# Requests to environments that are not listed are rejected. By specifying one
# or more environments, you can bind the resources listed in the API product to
# a specific environment, preventing developers from accessing those resources
# through API proxies deployed in another environment. This setting is used, for
# example, to prevent resources associated with API proxies in 'prod' from being
# accessed by API proxies deployed in 'test'.
# example, to prevent resources associated with API proxies in `prod` from being
# accessed by API proxies deployed in `test`.
# Corresponds to the JSON property `environments`
# @return [Array<String>]
attr_accessor :environments
@ -417,31 +415,30 @@ module Google
# @return [Fixnum]
attr_accessor :last_modified_at
# The internal name of the API Product. Characters you can use in the name are
# restricted to: A-Z0-9._\-$ %. *NOTE:* The internal name cannot be edited when
# updating the API product.
# Internal name of the API product. Characters you can use in the name are
# restricted to: `A-Z0-9._\-$ %`. **Note:** The internal name cannot be edited
# when updating the API product.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The OperationGroup contains a list of configuration details associated with
# Apigee proxies or Remote services. Remote services are non-Apigee Edge proxies.
# eg, Istio-Envoy.
# List of operation configuration details associated with Apigee API proxies or
# remote services. Remote services are non-Apigee proxies, such as Istio-Envoy.
# Corresponds to the JSON property `operationGroup`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationGroup]
attr_accessor :operation_group
# A comma-separated list of API proxy names to which this API product is bound.
# By specifying API proxies, you can associate resources in the API product with
# Comma-separated list of API proxy names to which this API product is bound. By
# specifying API proxies, you can associate resources in the API product with
# specific API proxies, preventing developers from accessing those resources
# through other API proxies. Edge rejects requests to API proxies that are not
# listed. *NOTE:* The API proxy names must already exist in the specified
# through other API proxies. Apigee rejects requests to API proxies that are not
# listed. **Note:** The API proxy names must already exist in the specified
# environment as they will be validated upon creation.
# Corresponds to the JSON property `proxies`
# @return [Array<String>]
attr_accessor :proxies
# The number of request messages permitted per app by this API product for the
# Number of request messages permitted per app by this API product for the
# specified `quotaInterval` and `quotaTimeUnit`. For example, a `quota` of 50,
# for a `quotaInterval` of 12 and a `quotaTimeUnit` of hours means 50 requests
# are allowed every 12 hours.
@ -449,20 +446,20 @@ module Google
# @return [String]
attr_accessor :quota
# The time interval over which the number of request messages is calculated.
# Time interval over which the number of request messages is calculated.
# Corresponds to the JSON property `quotaInterval`
# @return [String]
attr_accessor :quota_interval
# The time unit defined for the `quotaInterval`. Valid values include minute,
# hour, day, or month.
# Time unit defined for the `quotaInterval`. Valid values include `minute`, `
# hour`, `day`, or `month`.
# Corresponds to the JSON property `quotaTimeUnit`
# @return [String]
attr_accessor :quota_time_unit
# A comma-separated list of OAuth scopes that are validated at runtime. Edge
# Comma-separated list of OAuth scopes that are validated at runtime. Apigee
# validates that the scopes in any access token presented match the scopes
# defined in the OAuth policy assoicated with the API product.
# defined in the OAuth policy associated with the API product.
# Corresponds to the JSON property `scopes`
# @return [Array<String>]
attr_accessor :scopes
@ -1000,6 +997,107 @@ module Google
end
end
# CanaryEvaluation represents the canary analysis between two versions of the
# runtime that is serving requests.
class GoogleCloudApigeeV1CanaryEvaluation
include Google::Apis::Core::Hashable
# Required. The stable version that is serving requests.
# Corresponds to the JSON property `control`
# @return [String]
attr_accessor :control
# Output only. Create time of the canary evaluation.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Required. End time for the evaluation's analysis.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Labels that can be used to filter Apigee metrics.
# Corresponds to the JSON property `metricLabels`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluationMetricLabels]
attr_accessor :metric_labels
# Output only. Name of the canary evalution.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. Start time for the canary evaluation's analysis.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Output only. The current state of the canary evaluation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Required. The newer version that is serving requests.
# Corresponds to the JSON property `treatment`
# @return [String]
attr_accessor :treatment
# Output only. The resulting verdict of the canary evaluations: NONE, PASS, or
# FAIL.
# Corresponds to the JSON property `verdict`
# @return [String]
attr_accessor :verdict
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@control = args[:control] if args.key?(:control)
@create_time = args[:create_time] if args.key?(:create_time)
@end_time = args[:end_time] if args.key?(:end_time)
@metric_labels = args[:metric_labels] if args.key?(:metric_labels)
@name = args[:name] if args.key?(:name)
@start_time = args[:start_time] if args.key?(:start_time)
@state = args[:state] if args.key?(:state)
@treatment = args[:treatment] if args.key?(:treatment)
@verdict = args[:verdict] if args.key?(:verdict)
end
end
# Labels that can be used to filter Apigee metrics.
class GoogleCloudApigeeV1CanaryEvaluationMetricLabels
include Google::Apis::Core::Hashable
# The environment ID associated with the metrics.
# Corresponds to the JSON property `env`
# @return [String]
attr_accessor :env
# Required. The instance ID associated with the metrics. In Apigee Hybrid, the
# value is configured during installation.
# Corresponds to the JSON property `instance_id`
# @return [String]
attr_accessor :instance_id
# Required. The location associated with the metrics.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@env = args[:env] if args.key?(:env)
@instance_id = args[:instance_id] if args.key?(:instance_id)
@location = args[:location] if args.key?(:location)
end
end
# An X.509 certificate as defined in RFC 5280.
class GoogleCloudApigeeV1CertInfo
include Google::Apis::Core::Hashable
@ -1388,6 +1486,51 @@ module Google
end
end
# Data Collector configuration.
class GoogleCloudApigeeV1DataCollector
include Google::Apis::Core::Hashable
# Output only. The time at which the Data Collector was created in milliseconds
# since the epoch.
# Corresponds to the JSON property `createdAt`
# @return [Fixnum]
attr_accessor :created_at
# A description of the Data Collector.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Output only. The time at which the Data Collector was last updated in
# milliseconds since the epoch.
# Corresponds to the JSON property `lastModifiedAt`
# @return [Fixnum]
attr_accessor :last_modified_at
# ID of the Data Collector.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Immutable. The type of data this DataCollector will collect.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@created_at = args[:created_at] if args.key?(:created_at)
@description = args[:description] if args.key?(:description)
@last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
# Data collector and its configuration.
class GoogleCloudApigeeV1DataCollectorConfig
include Google::Apis::Core::Hashable
@ -3329,6 +3472,32 @@ module Google
end
end
# Response for ListDataCollectors.
class GoogleCloudApigeeV1ListDataCollectorsResponse
include Google::Apis::Core::Hashable
# Data Collectors in the specified organization.
# Corresponds to the JSON property `dataCollectors`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector>]
attr_accessor :data_collectors
# Page token that you can include in a ListDataCollectors request to retrieve
# the next page. If omitted, no subsequent pages exist.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data_collectors = args[:data_collectors] if args.key?(:data_collectors)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The response for ListDatastores
class GoogleCloudApigeeV1ListDatastoresResponse
include Google::Apis::Core::Hashable
@ -3721,20 +3890,21 @@ module Google
class GoogleCloudApigeeV1OperationConfig
include Google::Apis::Core::Hashable
# Required. api_source represents either a proxy or remote service name for
# which the resources, methods and quota are associated with.
# Required. API proxy or remote service name with which the resources, methods,
# and quota are associated.
# Corresponds to the JSON property `apiSource`
# @return [String]
attr_accessor :api_source
# custom attribute associated with the operation.
# Custom attributes associated with the operation.
# Corresponds to the JSON property `attributes`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute>]
attr_accessor :attributes
# operations is the list of resource/methods pair, belonging to proxy/remote
# service, upon which quota will applied on. Note that currently we allow only a
# single operation. The call will fail if more than one is provided.
# List of resource/method pairs for the proxy/remote service, upon which quota
# will applied. **Note**: Currently, you can specify only a single resource/
# method pair. The call will fail if more than one resource/method pair is
# provided.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Operation>]
attr_accessor :operations
@ -3760,23 +3930,22 @@ module Google
end
end
# The OperationGroup contains a list of configuration details associated with
# Apigee proxies or Remote services. Remote services are non-Apigee Edge proxies.
# eg, Istio-Envoy.
# List of operation configuration details associated with Apigee API proxies or
# remote services. Remote services are non-Apigee proxies, such as Istio-Envoy.
class GoogleCloudApigeeV1OperationGroup
include Google::Apis::Core::Hashable
# Identfies whether the configuration is for Apigee proxy or a remote service.
# Possible values are "proxy" and "remoteservice". If none specified, the
# default is "proxy". "proxy" is used when Apigee proxies are associated with
# the API product. "remoteservice" is used when non-Apigee proxy like Envoy is
# used, and is associated with the API product.
# Flag that specifes whether the configuration is for Apigee API proxy or a
# remote service. Valid values are `proxy` or `remoteservice`. Defaults to `
# proxy`. Set to `proxy` when Apigee API proxies are associated with the API
# product. Set to `remoteservice` when non-Apigee proxies like Istio-Envoy are
# associated with the API product.
# Corresponds to the JSON property `operationConfigType`
# @return [String]
attr_accessor :operation_config_type
# Required. A list of OperationConfig for either Apigee proxies or other other
# remote services, that are associated with this API product.
# Required. List of operation configurations for either Apigee API proxies or
# other remote services that are associated with this API product.
# Corresponds to the JSON property `operationConfigs`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationConfig>]
attr_accessor :operation_configs
@ -4448,21 +4617,21 @@ module Google
class GoogleCloudApigeeV1Quota
include Google::Apis::Core::Hashable
# Required. The time interval over which the number of request messages is
# Required. Time interval over which the number of request messages is
# calculated.
# Corresponds to the JSON property `interval`
# @return [String]
attr_accessor :interval
# Required. Limit represents the upper bound count allowed for the time interval
# and time unit specified. Requests exceeding this limit will get rejected.
# Required. Upper limit allowed for the time interval and time unit specified.
# Requests exceeding this limit will be rejected.
# Corresponds to the JSON property `limit`
# @return [String]
attr_accessor :limit
# The time unit defined for the `interval`. Valid values include minute, hour,
# day, or month. The default value is empty. If limit and interval are valid,
# the default value is "hour".
# Time unit defined for the `interval`. Valid values include `minute`, `hour`, `
# day`, or `month`. If `limit` and `interval` are valid, the default value is `
# hour`; otherwise, the default is null.
# Corresponds to the JSON property `timeUnit`
# @return [String]
attr_accessor :time_unit
@ -5436,13 +5605,13 @@ module Google
# Entity tag (ETag) used for optimistic concurrency control as a way to help
# prevent simultaneous updates from overwriting each other. For example, when
# you call [getSyncAuthorization](getSyncAuthorization) an ETag is returned in
# the response. Pass that ETag when calling the [setSyncAuthorization](
# setSyncAuthorization) to ensure that you are updating the correct version. If
# you don't pass the ETag in the call to `setSyncAuthorization`, then the
# existing authorization is overwritten indiscriminately. **Note**: We strongly
# recommend that you use the ETag in the read-modify-write cycle to avoid race
# conditions.
# you call [getSyncAuthorization](organizations/getSyncAuthorization) an ETag is
# returned in the response. Pass that ETag when calling the [
# setSyncAuthorization](organizations/setSyncAuthorization) to ensure that you
# are updating the correct version. If you don't pass the ETag in the call to `
# setSyncAuthorization`, then the existing authorization is overwritten
# indiscriminately. **Note**: We strongly recommend that you use the ETag in the
# read-modify-write cycle to avoid race conditions.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -5888,6 +6057,11 @@ 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:
@ -5949,6 +6123,7 @@ 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)

View File

@ -136,6 +136,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1CanaryEvaluation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1CanaryEvaluationMetricLabels
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1CertInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -178,6 +190,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1DataCollector
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1DataCollectorConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -448,6 +466,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1ListDataCollectorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1ListDatastoresResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1169,6 +1193,31 @@ module Google
end
end
class GoogleCloudApigeeV1CanaryEvaluation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :control, as: 'control'
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :metric_labels, as: 'metricLabels', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluationMetricLabels, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluationMetricLabels::Representation
property :name, as: 'name'
property :start_time, as: 'startTime'
property :state, as: 'state'
property :treatment, as: 'treatment'
property :verdict, as: 'verdict'
end
end
class GoogleCloudApigeeV1CanaryEvaluationMetricLabels
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :env, as: 'env'
property :instance_id, as: 'instance_id'
property :location, as: 'location'
end
end
class GoogleCloudApigeeV1CertInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1264,6 +1313,17 @@ module Google
end
end
class GoogleCloudApigeeV1DataCollector
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :created_at, :numeric_string => true, as: 'createdAt'
property :description, as: 'description'
property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt'
property :name, as: 'name'
property :type, as: 'type'
end
end
class GoogleCloudApigeeV1DataCollectorConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1779,6 +1839,15 @@ module Google
end
end
class GoogleCloudApigeeV1ListDataCollectorsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :data_collectors, as: 'dataCollectors', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudApigeeV1ListDatastoresResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2480,6 +2549,7 @@ 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'

View File

@ -541,16 +541,16 @@ module Google
# Updates or creates API product attributes. This API **replaces** the current
# list of attributes with the attributes specified in the request body. In this
# way, you can update existing attributes, add new attributes, or delete
# existing attributes by omitting them from the request body. OAuth access
# tokens and Key Management Service (KMS) entities (apps, developers, and API
# products) are cached for 180 seconds (current default). Any custom attributes
# associated with entities also get cached for at least 180 seconds after entity
# is accessed during runtime. In this case, the `ExpiresIn` element on the
# OAuthV2 policy won't be able to expire an access token in less than 180
# existing attributes by omitting them from the request body. **Note**: OAuth
# access tokens and Key Management Service (KMS) entities (apps, developers, and
# API products) are cached for 180 seconds (current default). Any custom
# attributes associated with entities also get cached for at least 180 seconds
# after entity is accessed during runtime. In this case, the `ExpiresIn` element
# on the OAuthV2 policy won't be able to expire an access token in less than 180
# seconds.
# @param [String] name
# **Required.** API product name in the following form: organizations/
# organization_ID/apiproducts/api_product_name
# Required. Name of the API product. Use the following structure in your request:
# `organizations/`org`/apiproducts/`apiproduct``
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attributes] google_cloud_apigee_v1_attributes_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -592,14 +592,14 @@ module Google
# provision credentials to apps to enable them to start testing your APIs. After
# you have authentication and authorization working against a simple API product,
# you can iterate to create finer grained API products, defining different sets
# of API resources for each API product. *WARNING:* - If you don't specify an
# of API resources for each API product. **WARNING:** - If you don't specify an
# API proxy in the request body, *any* app associated with the product can make
# calls to *any* API in your entire organization. - If you don't specify an
# environment in the request body, the product allows access to all environments.
# For more information, see ``what_api_product``
# For more information, see What is an API product?
# @param [String] parent
# Required. The parent organization name under which the API product will be
# created. Must be in the following form: organizations/organization_ID
# Required. Name of the organization in which the API product will be created.
# Use the following structure in your request: `organizations/`org``
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiProduct] google_cloud_apigee_v1_api_product_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -639,8 +639,8 @@ module Google
# whether the API product was created via the UI or the API. View the list of
# API products to verify the internal name.
# @param [String] name
# Required. API product name in the following form: organizations/
# organization_ID/apiproducts/api_product_name
# Required. Name of the API product. Use the following structure in your request:
# `organizations/`org`/apiproducts/`apiproduct``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -674,8 +674,8 @@ module Google
# via the UI or the API. View the list of API products to verify the internal
# name.
# @param [String] name
# **Required.** API product name in the following form: organizations/
# organization_ID/apiproducts/api_product_name
# Required. Name of the API product. Use the following structure in your request:
# `organizations/`org`/apiproducts/`apiproduct``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -708,17 +708,18 @@ module Google
# returned by the API is 1000. You can paginate the list of API products
# returned using the `startKey` and `count` query parameters.
# @param [String] parent
# **Required.** The parent organization name in the following form:
# organizations/organization_ID
# Required. Name of the organization. Use the following structure in your
# request: `organizations/`org``
# @param [String] attributename
# The name of the attribute to search.
# Name of the attribute used to filter the search.
# @param [String] attributevalue
# The value of the attribute.
# Value of the attribute used to filter the search.
# @param [Fixnum] count
# Enter the number of API products you want returned in the API call. The limit
# is 1000.
# @param [Boolean] expand
# Set to `true` to get expanded details about each API.
# Flag that specifies whether to expand the results. Set to `true` to get
# expanded details about each API.
# @param [String] start_key
# Gets a list of API products starting with a specific API product in the list.
# For example, if you're returning 50 API products at a time (using the `count`
@ -764,8 +765,8 @@ module Google
# depends on whether the API product was created via UI or API. View the list of
# API products to identify their internal names.
# @param [String] name
# **Required.** API product name in the following form: organizations/
# organization_ID/apiproducts/api_product_name
# Required. Name of the API product. Use the following structure in your request:
# `organizations/`org`/apiproducts/`apiproduct``
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiProduct] google_cloud_apigee_v1_api_product_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -798,8 +799,9 @@ module Google
# Deletes an API product attribute.
# @param [String] name
# **Required.** API product name in the following form: organizations/
# organization_ID/apiproducts/api_product_name/attributes/attribute_name
# Required. Name of the API product attribute. Use the following structure in
# your request: `organizations/`org`/apiproducts/`apiproduct`/attributes/`
# attribute``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -827,10 +829,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the value of an API product attribute.
# Gets the value of an API product attribute.
# @param [String] name
# **Required.** API product name in the following form: organizations/
# organization_ID/apiproducts/api_product_name/attributes/attribute_name
# Required. Name of the API product attribute. Use the following structure in
# your request: `organizations/`org`/apiproducts/`apiproduct`/attributes/`
# attribute``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -858,10 +861,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a list of all API product attributes.
# Lists all API product attributes.
# @param [String] parent
# Required. The parent organization name. Must be in the following form:
# organizations/organization_ID/apiproducts/api_product_name
# Required. Name of the API product. Use the following structure in your request:
# `organizations/`org`/apiproducts/`apiproduct``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -889,16 +892,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the value of an API product attribute. Limitations are: OAuth access
# tokens and Key Management Service (KMS) entities (apps, developers, and API
# products) are cached for 180 seconds (current default). Any custom attributes
# associated with entities also get cached for at least 180 seconds after entity
# is accessed during runtime. In this case, the `ExpiresIn` element on the
# OAuthV2 policy won't be able to expire an access token in less than 180
# seconds.
# Updates the value of an API product attribute. **Note**: OAuth access tokens
# and Key Management Service (KMS) entities (apps, developers, and API products)
# are cached for 180 seconds (current default). Any custom attributes associated
# with entities also get cached for at least 180 seconds after entity is
# accessed during runtime. In this case, the `ExpiresIn` element on the OAuthV2
# policy won't be able to expire an access token in less than 180 seconds.
# @param [String] name
# **Required.** API product name in the following form: organizations/
# organization_ID/apiproducts/api_product_name
# Required. Name of the API product. Use the following structure in your request:
# `organizations/`org`/apiproducts/`apiproduct``
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1Attribute] google_cloud_apigee_v1_attribute_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1428,6 +1430,180 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new data collector.
# @param [String] parent
# Required. Name of the organization in which to create the Data Collector in
# the following format: `organizations/`org``.
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector] google_cloud_apigee_v1_data_collector_object
# @param [String] data_collector_id
# ID of the Data Collector. Overrides any ID in the Data Collector resource.
# @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::GoogleCloudApigeeV1DataCollector] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector]
#
# @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_datacollector(parent, google_cloud_apigee_v1_data_collector_object = nil, data_collector_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/datacollectors', options)
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector::Representation
command.request_object = google_cloud_apigee_v1_data_collector_object
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector
command.params['parent'] = parent unless parent.nil?
command.query['dataCollectorId'] = data_collector_id unless data_collector_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a data collector.
# @param [String] name
# Required. Name of the Data Collector in the following format: `organizations/`
# org`/datacollectors/`data_collector_id``.
# @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::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleProtobufEmpty]
#
# @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 delete_organization_datacollector(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleProtobufEmpty
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
# Gets a data collector.
# @param [String] name
# Required. Name of the Data Collector in the following format: `organizations/`
# org`/datacollectors/`data_collector_id``.
# @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::GoogleCloudApigeeV1DataCollector] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector]
#
# @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_datacollector(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector
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
# Lists all data collectors.
# @param [String] parent
# Required. Name of the organization for which to list Data Collectors in the
# following format: `organizations/`org``.
# @param [Fixnum] page_size
# Maximum number of Data Collectors to return. The page size defaults to 25.
# @param [String] page_token
# Page token, returned from a previous ListDataCollectors call, that you can use
# to retrieve the next page.
# @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::GoogleCloudApigeeV1ListDataCollectorsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDataCollectorsResponse]
#
# @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_datacollectors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/datacollectors', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDataCollectorsResponse::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDataCollectorsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a data collector.
# @param [String] name
# Required. Name of the Data Collector in the following format: `organizations/`
# org`/datacollectors/`data_collector_id``.
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector] google_cloud_apigee_v1_data_collector_object
# @param [String] update_mask
# List of fields to be updated.
# @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::GoogleCloudApigeeV1DataCollector] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector]
#
# @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 patch_organization_datacollector(name, google_cloud_apigee_v1_data_collector_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector::Representation
command.request_object = google_cloud_apigee_v1_data_collector_object
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all deployments of API proxies or shared flows.
# @param [String] parent
# Required. Name of the organization for which to return deployment information
@ -5598,7 +5774,7 @@ module Google
# the runtime data is deleted. **Note:** Not supported for Apigee hybrid.
# @param [String] name
# Required. Name of the instance. Use the following structure in your request: `
# organizations/`org`/instance/`instance``.
# organizations/`org`/instances/`instance``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -5868,6 +6044,71 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a new canary evaluation for an organization.
# @param [String] parent
# Required. Name of the organization. Use the following structure in your
# request: `organizations/`org`/instances/`instance``.
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluation] google_cloud_apigee_v1_canary_evaluation_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::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
#
# @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_instance_canaryevaluation(parent, google_cloud_apigee_v1_canary_evaluation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/canaryevaluations', options)
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluation::Representation
command.request_object = google_cloud_apigee_v1_canary_evaluation_object
command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
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
# Gets a CanaryEvaluation for an organization.
# @param [String] name
# Required. Name of the CanaryEvaluation. Use the following structure in your
# request: `organizations/`org`/instances/*/canaryevaluations/`evaluation``
# @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::GoogleCloudApigeeV1CanaryEvaluation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluation]
#
# @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_instance_canaryevaluation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluation::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluation
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
# Creates a key value map in an organization.
# @param [String] parent
# Required. The name of the organization in which to create the key value map

View File

@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "f7fd8441cea0c111e25170a6e4ea5676fdd23164"
"sha": "d99b4075b0c4b6f712495b22315268d5f28038c0"
}
}
]