diff --git a/api_names_out.yaml b/api_names_out.yaml index e5364d34d..aa09de0ea 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 diff --git a/generated/google/apis/apigee_v1.rb b/generated/google/apis/apigee_v1.rb index 1f86ade5b..8a3e839a6 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 = '20201022' + REVISION = '20201029' # 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 1ba58a9cd..b8790814e 100644 --- a/generated/google/apis/apigee_v1/classes.rb +++ b/generated/google/apis/apigee_v1/classes.rb @@ -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] 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] 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] 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] 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] 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] + 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] 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] 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] 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) diff --git a/generated/google/apis/apigee_v1/representations.rb b/generated/google/apis/apigee_v1/representations.rb index 2c2b33c79..f7d266023 100644 --- a/generated/google/apis/apigee_v1/representations.rb +++ b/generated/google/apis/apigee_v1/representations.rb @@ -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' diff --git a/generated/google/apis/apigee_v1/service.rb b/generated/google/apis/apigee_v1/service.rb index a875cabe8..c5f0d936d 100644 --- a/generated/google/apis/apigee_v1/service.rb +++ b/generated/google/apis/apigee_v1/service.rb @@ -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 diff --git a/generated/google/apis/apigee_v1/synth.metadata b/generated/google/apis/apigee_v1/synth.metadata index 4325a4869..eea78d816 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": "f7fd8441cea0c111e25170a6e4ea5676fdd23164" + "sha": "d99b4075b0c4b6f712495b22315268d5f28038c0" } } ]