From 1946d6b405f25287f61f8053ef4f3ace2335f1f9 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 14 Jul 2020 00:38:22 +0000 Subject: [PATCH] Autogenerated update (2020-07-14) Update: - blogger_v3 - cloudtrace_v1 - cloudtrace_v2 - compute_beta - compute_v1 - content_v2 - content_v2_1 - drive_v2 - networkmanagement_v1 - networkmanagement_v1beta1 - osconfig_v1beta - realtimebidding_v1 - serviceconsumermanagement_v1 - serviceconsumermanagement_v1beta1 - servicenetworking_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 - sheets_v4 - vision_v1 --- api_names_out.yaml | 427 ++++ generated/google/apis/blogger_v3.rb | 2 +- generated/google/apis/cloudtrace_v1.rb | 2 +- .../google/apis/cloudtrace_v1/service.rb | 6 - generated/google/apis/cloudtrace_v2.rb | 2 +- .../google/apis/cloudtrace_v2/classes.rb | 5 +- .../google/apis/cloudtrace_v2/service.rb | 6 +- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 279 +++ .../apis/compute_beta/representations.rb | 90 + generated/google/apis/compute_beta/service.rb | 257 +++ generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 279 +++ .../google/apis/compute_v1/representations.rb | 90 + generated/google/apis/compute_v1/service.rb | 257 +++ generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 4 +- generated/google/apis/content_v2_1.rb | 2 +- generated/google/apis/content_v2_1/classes.rb | 8 +- generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/service.rb | 12 +- generated/google/apis/networkmanagement_v1.rb | 2 +- .../apis/networkmanagement_v1/classes.rb | 12 +- .../google/apis/networkmanagement_v1beta1.rb | 2 +- .../apis/networkmanagement_v1beta1/classes.rb | 12 +- generated/google/apis/osconfig_v1beta.rb | 2 +- .../google/apis/osconfig_v1beta/classes.rb | 4 +- generated/google/apis/realtimebidding_v1.rb | 2 +- .../apis/recommendationengine_v1beta1.rb | 36 + .../recommendationengine_v1beta1/classes.rb | 2015 +++++++++++++++++ .../representations.rb | 848 +++++++ .../recommendationengine_v1beta1/service.rb | 990 ++++++++ .../apis/serviceconsumermanagement_v1.rb | 2 +- .../serviceconsumermanagement_v1/classes.rb | 4 +- .../apis/serviceconsumermanagement_v1beta1.rb | 2 +- .../classes.rb | 4 +- generated/google/apis/servicenetworking_v1.rb | 2 +- .../apis/servicenetworking_v1/classes.rb | 4 +- .../google/apis/servicenetworking_v1beta.rb | 2 +- .../apis/servicenetworking_v1beta/classes.rb | 4 +- generated/google/apis/serviceusage_v1.rb | 2 +- .../google/apis/serviceusage_v1/classes.rb | 4 +- generated/google/apis/serviceusage_v1beta1.rb | 2 +- .../apis/serviceusage_v1beta1/classes.rb | 4 +- generated/google/apis/sheets_v4.rb | 2 +- generated/google/apis/sheets_v4/classes.rb | 56 +- generated/google/apis/vision_v1.rb | 2 +- generated/google/apis/vision_v1/classes.rb | 2 + 48 files changed, 5662 insertions(+), 97 deletions(-) create mode 100644 generated/google/apis/recommendationengine_v1beta1.rb create mode 100644 generated/google/apis/recommendationengine_v1beta1/classes.rb create mode 100644 generated/google/apis/recommendationengine_v1beta1/representations.rb create mode 100644 generated/google/apis/recommendationengine_v1beta1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 0d68e31f2..9bc8b7bd6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -35889,6 +35889,11 @@ "/compute:beta/ForwardingRulesScopedList/warning/data/datum/key": key "/compute:beta/ForwardingRulesScopedList/warning/data/datum/value": value "/compute:beta/ForwardingRulesScopedList/warning/message": message +"/compute:beta/GRPCHealthCheck": grpc_health_check +"/compute:beta/GRPCHealthCheck/grpcServiceName": grpc_service_name +"/compute:beta/GRPCHealthCheck/port": port +"/compute:beta/GRPCHealthCheck/portName": port_name +"/compute:beta/GRPCHealthCheck/portSpecification": port_specification "/compute:beta/GlobalNetworkEndpointGroupsAttachEndpointsRequest": global_network_endpoint_groups_attach_endpoints_request "/compute:beta/GlobalNetworkEndpointGroupsAttachEndpointsRequest/networkEndpoints": network_endpoints "/compute:beta/GlobalNetworkEndpointGroupsAttachEndpointsRequest/networkEndpoints/network_endpoint": network_endpoint @@ -35948,6 +35953,7 @@ "/compute:beta/HealthCheck/checkIntervalSec": check_interval_sec "/compute:beta/HealthCheck/creationTimestamp": creation_timestamp "/compute:beta/HealthCheck/description": description +"/compute:beta/HealthCheck/grpcHealthCheck": grpc_health_check "/compute:beta/HealthCheck/healthyThreshold": healthy_threshold "/compute:beta/HealthCheck/http2HealthCheck": http2_health_check "/compute:beta/HealthCheck/httpHealthCheck": http_health_check @@ -38771,6 +38777,31 @@ "/compute:beta/Tags/fingerprint": fingerprint "/compute:beta/Tags/items": items "/compute:beta/Tags/items/item": item +"/compute:beta/TargetGrpcProxy": target_grpc_proxy +"/compute:beta/TargetGrpcProxy/creationTimestamp": creation_timestamp +"/compute:beta/TargetGrpcProxy/description": description +"/compute:beta/TargetGrpcProxy/fingerprint": fingerprint +"/compute:beta/TargetGrpcProxy/id": id +"/compute:beta/TargetGrpcProxy/kind": kind +"/compute:beta/TargetGrpcProxy/name": name +"/compute:beta/TargetGrpcProxy/selfLink": self_link +"/compute:beta/TargetGrpcProxy/selfLinkWithId": self_link_with_id +"/compute:beta/TargetGrpcProxy/urlMap": url_map +"/compute:beta/TargetGrpcProxy/validateForProxyless": validate_for_proxyless +"/compute:beta/TargetGrpcProxyList": target_grpc_proxy_list +"/compute:beta/TargetGrpcProxyList/id": id +"/compute:beta/TargetGrpcProxyList/items": items +"/compute:beta/TargetGrpcProxyList/items/item": item +"/compute:beta/TargetGrpcProxyList/kind": kind +"/compute:beta/TargetGrpcProxyList/nextPageToken": next_page_token +"/compute:beta/TargetGrpcProxyList/selfLink": self_link +"/compute:beta/TargetGrpcProxyList/warning": warning +"/compute:beta/TargetGrpcProxyList/warning/code": code +"/compute:beta/TargetGrpcProxyList/warning/data": data +"/compute:beta/TargetGrpcProxyList/warning/data/datum": datum +"/compute:beta/TargetGrpcProxyList/warning/data/datum/key": key +"/compute:beta/TargetGrpcProxyList/warning/data/datum/value": value +"/compute:beta/TargetGrpcProxyList/warning/message": message "/compute:beta/TargetHttpProxiesScopedList": target_http_proxies_scoped_list "/compute:beta/TargetHttpProxiesScopedList/targetHttpProxies": target_http_proxies "/compute:beta/TargetHttpProxiesScopedList/targetHttpProxies/target_http_proxy": target_http_proxy @@ -41991,6 +42022,26 @@ "/compute:beta/compute.subnetworks.testIamPermissions/project": project "/compute:beta/compute.subnetworks.testIamPermissions/region": region "/compute:beta/compute.subnetworks.testIamPermissions/resource": resource +"/compute:beta/compute.targetGrpcProxies.delete": delete_target_grpc_proxy +"/compute:beta/compute.targetGrpcProxies.delete/project": project +"/compute:beta/compute.targetGrpcProxies.delete/requestId": request_id +"/compute:beta/compute.targetGrpcProxies.delete/targetGrpcProxy": target_grpc_proxy +"/compute:beta/compute.targetGrpcProxies.get": get_target_grpc_proxy +"/compute:beta/compute.targetGrpcProxies.get/project": project +"/compute:beta/compute.targetGrpcProxies.get/targetGrpcProxy": target_grpc_proxy +"/compute:beta/compute.targetGrpcProxies.insert": insert_target_grpc_proxy +"/compute:beta/compute.targetGrpcProxies.insert/project": project +"/compute:beta/compute.targetGrpcProxies.insert/requestId": request_id +"/compute:beta/compute.targetGrpcProxies.list": list_target_grpc_proxies +"/compute:beta/compute.targetGrpcProxies.list/filter": filter +"/compute:beta/compute.targetGrpcProxies.list/maxResults": max_results +"/compute:beta/compute.targetGrpcProxies.list/orderBy": order_by +"/compute:beta/compute.targetGrpcProxies.list/pageToken": page_token +"/compute:beta/compute.targetGrpcProxies.list/project": project +"/compute:beta/compute.targetGrpcProxies.patch": patch_target_grpc_proxy +"/compute:beta/compute.targetGrpcProxies.patch/project": project +"/compute:beta/compute.targetGrpcProxies.patch/requestId": request_id +"/compute:beta/compute.targetGrpcProxies.patch/targetGrpcProxy": target_grpc_proxy "/compute:beta/compute.targetHttpProxies.aggregatedList": aggregated_target_http_proxy_list "/compute:beta/compute.targetHttpProxies.aggregatedList/filter": filter "/compute:beta/compute.targetHttpProxies.aggregatedList/includeAllScopes": include_all_scopes @@ -43243,6 +43294,11 @@ "/compute:v1/ForwardingRulesScopedList/warning/data/datum/key": key "/compute:v1/ForwardingRulesScopedList/warning/data/datum/value": value "/compute:v1/ForwardingRulesScopedList/warning/message": message +"/compute:v1/GRPCHealthCheck": grpc_health_check +"/compute:v1/GRPCHealthCheck/grpcServiceName": grpc_service_name +"/compute:v1/GRPCHealthCheck/port": port +"/compute:v1/GRPCHealthCheck/portName": port_name +"/compute:v1/GRPCHealthCheck/portSpecification": port_specification "/compute:v1/GlobalNetworkEndpointGroupsAttachEndpointsRequest": global_network_endpoint_groups_attach_endpoints_request "/compute:v1/GlobalNetworkEndpointGroupsAttachEndpointsRequest/networkEndpoints": network_endpoints "/compute:v1/GlobalNetworkEndpointGroupsAttachEndpointsRequest/networkEndpoints/network_endpoint": network_endpoint @@ -43302,6 +43358,7 @@ "/compute:v1/HealthCheck/checkIntervalSec": check_interval_sec "/compute:v1/HealthCheck/creationTimestamp": creation_timestamp "/compute:v1/HealthCheck/description": description +"/compute:v1/HealthCheck/grpcHealthCheck": grpc_health_check "/compute:v1/HealthCheck/healthyThreshold": healthy_threshold "/compute:v1/HealthCheck/http2HealthCheck": http2_health_check "/compute:v1/HealthCheck/httpHealthCheck": http_health_check @@ -45773,6 +45830,31 @@ "/compute:v1/Tags/fingerprint": fingerprint "/compute:v1/Tags/items": items "/compute:v1/Tags/items/item": item +"/compute:v1/TargetGrpcProxy": target_grpc_proxy +"/compute:v1/TargetGrpcProxy/creationTimestamp": creation_timestamp +"/compute:v1/TargetGrpcProxy/description": description +"/compute:v1/TargetGrpcProxy/fingerprint": fingerprint +"/compute:v1/TargetGrpcProxy/id": id +"/compute:v1/TargetGrpcProxy/kind": kind +"/compute:v1/TargetGrpcProxy/name": name +"/compute:v1/TargetGrpcProxy/selfLink": self_link +"/compute:v1/TargetGrpcProxy/selfLinkWithId": self_link_with_id +"/compute:v1/TargetGrpcProxy/urlMap": url_map +"/compute:v1/TargetGrpcProxy/validateForProxyless": validate_for_proxyless +"/compute:v1/TargetGrpcProxyList": target_grpc_proxy_list +"/compute:v1/TargetGrpcProxyList/id": id +"/compute:v1/TargetGrpcProxyList/items": items +"/compute:v1/TargetGrpcProxyList/items/item": item +"/compute:v1/TargetGrpcProxyList/kind": kind +"/compute:v1/TargetGrpcProxyList/nextPageToken": next_page_token +"/compute:v1/TargetGrpcProxyList/selfLink": self_link +"/compute:v1/TargetGrpcProxyList/warning": warning +"/compute:v1/TargetGrpcProxyList/warning/code": code +"/compute:v1/TargetGrpcProxyList/warning/data": data +"/compute:v1/TargetGrpcProxyList/warning/data/datum": datum +"/compute:v1/TargetGrpcProxyList/warning/data/datum/key": key +"/compute:v1/TargetGrpcProxyList/warning/data/datum/value": value +"/compute:v1/TargetGrpcProxyList/warning/message": message "/compute:v1/TargetHttpProxiesScopedList": target_http_proxies_scoped_list "/compute:v1/TargetHttpProxiesScopedList/targetHttpProxies": target_http_proxies "/compute:v1/TargetHttpProxiesScopedList/targetHttpProxies/target_http_proxy": target_http_proxy @@ -48569,6 +48651,26 @@ "/compute:v1/compute.subnetworks.testIamPermissions/project": project "/compute:v1/compute.subnetworks.testIamPermissions/region": region "/compute:v1/compute.subnetworks.testIamPermissions/resource": resource +"/compute:v1/compute.targetGrpcProxies.delete": delete_target_grpc_proxy +"/compute:v1/compute.targetGrpcProxies.delete/project": project +"/compute:v1/compute.targetGrpcProxies.delete/requestId": request_id +"/compute:v1/compute.targetGrpcProxies.delete/targetGrpcProxy": target_grpc_proxy +"/compute:v1/compute.targetGrpcProxies.get": get_target_grpc_proxy +"/compute:v1/compute.targetGrpcProxies.get/project": project +"/compute:v1/compute.targetGrpcProxies.get/targetGrpcProxy": target_grpc_proxy +"/compute:v1/compute.targetGrpcProxies.insert": insert_target_grpc_proxy +"/compute:v1/compute.targetGrpcProxies.insert/project": project +"/compute:v1/compute.targetGrpcProxies.insert/requestId": request_id +"/compute:v1/compute.targetGrpcProxies.list": list_target_grpc_proxies +"/compute:v1/compute.targetGrpcProxies.list/filter": filter +"/compute:v1/compute.targetGrpcProxies.list/maxResults": max_results +"/compute:v1/compute.targetGrpcProxies.list/orderBy": order_by +"/compute:v1/compute.targetGrpcProxies.list/pageToken": page_token +"/compute:v1/compute.targetGrpcProxies.list/project": project +"/compute:v1/compute.targetGrpcProxies.patch": patch_target_grpc_proxy +"/compute:v1/compute.targetGrpcProxies.patch/project": project +"/compute:v1/compute.targetGrpcProxies.patch/requestId": request_id +"/compute:v1/compute.targetGrpcProxies.patch/targetGrpcProxy": target_grpc_proxy "/compute:v1/compute.targetHttpProxies.aggregatedList": aggregated_target_http_proxy_list "/compute:v1/compute.targetHttpProxies.aggregatedList/filter": filter "/compute:v1/compute.targetHttpProxies.aggregatedList/includeAllScopes": include_all_scopes @@ -113431,6 +113533,331 @@ "/realtimebidding:v1/realtimebidding.buyers.userLists.open/name": name "/realtimebidding:v1/realtimebidding.buyers.userLists.update": update_buyer_user_list "/realtimebidding:v1/realtimebidding.buyers.userLists.update/name": name +"/recommendationengine:v1beta1/GoogleApiHttpBody": google_api_http_body +"/recommendationengine:v1beta1/GoogleApiHttpBody/contentType": content_type +"/recommendationengine:v1beta1/GoogleApiHttpBody/data": data +"/recommendationengine:v1beta1/GoogleApiHttpBody/extensions": extensions +"/recommendationengine:v1beta1/GoogleApiHttpBody/extensions/extension": extension +"/recommendationengine:v1beta1/GoogleApiHttpBody/extensions/extension/extension": extension +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata": google_cloud_recommendationengine_v1alpha_rejoin_catalog_metadata +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse": google_cloud_recommendationengine_v1alpha_rejoin_catalog_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse/rejoinedUserEventsCount": rejoined_user_events_count +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1alphaTuningMetadata": google_cloud_recommendationengine_v1alpha_tuning_metadata +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1alphaTuningMetadata/recommendationModel": recommendation_model +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1alphaTuningResponse": google_cloud_recommendationengine_v1alpha_tuning_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1BigQuerySource": google_cloud_recommendationengine_v1beta1_big_query_source +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1BigQuerySource/dataSchema": data_schema +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1BigQuerySource/datasetId": dataset_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1BigQuerySource/gcsStagingDir": gcs_staging_dir +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1BigQuerySource/projectId": project_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1BigQuerySource/tableId": table_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1Catalog": google_cloud_recommendationengine_v1beta1_catalog +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1Catalog/catalogItemLevelConfig": catalog_item_level_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1Catalog/defaultEventStoreId": default_event_store_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1Catalog/displayName": display_name +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1Catalog/name": name +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogInlineSource": google_cloud_recommendationengine_v1beta1_catalog_inline_source +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogInlineSource/catalogItems": catalog_items +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogInlineSource/catalogItems/catalog_item": catalog_item +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem": google_cloud_recommendationengine_v1beta1_catalog_item +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/categoryHierarchies": category_hierarchies +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/categoryHierarchies/category_hierarchy": category_hierarchy +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/description": description +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/id": id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/itemAttributes": item_attributes +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/itemGroupId": item_group_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/languageCode": language_code +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/productMetadata": product_metadata +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/tags": tags +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/tags/tag": tag +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItem/title": title +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy": google_cloud_recommendationengine_v1beta1_catalog_item_category_hierarchy +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy/categories": categories +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy/categories/category": category +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig": google_cloud_recommendationengine_v1beta1_catalog_item_level_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig/eventItemLevel": event_item_level +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig/predictItemLevel": predict_item_level +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest": google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request +? "/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest/predictionApiKeyRegistration" +: prediction_api_key_registration +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1EventDetail": google_cloud_recommendationengine_v1beta1_event_detail +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1EventDetail/eventAttributes": event_attributes +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1EventDetail/experimentIds": experiment_ids +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1EventDetail/experimentIds/experiment_id": experiment_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1EventDetail/pageViewId": page_view_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1EventDetail/recommendationToken": recommendation_token +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1EventDetail/referrerUri": referrer_uri +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1EventDetail/uri": uri +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMap": google_cloud_recommendationengine_v1beta1_feature_map +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMap/categoricalFeatures": categorical_features +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMap/categoricalFeatures/categorical_feature": categorical_feature +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMap/numericalFeatures": numerical_features +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMap/numericalFeatures/numerical_feature": numerical_feature +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMapFloatList": google_cloud_recommendationengine_v1beta1_feature_map_float_list +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMapFloatList/value": value +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMapFloatList/value/value": value +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMapStringList": google_cloud_recommendationengine_v1beta1_feature_map_string_list +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMapStringList/value": value +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1FeatureMapStringList/value/value": value +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1GcsSource": google_cloud_recommendationengine_v1beta1_gcs_source +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1GcsSource/inputUris": input_uris +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1GcsSource/inputUris/input_uri": input_uri +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1GcsSource/jsonSchema": json_schema +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse": google_cloud_recommendationengine_v1beta1_get_catalog_items_with_item_group_id_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse/canonicalCatalogItem": canonical_catalog_item +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse/catalogItems": catalog_items +? "/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse/catalogItems/catalog_item" +: catalog_item +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1Image": google_cloud_recommendationengine_v1beta1_image +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1Image/height": height +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1Image/uri": uri +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1Image/width": width +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest": google_cloud_recommendationengine_v1beta1_import_catalog_items_request +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest/errorsConfig": errors_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest/inputConfig": input_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest/requestId": request_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest/updateMask": update_mask +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse": google_cloud_recommendationengine_v1beta1_import_catalog_items_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse/errorSamples": error_samples +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse/errorSamples/error_sample": error_sample +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse/errorsConfig": errors_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportErrorsConfig": google_cloud_recommendationengine_v1beta1_import_errors_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportErrorsConfig/gcsPrefix": gcs_prefix +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportMetadata": google_cloud_recommendationengine_v1beta1_import_metadata +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportMetadata/createTime": create_time +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportMetadata/failureCount": failure_count +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportMetadata/operationName": operation_name +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportMetadata/requestId": request_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportMetadata/successCount": success_count +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportMetadata/updateTime": update_time +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest": google_cloud_recommendationengine_v1beta1_import_user_events_request +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest/errorsConfig": errors_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest/inputConfig": input_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest/requestId": request_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse": google_cloud_recommendationengine_v1beta1_import_user_events_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse/errorSamples": error_samples +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse/errorSamples/error_sample": error_sample +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse/errorsConfig": errors_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse/importSummary": import_summary +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1InputConfig": google_cloud_recommendationengine_v1beta1_input_config +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1InputConfig/bigQuerySource": big_query_source +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1InputConfig/catalogInlineSource": catalog_inline_source +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1InputConfig/gcsSource": gcs_source +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1InputConfig/userEventInlineSource": user_event_inline_source +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse": google_cloud_recommendationengine_v1beta1_list_catalog_items_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse/catalogItems": catalog_items +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse/catalogItems/catalog_item": catalog_item +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse/nextPageToken": next_page_token +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListCatalogsResponse": google_cloud_recommendationengine_v1beta1_list_catalogs_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListCatalogsResponse/catalogs": catalogs +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListCatalogsResponse/catalogs/catalog": catalog +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListCatalogsResponse/nextPageToken": next_page_token +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse": google_cloud_recommendationengine_v1beta1_list_prediction_api_key_registrations_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse/nextPageToken": next_page_token +? "/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse/predictionApiKeyRegistrations" +: prediction_api_key_registrations +? "/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse/predictionApiKeyRegistrations/prediction_api_key_registration" +: prediction_api_key_registration +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListUserEventsResponse": google_cloud_recommendationengine_v1beta1_list_user_events_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListUserEventsResponse/nextPageToken": next_page_token +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListUserEventsResponse/userEvents": user_events +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ListUserEventsResponse/userEvents/user_event": user_event +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest": google_cloud_recommendationengine_v1beta1_predict_request +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest/dryRun": dry_run +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest/filter": filter +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest/labels": labels +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest/labels/label": label +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest/pageSize": page_size +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest/pageToken": page_token +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest/params": params +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest/params/param": param +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictRequest/userEvent": user_event +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse": google_cloud_recommendationengine_v1beta1_predict_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse/dryRun": dry_run +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse/itemsMissingInCatalog": items_missing_in_catalog +? "/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse/itemsMissingInCatalog/items_missing_in_catalog" +: items_missing_in_catalog +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse/metadata": metadata +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse/metadata/metadatum": metadatum +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse/nextPageToken": next_page_token +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse/recommendationToken": recommendation_token +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse/results": results +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponse/results/result": result +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult": google_cloud_recommendationengine_v1beta1_predict_response_prediction_result +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult/id": id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult/itemMetadata": item_metadata +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult/itemMetadata/item_metadatum": item_metadatum +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration": google_cloud_recommendationengine_v1beta1_prediction_api_key_registration +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration/apiKey": api_key +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem": google_cloud_recommendationengine_v1beta1_product_catalog_item +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/availableQuantity": available_quantity +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/canonicalProductUri": canonical_product_uri +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/costs": costs +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/costs/cost": cost +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/currencyCode": currency_code +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/exactPrice": exact_price +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/images": images +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/images/image": image +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/priceRange": price_range +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItem/stockState": stock_state +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice": google_cloud_recommendationengine_v1beta1_product_catalog_item_exact_price +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice/displayPrice": display_price +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice/originalPrice": original_price +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange": google_cloud_recommendationengine_v1beta1_product_catalog_item_price_range +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange/max": max +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange/min": min +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductDetail": google_cloud_recommendationengine_v1beta1_product_detail +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductDetail/availableQuantity": available_quantity +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductDetail/currencyCode": currency_code +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductDetail/displayPrice": display_price +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductDetail/id": id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductDetail/itemAttributes": item_attributes +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductDetail/originalPrice": original_price +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductDetail/quantity": quantity +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductDetail/stockState": stock_state +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductEventDetail": google_cloud_recommendationengine_v1beta1_product_event_detail +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductEventDetail/cartId": cart_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductEventDetail/listId": list_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductEventDetail/pageCategories": page_categories +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductEventDetail/pageCategories/page_category": page_category +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductEventDetail/productDetails": product_details +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductEventDetail/productDetails/product_detail": product_detail +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductEventDetail/purchaseTransaction": purchase_transaction +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1ProductEventDetail/searchQuery": search_query +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurchaseTransaction": google_cloud_recommendationengine_v1beta1_purchase_transaction +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurchaseTransaction/costs": costs +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurchaseTransaction/costs/cost": cost +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurchaseTransaction/currencyCode": currency_code +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurchaseTransaction/id": id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurchaseTransaction/revenue": revenue +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurchaseTransaction/taxes": taxes +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurchaseTransaction/taxes/tax": tax +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata": google_cloud_recommendationengine_v1beta1_purge_user_events_metadata +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata/createTime": create_time +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata/operationName": operation_name +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest": google_cloud_recommendationengine_v1beta1_purge_user_events_request +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest/filter": filter +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest/force": force +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse": google_cloud_recommendationengine_v1beta1_purge_user_events_response +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse/purgedEventsCount": purged_events_count +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse/userEventsSample": user_events_sample +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse/userEventsSample/user_events_sample": user_events_sample +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest": google_cloud_recommendationengine_v1beta1_rejoin_user_events_request +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest/userEventRejoinScope": user_event_rejoin_scope +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEvent": google_cloud_recommendationengine_v1beta1_user_event +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEvent/eventDetail": event_detail +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEvent/eventSource": event_source +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEvent/eventTime": event_time +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEvent/eventType": event_type +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEvent/productEventDetail": product_event_detail +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEvent/userInfo": user_info +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEventImportSummary": google_cloud_recommendationengine_v1beta1_user_event_import_summary +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEventImportSummary/joinedEventsCount": joined_events_count +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEventImportSummary/unjoinedEventsCount": unjoined_events_count +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEventInlineSource": google_cloud_recommendationengine_v1beta1_user_event_inline_source +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEventInlineSource/userEvents": user_events +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserEventInlineSource/userEvents/user_event": user_event +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserInfo": google_cloud_recommendationengine_v1beta1_user_info +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserInfo/directUserRequest": direct_user_request +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserInfo/ipAddress": ip_address +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserInfo/userAgent": user_agent +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserInfo/userId": user_id +"/recommendationengine:v1beta1/GoogleCloudRecommendationengineV1beta1UserInfo/visitorId": visitor_id +"/recommendationengine:v1beta1/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response +"/recommendationengine:v1beta1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token +"/recommendationengine:v1beta1/GoogleLongrunningListOperationsResponse/operations": operations +"/recommendationengine:v1beta1/GoogleLongrunningListOperationsResponse/operations/operation": operation +"/recommendationengine:v1beta1/GoogleLongrunningOperation": google_longrunning_operation +"/recommendationengine:v1beta1/GoogleLongrunningOperation/done": done +"/recommendationengine:v1beta1/GoogleLongrunningOperation/error": error +"/recommendationengine:v1beta1/GoogleLongrunningOperation/metadata": metadata +"/recommendationengine:v1beta1/GoogleLongrunningOperation/metadata/metadatum": metadatum +"/recommendationengine:v1beta1/GoogleLongrunningOperation/name": name +"/recommendationengine:v1beta1/GoogleLongrunningOperation/response": response +"/recommendationengine:v1beta1/GoogleLongrunningOperation/response/response": response +"/recommendationengine:v1beta1/GoogleProtobufEmpty": google_protobuf_empty +"/recommendationengine:v1beta1/GoogleRpcStatus": google_rpc_status +"/recommendationengine:v1beta1/GoogleRpcStatus/code": code +"/recommendationengine:v1beta1/GoogleRpcStatus/details": details +"/recommendationengine:v1beta1/GoogleRpcStatus/details/detail": detail +"/recommendationengine:v1beta1/GoogleRpcStatus/details/detail/detail": detail +"/recommendationengine:v1beta1/GoogleRpcStatus/message": message +"/recommendationengine:v1beta1/fields": fields +"/recommendationengine:v1beta1/key": key +"/recommendationengine:v1beta1/quotaUser": quota_user +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.create": create_project_location_catalog_catalog_item +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.create/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.delete": delete_project_location_catalog_catalog_item +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.delete/name": name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.get": get_project_location_catalog_catalog_item +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.get/name": name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.getGroupIdItems": get_project_location_catalog_catalog_item_group_id_items +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.getGroupIdItems/itemGroupId": item_group_id +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.getGroupIdItems/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.import": import_project_location_catalog_catalog_item +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.import/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.list": list_project_location_catalog_catalog_items +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.list/filter": filter +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.list/pageSize": page_size +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.list/pageToken": page_token +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.list/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.patch": patch_project_location_catalog_catalog_item +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.patch/name": name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.catalogItems.patch/updateMask": update_mask +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.operations.get": get_project_location_catalog_event_store_operation +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.operations.get/name": name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.operations.list": list_project_location_catalog_event_store_operations +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.operations.list/filter": filter +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.operations.list/name": name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.operations.list/pageSize": page_size +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.operations.list/pageToken": page_token +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.placements.predict": predict_project_location_catalog_event_store_placement +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.placements.predict/name": name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.create": create_project_location_catalog_event_store_prediction_api_key_registration +? "/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.create/parent" +: parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.delete": delete_project_location_catalog_event_store_prediction_api_key_registration +? "/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.delete/name" +: name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.list": list_project_location_catalog_event_store_prediction_api_key_registrations +? "/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.list/pageSize" +: page_size +? "/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.list/pageToken" +: page_token +? "/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.predictionApiKeyRegistrations.list/parent" +: parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.collect": collect_project_location_catalog_event_store_user_event +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.collect/ets": ets +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.collect/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.collect/uri": uri +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.collect/userEvent": user_event +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.import": import_project_location_catalog_event_store_user_event +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.import/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.list": list_project_location_catalog_event_store_user_events +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.list/filter": filter +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.list/pageSize": page_size +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.list/pageToken": page_token +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.list/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.purge": purge_project_location_catalog_event_store_user_event +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.purge/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.rejoin": rejoin_project_location_catalog_event_store_user_event +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.rejoin/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.write": write_project_location_catalog_event_store_user_event +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.eventStores.userEvents.write/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.list": list_project_location_catalogs +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.list/pageSize": page_size +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.list/pageToken": page_token +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.list/parent": parent +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.operations.get": get_project_location_catalog_operation +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.operations.get/name": name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.operations.list": list_project_location_catalog_operations +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.operations.list/filter": filter +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.operations.list/name": name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.operations.list/pageSize": page_size +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.operations.list/pageToken": page_token +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.patch": patch_project_location_catalog +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.patch/name": name +"/recommendationengine:v1beta1/recommendationengine.projects.locations.catalogs.patch/updateMask": update_mask "/recommender:v1/GoogleCloudRecommenderV1CostProjection": google_cloud_recommender_v1_cost_projection "/recommender:v1/GoogleCloudRecommenderV1CostProjection/cost": cost "/recommender:v1/GoogleCloudRecommenderV1CostProjection/duration": duration diff --git a/generated/google/apis/blogger_v3.rb b/generated/google/apis/blogger_v3.rb index d01082fd8..966c21558 100644 --- a/generated/google/apis/blogger_v3.rb +++ b/generated/google/apis/blogger_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/blogger/docs/3.0/getting_started module BloggerV3 VERSION = 'V3' - REVISION = '20200409' + REVISION = '20200711' # Manage your Blogger account AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger' diff --git a/generated/google/apis/cloudtrace_v1.rb b/generated/google/apis/cloudtrace_v1.rb index dfe3f2ed5..546cf4317 100644 --- a/generated/google/apis/cloudtrace_v1.rb +++ b/generated/google/apis/cloudtrace_v1.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/trace module CloudtraceV1 VERSION = 'V1' - REVISION = '20200309' + REVISION = '20200707' # 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/cloudtrace_v1/service.rb b/generated/google/apis/cloudtrace_v1/service.rb index 1b4a7952c..1d898caee 100644 --- a/generated/google/apis/cloudtrace_v1/service.rb +++ b/generated/google/apis/cloudtrace_v1/service.rb @@ -56,8 +56,6 @@ module Google # in the existing trace and its spans are overwritten by the provided values, # and any new fields provided are merged with the existing trace data. If the # ID does not match, a new trace is created. - # In this case, writing traces is not considered an active developer - # method since traces are machine generated. # @param [String] project_id # Required. ID of the Cloud project where the trace data is stored. # @param [Google::Apis::CloudtraceV1::Traces] traces_object @@ -91,8 +89,6 @@ module Google end # Gets a single trace by its ID. - # In this case, getting for traces is considered an active developer method, - # even though it is technically a read-only method. # @param [String] project_id # Required. ID of the Cloud project where the trace data is stored. # @param [String] trace_id @@ -126,8 +122,6 @@ module Google end # Returns of a list of traces that match the specified filter conditions. - # In this case, listing for traces is considered an active developer method, - # even though it is technically a read-only method. # @param [String] project_id # Required. ID of the Cloud project where the trace data is stored. # @param [String] end_time diff --git a/generated/google/apis/cloudtrace_v2.rb b/generated/google/apis/cloudtrace_v2.rb index 8921bd56b..4e5d3c978 100644 --- a/generated/google/apis/cloudtrace_v2.rb +++ b/generated/google/apis/cloudtrace_v2.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/trace module CloudtraceV2 VERSION = 'V2' - REVISION = '20200414' + REVISION = '20200707' # 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/cloudtrace_v2/classes.rb b/generated/google/apis/cloudtrace_v2/classes.rb index 4d448bef2..ff12015e2 100644 --- a/generated/google/apis/cloudtrace_v2/classes.rb +++ b/generated/google/apis/cloudtrace_v2/classes.rb @@ -322,7 +322,7 @@ module Google # @return [Google::Apis::CloudtraceV2::Links] attr_accessor :links - # The resource name of the span in the following format: + # Required. The resource name of the span in the following format: # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique # identifier for a trace within a project; # it is a 32-character hexadecimal encoding of a 16-byte array. @@ -352,7 +352,8 @@ module Google # @return [String] attr_accessor :span_id - # Distinguishes between spans generated in a particular context. For example, + # Optional. Distinguishes between spans generated in a particular context. For + # example, # two spans with the same name may be distinguished using `CLIENT` (caller) # and `SERVER` (callee) to identify an RPC call. # Corresponds to the JSON property `spanKind` diff --git a/generated/google/apis/cloudtrace_v2/service.rb b/generated/google/apis/cloudtrace_v2/service.rb index 9d3d3a32f..ceffa8e61 100644 --- a/generated/google/apis/cloudtrace_v2/service.rb +++ b/generated/google/apis/cloudtrace_v2/service.rb @@ -53,8 +53,6 @@ module Google # Sends new spans to new or existing traces. You cannot update # existing spans. - # In this case, writing traces is not considered an active developer - # method since traces are machine generated. # @param [String] name # Required. The name of the project where the spans belong. The format is # `projects/[PROJECT_ID]`. @@ -89,10 +87,8 @@ module Google end # Creates a new span. - # In this case, writing traces is not considered an active developer - # method since traces are machine generated. # @param [String] name - # The resource name of the span in the following format: + # Required. The resource name of the span in the following format: # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique # identifier for a trace within a project; # it is a 32-character hexadecimal encoding of a 16-byte array. diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 268aea56c..28adbbd25 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20200612' + REVISION = '20200629' # 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/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 11cb69832..718b6f95c 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -7812,6 +7812,60 @@ module Google end end + # + class GrpcHealthCheck + include Google::Apis::Core::Hashable + + # The gRPC service name for the health check. This field is optional. The value + # of grpc_service_name has the following meanings by convention: + # - Empty service_name means the overall status of all services at the backend. + # - Non-empty service_name means the health of that gRPC service, as defined by + # the owner of the service. + # The grpc_service_name can only be ASCII. + # Corresponds to the JSON property `grpcServiceName` + # @return [String] + attr_accessor :grpc_service_name + + # The port number for the health check request. Must be specified if port_name + # and port_specification are not set or if port_specification is USE_FIXED_PORT. + # Valid values are 1 through 65535. + # Corresponds to the JSON property `port` + # @return [Fixnum] + attr_accessor :port + + # Port name as defined in InstanceGroup#NamedPort#name. If both port and + # port_name are defined, port takes precedence. The port_name should conform to + # RFC1035. + # Corresponds to the JSON property `portName` + # @return [String] + attr_accessor :port_name + + # Specifies how port is selected for health checking, can be one of following + # values: + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. + # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each + # network endpoint is used for health checking. For other backends, the port or + # named port specified in the Backend Service is used for health checking. + # If not specified, gRPC health check follows behavior specified in port and + # portName fields. + # Corresponds to the JSON property `portSpecification` + # @return [String] + attr_accessor :port_specification + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @grpc_service_name = args[:grpc_service_name] if args.key?(:grpc_service_name) + @port = args[:port] if args.key?(:port) + @port_name = args[:port_name] if args.key?(:port_name) + @port_specification = args[:port_specification] if args.key?(:port_specification) + end + end + # class GlobalNetworkEndpointGroupsAttachEndpointsRequest include Google::Apis::Core::Hashable @@ -8309,6 +8363,11 @@ module Google # @return [String] attr_accessor :description + # + # Corresponds to the JSON property `grpcHealthCheck` + # @return [Google::Apis::ComputeBeta::GrpcHealthCheck] + attr_accessor :grpc_health_check + # A so-far unhealthy instance will be marked healthy after this many consecutive # successes. The default value is 2. # Corresponds to the JSON property `healthyThreshold` @@ -8407,6 +8466,7 @@ module Google @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @grpc_health_check = args[:grpc_health_check] if args.key?(:grpc_health_check) @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) @http2_health_check = args[:http2_health_check] if args.key?(:http2_health_check) @http_health_check = args[:http_health_check] if args.key?(:http_health_check) @@ -30728,6 +30788,225 @@ module Google end end + # Represents a Target gRPC Proxy resource. + # A target gRPC proxy is a component of load balancers intended for load + # balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy. + # The Target gRPC Proxy references a URL map which specifies how traffic routes + # to gRPC backend services. + class TargetGrpcProxy + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Fingerprint of this resource. A hash of the contents stored in this object. + # This field is used in optimistic locking. This field will be ignored when + # inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in + # order to patch/update the TargetGrpcProxy; otherwise, the request will fail + # with error 412 conditionNotMet. To see the latest fingerprint, make a get() + # request to retrieve the TargetGrpcProxy. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + + # [Output Only] The unique identifier for the resource type. The server + # generates this identifier. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of the resource. Always compute#targetGrpcProxy for target + # grpc proxies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Server-defined URL with id for the resource. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + + # URL to the UrlMap resource that defines the mapping from URL to the + # BackendService. The protocol field in the BackendService must be set to GRPC. + # Corresponds to the JSON property `urlMap` + # @return [String] + attr_accessor :url_map + + # If true, indicates that the BackendServices referenced by the urlMap may be + # accessed by gRPC applications without using a sidecar proxy. This will enable + # configuration checks on urlMap and its referenced BackendServices to not allow + # unsupported features. A gRPC application must use "xds-experimental:///" + # scheme in the target URI of the service it is connecting to. If false, + # indicates that the BackendServices referenced by the urlMap will be accessed + # by gRPC applications via a sidecar proxy. In this case, a gRPC application + # must not use "xds-experimental:///" scheme in the target URI of the service it + # is connecting to + # Corresponds to the JSON property `validateForProxyless` + # @return [Boolean] + attr_accessor :validate_for_proxyless + alias_method :validate_for_proxyless?, :validate_for_proxyless + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @url_map = args[:url_map] if args.key?(:url_map) + @validate_for_proxyless = args[:validate_for_proxyless] if args.key?(:validate_for_proxyless) + end + end + + # + class TargetGrpcProxyList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of TargetGrpcProxy resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of the resource. Always compute#targetGrpcProxy for target + # grpc proxies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class TargetHttpProxiesScopedList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 69a4b17f2..e87ffa032 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -952,6 +952,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GrpcHealthCheck + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GlobalNetworkEndpointGroupsAttachEndpointsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4102,6 +4108,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TargetGrpcProxy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TargetGrpcProxyList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetHttpProxiesScopedList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -6713,6 +6743,16 @@ module Google end end + class GrpcHealthCheck + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :grpc_service_name, as: 'grpcServiceName' + property :port, as: 'port' + property :port_name, as: 'portName' + property :port_specification, as: 'portSpecification' + end + end + class GlobalNetworkEndpointGroupsAttachEndpointsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6830,6 +6870,8 @@ module Google property :check_interval_sec, as: 'checkIntervalSec' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :grpc_health_check, as: 'grpcHealthCheck', class: Google::Apis::ComputeBeta::GrpcHealthCheck, decorator: Google::Apis::ComputeBeta::GrpcHealthCheck::Representation + property :healthy_threshold, as: 'healthyThreshold' property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeBeta::Http2HealthCheck, decorator: Google::Apis::ComputeBeta::Http2HealthCheck::Representation @@ -12477,6 +12519,54 @@ module Google end end + class TargetGrpcProxy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' + property :url_map, as: 'urlMap' + property :validate_for_proxyless, as: 'validateForProxyless' + end + end + + class TargetGrpcProxyList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeBeta::TargetGrpcProxy, decorator: Google::Apis::ComputeBeta::TargetGrpcProxy::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning, decorator: Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning::Datum, decorator: Google::Apis::ComputeBeta::TargetGrpcProxyList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class TargetHttpProxiesScopedList # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 802e97098..3d5918143 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -28161,6 +28161,263 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified TargetGrpcProxy in the given scope + # @param [String] project + # Project ID for this request. + # @param [String] target_grpc_proxy + # Name of the TargetGrpcProxy resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @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_target_grpc_proxy(project, target_grpc_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified TargetGrpcProxy resource in the given scope. + # @param [String] project + # Project ID for this request. + # @param [String] target_grpc_proxy + # Name of the TargetGrpcProxy resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TargetGrpcProxy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TargetGrpcProxy] + # + # @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_target_grpc_proxy(project, target_grpc_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command.response_representation = Google::Apis::ComputeBeta::TargetGrpcProxy::Representation + command.response_class = Google::Apis::ComputeBeta::TargetGrpcProxy + command.params['project'] = project unless project.nil? + command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a TargetGrpcProxy in the specified project in the given scope using + # the parameters that are included in the request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeBeta::TargetGrpcProxy] target_grpc_proxy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @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 insert_target_grpc_proxy(project, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/targetGrpcProxies', options) + command.request_representation = Google::Apis::ComputeBeta::TargetGrpcProxy::Representation + command.request_object = target_grpc_proxy_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the TargetGrpcProxies for a project in the given scope. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. + # @param [String] page_token + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TargetGrpcProxyList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::TargetGrpcProxyList] + # + # @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_target_grpc_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/targetGrpcProxies', options) + command.response_representation = Google::Apis::ComputeBeta::TargetGrpcProxyList::Representation + command.response_class = Google::Apis::ComputeBeta::TargetGrpcProxyList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches the specified TargetGrpcProxy resource with the data included in the + # request. This method supports PATCH semantics and uses JSON merge patch format + # and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] target_grpc_proxy + # Name of the TargetGrpcProxy resource to patch. + # @param [Google::Apis::ComputeBeta::TargetGrpcProxy] target_grpc_proxy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @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_target_grpc_proxy(project, target_grpc_proxy, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command.request_representation = Google::Apis::ComputeBeta::TargetGrpcProxy::Representation + command.request_object = target_grpc_proxy_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the list of all TargetHttpProxy resources, regional and global, # available to the specified project. # @param [String] project diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index d5059f389..5d433218b 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20200612' + REVISION = '20200629' # 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/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 6ffca522f..6dd2b0730 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -7281,6 +7281,60 @@ module Google end end + # + class GrpcHealthCheck + include Google::Apis::Core::Hashable + + # The gRPC service name for the health check. This field is optional. The value + # of grpc_service_name has the following meanings by convention: + # - Empty service_name means the overall status of all services at the backend. + # - Non-empty service_name means the health of that gRPC service, as defined by + # the owner of the service. + # The grpc_service_name can only be ASCII. + # Corresponds to the JSON property `grpcServiceName` + # @return [String] + attr_accessor :grpc_service_name + + # The port number for the health check request. Must be specified if port_name + # and port_specification are not set or if port_specification is USE_FIXED_PORT. + # Valid values are 1 through 65535. + # Corresponds to the JSON property `port` + # @return [Fixnum] + attr_accessor :port + + # Port name as defined in InstanceGroup#NamedPort#name. If both port and + # port_name are defined, port takes precedence. The port_name should conform to + # RFC1035. + # Corresponds to the JSON property `portName` + # @return [String] + attr_accessor :port_name + + # Specifies how port is selected for health checking, can be one of following + # values: + # USE_FIXED_PORT: The port number in port is used for health checking. + # USE_NAMED_PORT: The portName is used for health checking. + # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each + # network endpoint is used for health checking. For other backends, the port or + # named port specified in the Backend Service is used for health checking. + # If not specified, gRPC health check follows behavior specified in port and + # portName fields. + # Corresponds to the JSON property `portSpecification` + # @return [String] + attr_accessor :port_specification + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @grpc_service_name = args[:grpc_service_name] if args.key?(:grpc_service_name) + @port = args[:port] if args.key?(:port) + @port_name = args[:port_name] if args.key?(:port_name) + @port_specification = args[:port_specification] if args.key?(:port_specification) + end + end + # class GlobalNetworkEndpointGroupsAttachEndpointsRequest include Google::Apis::Core::Hashable @@ -7778,6 +7832,11 @@ module Google # @return [String] attr_accessor :description + # + # Corresponds to the JSON property `grpcHealthCheck` + # @return [Google::Apis::ComputeV1::GrpcHealthCheck] + attr_accessor :grpc_health_check + # A so-far unhealthy instance will be marked healthy after this many consecutive # successes. The default value is 2. # Corresponds to the JSON property `healthyThreshold` @@ -7876,6 +7935,7 @@ module Google @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @grpc_health_check = args[:grpc_health_check] if args.key?(:grpc_health_check) @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) @http2_health_check = args[:http2_health_check] if args.key?(:http2_health_check) @http_health_check = args[:http_health_check] if args.key?(:http_health_check) @@ -27905,6 +27965,225 @@ module Google end end + # Represents a Target gRPC Proxy resource. + # A target gRPC proxy is a component of load balancers intended for load + # balancing gRPC traffic. Global forwarding rules reference a target gRPC proxy. + # The Target gRPC Proxy references a URL map which specifies how traffic routes + # to gRPC backend services. + class TargetGrpcProxy + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Fingerprint of this resource. A hash of the contents stored in this object. + # This field is used in optimistic locking. This field will be ignored when + # inserting a TargetGrpcProxy. An up-to-date fingerprint must be provided in + # order to patch/update the TargetGrpcProxy; otherwise, the request will fail + # with error 412 conditionNotMet. To see the latest fingerprint, make a get() + # request to retrieve the TargetGrpcProxy. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + + # [Output Only] The unique identifier for the resource type. The server + # generates this identifier. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of the resource. Always compute#targetGrpcProxy for target + # grpc proxies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the resource. Provided by the client when the resource is created. The + # name must be 1-63 characters long, and comply with RFC1035. Specifically, the + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, + # and all following characters must be a dash, lowercase letter, or digit, + # except the last character, which cannot be a dash. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Server-defined URL with id for the resource. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + + # URL to the UrlMap resource that defines the mapping from URL to the + # BackendService. The protocol field in the BackendService must be set to GRPC. + # Corresponds to the JSON property `urlMap` + # @return [String] + attr_accessor :url_map + + # If true, indicates that the BackendServices referenced by the urlMap may be + # accessed by gRPC applications without using a sidecar proxy. This will enable + # configuration checks on urlMap and its referenced BackendServices to not allow + # unsupported features. A gRPC application must use "xds-experimental:///" + # scheme in the target URI of the service it is connecting to. If false, + # indicates that the BackendServices referenced by the urlMap will be accessed + # by gRPC applications via a sidecar proxy. In this case, a gRPC application + # must not use "xds-experimental:///" scheme in the target URI of the service it + # is connecting to + # Corresponds to the JSON property `validateForProxyless` + # @return [Boolean] + attr_accessor :validate_for_proxyless + alias_method :validate_for_proxyless?, :validate_for_proxyless + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @url_map = args[:url_map] if args.key?(:url_map) + @validate_for_proxyless = args[:validate_for_proxyless] if args.key?(:validate_for_proxyless) + end + end + + # + class TargetGrpcProxyList + include Google::Apis::Core::Hashable + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of TargetGrpcProxy resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of the resource. Always compute#targetGrpcProxy for target + # grpc proxies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::TargetGrpcProxyList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + # class TargetHttpProxiesScopedList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index e9d4ff90b..30d3039ca 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -916,6 +916,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GrpcHealthCheck + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GlobalNetworkEndpointGroupsAttachEndpointsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3760,6 +3766,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TargetGrpcProxy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TargetGrpcProxyList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetHttpProxiesScopedList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -6257,6 +6287,16 @@ module Google end end + class GrpcHealthCheck + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :grpc_service_name, as: 'grpcServiceName' + property :port, as: 'port' + property :port_name, as: 'portName' + property :port_specification, as: 'portSpecification' + end + end + class GlobalNetworkEndpointGroupsAttachEndpointsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6374,6 +6414,8 @@ module Google property :check_interval_sec, as: 'checkIntervalSec' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :grpc_health_check, as: 'grpcHealthCheck', class: Google::Apis::ComputeV1::GrpcHealthCheck, decorator: Google::Apis::ComputeV1::GrpcHealthCheck::Representation + property :healthy_threshold, as: 'healthyThreshold' property :http2_health_check, as: 'http2HealthCheck', class: Google::Apis::ComputeV1::Http2HealthCheck, decorator: Google::Apis::ComputeV1::Http2HealthCheck::Representation @@ -11441,6 +11483,54 @@ module Google end end + class TargetGrpcProxy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' + property :url_map, as: 'urlMap' + property :validate_for_proxyless, as: 'validateForProxyless' + end + end + + class TargetGrpcProxyList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::TargetGrpcProxy, decorator: Google::Apis::ComputeV1::TargetGrpcProxy::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::TargetGrpcProxyList::Warning, decorator: Google::Apis::ComputeV1::TargetGrpcProxyList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::TargetGrpcProxyList::Warning::Datum, decorator: Google::Apis::ComputeV1::TargetGrpcProxyList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + class TargetHttpProxiesScopedList # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 694e1767b..746f92e6d 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -24204,6 +24204,263 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified TargetGrpcProxy in the given scope + # @param [String] project + # Project ID for this request. + # @param [String] target_grpc_proxy + # Name of the TargetGrpcProxy resource to delete. + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @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_target_grpc_proxy(project, target_grpc_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified TargetGrpcProxy resource in the given scope. + # @param [String] project + # Project ID for this request. + # @param [String] target_grpc_proxy + # Name of the TargetGrpcProxy resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::TargetGrpcProxy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::TargetGrpcProxy] + # + # @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_target_grpc_proxy(project, target_grpc_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command.response_representation = Google::Apis::ComputeV1::TargetGrpcProxy::Representation + command.response_class = Google::Apis::ComputeV1::TargetGrpcProxy + command.params['project'] = project unless project.nil? + command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Creates a TargetGrpcProxy in the specified project in the given scope using + # the parameters that are included in the request. + # @param [String] project + # Project ID for this request. + # @param [Google::Apis::ComputeV1::TargetGrpcProxy] target_grpc_proxy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @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 insert_target_grpc_proxy(project, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/global/targetGrpcProxies', options) + command.request_representation = Google::Apis::ComputeV1::TargetGrpcProxy::Representation + command.request_object = target_grpc_proxy_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Lists the TargetGrpcProxies for a project in the given scope. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. + # For example, if you are filtering Compute Engine instances, you can exclude + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled + # for automatic restarts. You can use filtering on nested fields to filter based + # on resource labels. + # To filter on multiple expressions, provide each separate expression within + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. + # You can also sort results in descending order based on the creation timestamp + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). + # Use this to sort resources like operations so that the newest operation is + # returned first. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. + # @param [String] page_token + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::TargetGrpcProxyList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::TargetGrpcProxyList] + # + # @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_target_grpc_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/targetGrpcProxies', options) + command.response_representation = Google::Apis::ComputeV1::TargetGrpcProxyList::Representation + command.response_class = Google::Apis::ComputeV1::TargetGrpcProxyList + command.params['project'] = project unless project.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.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? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Patches the specified TargetGrpcProxy resource with the data included in the + # request. This method supports PATCH semantics and uses JSON merge patch format + # and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] target_grpc_proxy + # Name of the TargetGrpcProxy resource to patch. + # @param [Google::Apis::ComputeV1::TargetGrpcProxy] target_grpc_proxy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @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_target_grpc_proxy(project, target_grpc_proxy, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command.request_representation = Google::Apis::ComputeV1::TargetGrpcProxy::Representation + command.request_object = target_grpc_proxy_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['targetGrpcProxy'] = target_grpc_proxy unless target_grpc_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the list of all TargetHttpProxy resources, regional and global, # available to the specified project. # @param [String] project diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 7f0493939..437f3919c 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20200615' + REVISION = '20200702' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index ba802f40c..0fc645ea1 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -9365,7 +9365,7 @@ module Google # @return [String] attr_accessor :brand - # Link to the canonical version of the landing page. + # URL for the canonical version of your item's landing page. # Corresponds to the JSON property `canonicalLink` # @return [String] attr_accessor :canonical_link @@ -9619,7 +9619,7 @@ module Google # @return [Fixnum] attr_accessor :min_handling_time - # Link to a mobile-optimized version of the landing page. + # URL for the mobile-optimized version of your item's landing page. # Corresponds to the JSON property `mobileLink` # @return [String] attr_accessor :mobile_link diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index 3e76947b2..8427e40df 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20200617' + REVISION = '20200702' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index 2446f3060..ce110f300 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -8577,7 +8577,7 @@ module Google # @return [String] attr_accessor :brand - # Link to the canonical version of the landing page. + # URL for the canonical version of your item's landing page. # Corresponds to the JSON property `canonicalLink` # @return [String] attr_accessor :canonical_link @@ -8794,7 +8794,7 @@ module Google # @return [Fixnum] attr_accessor :min_handling_time - # Link to a mobile-optimized version of the landing page. + # URL for the mobile-optimized version of your item's landing page. # Corresponds to the JSON property `mobileLink` # @return [String] attr_accessor :mobile_link @@ -8829,12 +8829,12 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :price - # Technical specification or additional product details + # Technical specification or additional product details. # Corresponds to the JSON property `productDetails` # @return [Array] attr_accessor :product_details - # List of important bullet points describing the product + # Bullet points describing the most relevant highlights of a product. # Corresponds to the JSON property `productHighlights` # @return [Array] attr_accessor :product_highlights diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 2b4b9a206..ed568b94b 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20200618' + REVISION = '20200701' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index 52cb24253..04209daa2 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -1594,14 +1594,16 @@ module Google # created as head revision, and previous unpinned revisions are preserved for a # short period of time. Pinned revisions are stored indefinitely, using # additional storage quota, up to a maximum of 200 revisions. For details on how - # revisions are retained, see the Drive Help Center. + # revisions are retained, see the Drive Help Center. Note that this field is + # ignored if there is no payload in the request. # @param [Boolean] ocr # Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. # @param [String] ocr_language # If ocr is true, hints at the language to use. Valid values are BCP 47 codes. # @param [Boolean] pinned # Whether to pin the new revision. A file can have a maximum of 200 pinned - # revisions. + # revisions. Note that this field is ignored if there is no payload in the + # request. # @param [String] remove_parents # Comma-separated list of parent IDs to remove. # @param [Boolean] set_modified_date @@ -1811,14 +1813,16 @@ module Google # created as head revision, and previous unpinned revisions are preserved for a # short period of time. Pinned revisions are stored indefinitely, using # additional storage quota, up to a maximum of 200 revisions. For details on how - # revisions are retained, see the Drive Help Center. + # revisions are retained, see the Drive Help Center. Note that this field is + # ignored if there is no payload in the request. # @param [Boolean] ocr # Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. # @param [String] ocr_language # If ocr is true, hints at the language to use. Valid values are BCP 47 codes. # @param [Boolean] pinned # Whether to pin the new revision. A file can have a maximum of 200 pinned - # revisions. + # revisions. Note that this field is ignored if there is no payload in the + # request. # @param [String] remove_parents # Comma-separated list of parent IDs to remove. # @param [Boolean] set_modified_date diff --git a/generated/google/apis/networkmanagement_v1.rb b/generated/google/apis/networkmanagement_v1.rb index ffc81bd3a..d2893b803 100644 --- a/generated/google/apis/networkmanagement_v1.rb +++ b/generated/google/apis/networkmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/ module NetworkmanagementV1 VERSION = 'V1' - REVISION = '20200505' + REVISION = '20200615' # 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/networkmanagement_v1/classes.rb b/generated/google/apis/networkmanagement_v1/classes.rb index 3df4db82d..38b2f63a3 100644 --- a/generated/google/apis/networkmanagement_v1/classes.rb +++ b/generated/google/apis/networkmanagement_v1/classes.rb @@ -59,7 +59,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -68,18 +68,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -131,7 +131,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/networkmanagement_v1beta1.rb b/generated/google/apis/networkmanagement_v1beta1.rb index c97f60561..e1a1fce84 100644 --- a/generated/google/apis/networkmanagement_v1beta1.rb +++ b/generated/google/apis/networkmanagement_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/ module NetworkmanagementV1beta1 VERSION = 'V1beta1' - REVISION = '20200505' + REVISION = '20200615' # 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/networkmanagement_v1beta1/classes.rb b/generated/google/apis/networkmanagement_v1beta1/classes.rb index 34993ae42..803cdf681 100644 --- a/generated/google/apis/networkmanagement_v1beta1/classes.rb +++ b/generated/google/apis/networkmanagement_v1beta1/classes.rb @@ -59,7 +59,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -68,18 +68,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -131,7 +131,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` diff --git a/generated/google/apis/osconfig_v1beta.rb b/generated/google/apis/osconfig_v1beta.rb index 16aabc2ba..1094c075e 100644 --- a/generated/google/apis/osconfig_v1beta.rb +++ b/generated/google/apis/osconfig_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/ module OsconfigV1beta VERSION = 'V1beta' - REVISION = '20200601' + REVISION = '20200706' # 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/osconfig_v1beta/classes.rb b/generated/google/apis/osconfig_v1beta/classes.rb index 0fabd0e87..acdc081ce 100644 --- a/generated/google/apis/osconfig_v1beta/classes.rb +++ b/generated/google/apis/osconfig_v1beta/classes.rb @@ -1096,7 +1096,7 @@ module Google attr_accessor :recurring_schedule # Output only. Time the patch deployment was last updated. Timestamp is in - # [RFC3339]("https://www.ietf.org/rfc/rfc3339.txt) text format. + # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -1148,7 +1148,7 @@ module Google attr_accessor :instance_name_prefixes # Targets any of the VM instances specified. Instances are specified by their - # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME], + # URI in the form `zones/[ZONE]/instances/[INSTANCE_NAME]`, # `projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`, or # `https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/ # instances/[INSTANCE_NAME]` diff --git a/generated/google/apis/realtimebidding_v1.rb b/generated/google/apis/realtimebidding_v1.rb index 2dafa9e88..444a7ae3b 100644 --- a/generated/google/apis/realtimebidding_v1.rb +++ b/generated/google/apis/realtimebidding_v1.rb @@ -28,7 +28,7 @@ module Google # @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/ module RealtimebiddingV1 VERSION = 'V1' - REVISION = '20200623' + REVISION = '20200713' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/recommendationengine_v1beta1.rb b/generated/google/apis/recommendationengine_v1beta1.rb new file mode 100644 index 000000000..1edf73afd --- /dev/null +++ b/generated/google/apis/recommendationengine_v1beta1.rb @@ -0,0 +1,36 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/recommendationengine_v1beta1/service.rb' +require 'google/apis/recommendationengine_v1beta1/classes.rb' +require 'google/apis/recommendationengine_v1beta1/representations.rb' + +module Google + module Apis + # Recommendations AI + # + # Recommendations AI service enables customers to build end-to-end personalized + # recommendation systems without requiring a high level of expertise in machine + # learning, recommendation system, or Google Cloud. + # + # @see https://cloud.google.com/recommendations/docs/ + module RecommendationengineV1beta1 + VERSION = 'V1beta1' + REVISION = '20200706' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/recommendationengine_v1beta1/classes.rb b/generated/google/apis/recommendationengine_v1beta1/classes.rb new file mode 100644 index 000000000..7aac64662 --- /dev/null +++ b/generated/google/apis/recommendationengine_v1beta1/classes.rb @@ -0,0 +1,2015 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module RecommendationengineV1beta1 + + # Message that represents an arbitrary HTTP body. It should only be used for + # payload formats that can't be represented as JSON, such as raw binary or + # an HTML page. + # This message can be used both in streaming and non-streaming API methods in + # the request as well as the response. + # It can be used as a top-level request field, which is convenient if one + # wants to extract parameters from either the URL or HTTP template into the + # request fields and also want access to the raw HTTP body. + # Example: + # message GetResourceRequest ` + # // A unique request id. + # string request_id = 1; + # // The raw HTTP body is bound to this field. + # google.api.HttpBody http_body = 2; + # ` + # service ResourceService ` + # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); + # rpc UpdateResource(google.api.HttpBody) returns + # (google.protobuf.Empty); + # ` + # Example with streaming methods: + # service CaldavService ` + # rpc GetCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # rpc UpdateCalendar(stream google.api.HttpBody) + # returns (stream google.api.HttpBody); + # ` + # Use of this type only changes how the request and response bodies are + # handled, all other features will continue to work unchanged. + class GoogleApiHttpBody + include Google::Apis::Core::Hashable + + # The HTTP Content-Type header value specifying the content type of the body. + # Corresponds to the JSON property `contentType` + # @return [String] + attr_accessor :content_type + + # The HTTP request/response body as raw binary. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # Application specific response metadata. Must be set in the first response + # for streaming APIs. + # Corresponds to the JSON property `extensions` + # @return [Array>] + attr_accessor :extensions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_type = args[:content_type] if args.key?(:content_type) + @data = args[:data] if args.key?(:data) + @extensions = args[:extensions] if args.key?(:extensions) + end + end + + # Metadata for TriggerCatalogRejoin method. + class GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response message for TriggerCatalogRejoin method. + class GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse + include Google::Apis::Core::Hashable + + # Number of user events that were joined with latest catalog items. + # Corresponds to the JSON property `rejoinedUserEventsCount` + # @return [Fixnum] + attr_accessor :rejoined_user_events_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rejoined_user_events_count = args[:rejoined_user_events_count] if args.key?(:rejoined_user_events_count) + end + end + + # Metadata associated with a tune operation. + class GoogleCloudRecommendationengineV1alphaTuningMetadata + include Google::Apis::Core::Hashable + + # The resource name of the recommendation model that this tune applies to. + # Format: + # projects/`project_number`/locations/`location_id`/catalogs/`catalog_id`/ + # eventStores/`event_store_id`/recommendationModels/`recommendation_model_id` + # Corresponds to the JSON property `recommendationModel` + # @return [String] + attr_accessor :recommendation_model + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @recommendation_model = args[:recommendation_model] if args.key?(:recommendation_model) + end + end + + # Response associated with a tune operation. + class GoogleCloudRecommendationengineV1alphaTuningResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # BigQuery source import data from. + class GoogleCloudRecommendationengineV1beta1BigQuerySource + include Google::Apis::Core::Hashable + + # Optional. The schema to use when parsing the data from the source. + # Supported values for catalog imports: + # 1: "catalog_recommendations_ai" using + # https://cloud.google.com/recommendations-ai/docs/upload-catalog#json + # (Default for catalogItems.import) + # 2: "catalog_merchant_center" using + # https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc + # Supported values for user event imports: + # 1: "user_events_recommendations_ai" using + # https://cloud.google.com/recommendations-ai/docs/manage-user-events#import + # (Default for userEvents.import) + # Corresponds to the JSON property `dataSchema` + # @return [String] + attr_accessor :data_schema + + # Required. The BigQuery data set to copy the data from. + # Corresponds to the JSON property `datasetId` + # @return [String] + attr_accessor :dataset_id + + # Required. Intermediate gcs dir used for the import. + # . + # Corresponds to the JSON property `gcsStagingDir` + # @return [String] + attr_accessor :gcs_staging_dir + + # Optional. The project id (can be project # or id) that the BigQuery source is + # in. If + # not specified, inherits the project id from the parent request. + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Required. The BigQuery table to copy the data from. + # Corresponds to the JSON property `tableId` + # @return [String] + attr_accessor :table_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_schema = args[:data_schema] if args.key?(:data_schema) + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @gcs_staging_dir = args[:gcs_staging_dir] if args.key?(:gcs_staging_dir) + @project_id = args[:project_id] if args.key?(:project_id) + @table_id = args[:table_id] if args.key?(:table_id) + end + end + + # The catalog configuration. + # Next ID: 5. + class GoogleCloudRecommendationengineV1beta1Catalog + include Google::Apis::Core::Hashable + + # Configures what level the catalog should be uploaded with regards to + # how users will be send events and how predictions will be made. + # Corresponds to the JSON property `catalogItemLevelConfig` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig] + attr_accessor :catalog_item_level_config + + # Required. The id of the default event store. + # Corresponds to the JSON property `defaultEventStoreId` + # @return [String] + attr_accessor :default_event_store_id + + # Required. The catalog display name. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The fully qualified resource name of the catalog. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @catalog_item_level_config = args[:catalog_item_level_config] if args.key?(:catalog_item_level_config) + @default_event_store_id = args[:default_event_store_id] if args.key?(:default_event_store_id) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + end + end + + # The inline source for the input config for ImportCatalogItems method. + class GoogleCloudRecommendationengineV1beta1CatalogInlineSource + include Google::Apis::Core::Hashable + + # Optional. A list of catalog items to update/create. Recommended max of 10k + # items. + # Corresponds to the JSON property `catalogItems` + # @return [Array] + attr_accessor :catalog_items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @catalog_items = args[:catalog_items] if args.key?(:catalog_items) + end + end + + # CatalogItem captures all metadata information of items to be recommended. + class GoogleCloudRecommendationengineV1beta1CatalogItem + include Google::Apis::Core::Hashable + + # Required. Catalog item categories. This field is repeated for supporting + # one catalog item belonging to several parallel category hierarchies. + # For example, if a shoes product belongs to both + # ["Shoes & Accessories" -> "Shoes"] and + # ["Sports & Fitness" -> "Athletic Clothing" -> "Shoes"], it could be + # represented as: + # "categoryHierarchies": [ + # ` "categories": ["Shoes & Accessories", "Shoes"]`, + # ` "categories": ["Sports & Fitness", "Athletic Clothing", "Shoes"] ` + # ] + # Corresponds to the JSON property `categoryHierarchies` + # @return [Array] + attr_accessor :category_hierarchies + + # Optional. Catalog item description. UTF-8 encoded string with a length + # limit of 5 KiB. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. Catalog item identifier. UTF-8 encoded string with a length limit + # of 128 bytes. + # This id must be unique among all catalog items within the same catalog. It + # should also be used when logging user events in order for the user events + # to be joined with the Catalog. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # FeatureMap represents extra features that customers want to include in the + # recommendation model for catalogs/user events as categorical/numerical + # features. + # Corresponds to the JSON property `itemAttributes` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap] + attr_accessor :item_attributes + + # Optional. Variant group identifier for prediction results. UTF-8 encoded + # string with a length limit of 128 bytes. + # This field must be enabled before it can be used. [Learn + # more](/recommendations-ai/docs/catalog#item-group-id). + # Corresponds to the JSON property `itemGroupId` + # @return [String] + attr_accessor :item_group_id + + # Optional. Deprecated. The model automatically detects the text language. Your + # catalog can include text in different languages, but duplicating + # catalog items to provide text in multiple languages can result in + # degraded model performance. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # ProductCatalogItem captures item metadata specific to retail products. + # Corresponds to the JSON property `productMetadata` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItem] + attr_accessor :product_metadata + + # Optional. Filtering tags associated with the catalog item. Each tag should + # be a UTF-8 encoded string with a length limit of 1 KiB. + # This tag can be used for filtering recommendation results by passing the + # tag as part of the predict request filter. + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + # Required. Catalog item title. UTF-8 encoded string with a length limit of 1 + # KiB. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @category_hierarchies = args[:category_hierarchies] if args.key?(:category_hierarchies) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @item_attributes = args[:item_attributes] if args.key?(:item_attributes) + @item_group_id = args[:item_group_id] if args.key?(:item_group_id) + @language_code = args[:language_code] if args.key?(:language_code) + @product_metadata = args[:product_metadata] if args.key?(:product_metadata) + @tags = args[:tags] if args.key?(:tags) + @title = args[:title] if args.key?(:title) + end + end + + # Category represents catalog item category hierarchy. + class GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy + include Google::Apis::Core::Hashable + + # Required. Catalog item categories. Each category should be a UTF-8 + # encoded string with a length limit of 2 KiB. + # Note that the order in the list denotes the specificity (from least to + # most specific). + # Corresponds to the JSON property `categories` + # @return [Array] + attr_accessor :categories + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @categories = args[:categories] if args.key?(:categories) + end + end + + # Configures what level the catalog should be uploaded with regards to + # how users will be send events and how predictions will be made. + class GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig + include Google::Apis::Core::Hashable + + # Optional. What level of the catalog are events uploaded at. + # See https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels + # for more details. + # Corresponds to the JSON property `eventItemLevel` + # @return [String] + attr_accessor :event_item_level + + # Optional. What level of the catalog are predictions made at. + # See https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels + # for more details. + # Corresponds to the JSON property `predictItemLevel` + # @return [String] + attr_accessor :predict_item_level + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event_item_level = args[:event_item_level] if args.key?(:event_item_level) + @predict_item_level = args[:predict_item_level] if args.key?(:predict_item_level) + end + end + + # Request message for the `CreatePredictionApiKeyRegistration` method. + class GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest + include Google::Apis::Core::Hashable + + # Registered Api Key. + # Corresponds to the JSON property `predictionApiKeyRegistration` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration] + attr_accessor :prediction_api_key_registration + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @prediction_api_key_registration = args[:prediction_api_key_registration] if args.key?(:prediction_api_key_registration) + end + end + + # User event details shared by all recommendation types. + class GoogleCloudRecommendationengineV1beta1EventDetail + include Google::Apis::Core::Hashable + + # FeatureMap represents extra features that customers want to include in the + # recommendation model for catalogs/user events as categorical/numerical + # features. + # Corresponds to the JSON property `eventAttributes` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap] + attr_accessor :event_attributes + + # Optional. A list of identifiers for the independent experiment groups + # this user event belongs to. This is used to distinguish between user events + # associated with different experiment setups (e.g. using Recommendation + # Engine system, using different recommendation models). + # Corresponds to the JSON property `experimentIds` + # @return [Array] + attr_accessor :experiment_ids + + # Optional. A unique id of a web page view. + # This should be kept the same for all user events triggered from the same + # pageview. For example, an item detail page view could trigger multiple + # events as the user is browsing the page. + # The `pageViewId` property should be kept the same for all these events so + # that they can be grouped together properly. This `pageViewId` will be + # automatically generated if using the JavaScript pixel. + # Corresponds to the JSON property `pageViewId` + # @return [String] + attr_accessor :page_view_id + + # Optional. Recommendation token included in the recommendation prediction + # response. + # This field enables accurate attribution of recommendation model + # performance. + # This token enables us to accurately attribute page view or purchase back to + # the event and the particular predict response containing this + # clicked/purchased item. If user clicks on product K in the recommendation + # results, pass the `PredictResponse.recommendationToken` property as a url + # parameter to product K's page. When recording events on product K's page, + # log the PredictResponse.recommendation_token to this field. + # Optional, but highly encouraged for user events that are the result of a + # recommendation prediction query. + # Corresponds to the JSON property `recommendationToken` + # @return [String] + attr_accessor :recommendation_token + + # Optional. The referrer url of the current page. When using + # the JavaScript pixel, this value is filled in automatically. + # Corresponds to the JSON property `referrerUri` + # @return [String] + attr_accessor :referrer_uri + + # Optional. Complete url (window.location.href) of the user's current page. + # When using the JavaScript pixel, this value is filled in automatically. + # Maximum length 5KB. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event_attributes = args[:event_attributes] if args.key?(:event_attributes) + @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids) + @page_view_id = args[:page_view_id] if args.key?(:page_view_id) + @recommendation_token = args[:recommendation_token] if args.key?(:recommendation_token) + @referrer_uri = args[:referrer_uri] if args.key?(:referrer_uri) + @uri = args[:uri] if args.key?(:uri) + end + end + + # FeatureMap represents extra features that customers want to include in the + # recommendation model for catalogs/user events as categorical/numerical + # features. + class GoogleCloudRecommendationengineV1beta1FeatureMap + include Google::Apis::Core::Hashable + + # Categorical features that can take on one of a limited number of possible + # values. Some examples would be the brand/maker of a product, or country of + # a customer. + # Feature names and values must be UTF-8 encoded strings. + # For example: `` "colors": `"value": ["yellow", "green"]`, + # "sizes": `"value":["S", "M"]`` + # Corresponds to the JSON property `categoricalFeatures` + # @return [Hash] + attr_accessor :categorical_features + + # Numerical features. Some examples would be the height/weight of a product, + # or age of a customer. + # Feature names must be UTF-8 encoded strings. + # For example: `` "lengths_cm": `"value":[2.3, 15.4]`, + # "heights_cm": `"value":[8.1, 6.4]` `` + # Corresponds to the JSON property `numericalFeatures` + # @return [Hash] + attr_accessor :numerical_features + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @categorical_features = args[:categorical_features] if args.key?(:categorical_features) + @numerical_features = args[:numerical_features] if args.key?(:numerical_features) + end + end + + # A list of float features. + class GoogleCloudRecommendationengineV1beta1FeatureMapFloatList + include Google::Apis::Core::Hashable + + # Float feature value. + # Corresponds to the JSON property `value` + # @return [Array] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + end + end + + # A list of string features. + class GoogleCloudRecommendationengineV1beta1FeatureMapStringList + include Google::Apis::Core::Hashable + + # String feature value with a length limit of 128 bytes. + # Corresponds to the JSON property `value` + # @return [Array] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @value = args[:value] if args.key?(:value) + end + end + + # Google Cloud Storage location for input content. + # format. + class GoogleCloudRecommendationengineV1beta1GcsSource + include Google::Apis::Core::Hashable + + # Required. Google Cloud Storage URIs to input files. URI can be up to + # 2000 characters long. URIs can match the full object path (for example, + # gs://bucket/directory/object.json) or a pattern matching one or more + # files, such as gs://bucket/directory/*.json. A request can + # contain at most 100 files, and each file can be up to 2 GB. See + # [Importing catalog information](/recommendations-ai/docs/upload-catalog) + # for the expected file format and setup instructions. + # Corresponds to the JSON property `inputUris` + # @return [Array] + attr_accessor :input_uris + + # Optional. The schema to use when parsing the data from the source. + # Supported values for catalog imports: + # 1: "catalog_recommendations_ai" using + # https://cloud.google.com/recommendations-ai/docs/upload-catalog#json + # (Default for catalogItems.import) + # 2: "catalog_merchant_center" using + # https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc + # Supported values for user events imports: + # 1: "user_events_recommendations_ai" using + # https://cloud.google.com/recommendations-ai/docs/manage-user-events#import + # (Default for userEvents.import) + # Corresponds to the JSON property `jsonSchema` + # @return [String] + attr_accessor :json_schema + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_uris = args[:input_uris] if args.key?(:input_uris) + @json_schema = args[:json_schema] if args.key?(:json_schema) + end + end + + # Response message for GetCatalogItemsWithItemGroupId method. + class GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse + include Google::Apis::Core::Hashable + + # CatalogItem captures all metadata information of items to be recommended. + # Corresponds to the JSON property `canonicalCatalogItem` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] + attr_accessor :canonical_catalog_item + + # The list of catalog items associated with the item group id. + # Corresponds to the JSON property `catalogItems` + # @return [Array] + attr_accessor :catalog_items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @canonical_catalog_item = args[:canonical_catalog_item] if args.key?(:canonical_catalog_item) + @catalog_items = args[:catalog_items] if args.key?(:catalog_items) + end + end + + # Catalog item thumbnail/detail image. + class GoogleCloudRecommendationengineV1beta1Image + include Google::Apis::Core::Hashable + + # Optional. Height of the image in number of pixels. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Required. URL of the image with a length limit of 5 KiB. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + # Optional. Width of the image in number of pixels. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] if args.key?(:height) + @uri = args[:uri] if args.key?(:uri) + @width = args[:width] if args.key?(:width) + end + end + + # Request message for Import methods. + class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest + include Google::Apis::Core::Hashable + + # Configuration of destination for Import related errors. + # Corresponds to the JSON property `errorsConfig` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig] + attr_accessor :errors_config + + # The input config source. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig] + attr_accessor :input_config + + # Optional. Unique identifier provided by client, within the ancestor + # dataset scope. Ensures idempotency and used for request deduplication. + # Server-generated if unspecified. Up to 128 characters long. This is + # returned as google.longrunning.Operation.name in the response. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + # Optional. Indicates which fields in the provided imported 'items' to update. + # If not + # set, will by default update all fields. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @errors_config = args[:errors_config] if args.key?(:errors_config) + @input_config = args[:input_config] if args.key?(:input_config) + @request_id = args[:request_id] if args.key?(:request_id) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # Response of the ImportCatalogItemsRequest. If the long running + # operation is done, then this message is returned by the + # google.longrunning.Operations.response field if the operation was successful. + class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse + include Google::Apis::Core::Hashable + + # A sample of errors encountered while processing the request. + # Corresponds to the JSON property `errorSamples` + # @return [Array] + attr_accessor :error_samples + + # Configuration of destination for Import related errors. + # Corresponds to the JSON property `errorsConfig` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig] + attr_accessor :errors_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_samples = args[:error_samples] if args.key?(:error_samples) + @errors_config = args[:errors_config] if args.key?(:errors_config) + end + end + + # Configuration of destination for Import related errors. + class GoogleCloudRecommendationengineV1beta1ImportErrorsConfig + include Google::Apis::Core::Hashable + + # Google Cloud Storage path for import errors. This must be an empty, + # existing Cloud Storage bucket. Import errors will be written to a file in + # this bucket, one per line, as a JSON-encoded + # `google.rpc.Status` message. + # Corresponds to the JSON property `gcsPrefix` + # @return [String] + attr_accessor :gcs_prefix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix) + end + end + + # Metadata related to the progress of the Import operation. This will be + # returned by the google.longrunning.Operation.metadata field. + class GoogleCloudRecommendationengineV1beta1ImportMetadata + include Google::Apis::Core::Hashable + + # Operation create time. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Count of entries that encountered errors while processing. + # Corresponds to the JSON property `failureCount` + # @return [Fixnum] + attr_accessor :failure_count + + # Name of the operation. + # Corresponds to the JSON property `operationName` + # @return [String] + attr_accessor :operation_name + + # Id of the request / operation. This is parroting back the requestId that + # was passed in the request. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + # Count of entries that were processed successfully. + # Corresponds to the JSON property `successCount` + # @return [Fixnum] + attr_accessor :success_count + + # Operation last update time. If the operation is done, this is also the + # finish time. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @failure_count = args[:failure_count] if args.key?(:failure_count) + @operation_name = args[:operation_name] if args.key?(:operation_name) + @request_id = args[:request_id] if args.key?(:request_id) + @success_count = args[:success_count] if args.key?(:success_count) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Request message for the ImportUserEvents request. + class GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest + include Google::Apis::Core::Hashable + + # Configuration of destination for Import related errors. + # Corresponds to the JSON property `errorsConfig` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig] + attr_accessor :errors_config + + # The input config source. + # Corresponds to the JSON property `inputConfig` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig] + attr_accessor :input_config + + # Optional. Unique identifier provided by client, within the ancestor + # dataset scope. Ensures idempotency for expensive long running operations. + # Server-generated if unspecified. Up to 128 characters long. This is + # returned as google.longrunning.Operation.name in the response. Note that + # this field must not be set if the desired input config is + # catalog_inline_source. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @errors_config = args[:errors_config] if args.key?(:errors_config) + @input_config = args[:input_config] if args.key?(:input_config) + @request_id = args[:request_id] if args.key?(:request_id) + end + end + + # Response of the ImportUserEventsRequest. If the long running + # operation was successful, then this message is returned by the + # google.longrunning.Operations.response field if the operation was successful. + class GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse + include Google::Apis::Core::Hashable + + # A sample of errors encountered while processing the request. + # Corresponds to the JSON property `errorSamples` + # @return [Array] + attr_accessor :error_samples + + # Configuration of destination for Import related errors. + # Corresponds to the JSON property `errorsConfig` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig] + attr_accessor :errors_config + + # A summary of import result. The UserEventImportSummary summarizes + # the import status for user events. + # Corresponds to the JSON property `importSummary` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventImportSummary] + attr_accessor :import_summary + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_samples = args[:error_samples] if args.key?(:error_samples) + @errors_config = args[:errors_config] if args.key?(:errors_config) + @import_summary = args[:import_summary] if args.key?(:import_summary) + end + end + + # The input config source. + class GoogleCloudRecommendationengineV1beta1InputConfig + include Google::Apis::Core::Hashable + + # BigQuery source import data from. + # Corresponds to the JSON property `bigQuerySource` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1BigQuerySource] + attr_accessor :big_query_source + + # The inline source for the input config for ImportCatalogItems method. + # Corresponds to the JSON property `catalogInlineSource` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogInlineSource] + attr_accessor :catalog_inline_source + + # Google Cloud Storage location for input content. + # format. + # Corresponds to the JSON property `gcsSource` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GcsSource] + attr_accessor :gcs_source + + # The inline source for the input config for ImportUserEvents method. + # Corresponds to the JSON property `userEventInlineSource` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventInlineSource] + attr_accessor :user_event_inline_source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @big_query_source = args[:big_query_source] if args.key?(:big_query_source) + @catalog_inline_source = args[:catalog_inline_source] if args.key?(:catalog_inline_source) + @gcs_source = args[:gcs_source] if args.key?(:gcs_source) + @user_event_inline_source = args[:user_event_inline_source] if args.key?(:user_event_inline_source) + end + end + + # Response message for ListCatalogItems method. + class GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse + include Google::Apis::Core::Hashable + + # The catalog items. + # Corresponds to the JSON property `catalogItems` + # @return [Array] + attr_accessor :catalog_items + + # If empty, the list is complete. If nonempty, the token to pass to the next + # request's ListCatalogItemRequest.page_token. + # 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) + @catalog_items = args[:catalog_items] if args.key?(:catalog_items) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response for ListCatalogs method. + class GoogleCloudRecommendationengineV1beta1ListCatalogsResponse + include Google::Apis::Core::Hashable + + # Output only. All the customer's catalogs. + # Corresponds to the JSON property `catalogs` + # @return [Array] + attr_accessor :catalogs + + # Pagination token, if not returned indicates the last page. + # 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) + @catalogs = args[:catalogs] if args.key?(:catalogs) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for the `ListPredictionApiKeyRegistrations`. + class GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse + include Google::Apis::Core::Hashable + + # If empty, the list is complete. If nonempty, pass the token to the next + # request's `ListPredictionApiKeysRegistrationsRequest.pageToken`. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of registered API keys. + # Corresponds to the JSON property `predictionApiKeyRegistrations` + # @return [Array] + attr_accessor :prediction_api_key_registrations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @prediction_api_key_registrations = args[:prediction_api_key_registrations] if args.key?(:prediction_api_key_registrations) + end + end + + # Response message for ListUserEvents method. + class GoogleCloudRecommendationengineV1beta1ListUserEventsResponse + include Google::Apis::Core::Hashable + + # If empty, the list is complete. If nonempty, the token to pass to the next + # request's ListUserEvents.page_token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The user events. + # Corresponds to the JSON property `userEvents` + # @return [Array] + attr_accessor :user_events + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @user_events = args[:user_events] if args.key?(:user_events) + end + end + + # Request message for Predict method. + class GoogleCloudRecommendationengineV1beta1PredictRequest + include Google::Apis::Core::Hashable + + # Optional. Use dryRun mode for this prediction query. If set to true, a + # dummy model will be used that returns arbitrary catalog items. + # Note that the dryRun mode should only be used for testing the API, or if + # the model is not ready. + # Corresponds to the JSON property `dryRun` + # @return [Boolean] + attr_accessor :dry_run + alias_method :dry_run?, :dry_run + + # Optional. Filter for restricting prediction results. Accepts values for + # tags and the `filterOutOfStockItems` flag. + # * Tag expressions. Restricts predictions to items that match all of the + # specified tags. Boolean operators `OR` and `NOT` are supported if the + # expression is enclosed in parentheses, and must be separated from the + # tag values by a space. `-"tagA"` is also supported and is equivalent to + # `NOT "tagA"`. Tag values must be double quoted UTF-8 encoded strings + # with a size limit of 1 KiB. + # * filterOutOfStockItems. Restricts predictions to items that do not have a + # stockState value of OUT_OF_STOCK. + # Examples: + # * tag=("Red" OR "Blue") tag="New-Arrival" tag=(NOT "promotional") + # * filterOutOfStockItems tag=(-"promotional") + # * filterOutOfStockItems + # If your filter blocks all prediction results, generic (unfiltered) popular + # items are returned. This behavior can be overridden by setting + # `strictFiltering` to true in `PredictRequest.params`. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Optional. The labels for the predict request. + # * Label keys can contain lowercase letters, digits and hyphens, must start + # with a letter, and must end with a letter or digit. + # * Non-zero label values can contain lowercase letters, digits and hyphens, + # must start with a letter, and must end with a letter or digit. + # * No more than 64 labels can be associated with a given request. + # See https://goo.gl/xmQnxf for more information on and examples of labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Optional. Maximum number of results to return per page. Set this property + # to the number of prediction results required. If zero, the service will + # choose a reasonable default. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # Optional. The previous PredictResponse.next_page_token. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Optional. Additional domain specific parameters for the predictions. + # Allowed values: + # * `returnCatalogItem`: Boolean. If set to true, the associated catalogItem + # object will be returned in the + # `PredictResponse.PredictionResult.itemMetadata` object in the method + # response. + # * `returnItemScore`: Boolean. If set to true, the prediction 'score' + # corresponding to each returned item will be set in the `metadata` + # field in the prediction response. The given 'score' indicates the + # probability of an item being clicked/purchased given the user's context + # and history. + # * `strictFiltering`: Boolean. If set to true, the service will return empty + # instead of generic (unfiltered) popular items if your filter blocks all + # prediction results. + # Corresponds to the JSON property `params` + # @return [Hash] + attr_accessor :params + + # UserEvent captures all metadata information recommendation engine needs to + # know about how end users interact with customers' website. + # Corresponds to the JSON property `userEvent` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent] + attr_accessor :user_event + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dry_run = args[:dry_run] if args.key?(:dry_run) + @filter = args[:filter] if args.key?(:filter) + @labels = args[:labels] if args.key?(:labels) + @page_size = args[:page_size] if args.key?(:page_size) + @page_token = args[:page_token] if args.key?(:page_token) + @params = args[:params] if args.key?(:params) + @user_event = args[:user_event] if args.key?(:user_event) + end + end + + # Response message for predict method. + class GoogleCloudRecommendationengineV1beta1PredictResponse + include Google::Apis::Core::Hashable + + # True if the dryRun property was set in the request. + # Corresponds to the JSON property `dryRun` + # @return [Boolean] + attr_accessor :dry_run + alias_method :dry_run?, :dry_run + + # IDs of items in the request that were missing from the catalog. + # Corresponds to the JSON property `itemsMissingInCatalog` + # @return [Array] + attr_accessor :items_missing_in_catalog + + # Additional domain specific prediction response metadata. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # If empty, the list is complete. If nonempty, the token to pass to the next + # request's PredictRequest.page_token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A unique recommendation token. This should be included in the user event + # logs resulting from this recommendation, which enables accurate attribution + # of recommendation model performance. + # Corresponds to the JSON property `recommendationToken` + # @return [String] + attr_accessor :recommendation_token + + # A list of recommended items. The order represents the ranking (from the + # most relevant item to the least). + # Corresponds to the JSON property `results` + # @return [Array] + attr_accessor :results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dry_run = args[:dry_run] if args.key?(:dry_run) + @items_missing_in_catalog = args[:items_missing_in_catalog] if args.key?(:items_missing_in_catalog) + @metadata = args[:metadata] if args.key?(:metadata) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @recommendation_token = args[:recommendation_token] if args.key?(:recommendation_token) + @results = args[:results] if args.key?(:results) + end + end + + # PredictionResult represents the recommendation prediction results. + class GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult + include Google::Apis::Core::Hashable + + # ID of the recommended catalog item + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Additional item metadata / annotations. + # Possible values: + # * `catalogItem`: JSON representation of the catalogItem. Will be set if + # `returnCatalogItem` is set to true in `PredictRequest.params`. + # * `score`: Prediction score in double value. Will be set if + # `returnItemScore` is set to true in `PredictRequest.params`. + # Corresponds to the JSON property `itemMetadata` + # @return [Hash] + attr_accessor :item_metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @item_metadata = args[:item_metadata] if args.key?(:item_metadata) + end + end + + # Registered Api Key. + class GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration + include Google::Apis::Core::Hashable + + # The API key. + # Corresponds to the JSON property `apiKey` + # @return [String] + attr_accessor :api_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_key = args[:api_key] if args.key?(:api_key) + end + end + + # ProductCatalogItem captures item metadata specific to retail products. + class GoogleCloudRecommendationengineV1beta1ProductCatalogItem + include Google::Apis::Core::Hashable + + # Optional. The available quantity of the item. + # Corresponds to the JSON property `availableQuantity` + # @return [Fixnum] + attr_accessor :available_quantity + + # Optional. Canonical URL directly linking to the item detail page with a + # length limit of 5 KiB.. + # Corresponds to the JSON property `canonicalProductUri` + # @return [String] + attr_accessor :canonical_product_uri + + # Optional. A map to pass the costs associated with the product. + # For example: + # `"manufacturing": 45.5` The profit of selling this item is computed like + # so: + # * If 'exactPrice' is provided, profit = displayPrice - sum(costs) + # * If 'priceRange' is provided, profit = minPrice - sum(costs) + # Corresponds to the JSON property `costs` + # @return [Hash] + attr_accessor :costs + + # Optional. Only required if the price is set. Currency code for price/costs. + # Use + # three-character ISO-4217 code. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Exact product price. + # Corresponds to the JSON property `exactPrice` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice] + attr_accessor :exact_price + + # Optional. Product images for the catalog item. + # Corresponds to the JSON property `images` + # @return [Array] + attr_accessor :images + + # Product price range when there are a range of prices for different + # variations of the same product. + # Corresponds to the JSON property `priceRange` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange] + attr_accessor :price_range + + # Optional. Online stock state of the catalog item. Default is `IN_STOCK`. + # Corresponds to the JSON property `stockState` + # @return [String] + attr_accessor :stock_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @available_quantity = args[:available_quantity] if args.key?(:available_quantity) + @canonical_product_uri = args[:canonical_product_uri] if args.key?(:canonical_product_uri) + @costs = args[:costs] if args.key?(:costs) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @exact_price = args[:exact_price] if args.key?(:exact_price) + @images = args[:images] if args.key?(:images) + @price_range = args[:price_range] if args.key?(:price_range) + @stock_state = args[:stock_state] if args.key?(:stock_state) + end + end + + # Exact product price. + class GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice + include Google::Apis::Core::Hashable + + # Optional. Display price of the product. + # Corresponds to the JSON property `displayPrice` + # @return [Float] + attr_accessor :display_price + + # Optional. Price of the product without any discount. If zero, by default + # set to be the 'displayPrice'. + # Corresponds to the JSON property `originalPrice` + # @return [Float] + attr_accessor :original_price + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_price = args[:display_price] if args.key?(:display_price) + @original_price = args[:original_price] if args.key?(:original_price) + end + end + + # Product price range when there are a range of prices for different + # variations of the same product. + class GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange + include Google::Apis::Core::Hashable + + # Required. The maximum product price. + # Corresponds to the JSON property `max` + # @return [Float] + attr_accessor :max + + # Required. The minimum product price. + # Corresponds to the JSON property `min` + # @return [Float] + attr_accessor :min + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max = args[:max] if args.key?(:max) + @min = args[:min] if args.key?(:min) + end + end + + # Detailed product information associated with a user event. + class GoogleCloudRecommendationengineV1beta1ProductDetail + include Google::Apis::Core::Hashable + + # Optional. Quantity of the products in stock when a user event happens. + # Optional. If provided, this overrides the available quantity in Catalog for + # this event. and can only be set if `stock_status` is set to `IN_STOCK`. + # Note that if an item is out of stock, you must set the `stock_state` field + # to be `OUT_OF_STOCK`. Leaving this field unspecified / as zero is not + # sufficient to mark the item out of stock. + # Corresponds to the JSON property `availableQuantity` + # @return [Fixnum] + attr_accessor :available_quantity + + # Optional. Currency code for price/costs. Use three-character ISO-4217 + # code. Required only if originalPrice or displayPrice is set. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Optional. Display price of the product (e.g. discounted price). If + # provided, this will override the display price in Catalog for this product. + # Corresponds to the JSON property `displayPrice` + # @return [Float] + attr_accessor :display_price + + # Required. Catalog item ID. UTF-8 encoded string with a length limit of 128 + # characters. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # FeatureMap represents extra features that customers want to include in the + # recommendation model for catalogs/user events as categorical/numerical + # features. + # Corresponds to the JSON property `itemAttributes` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap] + attr_accessor :item_attributes + + # Optional. Original price of the product. If provided, this will override + # the original price in Catalog for this product. + # Corresponds to the JSON property `originalPrice` + # @return [Float] + attr_accessor :original_price + + # Optional. Quantity of the product associated with the user event. For + # example, this field will be 2 if two products are added to the shopping + # cart for `add-to-cart` event. Required for `add-to-cart`, `add-to-list`, + # `remove-from-cart`, `checkout-start`, `purchase-complete`, `refund` event + # types. + # Corresponds to the JSON property `quantity` + # @return [Fixnum] + attr_accessor :quantity + + # Optional. Item stock state. If provided, this overrides the stock state + # in Catalog for items in this event. + # Corresponds to the JSON property `stockState` + # @return [String] + attr_accessor :stock_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @available_quantity = args[:available_quantity] if args.key?(:available_quantity) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @display_price = args[:display_price] if args.key?(:display_price) + @id = args[:id] if args.key?(:id) + @item_attributes = args[:item_attributes] if args.key?(:item_attributes) + @original_price = args[:original_price] if args.key?(:original_price) + @quantity = args[:quantity] if args.key?(:quantity) + @stock_state = args[:stock_state] if args.key?(:stock_state) + end + end + + # ProductEventDetail captures user event information specific to retail + # products. + class GoogleCloudRecommendationengineV1beta1ProductEventDetail + include Google::Apis::Core::Hashable + + # Optional. The id or name of the associated shopping cart. This id is used + # to associate multiple items added or present in the cart before purchase. + # This can only be set for `add-to-cart`, `remove-from-cart`, + # `checkout-start`, `purchase-complete`, or `shopping-cart-page-view` events. + # Corresponds to the JSON property `cartId` + # @return [String] + attr_accessor :cart_id + + # Required for `add-to-list` and `remove-from-list` events. The id or name of + # the list that the item is being added to or removed from. Other event types + # should not set this field. + # Corresponds to the JSON property `listId` + # @return [String] + attr_accessor :list_id + + # Required for `category-page-view` events. Other event types should not set + # this field. + # The categories associated with a category page. + # Category pages include special pages such as sales or promotions. For + # instance, a special sale page may have the category hierarchy: + # categories : ["Sales", "2017 Black Friday Deals"]. + # Corresponds to the JSON property `pageCategories` + # @return [Array] + attr_accessor :page_categories + + # The main product details related to the event. + # This field is required for the following event types: + # * `add-to-cart` + # * `add-to-list` + # * `checkout-start` + # * `detail-page-view` + # * `purchase-complete` + # * `refund` + # * `remove-from-cart` + # * `remove-from-list` + # This field is optional for the following event types: + # * `page-visit` + # * `shopping-cart-page-view` - note that 'product_details' should be set for + # this unless the shopping cart is empty. + # * `search` (highly encouraged) + # In a `search` event, this field represents the products returned to the end + # user on the current page (the end user may have not finished broswing the + # whole page yet). When a new page is returned to the end user, after + # pagination/filtering/ordering even for the same query, a new SEARCH event + # with different product_details is desired. The end user may have not + # finished broswing the whole page yet. + # This field is not allowed for the following event types: + # * `category-page-view` + # * `home-page-view` + # Corresponds to the JSON property `productDetails` + # @return [Array] + attr_accessor :product_details + + # A transaction represents the entire purchase transaction. + # Corresponds to the JSON property `purchaseTransaction` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurchaseTransaction] + attr_accessor :purchase_transaction + + # Required for `search` events. Other event types should not set this field. + # The user's search query as UTF-8 encoded text with a length limit of 5 KiB. + # Corresponds to the JSON property `searchQuery` + # @return [String] + attr_accessor :search_query + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cart_id = args[:cart_id] if args.key?(:cart_id) + @list_id = args[:list_id] if args.key?(:list_id) + @page_categories = args[:page_categories] if args.key?(:page_categories) + @product_details = args[:product_details] if args.key?(:product_details) + @purchase_transaction = args[:purchase_transaction] if args.key?(:purchase_transaction) + @search_query = args[:search_query] if args.key?(:search_query) + end + end + + # A transaction represents the entire purchase transaction. + class GoogleCloudRecommendationengineV1beta1PurchaseTransaction + include Google::Apis::Core::Hashable + + # Optional. All the costs associated with the product. These can be + # manufacturing costs, shipping expenses not borne by the end user, or any + # other costs. + # Total product cost such that + # profit = revenue - (sum(taxes) + sum(costs)) + # If product_cost is not set, then + # profit = revenue - tax - shipping - sum(CatalogItem.costs). + # If CatalogItem.cost is not specified for one of the items, CatalogItem.cost + # based profit *cannot* be calculated for this Transaction. + # Corresponds to the JSON property `costs` + # @return [Hash] + attr_accessor :costs + + # Required. Currency code. Use three-character ISO-4217 code. This field + # is not required if the event type is `refund`. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Optional. The transaction ID with a length limit of 128 bytes. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Required. Total revenue or grand total associated with the transaction. + # This value include shipping, tax, or other adjustments to total revenue + # that you want to include as part of your revenue calculations. This field + # is not required if the event type is `refund`. + # Corresponds to the JSON property `revenue` + # @return [Float] + attr_accessor :revenue + + # Optional. All the taxes associated with the transaction. + # Corresponds to the JSON property `taxes` + # @return [Hash] + attr_accessor :taxes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @costs = args[:costs] if args.key?(:costs) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @id = args[:id] if args.key?(:id) + @revenue = args[:revenue] if args.key?(:revenue) + @taxes = args[:taxes] if args.key?(:taxes) + end + end + + # Metadata related to the progress of the PurgeUserEvents operation. + # This will be returned by the google.longrunning.Operation.metadata field. + class GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata + include Google::Apis::Core::Hashable + + # Operation create time. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The ID of the request / operation. + # Corresponds to the JSON property `operationName` + # @return [String] + attr_accessor :operation_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @operation_name = args[:operation_name] if args.key?(:operation_name) + end + end + + # Request message for PurgeUserEvents method. + class GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest + include Google::Apis::Core::Hashable + + # Required. The filter string to specify the events to be deleted. Empty + # string filter is not allowed. The eligible fields + # for filtering are: + # * `eventType`: UserEvent.eventType field of type string. + # * `eventTime`: in ISO 8601 "zulu" format. + # * `visitorId`: field of type string. Specifying this will delete all + # events associated with a visitor. + # * `userId`: field of type string. Specifying this will delete all events + # associated with a user. + # Examples: + # * Deleting all events in a time range: + # `eventTime > "2012-04-23T18:25:43.511Z" + # eventTime < "2012-04-23T18:30:43.511Z"` + # * Deleting specific eventType in time range: + # `eventTime > "2012-04-23T18:25:43.511Z" eventType = "detail-page-view"` + # * Deleting all events for a specific visitor: + # `visitorId = "visitor1024"` + # The filtering fields are assumed to have an implicit AND. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Optional. The default value is false. Override this flag to true to + # actually perform the purge. If the field is not set to true, a sampling of + # events to be deleted will be returned. + # Corresponds to the JSON property `force` + # @return [Boolean] + attr_accessor :force + alias_method :force?, :force + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + @force = args[:force] if args.key?(:force) + end + end + + # Response of the PurgeUserEventsRequest. If the long running operation is + # successfully done, then this message is returned by the + # google.longrunning.Operations.response field. + class GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse + include Google::Apis::Core::Hashable + + # The total count of events purged as a result of the operation. + # Corresponds to the JSON property `purgedEventsCount` + # @return [Fixnum] + attr_accessor :purged_events_count + + # A sampling of events deleted (or will be deleted) depending on the `force` + # property in the request. Max of 500 items will be returned. + # Corresponds to the JSON property `userEventsSample` + # @return [Array] + attr_accessor :user_events_sample + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @purged_events_count = args[:purged_events_count] if args.key?(:purged_events_count) + @user_events_sample = args[:user_events_sample] if args.key?(:user_events_sample) + end + end + + # Request message for CatalogRejoin method. + class GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest + include Google::Apis::Core::Hashable + + # Required. The type of the catalog rejoin to define the scope and range of the + # user + # events to be rejoined with catalog items. + # Corresponds to the JSON property `userEventRejoinScope` + # @return [String] + attr_accessor :user_event_rejoin_scope + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @user_event_rejoin_scope = args[:user_event_rejoin_scope] if args.key?(:user_event_rejoin_scope) + end + end + + # UserEvent captures all metadata information recommendation engine needs to + # know about how end users interact with customers' website. + class GoogleCloudRecommendationengineV1beta1UserEvent + include Google::Apis::Core::Hashable + + # User event details shared by all recommendation types. + # Corresponds to the JSON property `eventDetail` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1EventDetail] + attr_accessor :event_detail + + # Optional. This field should *not* be set when using JavaScript pixel + # or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`. + # Corresponds to the JSON property `eventSource` + # @return [String] + attr_accessor :event_source + + # Optional. Only required for ImportUserEvents method. Timestamp of user + # event created. + # Corresponds to the JSON property `eventTime` + # @return [String] + attr_accessor :event_time + + # Required. User event type. Allowed values are: + # * `add-to-cart` Products being added to cart. + # * `add-to-list` Items being added to a list (shopping list, favorites + # etc). + # * `category-page-view` Special pages such as sale or promotion pages + # viewed. + # * `checkout-start` User starting a checkout process. + # * `detail-page-view` Products detail page viewed. + # * `home-page-view` Homepage viewed. + # * `page-visit` Generic page visits not included in the event types above. + # * `purchase-complete` User finishing a purchase. + # * `refund` Purchased items being refunded or returned. + # * `remove-from-cart` Products being removed from cart. + # * `remove-from-list` Items being removed from a list. + # * `search` Product search. + # * `shopping-cart-page-view` User viewing a shopping cart. + # * `impression` List of items displayed. Used by Google Tag Manager. + # Corresponds to the JSON property `eventType` + # @return [String] + attr_accessor :event_type + + # ProductEventDetail captures user event information specific to retail + # products. + # Corresponds to the JSON property `productEventDetail` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductEventDetail] + attr_accessor :product_event_detail + + # Information of end users. + # Corresponds to the JSON property `userInfo` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserInfo] + attr_accessor :user_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event_detail = args[:event_detail] if args.key?(:event_detail) + @event_source = args[:event_source] if args.key?(:event_source) + @event_time = args[:event_time] if args.key?(:event_time) + @event_type = args[:event_type] if args.key?(:event_type) + @product_event_detail = args[:product_event_detail] if args.key?(:product_event_detail) + @user_info = args[:user_info] if args.key?(:user_info) + end + end + + # A summary of import result. The UserEventImportSummary summarizes + # the import status for user events. + class GoogleCloudRecommendationengineV1beta1UserEventImportSummary + include Google::Apis::Core::Hashable + + # Count of user events imported with complete existing catalog information. + # Corresponds to the JSON property `joinedEventsCount` + # @return [Fixnum] + attr_accessor :joined_events_count + + # Count of user events imported, but with catalog information not found + # in the imported catalog. + # Corresponds to the JSON property `unjoinedEventsCount` + # @return [Fixnum] + attr_accessor :unjoined_events_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @joined_events_count = args[:joined_events_count] if args.key?(:joined_events_count) + @unjoined_events_count = args[:unjoined_events_count] if args.key?(:unjoined_events_count) + end + end + + # The inline source for the input config for ImportUserEvents method. + class GoogleCloudRecommendationengineV1beta1UserEventInlineSource + include Google::Apis::Core::Hashable + + # Optional. A list of user events to import. Recommended max of 10k items. + # Corresponds to the JSON property `userEvents` + # @return [Array] + attr_accessor :user_events + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @user_events = args[:user_events] if args.key?(:user_events) + end + end + + # Information of end users. + class GoogleCloudRecommendationengineV1beta1UserInfo + include Google::Apis::Core::Hashable + + # Optional. Indicates if the request is made directly from the end user + # in which case the user_agent and ip_address fields can be populated + # from the HTTP request. This should *not* be set when using the javascript + # pixel. This flag should be set only if the API request is made directly + # from the end user such as a mobile app (and not if a gateway or a server is + # processing and pushing the user events). + # Corresponds to the JSON property `directUserRequest` + # @return [Boolean] + attr_accessor :direct_user_request + alias_method :direct_user_request?, :direct_user_request + + # Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) + # or + # IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be + # set when using the javascript pixel or if `direct_user_request` is set. + # Used to extract location information for personalization. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # Optional. User agent as included in the HTTP header. UTF-8 encoded string + # with a length limit of 1 KiB. + # This should *not* be set when using the JavaScript pixel or if + # `directUserRequest` is set. + # Corresponds to the JSON property `userAgent` + # @return [String] + attr_accessor :user_agent + + # Optional. Unique identifier for logged-in user with a length limit of 128 + # bytes. Required only for logged-in users. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id + + # Required. A unique identifier for tracking visitors with a length limit of + # 128 bytes. + # For example, this could be implemented with a http cookie, which should be + # able to uniquely identify a visitor on a single device. This unique + # identifier should not change if the visitor log in/out of the website. + # Maximum length 128 bytes. Cannot be empty. + # Corresponds to the JSON property `visitorId` + # @return [String] + attr_accessor :visitor_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @direct_user_request = args[:direct_user_request] if args.key?(:direct_user_request) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @user_agent = args[:user_agent] if args.key?(:user_agent) + @user_id = args[:user_id] if args.key?(:user_id) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) + end + end + + # The response message for Operations.ListOperations. + class GoogleLongrunningListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class GoogleLongrunningOperation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `error` + # @return [Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should be a resource name ending with `operations/`unique_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + class GoogleRpcStatus + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + end + end +end diff --git a/generated/google/apis/recommendationengine_v1beta1/representations.rb b/generated/google/apis/recommendationengine_v1beta1/representations.rb new file mode 100644 index 000000000..b2ae35411 --- /dev/null +++ b/generated/google/apis/recommendationengine_v1beta1/representations.rb @@ -0,0 +1,848 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module RecommendationengineV1beta1 + + class GoogleApiHttpBody + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1alphaTuningMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1alphaTuningResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1BigQuerySource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1Catalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1CatalogInlineSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1CatalogItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1EventDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1FeatureMap + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1FeatureMapFloatList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1FeatureMapStringList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1GcsSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1Image + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ImportErrorsConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ImportMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1InputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ListCatalogsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ListUserEventsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1PredictRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1PredictResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ProductCatalogItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ProductDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1ProductEventDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1PurchaseTransaction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1UserEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1UserEventImportSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1UserEventInlineSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudRecommendationengineV1beta1UserInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleProtobufEmpty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleRpcStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleApiHttpBody + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_type, as: 'contentType' + property :data, :base64 => true, as: 'data' + collection :extensions, as: 'extensions' + end + end + + class GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rejoined_user_events_count, :numeric_string => true, as: 'rejoinedUserEventsCount' + end + end + + class GoogleCloudRecommendationengineV1alphaTuningMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :recommendation_model, as: 'recommendationModel' + end + end + + class GoogleCloudRecommendationengineV1alphaTuningResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudRecommendationengineV1beta1BigQuerySource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data_schema, as: 'dataSchema' + property :dataset_id, as: 'datasetId' + property :gcs_staging_dir, as: 'gcsStagingDir' + property :project_id, as: 'projectId' + property :table_id, as: 'tableId' + end + end + + class GoogleCloudRecommendationengineV1beta1Catalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :catalog_item_level_config, as: 'catalogItemLevelConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig::Representation + + property :default_event_store_id, as: 'defaultEventStoreId' + property :display_name, as: 'displayName' + property :name, as: 'name' + end + end + + class GoogleCloudRecommendationengineV1beta1CatalogInlineSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :catalog_items, as: 'catalogItems', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1CatalogItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :category_hierarchies, as: 'categoryHierarchies', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy::Representation + + property :description, as: 'description' + property :id, as: 'id' + property :item_attributes, as: 'itemAttributes', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap::Representation + + property :item_group_id, as: 'itemGroupId' + property :language_code, as: 'languageCode' + property :product_metadata, as: 'productMetadata', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItem::Representation + + collection :tags, as: 'tags' + property :title, as: 'title' + end + end + + class GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :categories, as: 'categories' + end + end + + class GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :event_item_level, as: 'eventItemLevel' + property :predict_item_level, as: 'predictItemLevel' + end + end + + class GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :prediction_api_key_registration, as: 'predictionApiKeyRegistration', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1EventDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :event_attributes, as: 'eventAttributes', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap::Representation + + collection :experiment_ids, as: 'experimentIds' + property :page_view_id, as: 'pageViewId' + property :recommendation_token, as: 'recommendationToken' + property :referrer_uri, as: 'referrerUri' + property :uri, as: 'uri' + end + end + + class GoogleCloudRecommendationengineV1beta1FeatureMap + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :categorical_features, as: 'categoricalFeatures', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapStringList, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapStringList::Representation + + hash :numerical_features, as: 'numericalFeatures', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapFloatList, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMapFloatList::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1FeatureMapFloatList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :value, as: 'value' + end + end + + class GoogleCloudRecommendationengineV1beta1FeatureMapStringList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :value, as: 'value' + end + end + + class GoogleCloudRecommendationengineV1beta1GcsSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :input_uris, as: 'inputUris' + property :json_schema, as: 'jsonSchema' + end + end + + class GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :canonical_catalog_item, as: 'canonicalCatalogItem', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation + + collection :catalog_items, as: 'catalogItems', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1Image + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :uri, as: 'uri' + property :width, as: 'width' + end + end + + class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :errors_config, as: 'errorsConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::Representation + + property :input_config, as: 'inputConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig::Representation + + property :request_id, as: 'requestId' + property :update_mask, as: 'updateMask' + end + end + + class GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :error_samples, as: 'errorSamples', class: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus, decorator: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus::Representation + + property :errors_config, as: 'errorsConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1ImportErrorsConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_prefix, as: 'gcsPrefix' + end + end + + class GoogleCloudRecommendationengineV1beta1ImportMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :failure_count, :numeric_string => true, as: 'failureCount' + property :operation_name, as: 'operationName' + property :request_id, as: 'requestId' + property :success_count, :numeric_string => true, as: 'successCount' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :errors_config, as: 'errorsConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::Representation + + property :input_config, as: 'inputConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1InputConfig::Representation + + property :request_id, as: 'requestId' + end + end + + class GoogleCloudRecommendationengineV1beta1ImportUserEventsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :error_samples, as: 'errorSamples', class: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus, decorator: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus::Representation + + property :errors_config, as: 'errorsConfig', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportErrorsConfig::Representation + + property :import_summary, as: 'importSummary', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventImportSummary, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventImportSummary::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1InputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :big_query_source, as: 'bigQuerySource', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1BigQuerySource, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1BigQuerySource::Representation + + property :catalog_inline_source, as: 'catalogInlineSource', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogInlineSource, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogInlineSource::Representation + + property :gcs_source, as: 'gcsSource', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GcsSource, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GcsSource::Representation + + property :user_event_inline_source, as: 'userEventInlineSource', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventInlineSource, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventInlineSource::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :catalog_items, as: 'catalogItems', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudRecommendationengineV1beta1ListCatalogsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :catalogs, as: 'catalogs', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :prediction_api_key_registrations, as: 'predictionApiKeyRegistrations', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1ListUserEventsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :user_events, as: 'userEvents', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1PredictRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dry_run, as: 'dryRun' + property :filter, as: 'filter' + hash :labels, as: 'labels' + property :page_size, as: 'pageSize' + property :page_token, as: 'pageToken' + hash :params, as: 'params' + property :user_event, as: 'userEvent', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1PredictResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dry_run, as: 'dryRun' + collection :items_missing_in_catalog, as: 'itemsMissingInCatalog' + hash :metadata, as: 'metadata' + property :next_page_token, as: 'nextPageToken' + property :recommendation_token, as: 'recommendationToken' + collection :results, as: 'results', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1PredictResponsePredictionResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :item_metadata, as: 'itemMetadata' + end + end + + class GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_key, as: 'apiKey' + end + end + + class GoogleCloudRecommendationengineV1beta1ProductCatalogItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :available_quantity, :numeric_string => true, as: 'availableQuantity' + property :canonical_product_uri, as: 'canonicalProductUri' + hash :costs, as: 'costs' + property :currency_code, as: 'currencyCode' + property :exact_price, as: 'exactPrice', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice::Representation + + collection :images, as: 'images', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Image::Representation + + property :price_range, as: 'priceRange', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange::Representation + + property :stock_state, as: 'stockState' + end + end + + class GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_price, as: 'displayPrice' + property :original_price, as: 'originalPrice' + end + end + + class GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max, as: 'max' + property :min, as: 'min' + end + end + + class GoogleCloudRecommendationengineV1beta1ProductDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :available_quantity, as: 'availableQuantity' + property :currency_code, as: 'currencyCode' + property :display_price, as: 'displayPrice' + property :id, as: 'id' + property :item_attributes, as: 'itemAttributes', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap::Representation + + property :original_price, as: 'originalPrice' + property :quantity, as: 'quantity' + property :stock_state, as: 'stockState' + end + end + + class GoogleCloudRecommendationengineV1beta1ProductEventDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cart_id, as: 'cartId' + property :list_id, as: 'listId' + collection :page_categories, as: 'pageCategories', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy::Representation + + collection :product_details, as: 'productDetails', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductDetail, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductDetail::Representation + + property :purchase_transaction, as: 'purchaseTransaction', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurchaseTransaction, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurchaseTransaction::Representation + + property :search_query, as: 'searchQuery' + end + end + + class GoogleCloudRecommendationengineV1beta1PurchaseTransaction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :costs, as: 'costs' + property :currency_code, as: 'currencyCode' + property :id, as: 'id' + property :revenue, as: 'revenue' + hash :taxes, as: 'taxes' + end + end + + class GoogleCloudRecommendationengineV1beta1PurgeUserEventsMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :operation_name, as: 'operationName' + end + end + + class GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter' + property :force, as: 'force' + end + end + + class GoogleCloudRecommendationengineV1beta1PurgeUserEventsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :purged_events_count, :numeric_string => true, as: 'purgedEventsCount' + collection :user_events_sample, as: 'userEventsSample', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :user_event_rejoin_scope, as: 'userEventRejoinScope' + end + end + + class GoogleCloudRecommendationengineV1beta1UserEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :event_detail, as: 'eventDetail', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1EventDetail, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1EventDetail::Representation + + property :event_source, as: 'eventSource' + property :event_time, as: 'eventTime' + property :event_type, as: 'eventType' + property :product_event_detail, as: 'productEventDetail', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductEventDetail, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductEventDetail::Representation + + property :user_info, as: 'userInfo', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserInfo, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserInfo::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1UserEventImportSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :joined_events_count, :numeric_string => true, as: 'joinedEventsCount' + property :unjoined_events_count, :numeric_string => true, as: 'unjoinedEventsCount' + end + end + + class GoogleCloudRecommendationengineV1beta1UserEventInlineSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :user_events, as: 'userEvents', class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent, decorator: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation + + end + end + + class GoogleCloudRecommendationengineV1beta1UserInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :direct_user_request, as: 'directUserRequest' + property :ip_address, as: 'ipAddress' + property :user_agent, as: 'userAgent' + property :user_id, as: 'userId' + property :visitor_id, as: 'visitorId' + end + end + + class GoogleLongrunningListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation, decorator: Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation + + end + end + + class GoogleLongrunningOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus, decorator: Google::Apis::RecommendationengineV1beta1::GoogleRpcStatus::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleRpcStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + end + end +end diff --git a/generated/google/apis/recommendationengine_v1beta1/service.rb b/generated/google/apis/recommendationengine_v1beta1/service.rb new file mode 100644 index 000000000..a5ae62f46 --- /dev/null +++ b/generated/google/apis/recommendationengine_v1beta1/service.rb @@ -0,0 +1,990 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module RecommendationengineV1beta1 + # Recommendations AI + # + # Recommendations AI service enables customers to build end-to-end personalized + # recommendation systems without requiring a high level of expertise in machine + # learning, recommendation system, or Google Cloud. + # + # @example + # require 'google/apis/recommendationengine_v1beta1' + # + # Recommendationengine = Google::Apis::RecommendationengineV1beta1 # Alias the module + # service = Recommendationengine::RecommendationsAIService.new + # + # @see https://cloud.google.com/recommendations/docs/ + class RecommendationsAIService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # 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. + attr_accessor :quota_user + + def initialize + super('https://recommendationengine.googleapis.com/', '') + @batch_path = 'batch' + end + + # Lists all the catalog configurations associated with the project. + # @param [String] parent + # Required. The account resource name with an associated location. + # @param [Fixnum] page_size + # Optional. Maximum number of results to return. If unspecified, defaults + # to 50. Max allowed value is 1000. + # @param [String] page_token + # Optional. A page token, received from a previous `ListCatalogs` + # call. Provide this to retrieve the subsequent 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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogsResponse] + # + # @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_project_location_catalogs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/catalogs', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogsResponse::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogsResponse + 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 the catalog configuration. + # @param [String] name + # The fully qualified resource name of the catalog. + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog] google_cloud_recommendationengine_v1beta1_catalog_object + # @param [String] update_mask + # Optional. Indicates which fields in the provided 'recommendation_model' to + # update. If not set, will only update the catalog_item_level_config field. + # @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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog] + # + # @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_project_location_catalog(name, google_cloud_recommendationengine_v1beta1_catalog_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_catalog_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1Catalog + 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 + + # Creates a catalog item. + # @param [String] parent + # Required. The parent catalog resource name, such as + # "projects/*/locations/global/catalogs/default_catalog". + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] google_cloud_recommendationengine_v1beta1_catalog_item_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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] + # + # @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_project_location_catalog_catalog_item(parent, google_cloud_recommendationengine_v1beta1_catalog_item_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/catalogItems', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_catalog_item_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem + 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 + + # Deletes a catalog item. + # @param [String] name + # Required. Full resource name of catalog item, such as + # "projects/*/locations/global/catalogs/default_catalog/catalogItems/ + # some_catalog_item_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::RecommendationengineV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::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_project_location_catalog_catalog_item(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::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 specific catalog item. + # @param [String] name + # Required. Full resource name of catalog item, such as + # "projects/*/locations/global/catalogs/default_catalog/catalogitems/ + # some_catalog_item_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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] + # + # @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_project_location_catalog_catalog_item(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem + 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 + + # Method for getting the catalog items associated with item group id. + # @param [String] parent + # Required. Parent resource name of group id item, such as + # "projects/*/locations/global/catalogs/default_catalog". + # @param [String] item_group_id + # Required. Catalog item identifier for prediction results. + # @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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse] + # + # @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_project_location_catalog_catalog_item_group_id_items(parent, item_group_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/catalogItems:groupIdItems', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GetCatalogItemsWithItemGroupIdResponse + command.params['parent'] = parent unless parent.nil? + command.query['itemGroupId'] = item_group_id unless item_group_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 + + # Bulk import of multiple catalog items. Request processing may be + # synchronous. No partial updating supported. Non-existing items will be + # created. + # Operation.response is of type ImportResponse. Note that it is + # possible for a subset of the items to be successfully updated. + # @param [String] parent + # Required. "projects/1234/locations/global/catalogs/default_catalog" + # If no updateMask is specified, requires catalogItems.create permission. + # If updateMask is specified, requires catalogItems.update permission. + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest] google_cloud_recommendationengine_v1beta1_import_catalog_items_request_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::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::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 import_project_location_catalog_catalog_item(parent, google_cloud_recommendationengine_v1beta1_import_catalog_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/catalogItems:import', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_import_catalog_items_request_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::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 list of catalog items. + # @param [String] parent + # Required. The parent catalog resource name, such as + # "projects/*/locations/global/catalogs/default_catalog". + # @param [String] filter + # Optional. A filter to apply on the list results. + # @param [Fixnum] page_size + # Optional. Maximum number of results to return per page. If zero, the + # service will choose a reasonable default. + # @param [String] page_token + # Optional. The previous ListCatalogItemsResponse.next_page_token. + # @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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse] + # + # @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_project_location_catalog_catalog_items(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/catalogItems', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListCatalogItemsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.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 catalog item. Partial updating is supported. Non-existing + # items will be created. + # @param [String] name + # Required. Full resource name of catalog item, such as + # "projects/*/locations/global/catalogs/default_catalog/catalogItems/ + # some_catalog_item_id". + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] google_cloud_recommendationengine_v1beta1_catalog_item_object + # @param [String] update_mask + # Optional. Indicates which fields in the provided 'item' to update. If not + # set, will by default update all fields. + # @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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem] + # + # @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_project_location_catalog_catalog_item(name, google_cloud_recommendationengine_v1beta1_catalog_item_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_catalog_item_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem + 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 + + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation 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::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::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 get_project_location_catalog_event_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation + 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 operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/`name=users/*`/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @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::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse] + # + # @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_project_location_catalog_event_store_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.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 + + # Makes a recommendation prediction. If using API Key based authentication, + # the API Key must be registered using the + # PredictionApiKeyRegistry + # service. [Learn more](/recommendations-ai/docs/setting-up#register-key). + # @param [String] name + # Required. Full resource name of the format: + # `name=projects/*/locations/global/catalogs/default_catalog/eventStores/ + # default_event_store/placements/*` + # The id of the recommendation engine placement. This id is used to identify + # the set of models that will be used to make the prediction. + # We currently support three placements with the following IDs by default: + # * `shopping_cart`: Predicts items frequently bought together with one or + # more catalog items in the same shopping session. Commonly displayed after + # `add-to-cart` events, on product detail pages, or on the shopping cart + # page. + # * `home_page`: Predicts the next product that a user will most likely + # engage with or purchase based on the shopping or viewing history of the + # specified `userId` or `visitorId`. For example - Recommendations for you. + # * `product_detail`: Predicts the next product that a user will most likely + # engage with or purchase. The prediction is based on the shopping or + # viewing history of the specified `userId` or `visitorId` and its + # relevance to a specified `CatalogItem`. Typically used on product detail + # pages. For example - More items like this. + # * `recently_viewed_default`: Returns up to 75 items recently viewed by the + # specified `userId` or `visitorId`, most recent ones first. Returns + # nothing if neither of them has viewed any items yet. For example - + # Recently viewed. + # The full list of available placements can be seen at + # https://console.cloud.google.com/recommendation/datafeeds/default_catalog/ + # dashboard + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictRequest] google_cloud_recommendationengine_v1beta1_predict_request_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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponse] + # + # @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 predict_project_location_catalog_event_store_placement(name, google_cloud_recommendationengine_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:predict', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictRequest::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_predict_request_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponse::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictResponse + 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 + + # Register an API key for use with predict method. + # @param [String] parent + # Required. The parent resource path. + # "projects/*/locations/global/catalogs/default_catalog/eventStores/ + # default_event_store". + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest] google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request_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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration] + # + # @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_project_location_catalog_event_store_prediction_api_key_registration(parent, google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/predictionApiKeyRegistrations', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_create_prediction_api_key_registration_request_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration + 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 + + # Unregister an apiKey from using for predict method. + # @param [String] name + # Required. The API key to unregister including full resource path. + # "projects/*/locations/global/catalogs/default_catalog/eventStores/ + # default_event_store/predictionApiKeyRegistrations/" + # @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::RecommendationengineV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::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_project_location_catalog_event_store_prediction_api_key_registration(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::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 + + # List the registered apiKeys for use with predict method. + # @param [String] parent + # Required. The parent placement resource name such as + # "projects/1234/locations/global/catalogs/default_catalog/eventStores/ + # default_event_store" + # @param [Fixnum] page_size + # Optional. Maximum number of results to return per page. If unset, the + # service will choose a reasonable default. + # @param [String] page_token + # Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`. + # @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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse] + # + # @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_project_location_catalog_event_store_prediction_api_key_registrations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/predictionApiKeyRegistrations', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse + 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 + + # Writes a single user event from the browser. This uses a GET request to + # due to browser restriction of POST-ing to a 3rd party domain. + # This method is used only by the Recommendations AI JavaScript pixel. + # Users should not call this method directly. + # @param [String] parent + # Required. The parent eventStore name, such as + # "projects/1234/locations/global/catalogs/default_catalog/eventStores/ + # default_event_store". + # @param [Fixnum] ets + # Optional. The event timestamp in milliseconds. This prevents browser caching + # of + # otherwise identical get requests. The name is abbreviated to reduce the + # payload bytes. + # @param [String] uri + # Optional. The url including cgi-parameters but excluding the hash fragment. + # The URL + # must be truncated to 1.5K bytes to conservatively be under the 2K bytes. + # This is often more useful than the referer url, because many browsers only + # send the domain for 3rd party requests. + # @param [String] user_event + # Required. URL encoded UserEvent proto. + # @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::RecommendationengineV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleApiHttpBody] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def collect_project_location_catalog_event_store_user_event(parent, ets: nil, uri: nil, user_event: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/userEvents:collect', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleApiHttpBody + command.params['parent'] = parent unless parent.nil? + command.query['ets'] = ets unless ets.nil? + command.query['uri'] = uri unless uri.nil? + command.query['userEvent'] = user_event unless user_event.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Bulk import of User events. Request processing might be + # synchronous. Events that already exist are skipped. + # Use this method for backfilling historical user events. + # Operation.response is of type ImportResponse. Note that it is + # possible for a subset of the items to be successfully inserted. + # Operation.metadata is of type ImportMetadata. + # @param [String] parent + # Required. "projects/1234/locations/global/catalogs/default_catalog/eventStores/ + # default_event_store" + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest] google_cloud_recommendationengine_v1beta1_import_user_events_request_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::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::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 import_project_location_catalog_event_store_user_event(parent, google_cloud_recommendationengine_v1beta1_import_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/userEvents:import', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_import_user_events_request_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::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 list of user events within a time range, with potential filtering. + # The method does not list unjoined user events. + # Unjoined user event definition: when a user event is ingested from + # Recommendations AI User Event APIs, the catalog item included in the user + # event is connected with the current catalog. If a catalog item of the + # ingested event is not in the current catalog, it could lead to degraded + # model quality. This is called an unjoined event. + # @param [String] parent + # Required. The parent eventStore resource name, such as + # "projects/*/locations/*/catalogs/default_catalog/eventStores/ + # default_event_store". + # @param [String] filter + # Optional. Filtering expression to specify restrictions over + # returned events. This is a sequence of terms, where each term applies some + # kind of a restriction to the returned user events. Use this expression to + # restrict results to a specific time range, or filter events by eventType. + # eg: eventTime > "2012-04-23T18:25:43.511Z" eventsMissingCatalogItems + # eventTime<"2012-04-23T18:25:43.511Z" eventType=search + # We expect only 3 types of fields: + # * eventTime: this can be specified a maximum of 2 times, once with a + # less than operator and once with a greater than operator. The + # eventTime restrict should result in one contiguous valid eventTime + # range. + # * eventType: only 1 eventType restriction can be specified. + # * eventsMissingCatalogItems: specififying this will restrict results + # to events for which catalog items were not found in the catalog. The + # default behavior is to return only those events for which catalog + # items were found. + # Some examples of valid filters expressions: + # * Example 1: eventTime > "2012-04-23T18:25:43.511Z" + # eventTime < "2012-04-23T18:30:43.511Z" + # * Example 2: eventTime > "2012-04-23T18:25:43.511Z" + # eventType = detail-page-view + # * Example 3: eventsMissingCatalogItems + # eventType = search eventTime < "2018-04-23T18:30:43.511Z" + # * Example 4: eventTime > "2012-04-23T18:25:43.511Z" + # * Example 5: eventType = search + # * Example 6: eventsMissingCatalogItems + # @param [Fixnum] page_size + # Optional. Maximum number of results to return per page. If zero, the + # service will choose a reasonable default. + # @param [String] page_token + # Optional. The previous ListUserEventsResponse.next_page_token. + # @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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListUserEventsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListUserEventsResponse] + # + # @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_project_location_catalog_event_store_user_events(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/userEvents', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListUserEventsResponse::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ListUserEventsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.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 + + # Deletes permanently all user events specified by the filter provided. + # Depending on the number of events specified by the filter, this operation + # could take hours or days to complete. To test a filter, use the list + # command first. + # @param [String] parent + # Required. The resource name of the event_store under which the events are + # created. The format is + # "projects/$`projectId`/locations/global/catalogs/$`catalogId`/eventStores/$` + # eventStoreId`" + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest] google_cloud_recommendationengine_v1beta1_purge_user_events_request_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::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::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 purge_project_location_catalog_event_store_user_event(parent, google_cloud_recommendationengine_v1beta1_purge_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/userEvents:purge', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_purge_user_events_request_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::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 + + # Triggers a user event rejoin operation with latest catalog data. Events + # will not be annotated with detailed catalog information if catalog item is + # missing at the time the user event is ingested, and these events are stored + # as unjoined events with a limited usage on training and serving. This API + # can be used to trigger a 'join' operation on specified events with latest + # version of catalog items. It can also be used to correct events joined with + # wrong catalog items. + # @param [String] parent + # Required. Full resource name of user event, such as + # "projects/*/locations/*/catalogs/default_catalog/eventStores/ + # default_event_store". + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest] google_cloud_recommendationengine_v1beta1_rejoin_user_events_request_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::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::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 rejoin_project_location_catalog_event_store_user_event(parent, google_cloud_recommendationengine_v1beta1_rejoin_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/userEvents:rejoin', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_rejoin_user_events_request_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::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 + + # Writes a single user event. + # @param [String] parent + # Required. The parent eventStore resource name, such as + # "projects/1234/locations/global/catalogs/default_catalog/eventStores/ + # default_event_store". + # @param [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent] google_cloud_recommendationengine_v1beta1_user_event_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::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent] + # + # @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 write_project_location_catalog_event_store_user_event(parent, google_cloud_recommendationengine_v1beta1_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/userEvents:write', options) + command.request_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation + command.request_object = google_cloud_recommendationengine_v1beta1_user_event_object + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent + 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 the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation 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::RecommendationengineV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::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 get_project_location_catalog_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningOperation + 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 operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/`name=users/*`/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @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::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse] + # + # @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_project_location_catalog_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::RecommendationengineV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.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 + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 995503339..09a8daaa9 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20200617' + REVISION = '20200711' # 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/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index 28b63d2b3..06a8acd4a 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -1967,8 +1967,8 @@ module Google # existing data unusable. # The following are specific rules for service defined Monitoring metric # descriptors: - # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, - # `launch_stage` fields are all required. The `unit` field must be specified + # * `type`, `metric_kind`, `value_type`, `description`, and `display_name` + # fields are all required. The `unit` field must be specified # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. # * Maximum of default 500 metric descriptors per service is allowed. # * Maximum of default 10 labels per metric descriptor is allowed. diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1.rb b/generated/google/apis/serviceconsumermanagement_v1beta1.rb index bbc026d60..3867db5e3 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1beta1 VERSION = 'V1beta1' - REVISION = '20200617' + REVISION = '20200711' # 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/serviceconsumermanagement_v1beta1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb index c0a0f9f2f..ec8c59990 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb @@ -1745,8 +1745,8 @@ module Google # existing data unusable. # The following are specific rules for service defined Monitoring metric # descriptors: - # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, - # `launch_stage` fields are all required. The `unit` field must be specified + # * `type`, `metric_kind`, `value_type`, `description`, and `display_name` + # fields are all required. The `unit` field must be specified # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. # * Maximum of default 500 metric descriptors per service is allowed. # * Maximum of default 10 labels per metric descriptor is allowed. diff --git a/generated/google/apis/servicenetworking_v1.rb b/generated/google/apis/servicenetworking_v1.rb index 2e6f6f023..a961cfaa3 100644 --- a/generated/google/apis/servicenetworking_v1.rb +++ b/generated/google/apis/servicenetworking_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1 VERSION = 'V1' - REVISION = '20200615' + REVISION = '20200711' # 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/servicenetworking_v1/classes.rb b/generated/google/apis/servicenetworking_v1/classes.rb index 02e9d51bd..50ff6a5d5 100644 --- a/generated/google/apis/servicenetworking_v1/classes.rb +++ b/generated/google/apis/servicenetworking_v1/classes.rb @@ -2318,8 +2318,8 @@ module Google # existing data unusable. # The following are specific rules for service defined Monitoring metric # descriptors: - # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, - # `launch_stage` fields are all required. The `unit` field must be specified + # * `type`, `metric_kind`, `value_type`, `description`, and `display_name` + # fields are all required. The `unit` field must be specified # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. # * Maximum of default 500 metric descriptors per service is allowed. # * Maximum of default 10 labels per metric descriptor is allowed. diff --git a/generated/google/apis/servicenetworking_v1beta.rb b/generated/google/apis/servicenetworking_v1beta.rb index c99d7b234..1d9424a9a 100644 --- a/generated/google/apis/servicenetworking_v1beta.rb +++ b/generated/google/apis/servicenetworking_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started module ServicenetworkingV1beta VERSION = 'V1beta' - REVISION = '20200615' + REVISION = '20200711' # 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/servicenetworking_v1beta/classes.rb b/generated/google/apis/servicenetworking_v1beta/classes.rb index fc268acab..c5ff4b193 100644 --- a/generated/google/apis/servicenetworking_v1beta/classes.rb +++ b/generated/google/apis/servicenetworking_v1beta/classes.rb @@ -2076,8 +2076,8 @@ module Google # existing data unusable. # The following are specific rules for service defined Monitoring metric # descriptors: - # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, - # `launch_stage` fields are all required. The `unit` field must be specified + # * `type`, `metric_kind`, `value_type`, `description`, and `display_name` + # fields are all required. The `unit` field must be specified # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. # * Maximum of default 500 metric descriptors per service is allowed. # * Maximum of default 10 labels per metric descriptor is allowed. diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 6e17ce02a..0258fba56 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20200617' + REVISION = '20200711' # 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/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index ae895a477..006888971 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -2975,8 +2975,8 @@ module Google # existing data unusable. # The following are specific rules for service defined Monitoring metric # descriptors: - # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, - # `launch_stage` fields are all required. The `unit` field must be specified + # * `type`, `metric_kind`, `value_type`, `description`, and `display_name` + # fields are all required. The `unit` field must be specified # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. # * Maximum of default 500 metric descriptors per service is allowed. # * Maximum of default 10 labels per metric descriptor is allowed. diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index de4534be2..90c8d340c 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20200617' + REVISION = '20200711' # 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/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index 7336c17ec..2bdebc3b6 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -3152,8 +3152,8 @@ module Google # existing data unusable. # The following are specific rules for service defined Monitoring metric # descriptors: - # * `type`, `metric_kind`, `value_type`, `description`, `display_name`, - # `launch_stage` fields are all required. The `unit` field must be specified + # * `type`, `metric_kind`, `value_type`, `description`, and `display_name` + # fields are all required. The `unit` field must be specified # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. # * Maximum of default 500 metric descriptors per service is allowed. # * Maximum of default 10 labels per metric descriptor is allowed. diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index 8eaa2f486..67a5d2dc7 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20200616' + REVISION = '20200707' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/sheets_v4/classes.rb b/generated/google/apis/sheets_v4/classes.rb index f80159d26..058fe04ba 100644 --- a/generated/google/apis/sheets_v4/classes.rb +++ b/generated/google/apis/sheets_v4/classes.rb @@ -480,7 +480,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -578,7 +578,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -1744,7 +1744,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -3891,7 +3891,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -3927,7 +3927,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -4053,7 +4053,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -4114,7 +4114,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -4458,7 +4458,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -4594,7 +4594,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -5521,7 +5521,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -5607,7 +5607,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -5925,7 +5925,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -6296,7 +6296,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -6705,7 +6705,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -6795,7 +6795,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -7625,7 +7625,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -7761,7 +7761,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -7835,7 +7835,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -7897,7 +7897,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -8669,7 +8669,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -9158,7 +9158,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -9228,7 +9228,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -9547,7 +9547,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -9999,7 +9999,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -10761,7 +10761,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -10820,7 +10820,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -10915,7 +10915,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: @@ -10979,7 +10979,7 @@ module Google # A range on a sheet. # All indexes are zero-based. - # Indexes are half open, e.g the start index is inclusive + # Indexes are half open, i.e. the start index is inclusive # and the end index is exclusive -- [start_index, end_index). # Missing indexes indicate the range is unbounded on that side. # For example, if `"Sheet1"` is sheet ID 0, then: diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index 2cec447b5..1ee2a488e 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20200612' + REVISION = '20200710' # 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/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index bff188d2d..b127dd2b0 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -8991,6 +8991,8 @@ module Google # Image content, represented as a stream of bytes. # Note: As with all `bytes` fields, protobuffers use a pure binary # representation, whereas JSON representations use base64. + # Currently, this field only works for BatchAnnotateImages requests. It does + # not work for AsyncBatchAnnotateImages requests. # Corresponds to the JSON property `content` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String]